

Here, you can see the action, data, flag and component - enough for the goal. I didn't confirm but execute the command adb shell dumpsys activity recents # for Android 4.4 and aboveĪdb shell dumpsys activity activities # for Android 4.2.1Īmong other things, it showed me useful details of the intent passed in the background. The alternative way I used was: I attempted to uninstall the app using GUI until I was shown the final confirmation. I used it to show the activities of Package Installer app (the GUI that you see during installation and removal of apps) as well as the related intents. I got the info about those commands using Elixir 2 (use any equivalent app). All of those commands would require user's confirmation for removal of app.ĭetails of the said command can be known by checking am's usage using adb shell am. The app mustn't be a device administrator for the command to work successfully. Replace PACKAGE with package name of the installed user app.

Using ADB, you can use any of the following three commands: adb shell am start -a _PACKAGE -d "package:PACKAGE"Īdb shell am start -n /.UninstallerActivity -d "package:PACKAGE"Īdb shell am start -a -d "package:PACKAGE"
