HTC Desire(X06HT)のSBM版公式2.2(OTAでupgradeしたもの)には、Wi-Fi Hotspotが含まれていないので、追加してみます。事前にroot化必須です。
WifiRouter.apkの準備
xda-developersにあるカスタムROMで、WifiRouterを含むものを適当に拾ってきます。
※.odexを作るのが面倒なので、deodexedなapk推奨です。2.12.911.1ベースのapkだと動作OKなことを確認。
WifiRouter.apkの設置
- リカバリモードに移行
% adb reboot recovery
- systemパーティションをマウント
% adb shell mount /system
- WifiRouter.apkをコピー、permission修正
% adb push WifiRouter.apk /system/app % adb shell chmod 644 /system/app/WifiRouter.apk
/system/build.propの修正
プロパティでWifiRouterが非表示にされているので、その設定項目を削除します。
- build.propを取得
% adb pull /system/build.prop .
- build.propを編集し、非表示設定を削除
以下の行を削除します。
ro.wifi.hotspotUI=0
- build.propの上書き、permission修正
% adb push build.prop /system % adb shell chmod 644 /system/build.prop
/system/customize/MNS/default.xmlの修正
プロファイル情報内でWifiRouterが非表示にされているので、その設定項目を削除します。
- default.xmlを取得
% adb pull /system/customize/MNS/default.xml .
- default.xmlを編集し、アプリケーション/ウィジェット非表示設定を削除
以下の2つの内容を削除します。
<function name="applications_hide"> <set name="plenty" max="7"> <item name="package">com.htc.WifiRouter</item> <item name="class">com.htc.WifiRouter.Intro</item> </set> </function>
<function name="htc_widgets_hide"> <set name="plenty" max="7"> <item name="package">com.htc.htcsettingwidgets</item> <item name="widget_name">htcsettingwidgets.HotspotWidgetItem</item> </set> </function>
- default.xmlを上書き、permission修正
% adb push default.xml /system/customize/MNS % adb shell chmod 644 /system/customize/MNS/default.xml
これでrebootすれば、無事にWi-Fi Hotspotが表示されます。
11/20 追記
WifiRouterを正規ROMから生成する場合はコチラ Desire X06HT – WifiRouter追加 補足
WifiRouterのアイコンが表示されない場合はコチラ Desire X06HT – WifiRouter追加 補足2




2011年4月19日