电脑adb连接手机
adb devices
adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
LMG710TMdddefdd8 device
查看要卸载应用的包名
手机中打开对应的应用且只保留其在运行
adb shell dumpsys activity top | findstr ACTIVITY
adb shell dumpsys activity top | findstr ACTIVITY
ACTIVITY com.lge.launcher3/.LauncherExtension 44cd79b pid=23471
ACTIVITY com.google.android.apps.maps/com.google.android.maps.MapsActivity 1954812 pid=25983
adb强制停止与指定包名关联的所有应用程序进程
adb shell am force-stop 包名
adb shell am force-stop com.google.android.apps.maps
通过ADB在Android设备上卸载指定的应用程序,并且尝试删除其数据和缓存目录
adb shell pm uninstall -k --user 0 包名
adb shell pm uninstall -k --user 0 com.google.android.apps.maps
Success
卸载完后重启手机,若无法正常进入系统恢复出厂设置
adb reboot
硬格模式(恢复出厂设置、进入[TWRP模式):
按住音量下键+电源键不放,8秒左右强制重启,手机开机有LG G7白字放开电源键2秒再按回去不放,进入硬格模式,或者叫恢复工厂模式。如果你的机器装有TWRP,手机会进入TWRP模式。
标签:G7,LG,shell,预装,包名,google,adb,ACTIVITY,com From: https://blog.csdn.net/xuejianqichi/article/details/142177040