Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure the environment of Android app when mac uses Charles to grab packets

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to configure the environment in which mac uses Charles to grab Android app". In daily operation, I believe many people have doubts about how to configure the environment in which mac uses Charles to grab Android app. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to configure the environment in which mac uses Charles to grab Android app". Next, please follow the editor to study!

Preface

For a developer who has just come into contact with the business and is not familiar with the business, the quickest way to get familiar with the business and understand the composition of the project code is to start from the specific page, then open the browser web console, locate the url to find the relevant interface, and then start the debug journey. For an app, however, a similar approach is to use the packet grab tool to locate the url. Don't talk too much nonsense, just put it into practice.

Prepare tool CHARLES download

This is a package grabbing software charged by the mac end. After downloading from the above address, there is a free trial time of 30 days. Free use requires frequent restart of the service. During this period, you can apply for a commercial authorization code from the company as soon as possible.

Analysis of principle

The principle is very simple, you can start a traffic proxy service through Charles, and then set up a mobile network proxy to direct traffic to the Charles proxy service. Then use some rules to intercept the traffic you follow for visual analysis and processing.

Configuration

After the installation is complete, open Charles and find the configuration shown in the following figure:

Navigate to the menu shown in the figure, then a pop-up window will pop up, and the information shown in the arrow is the ip and port of the proxy service:

Open the https agent and find the following menu

A window pops up to confirm that SSl Proxying is turned on. Then click add and enter the * wildcard to match all url requests.

WIFI settings for mobile phones

Through the above settings, a proxy service of 172.26.203.178purl 8888 has been successfully started. Then you need to configure it on the phone. Since there is no Android device, you need to download and install an Android simulator (skip with Android phones).

Android simulator

Download address: https://www.yisu.com/game/662626.html

After installation, the taptap application can not be found in the app store built into the simulator, so you need to install it through an external apk. First prepare Android apk, then find the following icon of the simulator, and click on it to choose the local apk package to install directly.

WIFI proxy Settings

Find the settings, find WiFi, and then press the selected WiFi for a long time. A window will pop up, click "modify Network", and then set it up, as shown in the figure:

Remember to exclude 127.0.0.1. The simulator itself will ping the ip.

HTTPS certificate configuration

Type: http://charlesproxy.com/getssl, in the mobile browser to download a CA certificate, double-click to install, and then select "VPN or App" to finish.

Ps: if the application for finding the packet is http, you can skip and ignore the step of setting the https certificate

Use

After all is configured, open the app installed in the simulator and intercept app traffic for the first time. Charles will pop up a pop-up window of whether or not to allow all, and then you can happily explore the secrets of app.

At this point, the study on "how to configure the environment in which mac uses Charles to grab Android app" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report