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