adb launch any app

adb launch any app

like camera app
default if someone has already modified then it will launch their app

Image capture mode: adb shell “am start -a android.media.action.IMAGE_CAPTURE”

Video capture mode: adb shell “am start -a android.media.action.VIDEO_CAPTURE”

adb launch home app

am start -c android.intent.category.HOME -a android.intent.action.MAIN

or
am start -n com.android.launcher/com.android.launcher.Launcher
but I have already made my app as home so will not do

Start any app by just the package name

adb shell monkey -p app.package.name -c android.intent.category.LAUNCHER 1

monkey command

monkey -p com.nandan.mylauncher -c android.intent.category.LAUNCHER 1

Launch any app

com.vaultmicro.camerafi.apk

adb shell monkey -p app.package.name -c android.intent.category.LAUNCHER 1

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

monkey -p com.vaultmicro.camerafi -c android.intent.category.LAUNCHER 1

am start -n com.nandan.myapp/.MyCustomAppActivity

Grant revoke permission

abd shell pm [grant|revoke] com.my.app android.permission.ACCESS_FINE_LOCATION

pm grant com.vaultmicro.camerafi android.permission.CAMERA

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s