1. 현재 실행중인 앱의 패키지명 확인하기
[code]
$ adb shell “dumpsys activity | grep top-activity”
[/code]
Proc # 0: fore T/A/TOP trm: 0 26540:com.kakao.talk/u0a161 (top-activity)
2. APK 위치 찾기
카카오톡 apk 위치 확인
[code]
$ adb shell pm list packages -f com.kakao.talk
[/code]
package:/data/app/com.kakao.talk-C_BUDmgGEN_PJYCVzCFaDQ==/base.apk=com.kakao.talk
3. APK 를 PC로 다운로드 하기
카카오톡 base.apk를 현재폴더로 다운로드하기
[code]
$ adb pull /data/app/com.kakao.talk-C_BUDmgGEN_PJYCVzCFaDQ==/base.apk ./
[/code]
/data/app/com.kakao.talk-C_BUDmgGEN_PJYCVzCFaDQ==/base.apk: 1 file pulled, 0 skipped. 33.0 MB/s (106966019 bytes in 3.093s)
4. base.apk 에서 Launchable activity 확인하기
[code]
aapt dump badging base.apk | findstr “launchable-activity”
[/code]
launchable-activity: name=’com.kakao.talk.activity.SplashActivity’ label=’KakaoTalk’ icon=’res/mipmap-anydpi-v26/icon_talk.xml’
5. 현재 activity 확인
[code]
$ adb shell “dumpsys window windows | grep -E ‘mTopActivityComponent'”
[/code]