start app at adb with intent
1. finding application name
~# pm list packages -f | busybox grep -ie music package:/data/app/com.jrtstudio.music-1/base.apk=com.jrtstudio.music <- basic app package:/system/app/Music2/Music2.apk=com.google.android.music <- GMS … |
2. finding activity name
1) android-apktool
download jar file @ https://ibotpeaches.github.io/Apktool/ |
2) app decoding
C:\> java -jar apktooljar d [option] apk_name.apk [target_directory_name] |
3) figuring out intent name
@ AndroidManifest.xml file à find the following activity name (with 'LAUNCHER' intent)
<activity android:exported="true" android:name="com.android.music.MusicBrowserActivity" ... <intent-filter> ... <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity>
|
3. start app with intent
adb shell am start -n com.jrtstudio.music/com.android.music.MusicBrowserActivity |
'Software_Platform > Android' 카테고리의 다른 글
Android bash shell script 실행하기 (0) | 2018.03.18 |
---|---|
[리뷰] 제목: “안드로이드의 모든 것 NDK: C/C++을 이용한 안드로이드 앱 개발 방법” (0) | 2018.03.18 |
Android partial compile (service만 build) framework base만 build (0) | 2015.05.31 |
[CVS] repo 특정 git 만 sync 하기 (0) | 2015.04.30 |
Android Lollipop 5.1.0_r3 코드 size (안드로이드 코드 사이즈) (0) | 2015.04.03 |
댓글