In interface testing, I believe many people have encountered the problem that the high version of Android (Android7.0 and above) system cannot capture packets. Since it was inconvenient to analyze and locate the problem during the testing process, I wanted to ask my development classmates for help. As a result, the developer also said that he couldn’t do it, so I had to solve it myself.
Problem AnalysisThe cause of the problem is analyzed as follows:
Refer to the online information to get the following solution: Solution 1
Then recompile and package to capture the package, which is also very convenient for developers. However, because I am testing an enterprise WeChat applet, it is simply a daydream to ask the developers of enterprise WeChat to help me do this, not to mention security issues... Solution 2 The problem can be solved by finding an Android device or emulator with a version lower than 6.0 or equal to 6.0. However, considering that this is only a temporary solution and not a permanent one, the company itself does not have such a device, and the emulators we found are all Android 7.0, so we directly gave up this solution. Then I had to find a developer again. After studying for a long time, the developer told me that my iOS can capture packets, but I don’t know about Android. For a moment, I wanted to flip the table... I had to ask my test development classmates for solutions:
Finally, I was still unwilling to give up, so I continued to search for various information. Finally, my hard work paid off and I found the final solution that met the requirements. Final Solution
Implementation steps Go to Github and download the following two Pages
first step Use the following adb command to install two pages respectively
Step 2After the installation is complete, enter the VirtualXposed apk application and click on the 6 dots to enter the settings page. Step 3Enter the settings page, click Module Management, and check JustTrustMe (of course I didn’t find it, maybe my version doesn’t need to be selected manually, it is automatically recognized after installation). After restarting, we re-enter the settings page and add the application we need to capture. I choose Enterprise WeChat as an example. Step 4Click Add Application and select the software you want to capture and install: Configure Charles to capture packetsI will not explain here how to set up Charles proxy. I believe you can solve the problem by yourself. In the wifi settings of your phone, change the proxy to manual. Enter the IP and port: 8888 by default. Please note that the phone and computer should be on the same wifi. Step 6Go back to VirtualXposed, swipe up to unlock, open the enterprise WeChat we installed earlier, and you will find that Charles has successfully captured the HTTPS data packet of Anjuke: SummarizeWhen encountering problems/bugs in testing work, people often get very annoyed and panicked, and at a loss. However, as a qualified tester, when encountering things, you still have to strive to be "unmoved by the collapse of Mount Tai in front of you, and unblinking by the rise of a deer on your left" (show your literary talent ~). Even if the development team gives up, you can still remain calm, which shows the true qualities of a test hero ! There is no shortcut to technical advancement, the only way is to accumulate step by step, step by step, and persist in going forward. Although this problem took several twists and turns, after I finally solved it, the developers looked at me differently, and I was more convincing when I reported bugs in the future. |
<<: No need to install any apps! Here's a tip to stop spam calls and text messages
>>: WeChat 7.0.18 launched new features, iOS 14.3 was hacked
In the current domestic market, most bosses doing...
[[129910]] Jobs hopes that Apple will create grea...
If someone asked you, if you don’t want to stay i...
1. App Market ASO In terms of the overall environ...
[[423112]] September 10 news: Thanks to IT Home n...
As a revolutionary technology, blockchain is gain...
Monetize your knowledge: Teach you to become an &q...
About the platform, about pictures, about typeset...
Looking at the market, from the initial portal er...
Seeing this title, I believe many people are a li...
How much does it cost to join a prenatal educatio...
The App has been developed, the advertising has b...
As we all know, ever since CCTV exposed the traps...
This is not a beginner's guide on how to oper...
As the new media director of Fan Deng Reading, I ...