Friday, July 9, 2010

Replace system apk/app on android

I show how to replace a system apk, that is a apk which uses the shared user android.uid.system.

You will have to look at

adb shell dumpsys package

and find all apk that use this shared user, because they all have to be signed by the same key to be in the shared user.

Then you will have to resign them all with the same key and copy them to the phone.
When you have foobar.apk and foobar.odex on the phone, you will only have to resign the apk and the odex can stay unchanged there. It seems that they are not protected by signature.
(More to come)

1 comment:

  1. Hi, your blog is great! I'm learning a lot about android internals reading it! Thanks for sharing your findings with everybody.

    Do u have twitter? I'd like to follow u

    Alex, owner of a Motorola Dext (Android 1.5 Motoblur), running my own rom, adlxmod.

    ReplyDelete