Get the app's packages and activity

Source: Internet
Author: User

First, get the package name

When you open the UI Automator Viewer window and get the device screenshot content, a package name will appear in each element detail. Such as:

Ii. access to activity

This is mainly obtained using the Anti-compilation tool.

1. Installing the Anti-compilation tool

Install anti-editing tool: Dex2jar,jd-gui; unzip;

2, will need to decompile the app installation package suffix name changed to. rar, decompression;

3, in the folder exists Classes.dex file, copy this file to the Dex2jar folder;

4, in the command line to locate the Dex2jar directory, enter Dex2jar.bat Classes.dex; After successful operation, the file will be generated in the folder: Classes-dex2jar.jar

5. Open the Jd-gui folder, run the Jd-gui.exe file, and open the Classes-dex2jar.jar file;

6, under the COM package to find the app corresponding package name, in which you can view the activity name of each interface;

  

    

Get the app's packages and activity

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.