Framework相关修改记录(基于android9)

记录framework相关修改

1.app弹窗修改权限

  • 源码位置
frameworks/base/services/core/java/com/android/server/pm/permission/PermissionManagerService.java
  • 修改
changedInstallPermission = true;

2.移除systemui后系统卡在开机动画页面

  • 源码位置
frameworks/base/services/core/java/com/android/server/wm/WindowManagerService.java
  • 修改
//0 seconds for displaying Launcher when SystemUI app doesn't exist, modified by chenweihao
+            mH.sendEmptyMessageDelayed(H.BOOT_TIMEOUT, 0);

3.允许/data/app 预装APK

  • 源码位置
frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java
  • 修改
//注释
/*else { 
                         throw new PackageManagerException(INSTALL_FAILED_INVALID_INSTALL_LOCATION,
                                 "Application package " + pkg.packageName
                                 + " not found; ignoring.");
-                    }
+                    }*/

你可能感兴趣的:(framework)