Android Gets the APK package name in several ways:
1, adb shell pm List package-f | findstr keyword #只能获取到包名, the main activity name cannot be obtained
2. Using AAPT--AAPT is a tool that comes with the SDK,Sdk\builds-tools\Directory under
The following two lines in the result of the run are the app package name and the entry activity name
Package:name= ' Com.estrongs.android.pop '
Launchable-activity:name= ' com.estrongs.android.pop.view.FileExplorerActivity '
3, according to Androidmanifest.xml View:
A. Using Apkide or Apktool to decompile the APK package
B. Open Androidmanifest.xml
Package attribute value is the app's bundle name: <package= "Com.estrongs.android.pop" >
Find the activity that corresponds to Android.intent.action.MAIN or Android.intent.category.LAUNCHER, the activity that corresponds to Android: The Name property is both the entry activity names, as follows:
<activity android:theme= "@*android tyle/theme.notitlebar" android:label= "@string/app_name" Android:name= "com.estrongs.android.pop.view.FileExplorerActivity">
<intent-filter>
<action android:name= "Android.intent.action.MAIN"/>
<category Android:name= "Android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
Several ways to get the APK package name from Android