Fiddler Capture Thunderbolt Simulator 9 (Android 9.0) Tutorial, if the app cannot be loaded, remember to move the certificate directory

I am using the Chinese version of fiddler on the Internet. According to the tutorials searched by Baidu, there are always some pitfalls, so record them.

Setup fiddler (Tools > Options)

1. Set https , tick three √ on the capture https side, click [action], generate a certificate, and import it to the desktop.

 2. Set up the connection , allow remote computer connections, tick √, remember the port number, here I am 8888

 3. View the local ip on the right side of fiddler or in ipconfig, this ip and the port above will be used in the emulator wifi

 Set up the emulator

1. Set the performance . I don’t know what this system.vmdk does. I feel that it has something to do with root permissions. Click on it.

 2. Set up the network , click to install the bridge network card, and set the ip to DHCP. This is also following the online tutorial.

 3. Set root permissions . This is to facilitate the copying of the mobile installed fiddler certificate to the Android system certificate directory. If the certificate is not copied to the system certificate directory, the browser in the emulator can access it normally, but the app cannot always be loaded. Many The tutorial did not mention this, and it took me a long time to find out that I need to move the certificate.

 4. Set up wifi , set it in the settings of the emulator > network and Internet, there is nothing to say, look at the picture, and fill in the ip and port.

 5. Install the certificate , and you can find many tutorials on the Internet. One method is to visit the browser ip plus port, such as 192.168.xx.xx:8888, there will be a fiddler echo page, and the bottom link is the certificate link. Click to download, and then install it; there is also [More > Shared Files > Open Computer Folder] on the right side of the emulator, access the certificate on the desktop to install, open the Android folder and drag the desktop certificate into it to install. Anyway, there is nothing wrong with doing it all over again. (To install the certificate, you need to set a lock screen password or something)

 6. After the above steps are completed, you can find that the browser in the emulator can access the webpage normally, and a pop-up window may pop up that does not trust the certificate. There are no other problems. However, the page may fail to load when the app you installed is opened . Come out of the situation! At this time, you need to move the installed certificate, the specific location is:

User certificate directory: /data/misc/user/0/cacerts-added/
System certificate directory: /system/etc/security/cacerts/

The fiddler certificate you installed is located in the user certificate directory, and you need to copy or move it to the system certificate directory  through a third-party file management software .

 The file management software that comes with the emulator cannot be copied and moved. Although many third-party ones can be rooted, some of them cannot see the hidden files of the system, or they cannot be copied and moved. Here we use an Android file manager called Solid Explorer. device, and finally copied successfully.

Finally, I entered my Android app again, and finally loaded normally, and the data stream of the app can also be captured in fiddler, and you're done!

Guess you like

Origin blog.csdn.net/whoas123/article/details/128259826