1. View the emulator model
1. Connect to the Night Simulator
Under the bin where the Yeshen simulator path is installed, enter cmd and press Enter (or directly open the bin file in cmd),
Enter adb connect 127.0.0.1:62001
I am here because I have already linked to the reminder to link again
2. Enter adb shell
3. Enter getprop ro.product.cpu.abi to get x86, you need to install the x86 version of frida-server
2. Download the corresponding version of frida-server
1. Check the frida version installed on the PC
Open a new cmd window and enter frida --version
For example: my computer is installed with 15.2.2
2. Download the frida-server service version
Frida-server download link:
https://github.com/frida/frida/releases
According to the above content, my computer needs to install the x86 version, the frida-server with the version number 15.2.2 (it can also be lower than this version), and then decompress the frida-server
3. Connect the computer and the emulator to enter the debugging
1. Connect to the Night Simulator
Open cmd in the bin directory of the Yeshen Simulator installation, and enter adb connect 127.0.0.1:62001
2. Upload the file to the simulator to install and run
For example: the decompressed frida-server-15.2.2-android-x86 is placed in the D:\appSafetyEvaluation folder
Execute the following command:
adb push D:\appSafetyEvaluation\frida-server-15.2.2-android-x86 /data/local/tmp/frida-server-15.2.2-android-x86
adb shell
su
cd /data/local/tmp
chmod 755 frida-server-15.2.2-android-x86
./frida-server-15.2.2-android-x86
After running the command, if the following information is returned, it means that it is already running (that is, the frida-server has been successfully started) . This shell (cmd window) cannot be closed, otherwise frida will be closed.
3. Forward the port and listen
Open another cmd command window
Open cmd in the bin directory of the Yeshen Simulator installation, and enter adb connect 127.0.0.1:62001
port forwarding, listening
adb forward tcp:27042 tcp:27042
adb forward tcp:27043 tcp:27043
View the process, the output indicates that the installation has been successful
frida-ps -U
As shown in the figure below, the installation is successful