準(zhǔn)備工作
- 打開(kāi) USB 調(diào)試
進(jìn)入 “設(shè)置->關(guān)于手機(jī)” 連續(xù)點(diǎn)擊版本號(hào), 直到有提示開(kāi)啟了"開(kāi)發(fā)人員選項(xiàng)"
進(jìn)入 “設(shè)置->系統(tǒng)和更新->開(kāi)發(fā)人員選項(xiàng)”, 打開(kāi) USB 調(diào)式, 順便可以把"自動(dòng)系統(tǒng)更新"關(guān)了
- 下載 adb 工具
官方地址: https://developer.android.google.cn/studio/releases/platform-tools
根據(jù) PC 平臺(tái)下載相應(yīng)的 adb(android debug bridge) 工具
$ unzip platform-tools_r33.0.3-linux.zip
Archive: platform-tools_r33.0.3-linux.zip
inflating: platform-tools/NOTICE.txt
inflating: platform-tools/adb
inflating: platform-tools/dmtracedump
inflating: platform-tools/e2fsdroid
inflating: platform-tools/etc1tool
inflating: platform-tools/fastboot
inflating: platform-tools/hprof-conv
inflating: platform-tools/make_f2fs
inflating: platform-tools/make_f2fs_casefold
inflating: platform-tools/mke2fs
inflating: platform-tools/mke2fs.conf
inflating: platform-tools/sload_f2fs
extracting: platform-tools/source.properties
inflating: platform-tools/sqlite3
inflating: platform-tools/lib64/libc++.so
$ ls
platform-tools platform-tools_r33.0.3-linux.zip
$ cd platform-tools/
jianghuixin@Vostro-3670:~/Downloads/Tmp/platform-tools 10:11:04
$ ./adb --help
- 連接 PC 與手機(jī)
選擇"傳輸文件"的連接選項(xiàng)
卸載預(yù)裝軟件
- 查看設(shè)備
adb devices
命令用于查看 PC 所連接的設(shè)備
$ ./adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
H5XVB20605005176 unauthorized
手機(jī)端彈出"是否允許 USB 調(diào)試", 選中始終允許調(diào)試并確定, 再次查看設(shè)備
$ ./adb devices
List of devices attached
H5XVB20605005176 device
- 查看軟件列表
adb shell pm list package -s
獲取已安裝的應(yīng)用, 輸出太多僅展示部分結(jié)果
$ ./adb shell pm list package -s
package:com.android.cts.priv.ctsshim
package:com.huawei.camera
package:com.huawei.camerakit.impl
package:com.huawei.synergy
package:com.huawei.android.launcher
package:com.huawei.hms.dupdateengine
package:com.android.providers.telephony
package:com.huawei.harmonyos.foundation
package:com.huawei.androidx
...
- 卸載應(yīng)用
adb shell pm uninstall --user 0 <應(yīng)用包名稱>
卸載指定的應(yīng)用
如果輸入的應(yīng)用名稱有誤, 則會(huì)提示“Failure [not installed for 0]”
卸載百度輸入法, 先進(jìn)入"設(shè)置->系統(tǒng)和更新->語(yǔ)言和輸入法", 關(guān)閉安全輸入
./adb shell pm uninstall --user 0 com.baidu.input_huawei
卸載華為瀏覽器, 包名為 “com.huawei.browser” 或者 “com.android.browser”
./adb shell pm uninstall --user 0 com.huawei.browser
卸載華為音樂(lè), 包名為 “com.huawei.music” 或者 “package:com.android.mediacenter”
./adb shell pm uninstall --user 0 com.huawei.music
卸載華為視頻
./adb shell pm uninstall --user 0 com.huawei.himovie
卸載其他軟件
-
com.huawei.phoneservice: 服務(wù)
-
com.huawei.ohos.famanager: 服務(wù)中心
-
com.huawei.bd: 用戶體驗(yàn)計(jì)劃
-
com.huawei.hifolder: 精品推薦
-
com.huawei.skytone: 天際通
-
com.huawei.hicar: HiCar智行
-
com.huawei.gameassistant: 游戲空間
-
com.huawei.hwdetectrepair: 智能檢測(cè)文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-445258.html
-
com.huawei.videoeditor: 花瓣剪輯文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-445258.html
到了這里,關(guān)于ubuntu 使用 adb 工具卸載鴻蒙系統(tǒng)預(yù)裝軟件的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!