常见的PKMS问题分析
2016-06-02 16:41
363 查看
1.Steps to reproduce the problem:
Device updates from an earlier version to any version of Android 6.0.
Symptom of the problem:
Preloaded apps (e.g. Google Play services or Google Play Store) crash repeatedly, leaving the device in an
unusable state.
Preconditions of when the problem would be reproduced:
If an app is removed from the system image or its package name is renamed during the OTA update
process.
Device updates from an earlier version to any version of Android 6.0.
Symptom of the problem:
Preloaded apps (e.g. Google Play services or Google Play Store) crash repeatedly, leaving the device in an
unusable state.
Preconditions of when the problem would be reproduced:
If an app is removed from the system image or its package name is renamed during the OTA update
process.
frameworks/base / services/core/java/com/android/server/pm/DefaultPermissionGrantPolicy.java private boolean isSysComponentOrPersistentPlatformSignedPrivAppLPr(PackageParser.Package pkg) { if (UserHandle.getAppId(pkg.applicationInfo.uid) < FIRST_APPLICATION_UID) { return true; } if (!pkg.isPrivilegedApp()) { return false; } PackageSetting sysPkg = mService.mSettings.getDisabledSystemPkgLPr(pkg.packageName); - if (sysPkg != null ) { + if (sysPkg != null && sysPkg.pkg != null) { if ((sysPkg.pkg.applicationInfo.flags & ApplicationInfo.FLAG_PERSISTENT) == 0) { return false; } } else if ((pkg.applicationInfo.flags & ApplicationInfo.FLAG_PERSISTENT) == 0) { return false; } return PackageManagerService.compareSignatures(mService.mPlatformPackage.mSignatures, pkg.mSignatures) == PackageManager.SIGNATURE_MATCH; }
相关文章推荐
- 通过蓝牙sniffer抓BLE数据
- 乐学成语实现之二显示主界面
- Phinecos(洞庭散人) 专注于开源技术的研究与应用 TinyXML:一个优秀的C++ XML解析器
- php 打印小票模板
- 解析漏洞总结
- 新博客 lizhaowei.me
- postgresql之distinct用法
- 基本布局(固定布局)
- Active Record 基础
- HTML Button.onclick 事件汇总
- iOS开发------XML原生解析(NSXMLParser篇)
- SQLAlchemy 几种查询方式总结
- Android onTouch事件分析和传递机制
- leetcode--Longest Palindromic Substring--最长回文子串--
- 关于javascript中Object.prototype.toString 可以被改变指向的问题
- [PHP源码阅读]strtolower和strtoupper函数
- mysql 本机root密码忘记
- iOS开发UI篇—控制器的创建
- HDU 3516 Tree Construction (四边形不等式)
- SimpleUrlHandlerMapping的配置