android10 解决无法覆盖安装persistent app
framework/base/services/core/java/com/android/server/pm/PackageManagerService.java
//注释掉以下的校验,或者添加白名单去管理
// Prevent persistent apps from being updated
/if ((oldPackage.applicationInfo.flags & ApplicationInfo.FLAG_PERSISTENT) != 0) {
res.setError(PackageManager.INSTALL_FAILED_INVALID_APK,
"Package " + oldPackage.packageName + " is a persistent app. "
+ "Persistent apps are not updateable.");
return;
}/