Skip to content

Android使用笔记

安装CA证书

Android studio的模拟器

选择手机型号时,不要选择Play Store的型号不能Root

emulator命令目录~/Library/Android/sdk/emulator, adb命令目录/Library/Android/sdk/platform-tools

启动模拟器Pixel_6_API_33是模拟器名称

Terminal window
emulator -avd Pixel_6_API_33 -writable-system

获取root权限

Terminal window
adb root

禁用secure boot verification

Terminal window
adb shell avbctl disable-verification

重新挂载分区

Terminal window
adb remount

获取CA证书hash

Terminal window
openssl x509 -inform PEM -subject_hash_old -in ca.crt | head -1

假设CA证书的hash是364618e0

Terminal window
adb push ca.crt /system/etc/security/cacerts/364618e0.0