Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,324 Members 42,204 Now Online
XDA Developers Android and Mobile Development Forum

modifying system APK's for the atrix?

Tip us?
 
gitman0
Old
#1  
Member - OP
Thanks Meter 5
Posts: 43
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 220
Posts: 478
Join Date: Aug 2010

 
DONATE TO ME
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  
Member - OP
Thanks Meter 5
Posts: 43
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 220
Posts: 478
Join Date: Aug 2010

 
DONATE TO ME
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes