First, the source of the situation
Open the Androidmanifest.xml file directly and find the activity that contains the Android.intent.action.MAIN and Android.intent.category.LAUNCHER.
If the third line of the package is Com.cola.ui, the seventh row of the main activity is Com.cola.ui.ColaBox (. Colabox is the activity shorthand method).
<?xml version= "1.0" encoding= "Utf-8"?> <manifest xmlns:android= "Http://schemas.android.com/apk/res/andro ID "package=" com.cola.ui "android:versioncode=" 1 "android:versionname=" 1.0.0 "> <application android:icon= "@drawable/icon" android:label= "@string/app_name" > <activity Android:nam E= ". Colabox "android:label=" @string/app_name "> <intent-filter> <action android:name= "Android.intent.action.MAIN"/> <category android:name= "Android. Intent.category.LAUNCHER "/> </intent-filter> </activity> <activi Ty android:name= "Frm_addbills" ></activity> <activity android:name= "Frm_editacctitem" ></activity > <activity android:name= "grid_bills" ></activity> <service android:name= "LocalService" Android:exported= "TRue "android:enabled=" true "/> </application> <uses-permission android:name=" Android.permi Ssion. Read_contacts "/> </manifest>
Two, only the situation of the APK
(1) AAPT
Using the command line AAPT dump Xmltree colabox.apk androidmanifest.xml
(2) using Apktool
Use the Anti-compilation tool Apktool, and then open the Androidmanifest.xml file after the anti-compilation, find the same way as "source code situation"
(3) AAPT
Three, no apk, the app has been installed in the phone or virtual machine
1.logcat
. Clear Logcat content, use command adb logcat-c
. Start Logcat, use the command adb logcat activitymanager:i *:s
. Start the program you want to view,
2.dumpsys
(1) Start the program you want to view;
(2) command line input: adb shell dumpsys window w |findstr \ |findstr name=
"Appium" to see the Android app package name, activity of several methods