Software_Platform/Android

start app at adb with intent

Roien 2015. 10. 2.
반응형

 

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

반응형

댓글