Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
341 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?

See Question&Answers more detail:os

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

1 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...