从google play下载的APK 我们无法取得APK包 分析这个APK,所以我们需要从手机上dump出来。
1、手机连接电脑,开启USB调试
2、运行你要拷贝的APK
3、执行ADB命令获取APK的包名。
adb shell dumpsys activity | find "top-activity"
2020.04.10补充,高版本安卓手机上诉命令可能无效果了,可以改为:
adb shell dumpsys activity | find "Resume"
4、adb pull 出指定位置的APK到 指定的位置。
adb pull /data/app/com.xungstudio.battlecity1990-1/base.apk .