Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
221 views
in Technique[技术] by (71.8m points)

android - How to delete an app from adb without knowing it's package name?

I can delete apps (that I code myself and install through the SDK) using this command:

adb uninstall com.company.apppackage  

How do I uninstall this through the command line using adb if I do not know the package name?

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?

question from:https://stackoverflow.com/questions/18755739/how-to-delete-an-app-from-adb-without-knowing-its-package-name

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

try:

adb root

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"

Then use:

adb uninstall 

OR

pm uninstall

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...