I have been trying to edit the framework-res.apk for Cyanogenmod 10 for days now and come across countless problems. All I am trying to do is edit the ui so I may have the on screen buttons but every time time I decompile the apk it just wont recompile. No matter what app I decompile I just cant get it to recompile no matter what, even with no changes. So if someone who actually knows what they're doing can please offer some assistance so I may learn or even edit it for me that would be greatly appreciated.
The location of the change needing to be made is res/values/bools.xml line 57 needs to be set true
https://dl.dropbox.com/u/89758977/framework-res.apk
Idk if this worked. I got an error when compiling but I think it still did it correctly. Rename to Framework-res.apk.
(I think you might need to use twframework-res.apk as a dependency.)
Couldn't get it to work. Thanks for the help though. I think it might just be jellybean apks that aren't able to edited yet.
x_SCOS_x_ELITE said:
Couldn't get it to work. Thanks for the help though. I think it might just be jellybean apks that aren't able to edited yet.
Click to expand...
Click to collapse
Prddog1 helped me out on this, I was using an outdated apktool. Pm him. He can send you the latest build.
Good bye HTC Rezound, hello Galaxy S3!
Related
i need help modding framework-res.apk from miui ics. i looked at a lot of the tuts and they didnt help me. can i have help or can someone do it for me?
heres the stock apk from my phone and the xml files
YoshiFan501 said:
i need help modding framework-res.apk from miui ics. i looked at a lot of the tuts and they didnt help me. can i have help or can someone do it for me?
heres the stock apk from my phone and the xml files
Click to expand...
Click to collapse
It would help us help you if you told us what you are trying to do....
Sent from my Glitched AOKP Unicorn.
just recompile it with those xmls from apktool without it bootlooping. or getting the on screen buttons is another way of saying it
i have tried to decompile systemui.apk using apk manager but i always get an error. i can decompile framework-res.apk but systemui alwasy gives me an error. so is there anyone that can decompile it for me and just send me the decompiled folder and then i can just edit it and recompile it my self? i am looking for the stock systemui.apk i think i have the odex one. thanks
fcortes626 said:
i have tried to decompile systemui.apk using apk manager but i always get an error. i can decompile framework-res.apk but systemui alwasy gives me an error. so is there anyone that can decompile it for me and just send me the decompiled folder and then i can just edit it and recompile it my self? i am looking for the stock systemui.apk i think i have the odex one. thanks
Click to expand...
Click to collapse
No-one has been able to do this yet. We have been trying for a long time. There is just something about the ASUS systemui that doesn't play nice.
You could try this thread that I read earlier, you may have some luck with it, I haven't tried:
http://www.xda-developers.com/android/modified-apktool-for-troublesome-system-apks-on-ics/
Doktaphex said:
No-one has been able to do this yet. We have been trying for a long time. There is just something about the ASUS systemui that doesn't play nice.
You could try this thread that I read earlier, you may have some luck with it, I haven't tried:
http://www.xda-developers.com/android/modified-apktool-for-troublesome-system-apks-on-ics/
Click to expand...
Click to collapse
i use apk manager apk tools never works for me. it gives me an error when i type "apktool if framework-res"
how did some people change stuff for their roms if no one can decompile it?
fcortes626 said:
i use apk manager apk tools never works for me. it gives me an error when i type "apktool if framework-res"
how did some people change stuff for their roms if no one can decompile it?
Click to expand...
Click to collapse
The main themes are for non-asus ROMS, ie based on aosp. I believe reNeglect managed to figure something out with regards to ROMs based on asus firmware ie virtuous, but you would need to speak to him about that.
I don't know how forthcoming reNeglect will be, as people have not been giving him much love, and considering the amount of time and effort that he has spent working on his theme, I don't blame him for being pissed off.
Doktaphex said:
The main themes are for non-asus ROMS, ie based on aosp. I believe reNeglect managed to figure something out with regards to ROMs based on asus firmware ie virtuous, but you would need to speak to him about that.
I don't know how forthcoming reNeglect will be, as people have not been giving him much love, and considering the amount of time and effort that he has spent working on his theme, I don't blame him for being pissed off.
Click to expand...
Click to collapse
no there was an edited systemui.apk for the stock rooted prime with locked bootloader. but the only thing changed was the settings menu and clock was change from blue to black. i dont have cwm.
Hey, i am a bit noob here decompiling, and compiling system apks, so now im trying to decompile framework-res.apk from my CM7 rom, and i get a 9.png errors when decompiling and another strange one when compiling.
The whole CMD window is attached.
I hope get some help with this, i also got it with CM9 framework.
bump
Sent from my SG Ace
That means the .9 pangs were made wrong. This happens when some tries to take the easy way to theme things. You will not be able to compile it until you fix them
zelendel said:
That means the .9 pangs were made wrong. This happens when some tries to take the easy way to theme things. You will not be able to compile it until you fix them
Click to expand...
Click to collapse
Its because of the theme?
How can i fix it?
Sent from my SG Ace
Adgoosuc said:
Its because of the theme?
How can i fix it?
Sent from my SG Ace
Click to expand...
Click to collapse
Yes its because of the theme. If yo look at each file it says is broken you will have to remake all those .9.pngs properly. A search will teach you how to do it. You will need the android SDK installed for sure for the .9.png tool.
Adgoosuc said:
Its because of the theme?
How can i fix it?
Sent from my SG Ace
Click to expand...
Click to collapse
You either have to edit the .9.png files with the draw9patch.bat file located in \android-sdk\tools.. and copy basically the pixel borders - put up two windows side by side - one stock and the one you are editing. And make sure you only have one new copy of that file in your drawable folder when done.. no normal .png's of the same name.
Or you could just "borrow" those .9.png files from another rom and use GIMP to basically edit the color only and save... just don't decompile them - use 7zip instead.
alteredlikeness said:
You either have to edit the .9.png files with the draw9patch.bat file located in \android-sdk\tools.. and copy basically the pixel borders - put up two windows side by side - one stock and the one you are editing. And make sure you only have one new copy of that file in your drawable folder when done.. no normal .png's of the same name.
Or you could just "borrow" those .9.png files from another rom and use GIMP to basically edit the color only and save... just don't decompile them - use 7zip instead.
Click to expand...
Click to collapse
Editing a .9 png like that is not the prper way to do it. He will just have issues if he tries to decompile it again. This is why alot o themes break when people try to decompile them to learn.
Take some time out OP and learn how to do it properly. The easy way is never right.
zelendel said:
Editing a .9 png like that is not the prper way to do it. He will just have issues if he tries to decompile it again. This is why alot o themes break when people try to decompile them to learn.
Take some time out OP and learn how to do it properly. The easy way is never right.
Click to expand...
Click to collapse
Which way is not proper? The 2nd suggestion was not intended to be a proper way, but it can work.. and the first way I suggested is what I would consider a good way to learn how to draw the patches - by comparison with known working ones..
EDIT - please elaborate on the not being able to decompile it again later though - I was aware of this issue and had come across it - but never new the cause.
EDIT 2 - I just noticed your stats - please share your seasoned wisdom... I have got a lot to learn yet...
Ok, i have a better way to do what i want, i jzut want to edif bools.xml inside values folder, so ill apply default theme, decompile and edit, and then i replace it.
Thanks to all who helped me!
Sent from my SG Ace
Adgoosuc said:
Ok, i have a better way to do what i want, i jzut want to edif bools.xml inside values folder, so ill apply default theme, decompile and edit, and then i replace it.
Thanks to all who helped me!
Sent from my SG Ace
Click to expand...
Click to collapse
The bools XML will be over writted when you flash the theme.
alteredlikeness said:
Which way is not proper? The 2nd suggestion was not intended to be a proper way, but it can work.. and the first way I suggested is what I would consider a good way to learn how to draw the patches - by comparison with known working ones..
EDIT - please elaborate on the not being able to decompile it again later though - I was aware of this issue and had come across it - but never new the cause.
EDIT 2 - I just noticed your stats - please share your seasoned wisdom... I have got a lot to learn yet...
Click to expand...
Click to collapse
Ok the 1 px boarder around the image has to be the last thing applied to an image. You can edit it with gimp and 7zip but that breaks the border settings. This is the reason most .9.pngs break when decompiled.
I have been struggling with this procedure for the past couple of weeks and I am at my wit's end. I have tried both APKTOOL and APK Manager to decompile my SystemUI.apk and no matter how many ways I try to decompile it, there absolutely is no smali directory.
If I post my SystemUI.apk, would an experienced themer, developer, or modder be kind enough to edit the smali coding to make the clock a different color? I am happy with the icons and everything else; I just want the color change.
The color I was looking for is #33b5e5 (the ICS blue). I would appreciate any help someone would be willing to give. Thanks.
Higgs_Boson said:
I have been struggling with this procedure for the past couple of weeks and I am at my wit's end. I have tried both APKTOOL and APK Manager to decompile my SystemUI.apk and no matter how many ways I try to decompile it, there absolutely is no smali directory.
If I post my SystemUI.apk, would an experienced themer, developer, or modder be kind enough to edit the smali coding to make the clock a different color? I am happy with the icons and everything else; I just want the color change.
The color I was looking for is #33b5e5 (the ICS blue). I would appreciate any help someone would be willing to give. Thanks.
Click to expand...
Click to collapse
I will gladly do it for you right now.
Give me about 10 mins time.
EDIT: took a look at the apk, the reason why there is no smali folder is because you are using an odexed rom I believe. You have to be deodexed to be able to modify the smali inside system apks.
Sent using Tapatalk
klin1344 said:
I will gladly do it for you right now.
Give me about 10 mins time.
EDIT: took a look at the apk, the reason why there is no smali folder is because you are using an odexed rom I believe. You have to be deodexed to be able to modify the smali inside system apks.
Sent using Tapatalk
Click to expand...
Click to collapse
Thank you very much for your help.
Is there nothing that can be done?
Higgs_Boson said:
Thank you very much for your help.
Is there nothing that can be done?
Click to expand...
Click to collapse
You could deodex the apk, make your smali edits, re-odex it again, and then push both files into the correct directories, but it is a very annoying and tedious process.
You should flash a custom rom (all of them are deodexed) and make your smali edits from there.
Sent using Tapatalk
Hello
I've looking for a way to edit my SwiftKey 3 a few weeks now without any success. Maybe you can help me.
I don't want to post a specific error code here, since I've tried at least 20 methods and 5 different tools and none worked for me I'd be very grateful if someone could manage to re-compile a modified SwiftKey and tell me how to do it
I want to edit the smileys because I don't like the usual ones that come with the app itself. But even if I just try to decompile and compile without doing any changes it doesn't work
I tried APK manager and APK multi-tool and much more :$
Thanks in advance for any hints!
- experience7
PS: If you need any further information which I forgot to mention, just ask me
Anyone? :$ Really would like to have some custom smileys...
Thanks in advance!
- experience7
experience7 said:
I'd be very grateful if someone could manage to re-compile a modified SwiftKey and tell me how to do it )
Click to expand...
Click to collapse
I managed to de-compile and re-compile SwiftKey OK, see http://forum.xda-developers.com/showpost.php?p=36036723&postcount=9
Sorry, can't help you with the smileys though.