There is a command to ease the pain of managing packages for Android phone,
adb shell pm uninstall org.kde.necessitas.example.one
adb shell pm uninstall org.kde.necessitas.example.two
But I have many phones and just want to delete all packages from a particular domain on them.
It cannot be done by
adb shell pm uninstall org.kde.necessitas.example.*
what is your suggestion?
If you're sat in a shell on the phone itself, you can do this (all on one line, if you want):
If you're on the host machine and you're using something Unixy - Linux, Mac, Cygwin - then something similar will work there too, but you need to shove 'adb shell' in:
Since you're talking about removing the packages from all connected phones, you need yet another loop:
for mac users:
You can use the following in a batch file: (I am assuming Windows though)
You could take it a step further and make the search text a parameter:
This pipes the output of the
pm list packages
command into a text file and then loops through each line of the text file. It callsadb shell pm uninstall
for each second token in the line which in this case is the package name.