如何在不知道包名称的情况下从adb删除应用程序?
问题描述:
我可以使用以下命令删除应用程序(我自己编写并通过SDK安装):
I can delete apps (that I code myself and install through the SDK) using this command:
adb uninstall com.company.apppackage
如何通过命令行使用 adb
如果我不知道程序包名称?
How do I uninstall this through the command line using adb
if I do not know the package name?
例如,如果某个应用程序在Android主菜单中显示为我的应用程序,如何如果我不知道它的软件包名称,可以删除它吗?
For example, if an app shows up in the Android main menu as "My Application", how can I delete it if I do not know it's package name?
或者,是否可以通过某种方式知道应用程序内部软件包的名称?
Or alternatively, is there a way to somehow know an apps internal package name?
答
尝试:
adb root
然后输入adb shell
Then enter adb shell
adb shell
找出您的应用程序包名称:
Find out your apps package name:
pm list packages | grep "your app name/something related to your app name"
然后使用:
adb uninstall
或
pm uninstall