Last Updated: August 23, 2022
·
43.43K
· krmbzds

Launch Android app with adb

Often times you would have to know the activity name to launch an app from adb. With monkey command you can launch the app directly using:

adb shell monkey -p com.android.settings -c android.intent.category.LAUNCHER 1

Replace com.android.settings with the package name of the app you would like to launch.

You can use method to circumvent poorly implemented access control on devices that rely on disabling touch gestures and taking over the screen.

Happy hacking.

2 Responses
Add your response

thanks dude :)
i have a smart bulb a phone a adb wifi and a simple app that only turns on the light
god bless you

over 1 year ago ·

thanks dude :)
i have a smart bulb a phone a adb wifi and a simple app that only turns on the light
god bless you

Your comment made my day. Thank you!

I wrote this about 10 years ago. A friend asked me to root their Android tablet. It had a kiosk style interface which took over the screen to prevent access. I used this command to get to the "Settings" menu so I can enable "Developer Mode" to root the device.

I'm currently building a personal wiki and your comment motivated me to write more stuff.

Have a good day!

over 1 year ago ·