請參考Root the Xperia X Compact來安裝Flashtool和Xperia X Compact驅動,安裝後就可以使用adb命令來調試手機了。
手機上開啟調試模式
設置/系統/關於手機/(最下方)Build number,點擊版本號7次即可開啟開發者選項。在系統菜單里,進入開發者選項,找到Debugging類目下的USB debugging開關,打開它。手機用USB連接電腦就可以了。注意此種模式連接電腦有被安裝病毒軟件風險,所以不要隨便以這種狀態連接任何不明設備。用完後記得關閉調試開關。
去除Wifi標誌上的叉號
出現叉號是因為谷歌的聯通性檢測網址無法被訪問。可以自行搭建一個這樣的服務,v2ex也有提供,這裡使用高通中國聯通性檢測網址。
adb shell "settings put global captive_portal_https_url https://www.qualcomm.cn/generate_204" adb shell "settings put global captive_portal_http_url http://www.qualcomm.cn/generate_204"
禁用或刪除不使用的自帶軟件
如果root了,有很多軟件可以選擇,如link2sd。未root可以使用下面命令來實現,參考自:Which Apps are safe to remove after Root。
#通過adb打開手機終端 adb shell #查看所有app pm list packages | more #禁用startupflagservice,可以解決手機自動重啟 pm disable-user com.sonyericsson.startupflagservice #禁用warrantytime,可以去掉開機後的狀態欄提示 pm disable-user com.sonyericsson.warrantytime #更多可禁用app可參考上面鏈接 #查看已禁用的app pm list packages -d #退出終端 exit #卸載What's New命令 adb uninstall --user 0 com.sonymobile.entrance