业务需要对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