Android 6.0 SystemUI 报错问题

在尝试将修改后的SystemUI.apk推送到Android 6.0系统后,设备启动时出现'系统界面已停止运行'的错误。通过分析logcat日志,问题被识别为权限问题。解决方案是在论坛中找到,通过ADB或串口执行命令,授权特定权限给SystemUI,从而修复该问题。
摘要由CSDN通过智能技术生成

业务需要对SystemUI进行更改,全编译整个系统都能正常跑起来。

单独将SystemUI.apk push进去,系统起来后报错   很抱歉,“系统界面”已停止运行  。

logcat一下:

01-01 01:35:36.530 617-617/com.android.systemui D/AndroidRuntime: Shutting down VM
01-01 01:35:36.531 617-617/com.android.systemui E/AndroidRuntime: FATAL EXCEPTION: main
                                                                  Process: com.android.systemui, PID: 617
                                                                  android.view.InflateException: Binary XML file line #87: uid=10014 needs permission android.permission.READ_CONTACTS to read lock_screen_owner_info_enabled for user 0
                                                                      at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
                                                                      at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
                                                                      at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
                                                                      at android.view.View.inflate(View.java:19807)
                                                                      at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:799)
                                                                      at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:2977)
                                                                      at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:2973)
                                                                      at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:601)
                                                                      at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:636)
                                                                      at com.android.systemui.status
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值