android-adb-emulator




网易MuMu模拟器:

打开开发者权限:
设备开机状态下:
设置-》关于手机-》版本号-》点击 7 次即可打开开发者权限

USB调试:
打开开发者权限之后,
设置-》系统-》开发者选项-》"USB调试"-》打开

设置可读写系统盘:
设备关机状态下
设备设置-》磁盘-》磁盘共享-》选择"可写系统盘"


设置Root:
设备关机状态下
设备设置-》其他-》Root权限-》选择"开"

为了使root生效,选择重启设备


使用Reqable抓包:
下载地址:
https://reqable.com/zh-CN/download/

安装后,点击桌面"Reqable"图标,提示需要安装证书。
我选择Root设备-》手动复制文件,
点击下载证书,会下载到Download目录下,还需要复制到 /system/etc/security/cacerts下,此时需要用到adb。

adb位于android sdk的platform-tools文件夹下,可以将其加入PATH环境变量内。


1). adb连接mumu模拟器: mumu模拟器默认端口为: 7555 ,所以 需要执行:
adb connect localhost:7555
C:\>adb connect localhost:7555
connected to localhost:7555

C:\>adb devices
List of devices attached
emulator-5554   device
localhost:7555  device


2). adb登录模拟器:
C:\>adb shell
adb.ex: more than one device/emulator

这个时候就需要指定模拟器:  如: adb -s localhost:7555 shell ,
然后再使用su , 这样就可以使用root权限
ex:
C:\>adb -s localhost:7555 shell
Welcome! If you need help getting started, check out our developer FAQ page at:

    https://g.126.fm/04jewvw

We're committed to making our emulator as useful as possible for developers,
so if you have any specific requirements or features that you'd like to see
in the emulator, please let us know. We're always open to new ideas and suggestions.
You can find our contact information on the FAQ page as well.

Thanks for using our emulator, happy coding!
e1q:/ $ su
:/ #

:/ # ls /storage/emulated/0/Download/Reqable/3b965ff6.0
/storage/emulated/0/Download/Reqable/3b965ff6.0
:/ #

3). 在root下,将文件复制到  /system/etc/security/cacerts下
:/ # cp /storage/emulated/0/Download/Reqable/3b965ff6.0  /system/etc/security/cacerts
:/ # ls /system/etc/security/cacerts/3b965ff6.0
/system/etc/security/cacerts/3b965ff6.0