Bootloop with editing framework res need help - Galaxy S II Q&A, Help & Troubleshooting

Hi i am trying to edit the framework res apk so i can change the text colour and the themed clock colour. I can decompile with apktool and change the colors.xml but after compiling framework res i just get stuck in a bootloop. I have tried just copying the reaources file to my original framework but still bootloops.
I have searched google and here and finding it hard to find a solution. One thing i noticed in 7zip it says that for resources the OS is FAT but on the edited one it is UNIX as well as being a smaller file when compressed. If anyone can help that will be great.
Thanks
Sent from my GT-I9100 using XDA App

Related

Recompling an apk questions

Trying to modify contacts.apk to make the dialer multi-dpi compatible. Did that and it works.
My issue is recompiling the apk. Everytime I recompile the apk with apktool it looses over a megabyte in size. In my case went from 4.49MB to 3.19MB after rebuilding. Only file modified was dialer_app.xml and it's size stayed about the same.
I've brought framework-res.apk and twframework.apk into apktool. After copying the resulting contacts.apk back to the device it is not recognized.
I've also tried copying the META-INF directory from the original apk over to the new one. Still no luck. I'm new to this and if anyone has some help for me it would be greatly appreciated!
Did you sign your new apk after recompiling it ?
Do you have classes.dex and resources.arsc files in your new apk ?
since its a system apk I've read it shouldn't be signed. Only thing I did was copy the META-INF folder to the new apk. In the new apk I do see classes.dex and resources.arsc. All the files appear to be there but the apk has shrunken in size.
I'm guessing I'm missing something simple here. But I'm new to this. Been at it for a few hours haven't had any luck.
I am new in development field. I have two questions 1. Is there same meaning for building and recompiling using apk tool? 2. I know framework-res.apk is needed for apktool d com, but where and the what is the use of twframework.apk file. Please explain anyone .
Recompiled apks will be quite a bit smaller as they will have more compression applied, this is normal, just be careful as if the tool compresses it to much you will get fc's. But it should work fine.
idhbar said:
I am new in development field. I have two questions 1. Is there same meaning for building and recompiling using apk tool? 2. I know framework-res.apk is needed for apktool d com, but where and the what is the use of twframework.apk file. Please explain anyone .
Click to expand...
Click to collapse
Read the apktool website for info about framework files, as far as which one to use, if you are decompiling a la2 or la4 base use a kl2 or kk5 framework without jkays built in as the laX frameworks are kinda buggy.
Sent from my GT-I9100 using Tapatalk

[Q] Rebuild-resign framework-res.apk

Hi!
I need help to rebuild and sign my modding framework.
The stock framework has size=11M, after decompile, add 200 png files, change stat_sys_battery.xml and stat_sys_battery_charge.xml and rebuild, new apk file only has size=7M, and when i sign new apk file, there is no META-INF, so that my new framework doesnt work, got %battery (smth like 86, 88, 93%) on statusbar but phone reboot after logon.
Any help?
Thanks!
keunhuvac said:
Hi!
I need help to rebuild and sign my modding framework.
The stock framework has size=11M, after decompile, add 200 png files, change stat_sys_battery.xml and stat_sys_battery_charge.xml and rebuild, new apk file only has size=7M, and when i sign new apk file, there is no META-INF, so that my new framework doesnt work, got %battery (smth like 86, 88, 93%) on statusbar but phone reboot after logon.
Any help?
Thanks!
Click to expand...
Click to collapse
Not sure about your problem but when you decompile apps and then compile they drop in size and u must not be doing it correctly or it should work straight away
Sent from my LT15i using xda premium
Maybe you should upload your apk.

Replacing icons in apk

Hi
sorry if for expert devs this is a basic question
I have been looking around but I did not found this explained
HOW TO CHANG THE ICON ASSOCIATED WITH AN APK ????
I know how to open a apk with 7 zip and that I have to change the png file there
but which file ?????
do I need to change just the file associated with the icons or all the others ?
I mean .... inside (for example) mm.apk I found the icons related to contacts.apk to email.apk etc ... do I need to chenge all of them with the new ones ?
decompile and recompile
Decompile the app with apktool and go into the res folder and find the icon u want to replace ,,change it and recompile with apktool.Lastly sign the app and you are good to go
I have never tried change icons but i tried to change the background images for dialer and system menu. I used the same method mentioned above by opening the apk using 7zip and changing the images files with my custom images and rename them exactly the same as old ones.
Then I used CWM to flash the zip which contains the modified apk (i.e. contacts.apk and framework-res.apk)
However, I would recommend that you backup your ROM before flashing the modified zip file just in case something wrong happens.
Good Luck
I remember that there is a tool much faster than apktool ti decompile recompile but ... I have not been on the forum for long and I lost it
Is it also possible to change only theicon by using vrtheme ? if yes can someone explain how ?
Thanks
Give this thread a whirl...should be very useful
Basic theming guide by Dully79
Darkside Agent said:
Give this thread a whirl...should be very useful
Basic theming guide by Dully79
Click to expand...
Click to collapse
All very interesting I am sure I will use it at some point
I installed Java SDK and APKtool ... I remembered what they are for ... but still ...
the only thing I needed to know was if I need to change all the images in res or only that associated to the icon.....
ads7112 said:
All very interesting I am sure I will use it at some point
I installed Java SDK and APKtool ... I remembered what they are for ... but still ...
the only thing I needed to know was if I need to change all the images in res or only that associated to the icon.....
Click to expand...
Click to collapse
fine, whatever, ignore my post
Please .. do not missunderstand me !!!
Your help is very much apreciated
I knew approximately what to do to modify the theme also if in general I preferred kitchen uot
Instead I was hoping in a simple change of icon afetr decompressing/decompiling the apk but apparently it is not so simple ...never mind

Editing XML's in android's binary format?

Hello, I'm trying to create my own theme. I've decompiled deodexed systemui / framework-res and I want to get to work on these xml files. I'm running into issues though because they're in android binary format and I can't find a way to convert them to something a human can actually read.
I've searched around, but no methods I've tried have produced useful results. AXML is definitely broken and only shows UTF8 headers. I've decompiled the app in many different ways and it's just not working.
how can I edit something like status_bar.xml without a hex editor?
Are you sure you decompiled with apktool? Or just unzipped the apk? Do you have a /values folder after decompiling?
Sounds like you're not doing something right...
Sent from my phone's mind
If u decompile the apk you can modify .XML with notepad++ and then when you are finished you recompile
You can use
Apktool
Apkmanager
Or Google how to decompile .apk and you will get an answer on that many tutorials out there
Sent from my GT-N7000 using XDA Premium HD app

Need help themeing....

This is my first attempt to theme my pico...
I have decompiled the systemui.apk of jaggy rom
replaced some status bar icons with the ones i wanted
and then recompiled it....
(I used apktool for these operations and offcourse after installing the necessary framework)
no errors till now...
but when i replace the old systemui.apk with the new one ..... the task bar just dissappeared
tried booting into recovery and fix permissions still no luck...
then i signed the apk(didn't sign earlier as i read signing was not necessary for system apk) and tried again still no luck....
but when the old apk was restored and the phone reboote and permissions fixed the status bar was restored (i mean the old state)
all i did was replace some status bar icons but when rebuilt the apk was about 300kb smaller
did this just to get the hang of themeing.....
i have attached the original and modified systemui.apk
can anyone enlighten me what went wrong...
is it the way i replaced the icons or the way i compiled and recompiled the apks....
....thank you in advance
See the second link in my signature, seems like you're getting the recompiling bit wrong.
Try to decompile and recompile with Tingkle my android, it's handy tool for mod theme.
Sent from my HS-E910 using Tapatalk 2
Thanx people I managed to do it without decompiling
Opened the apk using 7 zip and then replacing the necessary files.....
And it worked
Sent from my HTC Explorer A310e using xda app-developers app

Categories

Resources