PackageManager获取APK中的PackageInfo信息

PackageManager pm = cxt.getPackageManager();
PackageInfo pkgInfo = pm.getPackageArchiveInfo(apkPath, 
PackageManager.GET_ACTIVITIES | PackageManager.GET_SERVICES 
| PackageManager.GET_META_DATA| PackageManager.GET_CONFIGURATIONS);



你可能感兴趣的:(PackageManager获取APK中的PackageInfo信息)