安卓逆向 05 app包名的获取

1. 反编译查看清单文件

将apk文件反编译,通过AndroidManifest.xml --> manifest元素 --> package 属性
![image.png](/img/bVcVYvF)

2. 打印进程信息(包名就是进程名)

Android 8以前用ps
Android 8以后用ps -A

这个是最推荐的方式

image.png

3. 通过shell命令获取包名和界面名

adb shell
dumpsys window windows | grep mFocusedApp

也可以在win的dos界面,组合通过这个命令来获取 (因为此时为win的dos界面,因此需要使用findstr ,而非grep)

adb shell dumpsys window windows | findstr mFocusedApp

你可能感兴趣的:(爬虫)