حذف و نصب برنامه با کمک adb
سه شنبه, ۱ اسفند ۱۴۰۲، ۰۳:۵۲ ب.ظ
Connect your phone to PC via USB and then open a CMD (asume adb is installed):
List devices:
adb devices
To list all packages:adb shell pm list packages
For remove a package:
adb shell pm uninstall -k --user 0 com.android.chrome
or
adb uninstall --user 0 com.android.chrome
To open an ADB shell:
adb shell
List all of the currently installed packages:
pm list packages
Uninstall the app(s):
pm uninstall -k --user 0 package name
ex:
pm uninstall -k --user 0 com.google.android.youtube
Change directory:
cd /storage/self/primary/Download
Install an apk:pm install -r --user 0 com.android.chrome.apk