Rename Base.apk

ぃ、小莉子 提交于 2019-12-24 07:17:09

问题


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

来源:https://stackoverflow.com/questions/55649767/rename-base-apk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!