So I was playing around with framework-res.apk and none of my mods worked, always resulted in a "bootloop"... actually not really a complete bootloop, since the phone booted, but just got stuck on the boot animation (colored JB X). Luckily, letting that ride out for a few minutes was enough to let adb start working, so I was able to mount rw, move/rename the files, and reboot to restore the backup apk.
I'm currently on 4.1.1 stock rooted, only system mod is the 4.2 camera & associated libs.
I tried two mods:
1. compiling AOSP 4.1.1_r6.1 framework-res.apk and putting that on my phone.
2. Just taking my oem framework-res.apk, decompiling and recompiling with apktool, with only two mods, changed config_animateScreenLights to true in bools.xml, and changed "Verizon Wireless" text in eri.xml.
Both times, I signed the apk's with AOSP testkeys, and zipaligned them (verifying both). Maybe this is the problem since framework-res.apk is signed with a different key than the rest of my rom?
I had to push the files with adb to my sdcard and then move them from my sdcard to the system/framework folder. Then I did chown 0.0 <filename> to change it from sdcard_rw to root. And then changed permissions from rw-rw-r to rw-r-r-. Could this be a source of error?
Any ideas on why neither mod would work? What did I do wrong? Is there a better way to edit framework-res.apk?
Edit: it also broke google play somehow... installing apps from google play no longer worked, I could download them, but then FC when try to install... tried wiping data for google play, and wiping dalvik in recovery, no dice. restore nandroid complete!
Edit 2: ok, I think my error was re-signing the apk... I guess you aren't supposed to do that with system apks... well, I did the mods again and this time just kept the same META_INF folder with the original signatures, and it still did the same "soft bootloop" on the boot animation. And it wiped my google account... restored the nandroid again just to be safe... (edit --- I think I errored by not sipaligning it that time...)
Edit 3: ok, redid the mods, kept old signatures, zipaligned it, did all the moving and permission changing in adb shell, and it still didn't work... pulling my hair out here!
I'm currently on 4.1.1 stock rooted, only system mod is the 4.2 camera & associated libs.
I tried two mods:
1. compiling AOSP 4.1.1_r6.1 framework-res.apk and putting that on my phone.
2. Just taking my oem framework-res.apk, decompiling and recompiling with apktool, with only two mods, changed config_animateScreenLights to true in bools.xml, and changed "Verizon Wireless" text in eri.xml.
Both times, I signed the apk's with AOSP testkeys, and zipaligned them (verifying both). Maybe this is the problem since framework-res.apk is signed with a different key than the rest of my rom?
I had to push the files with adb to my sdcard and then move them from my sdcard to the system/framework folder. Then I did chown 0.0 <filename> to change it from sdcard_rw to root. And then changed permissions from rw-rw-r to rw-r-r-. Could this be a source of error?
Any ideas on why neither mod would work? What did I do wrong? Is there a better way to edit framework-res.apk?
Edit: it also broke google play somehow... installing apps from google play no longer worked, I could download them, but then FC when try to install... tried wiping data for google play, and wiping dalvik in recovery, no dice. restore nandroid complete!

Edit 2: ok, I think my error was re-signing the apk... I guess you aren't supposed to do that with system apks... well, I did the mods again and this time just kept the same META_INF folder with the original signatures, and it still did the same "soft bootloop" on the boot animation. And it wiped my google account... restored the nandroid again just to be safe... (edit --- I think I errored by not sipaligning it that time...)
Edit 3: ok, redid the mods, kept old signatures, zipaligned it, did all the moving and permission changing in adb shell, and it still didn't work... pulling my hair out here!

.