记录framework相关修改文章来源:https://www.toymoban.com/news/detail-731128.html
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.");
- }
+ }*/
4.默认授予悬浮窗权限
源码位置 base/core/java/android/app/AppOpsManager.java文章来源地址https://www.toymoban.com/news/detail-731128.html
AppOpsManager.MODE_ALLOWED, // SYSTEM_ALERT_WINDOW //default:getSystemAlertWindowDefault()
到了这里,关于Framework相关修改记录(基于android9)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!