Use Charles to grab app packages

Time:2022-6-8

System environment: win10

1. download the software on Charles’ official website
https://www.charlesproxy.com/…

The registration code is as follows:

Help->Register

Registered Name:  https://zhile.io
License Key:      48891cf209c6d32bf4

2. the firewall opens the Charles application network
Control panel – > all control panel items ->windows defender Firewall – > allow applications to communicate through Windows Defender firewall: check both the private and public networks of the Charles web debugging proxy
Use Charles to grab app packages

3. start packet capturing
Specific tutorial reference:https://blog.csdn.net/AI_Gree…

Note here:
IOS system: certificate trust needs to be configured
Use Charles to grab app packages

Android system:
In the Android system, certificates are divided into two types: system certificates and user certificates. Certificates installed by Charles belong to user certificates. For security purposes, user certificates are no longer trusted by default in Android 7 or above, which will lead to app network exceptions when capturing HTTPS packets.

Solution:
1、 Downgrade the Android system and use the night God simulator (the old version, otherwise it does not support Android under version 7, I installed version 6.6.0.1)
https://www.yeshen.com/blog/v…(download address of old version of night God simulator)
Use Charles to grab app packages
Subsequent operation reference:https://www.cnblogs.com/yulia…

2、 Do not want to downgrade the Android system. Change the user certificate to the system certificate (root is required). It is recommended to use the emulator
Installation certificate reference:
https://wenku.baidu.com/view/…

4. successful packet capture
Use Charles to grab app packages