Android使用笔记
安装 CA 证书
Section titled “安装 CA 证书”Android studio 的模拟器
Section titled “Android studio 的模拟器”选择手机型号时,不要选择 Play Store 的型号不能 Root
emulator 命令目录 ~/Library/Android/sdk/emulator , adb 命令目录 /Library/Android/sdk/platform-tools
启动模拟器 Pixel_6_API_33 是模拟器名称
emulator -avd Pixel_6_API_33 -writable-system获取 root 权限
adb root禁用 secure boot verification
adb shell avbctl disable-verification重新挂载分区
adb remount获取 CA 证书 hash
openssl x509 -inform PEM -subject_hash_old -in ca.crt | head -1假设 CA 证书的 hash 是 364618e0
adb push ca.crt /system/etc/security/cacerts/364618e0.0