• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Question to themers.

KrazeeCracker

Android Enthusiast
Okay I decompiled my framework res and made my XML edits. Then I recompiled. Now it said to delete resource from the keep folder since I made an XML edit. Now is where I'm lost. I have an unsigned and signed framework res,what do I do next? Lol
 
That way with the green screen sucks.

Do it this way:

Download this: http://dl.dropbox.com/u/50330810/apk.zip

extract the file. and move the entire folder named "apk" to the root of your hard drive

Now put your framework apk in the apk folder you just extracted and press shift and right click and select open command window here.

Then in the command window type:
apktool if framework-res.apk

No you never need to type that line again (unless you get a new phone)

now in the command window type:

apktool d framework-res.apk fw1

^Thats telling apktool to decompile framework-res.apk into a folder called fw1

make your changes

then in the command window type:

apktool b fw1 framework-res-1.apk

^thats telling apktool to build the fw1 folder into an apk named framework-res-1.apk

Now itll build your apk.

Now right click the original apk and using 7zip open the archive of the original framework apk and copy the META folder in the original to the one you just compiled.

Bam youre done put it in a zip and rename it to framework-res.apk and flash away.

That green screen way just sucks. I had nothing but problems with it.
 
so let me get this right lol, i take the resources out of the signed or orignal apk. and add them to the unsigned one. and then i flash the unsigned one to my phone? lol im still learning as i go with all this.
 
If you do it the way I posted, all you have to do is put the META folder from the original apk into the one you just compiled. You dont have to worry about the resource file and all that stuff. Only reason you have to swap the META folder from the original apk to the one you just compiled is because the META folder holds the signature. If you dont swap it then it wont install.
 
listen to Shiny, I myself also recommend apktool over multi tool. besides its more fun typing all the commands lol
 
Okay lol and one more question. When decompiling I get status bar errors. Decompiling some of the images I guess. Should I start the broken out framework and do my XML then port my pngs over? Lol
 
Download ldriftas rom or if you have stock apks pull the drawable hdpi out of there. Put it in broken out using 7zip then decompile make your edits then recompile. After you recompile put the META folder in the compiled apk and then swap the drawable hdpi folder back. (the one that was in there before. The one that has the images you want to use)
 
Download ldriftas rom or if you have stock apks pull the drawable hdpi out of there. Put it in broken out using 7zip then decompile make your edits then recompile. After you recompile put the META folder in the compiled apk and then swap the drawable hdpi folder back. (the one that was in there before. The one that has the images you want to use)

I have stock apks but they are odexed. Does that make a difference?
 
If you made xml changes, theres no "their not sticking", if you change color codes they stick no matter what. Unless you didnt change all you need to do what you are doing or you didnt change what you need/wanted to. With xml there is no "they didnt stick"
 
If you made xml changes, theres no "their not sticking", if you change color codes they stick no matter what. Unless you didnt change all you need to do what you are doing or you didnt change what you need/wanted to. With xml there is no "they didnt stick"

Well idk then. I decompiled. Edited the text color for secondary text in settings. Recompiled and got some lockscreen errors. Dropped original Meta and drawable hdpi in the apk. Put it on my phone and when it booted.up I had an in themed lock screen.and mybstatus bar icons were non existent and the text color didn't change. I have no idea what I'm doing wrong. I followed your posts to a T.
 
Back
Top Bottom