|
发表于 2021-10-8 19:55:30
5138 浏览 0 回复
mt6762-android9 预置app可卸载可升级
本帖最后由 luzg 于 2021-11-26 20:31 编辑
1.Android.mk加入
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/vendor/priv-app
2.修改frameworks\base\services\core\java\com\android\server\pm\PackageManagerService.java
- --- a/frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java
- +++ b/frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java
- @@ -2725,7 +2725,6 @@ public class PackageManagerService extends IPackageManager.Stub
- mDefParseFlags
- | PackageParser.PARSE_IS_SYSTEM_DIR,
- scanFlags
- - | SCAN_AS_SYSTEM
- | SCAN_AS_VENDOR
- | SCAN_AS_PRIVILEGED,
- 0);
复制代码 3.vendor\mediatek\proprietary\frameworks\base\data\etc\pms_sysapp_removable_vendor_list.txt添加app的包名
注意:这种修改只适合部分app,高德地图,QQ音乐,百度地图等并不适合这样修改
|
|
|
|
|
|
|
登录或注册
|