Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
gitman0
Old
#1  
Junior Member - OP
Thanks Meter 5
Posts: 28
Join Date: Mar 2011
Default modifying system APK's for the atrix?

hey all, i'm starting to get into modding my atrix and i have some questions about modifying the system APK's. i've already deodexed /system/app and /system/framework with xUltimate. i'm using APK Manager in linux to decompile the APK's that i want to mod.

the problem comes when i compile the new APK and upload it to /system/app. the stock APK's are signed seemingly with a specific signature that the phone is looking for. APK Manager says to not sign the APK's that you intend to install to /system, but if you do choose to sign it, the certs that are used are not what the atrix is expecting. when i look for errors in logcat, its indicating that the package changed and that its trying to look for the matching cert within /data/secure.

how does one modify these system APK's, and keep the original signature intact? it looks like the manifest contains a sha1-digest signature of each file, which makes just copying/pasting the META-INF into the new APK not an option.

thanks in advance!
Atrix 4G - rooted, locked
Asus Nexus 7 - rooted, locked
 
Bert.C
Old
#2  
Bert.C's Avatar
Senior Member
Thanks Meter 83
Posts: 250
Join Date: Aug 2010
What I do is decompile to change xml's etc and then recompile without signing and then just drag the edited files from the new APK to the old one.

Sent from my MB860 using XDA
 
gitman0
Old
#3  
Junior Member - OP
Thanks Meter 5
Posts: 28
Join Date: Mar 2011
so does that mean it doesn't really matter that the sha1 signatures of the changed files dont get updated in the manifest?

is there not an agreed-upon method to do this that doesn't seem so "hacky" ?

Sent from my MB860 using XDA
Atrix 4G - rooted, locked
Asus Nexus 7 - rooted, locked
 
Bert.C
Old
#4  
Bert.C's Avatar
Senior Member
Thanks Meter 83
Posts: 250
Join Date: Aug 2010
I'm not sure mate. That's the way I found out how to do it and I've done translations and a few themes and framework-res systemui and settings have worked fine doing it the way I do it.

Sent from my MB860 using XDA
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...