System environment :win10
1. stay charles Download software from the official website
https://www.charlesproxy.com/...
The registration code is as follows :
Help->Register
Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
2. Firewall on charles Application network
Control panel -> All control panel items ->Windows Defender A firewall -> Allow applications to pass through Windows Defender The firewall communicates : take charles web debugging proxy Both private and public networks can be checked 
3. Start the bag.
Specific tutorial reference :https://blog.csdn.net/AI_Gree...
Notice here :
ios System : Certificate trust needs to be configured 
android System :
In Android , Certificates are divided into two categories , System certificate , User certificate , Use charles The installed certificate belongs to user certificate , On Android 7 Above version , For the sake of safety , The user certificate is no longer trusted by default , It will lead to grabbing https Packet time app Network anomalies .
Solution :
One 、 Downgrade Android , Use the night God Simulator ( Old edition , Otherwise, I don't support 7 Android version below , I'm pretending to be 6.6.0.1 edition )
https://www.yeshen.com/blog/v...( Nocturnal simulator old download address )
Refer to for subsequent operation :https://www.cnblogs.com/yulia...
Two 、 Don't want to downgrade Android , Change user certificate to system certificate ( need root), Simulator is recommended
Installation certificate reference :
https://wenku.baidu.com/view/...
4. Successful capture 





![[the first contact between Android engineers and smart home products ③] the specific implementation of smartconfig one key distribution network on the hardware side | the specific implementation of es](/img/24/00f0b035f623c4fca2c0f3a5c0af5b.png)
![Android development interview questions collection and sorting (including answers), [work perception]](/img/19/66c12a438cfa52e08f14344a88167a.png)


