I need to know about base.apk. When i run the following code:

PackageInfo paramPackageInfo = null;

try {

paramPackageInfo = MainActivity.this.getPackageManager().getPackageInfo(MainActivity.this.getPackageName(), 0);

} catch (PackageManager.NameNotFoundException e) {

e.printStackTrace();

}

ApplicationInfo localApplicationInfo = paramPackageInfo.applicationInfo;

String str2 = localApplicationInfo.sourceDir;

The value in Marshamallow of str2 is:

/data/app/com.package.name-RY_AUYdNAwLZg==/base.apk

and In kitkat it is:

/data/app/com.package.name.apk

Now i want to know how can i rename this base.apk to my application name or are there any changes in manifest or gradle for that? The installed apk which is displayed on home screen of both the devices have correct names then why in Marshmallow in only directory it is named as base.apk

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐