Android App隐私合规检测辅助工具

准备工具:(3个下载链接已压缩打包https://kalipentest.cn/1.rar)
platform-tools_r33.0.3-windows   #    https://developer.android.com/studio/releases/platform-tools
frida-server-15.2.2-android-x86_64       #https://github.com/frida/frida/releases/download/15.2.2/frida-server-15.2.2-android-x86_64.xz 
camille-master        #    https://github.com/zhengjim/camille
python3.10     #powershell运行python,自动跳转至windows商店下载安装
pip install frida-tools
pip install frida




#mumu模拟器开启开发者调试模式
设置-关于-版本号关于连续点击6次


#模拟器安装frida-server

PS C:\Users\admin\Downloads\platform-tools_r33.0.3-windows\platform-tools> .\adb.exe push C:\Users\admin\Downloads\frida-server-15.2.2-android-x86_64\frida-server-15.2.2-android-x86_64 /data
PS C:\Users\admin\Downloads\platform-tools_r33.0.3-windows\platform-tools> .\adb.exe shell

chmod 777 frida-server-15.2.2-android-x86_64
./frida-server-15.2.2-android-x86_64

#本地python安装frida-tools
pip install frida-tools
pip install frida

#验证frida运行
PS C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts> .\frida-ps.exe -U
  PID  Name
-----  ----------------------------------
  252  VBoxShell
  291  adbd
 1050  android.process.acore
  946  android.process.media
28961  com.android.defcontainer
 1326  com.android.keychain
29120  com.android.phone
 1381  com.android.providers.calendar
29092  com.android.settings:superuser
  845  com.android.systemui



#查看mumu模拟器是32还是64位
PS C:\Users\admin\Downloads\platform-tools_r33.0.3-windows\platform-tools> .\adb.exe shell cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 158
model name      : Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
stepping        : 10
cpu MHz         : 2400.000


#查看mumu模拟器中安装的软件
PS C:\Users\admin\Downloads\platform-tools_r33.0.3-windows\platform-tools>  .\adb.exe shell pm list packages -3

#查看mumu模拟器运行的frada监听是否正常
PS C:\Users\admin\Downloads\platform-tools_r33.0.3-windows\platform-tools> .\adb.exe shell
root@MuMu:/ #
root@MuMu:/ # netstat -antpl
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program Name
tcp        0      0 0.0.0.0:34752           0.0.0.0:*               LISTEN      298/local_camera_bac
tcp        0      0 127.0.0.1:24801         0.0.0.0:*               LISTEN      298/local_camera_bac
tcp        0      0 127.0.0.1:27042         0.0.0.0:*               LISTEN      8054/frida-server-15
tcp        0      0 0.0.0.0:22470           0.0.0.0:*               LISTEN      297/local_gps
tcp        0      0 0.0.0.0:32652           0.0.0.0:*               LISTEN      710/system_server
tcp        0      0 127.0.0.1:5037          0.0.0.0:*               LISTEN      291/adbd
tcp        0      0 0.0.0.0:5555            0.0.0.0:*               LISTEN      291/adbd
tcp        0      0 10.0.2.15:58024         106.2.70.17:30000       ESTABLISHED 1482/com.netease.l10




#运行APP隐私合规检测工具

https://github.com/zhengjim/camille


PS C:\Users\admin\Downloads\camille-master\camille-master> python camille.py com.rarlab.rar -f test_rar.xls