# adb shell am start -a android.intent.action.MAIN -n com.mediatek.engineermode/.EngineerMode
How To create this magic cmd:
-
google query: how to run apk from adb
on page N2 found this:
www.android.pk: Launch app through adb shell - Android News & Updates
This is about how to launch android application from the adb shell.
... How to Install Android APK on Dell Streak with SDK Commands.
-
From site I get and run this:
And I'm happy!# adb shell am start -a android.intent.action.MAIN -n com.android.browser/.BrowserActivity
-
Next step get apk and find start points.
# adb pull /system/app/Browser.apk ./
# adb pull /system/app/EngineerMode.apk ./
-
Find working.
A: android:name(0x01010003)=".EngineerMode" (Raw: ".EngineerMode")# aapt l -a ./Browser.apk | grep BrowserActivity
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
-
Find like working.
A: android:name(0x01010003)=".EngineerMode" (Raw: ".EngineerMode")# aapt l -a ./EngineerMode.apk | grep A\:\ android\:name
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
-
Search name like com.android.browser.
# aapt l -a ./EngineerMode.apk | less
-
Create cmd like working.
# adb shell am start -a android.intent.action.MAIN -n com.mediatek.engineermode/.EngineerMode