obtain platform signature without building from source

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)

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by alittel
4 hours ago
Last post by jarrett.lemke
1 hour ago
Last post by jennyfer.hartmann
1 hour ago
Last post by crona.ivory
4 hours ago
Last post by emilie.ziemann
2 hours ago
Last post by cade.mohr
4 hours ago
Last post by jenkins.chandler
43 minutes ago
Last post by veronica27
2 hours ago
Last post by pacocha.consuelo
2 hours ago
Last post by chet89
3 hours ago
Last post by harmony16
2 hours ago
Last post by ryan.monte
10 minutes ago
Last post by ervin.bednar
3 hours ago