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

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐