android 代码实现通过apk安装包获得apk包名

public static String getApkPackageName(Context context, String apkPath) {
   
        PackageManager pm = context.getPackageManager();
        PackageInfo info = pm.getPackageArchiveInfo(apkPath, PackageManager.GET_ACTIVITIES

你可能感兴趣的:(安卓,android)