I'm trying to create a custom ROM starting with plain AOSP. When I pulled SystemUI.apk from a physical device and replace the AOSP version I get the following error:
E/AndroidRuntime(267): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.SecurityException: StatusBarManagerService: Neither user 10045 nor current process has android.permission.STATUS_BAR_SERVICE.
I understand this happens because SystemUI.apk must be signed with the platform signature. Obviously if I compile the ROM from source then I will know the correct platform signature, but I'm wondering: is there another way to get it from an existing ROM?
(yes, I realize it's negligible to build from source since I'm using AOSP... this is more of an academic curiosity that I thought of when I encountered the issue)