由於天朝養了一隻很強大的河蟹,YouTube及Twitter等工具是使用不了的.在手機中又占空間,一直想找個方法把這些用不了的系統包給刪除掉.
在此先聲明此方法僅針對擷取了root許可權的手機.
在網路上搜了下,到處轉載使用如下命令可以刪除:
adb remount<br />adb shell rm /system/app/YouTube.apk
但是結果卻總是:
rm: can't remove '/system/app/YouTube.apk': Directory not empty
實踐才是檢驗真理的唯一標準,網上好多東西還是得自己試過後才能識別真假.
終於自己在一個外文網站找到瞭解決方法,原文及拙譯如下:
to make changes to /system partition you have to do the following:<br />為了改變system分區,你得按如下操作進行:<br />1. connect your device by USB cable and issue: 'adb reboot recovery', device reboots and shows red trianle/arrow icon<br />1.USB串連你的裝置然後在命令列輸入"adb reboot recovery",機子重啟,啟動後將顯示一個紅色的三角形和箭頭表徵圖<br />2. change to the directory where you rooted your desire from and run './recovery-linux.sh', screen will show green menu<br />2.(在PC下)進入到你的刷機檔案夾然後運行'./recover-linux.sh',螢幕將顯示綠色的菜單<br />3. if you get any "error: device not found", issue './adb-linux kill-server' and run ./recovery-linux.sh again until you get green menu<br />3.如果得到的結果是"error:device not found",運行"./adb-linux kill-server"後再一次運行'./recovery-linux.sh'直到顯示綠色菜單<br />4. adb shell mount /dev/block/mtdblock3 /system<br />4.執行"adb shell mount /dev/block/mtdblock3 /system"<br />now you may add/remove applications from /system/app<br />現在你就可以對'/system/app'進行'添加/刪除'應用了<br />
經G6真機測試,已將YouTube刪除.