android base.apk,android - Rename Base.apk - Stack Overflow

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值