Properly flashing framework-res - G2 Q&A, Help & Troubleshooting

There have been a long list of tutorials on how to properly de-compile recompile and flash framework-res, i have tried many methods but was unsuccessful in flashing the edited framework,and if i try to flash the original framework-res then also it boot-loops,so is there a proper solution on how to properly Edit and recompile and flash, i use TMA and sign with original signature,but then also it boot loops.

Related

[Q] framework-res issues

I am having issues with framework-res.apk.
I make some minor changes and add and replace these files into framework-res.apk using WinRar.
Then copy this into the update.zip file and
install from sdcard using clockworkmod.
But then my nookGL won't reboot, and I end up having to factory reset.
After the factory reset the changes I put in the framework-res are now showing up and working fine.
I then need to go through the process to root the nook etc.
This is a very long winded way for some minor changes.
Is there something I am doing wrong?
I am now very hesistant to try any more changes, even though I would love to, as I really don't want to have to go through the whole process again.
Any suggestions?
Framework.res has to be signed with the system signature.
You can copy over the original META-INF directory (most of the time) when you repack it.
Your problem could be one of three things:
1) You repacked it without the original signature.
2) You repacked it with a new (personal or debug) signature.
3) You repacked it with the original signature but you modified something important (like AndroidManifest.xml).
If you want to get heavily into mods you should resign your whole system with either the debug or your personal signature.
Yes! Thank You, Renata! That was it - problem solved!

[Q] Problem with recompiling an apk

May be this not a right place to ask, but I have this problem with recompiling an apk with apkmanager.
I'm trying to mod settings.apk and had done few modding in strings.xml. Since I have edited an xml I delete the resources.arsc file from the keep folder and also sign it after recombiling. But when I install the apk in my phone it never opens and force closes.
I've tried again by not deleting that file but that time no modifications where shown, And the next time, I didn't sign it and tried again to install the unsigned apk. But that too fails.
Anyone know why this happn?
Before modifying the APKManager, make sure the framework-res.apk and twframework.apk been set, and don't forget to delete the file resource.arsc and the file you have modified, then enter at apkmanager windows, don't forget to rename Unsigned to system file that you modified

Help with Transparent Status Bar

Hi I'm having some trouble creating a modified SystemUI.apk for my Nexus 10 running CM10.1. I followed some guides on how to change the transparency of the status bar but when I tried to install the new apk, it says installation failed/aborted in CWM. Could someone check my modification and see if I'm doing it right?
What I changed: SystemUI/res/layout/super_status_bar.xml and changed android:background="#00000000"
SystemUI/res/values/drawables.xml and changed <item type="drawable" name="status_bar_background">#00000000</item>
After I recompiled, I unzipped the CM10.1 rom, replaced the systemui.apk with the new one, and then rezipped. When I tried to flash the new rom in CMW, it says failed/aborted.
Any help would be much appreciated. Thanks!
your changes are correct, so the problem is in the zip file. flash the rom without modifying the zip and then (maybe after the first boot) flash a zip with only the systemui.apk inside. use a zip downloaded into a nexus10 modding thread.
anyway i'm trying to get a transparent status bar too on my galaxy nexus and i can tell you that you also have to modify a smali file into SystemUI.apk.
In your case the file is
Code:
SystemUI/smali/com/android/systemui/statusbar/tablet/TabletStatusBar.smali
In my case it is
Code:
SystemUI/smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali
but i don't know what to modify inside it (i found your thread while i was searching for a solution)
I'm currently running an unmodified CM10.1. I tried flashing just the SystemUI.apk as a zip but it fails/aborts also. Not sure whats causing the error.
Try to flash an unmodifyied SystemUI.apk. if it fails, the problem is the zip. Anyway without editing the smali file the status bar is still going to be black
Yeah I just extracted the stock systemui.apk, zipped it, tried flashing and it says failed/aborted. However, I was able to install the stock apk unzipped through the built in CM10 installer. Something is definitely wrong with my zipping...I tried installing the modified apk through the same manner and it failed however.
try with this. it is the zip that i usually use.
we are going OT
Now we're getting somewhere! The zip was able to flash! However, something is wrong with my systemui.apk as you predicted before. The status bar is indeed now transparent, however upon bootup, it says system UI has stopped. Pressing OK simply makes it pop up again. Reflashed the stock apk and now it's fine.Now just need to figure out how to correctly modify the apk. Thanks a bunch!
at the moment there are no guides for jelly bean so i suggest you to try another rom which allows status bar transparency (like aokp)
watch here and here man

Cant Recompile Framework-Res.APK

So ive been trying to modify the framework-res.apk and i can decompile it but just cant recompile it, Even if i just decompile with no edits then re-compile it errors out with APKTool or XdaAutotool or apk multi tool. Anyone have an luck????
supercobaltss said:
So ive been trying to modify the framework-res.apk and i can decompile it but just cant recompile it, Even if i just decompile with no edits then re-compile it errors out with APKTool or XdaAutotool or apk multi tool. Anyone have an luck????
Click to expand...
Click to collapse
Are you using the S5 framework and twframework-res? Or perhaps you have an out of date decompiler. Did you copy META-INF and AndroidManifest.xml from your the old apk to the recompiled apk? It's hard to guess at the problem since you didn't give us crucial details on what tool versions and steps you used or exact error messages you saw. There are a number of threads on the subject, so do a search to see what is working for others.

Problem with LGSystemUI.apk.

I try to modify LgSystemUI.apk . i compile and copy meta inf and android manifest but after flashing on phone i get systemui has stopped working.
what am i doing wrong? Rom is stock lollipop.

Categories

Resources