Key or signing ROMs

250 views
Skip to first unread message

Vighnesh Birodkar

unread,
Apr 13, 2015, 8:00:39 AM4/13/15
to andro...@googlegroups.com
Hello

I downloaded an ISO from the downloads page (http://www.android-x86.org/download).

I wanted to install an APK whith `android:sharedUserId="android.ui.system"` set in its manifest. For that I would need to sign it with the same key as the ROM.
Is the key used to sign the ROMs listed in your downloads page made publicly available ?

Thanks
Vighnesh

Edgardo Gho

unread,
Apr 13, 2015, 11:20:07 AM4/13/15
to andro...@googlegroups.com
You need to convert the platform key in order to sign your apk and get access to andoid:sharedUserId="android.ui.system".

The key alias is: platform
the key password is: android
the store password is: android

I followed some web instructions to transform the default test keys into a keystore that you can use with android studio. I don't exactly recall the website, but I'm attaching the result of the transformation.
I'm running my apps as system with no problem. Notice that this is not the same as running as root. You don't have root access and there is no sharedUserId root. In order to get root access (without using su) I created a native daemon. If you need to go this way, check installd code (quick and dirty C daemon).
test.keystore

Vighnesh Birodkar

unread,
Apr 14, 2015, 5:22:50 PM4/14/15
to andro...@googlegroups.com
Hello Edgardo

Thanks for responding. I am actually using signapk.jar to sign the apk. Where can I find the key in the source tree ? Is the one you attached same as using testkey.(pk8/x509.pem) from the source ?

Thanks
Vighnesh

Edgardo Gho

unread,
Apr 15, 2015, 1:02:27 PM4/15/15
to andro...@googlegroups.com
The keystore I posted is used by Android Studio (gradle) if you are creating the apk with that. I have not used signapk.jar , I guess gradle takes care of that for me.
The test keys are on build/target/product/security.
I don't remember exactly which one I changed from there, but I think its the platform.pk8 or testkey.pk8.
I think I needed to transform it into a pkcs12 file and then it worked.

If you use Android Studio you can use the keystore I posted, set the values for alias,password and it generates a signed apk that will let you run as system.
Reply all
Reply to author
Forward
0 new messages