When I recompile framework-res.apk,the apktool notice "aapt:...".And the framework-res.apk still be builded.But I replace the resources.arsc and put it in the phone,reboot and always in bootanimation.I used apktool 1.4.10,1.5.0,1.5.1... and so on.I can not solve this problem,I need help.
Sent from my lt28h use sony fw.
kin912 said:
When I recompile framework-res.apk,the apktool notice "aapt:...".And the framework-res.apk still be builded.But I replace the resources.arsc and put it in the phone,reboot and always in bootanimation.I used apktool 1.4.10,1.5.0,1.5.1... and so on.I can not solve this problem,I need help.
Sent from my lt28h use sony fw.
Click to expand...
Click to collapse
I am not clear from what you did. But you need to do it this way.
apktool if ion SemcGenericUxRes.apk
apktool d -t ion framework-res.apk out
make changes to decompiled source
apktool b out new.framework-res.apk
Now open both framework-res.apk and new.framework-res.apk side by side using an archiver. Do not use windows open.
Now you will notice one thing that the new framework does not contain META-INF folder.
Delete the resources.arsc file from the original framework-res. Drag the resources.arsc from the new framework-res and dump it on to the original framework-res. Close both the files.
Now you are ready to use the updated original framework-res.apk
ganeshbiyer said:
I am not clear from what you did. But you need to do it this way.
apktool if ion SemcGenericUxRes.apk
apktool d -t ion framework-res.apk out
make changes to decompiled source
apktool b out new.framework-res.apk
Now open both framework-res.apk and new.framework-res.apk side by side using an archiver. Do not use windows open.
Now you will notice one thing that the new framework does not contain META-INF folder.
Delete the resources.arsc file from the original framework-res. Drag the resources.arsc from the new framework-res and dump it on to the original framework-res. Close both the files.
Now you are ready to use the updated original framework-res.apk
Click to expand...
Click to collapse
No need to install framework-res.apk only just SemcGenericUxpRes.apk?
ganeshbiyer said:
I am not clear from what you did. But you need to do it this way.
apktool if ion SemcGenericUxRes.apk
apktool d -t ion framework-res.apk out
make changes to decompiled source
apktool b out new.framework-res.apk
Now open both framework-res.apk and new.framework-res.apk side by side using an archiver. Do not use windows open.
Now you will notice one thing that the new framework does not contain META-INF folder.
Delete the resources.arsc file from the original framework-res. Drag the resources.arsc from the new framework-res and dump it on to the original framework-res. Close both the files.
Now you are ready to use the updated original framework-res.apk
Click to expand...
Click to collapse
I try to decompile this mod and it's sucessful.--->http://forum.xda-developers.com/showthread.php?t=2047999
Once I do the original framework-res I fail to make it use.
kin912 said:
I try to decompile this mod and it's sucessful.--->http://forum.xda-developers.com/showthread.php?t=2047999
Once I do the original framework-res I fail to make it use.
Click to expand...
Click to collapse
How are you trying to use it. Tell me the steps.
ganeshbiyer said:
How are you trying to use it. Tell me the steps.
Click to expand...
Click to collapse
1.Install framework about framework-res.apk and SemcGenericUxpRes.apk.
2.Decompile framework-res.apk and make change of the source.
3.Recompile framework-res.apk and build the new framework-res.apk.
4.Take the resources.arsc and the raw which I changed from the new framework-res.apk to the original framework-res.apk.
5.Replace the final framework-res.apk in my phone with 644 permission.
I reboot and loop in the bootanimation.
kin912 said:
1.Install framework about framework-res.apk and SemcGenericUxpRes.apk.
2.Decompile framework-res.apk and make change of the source.
3.Recompile framework-res.apk and build the new framework-res.apk.
4.Take the resources.arsc and the raw which I changed from the new framework-res.apk to the original framework-res.apk.
5.Replace the final framework-res.apk in my phone with 644 permission.
I reboot and loop in the bootanimation.
Click to expand...
Click to collapse
What are the sizes of the frameworks-res.apk's
ganeshbiyer said:
What are the sizes of the frameworks-res.apk's
Click to expand...
Click to collapse
Original:21MB
Decompile:14.9MB
If I do nothing change only recompile the frameworks-res.apk,it still has the bug.
kin912 said:
Original:21MB
Decompile:14.9MB
If I do nothing change only recompile the frameworks-res.apk,it still has the bug.
Click to expand...
Click to collapse
If you have followed pepitos tutorial from themes section then it should be ok.
There is nothing else to do.
Sent from my LT28i using xda premium
ganeshbiyer said:
If you have followed pepitos tutorial from themes section then it should be ok.
There is nothing else to do.
Sent from my LT28i using xda premium
Click to expand...
Click to collapse
I make sure the steps are ok because I can decompile the framework.apk of miui.Anyway,thanks a lot!
Related
I have tried apktool and i have edited whole theme apk by decompiling it...then it is unable to recompile and my rhr work is now pending for test...
So suggest here ,i m stucked....
I HAVE TRIED APKTOOL B CODE SO MANY WAYS AND SO MANY TIMRS FROM DIFFERENT THREADs...
So it is better to suggest me other tools..
Using win 7 home edition.
Thanx
Sent from my HTC Wildfire S A510e using XDA
smartboy0668 said:
I have tried apktool and i have edited whole theme apk by decompiling it...then it is unable to recompile and my rhr work is now pending for test...
So suggest here ,i m stucked....
I HAVE TRIED APKTOOL B CODE SO MANY WAYS AND SO MANY TIMRS FROM DIFFERENT THREADs...
So it is better to suggest me other tools..
Using win 7 home edition.
Thanx
Sent from my HTC Wildfire S A510e using XDA
Click to expand...
Click to collapse
1)
you know what? if you have just edited the *.png and *.9.png files.. then you just use Winrar or 7zip (7zip i recomend)
first decompile with apktool .. then edit the .png n .9.png and then open the apk file with 7zip n just drag the files you edited.. n you done .. now just flash the file (hope you know how to make a flashable zip , if you dont then go to the index by VBHTT in general section n search there ) but do not try to edit xml files with this method.. it may end up messing your rom..
OR
2)if you wanna edit xml file then install all resources to your computer..
lets take an example..
you wanna edit framewor-res.apk
then you will need com.htc.resources.apk(from /system/framework) n systemui.apk(from /system/app)
n then install all three of them with apktool on pc with these commands
Code:
apktool if framework-res.apk
apktool if com.htc.resources.apk
apktoo if systemui.apk
then decompile the framework-res.apk with this code
Code:
apktool d framework-res.apk framework
it will create a new folder named framework n decompile it inside it..
after done editing the xml files n pngs you can compile it with this code
Code:
apktool b framework framework-res(new).apk
now copy this new framework apk file to desktop .. rename it to framework-res n then flash it .. hope i helped.
NOTE:
do not write apktool b framework-res.apk framework
here 'b' means BUILD .. the parameters are wrong. you cant build the apk framework like this.. instead it should be like this..
apktool b framework framework-res(new).apk
here frame work is the folder that is to be built as an apk with file name framework-res(new).apk this is the thing that might be causing you error.. hope i helped
mhrsolanki2020 said:
1)
you know what? if you have just edited the *.png and *.9.png files.. then you just use Winrar or 7zip (7zip i recomend)
first decompile with apktool .. then edit the .png n .9.png and then open the apk file with 7zip n just drag the files you edited.. n you done .. now just flash the file (hope you know how to make a flashable zip , if you dont then go to the index by VBHTT in general section n search there ) but do not try to edit xml files with this method.. it may end up messing your rom..
ORif you wanna edit xml file then install all resources to your computer..
lets take an example..
you wanna edit framewor-res.apk
then you will need com.htc.resources.apk(from /system/framework) n systemui.apk(from /system/app)
n then install all three of them with apktool on pc with these commands
Code:
apktool if framework-res.apk
apktool if com.htc.resources.apk
apktoo if systemui.apk
then decompile the framework-res.apk with this code
Code:
apktool d framework-res.apk framework
it will create a new folder named framework n decompile it inside it..
after done editing the xml files n pngs you can compile it with this code
Code:
apktool b framework framework-res(new).apk
now copy this new framework apk file to desktop .. rename it to framework-res n then flash it .. hope i helped.
NOTE:
do not write apktool b framework-res.apk framework
here 'b' means BUILD .. the parameters are wrong. you cant build the apk framework like this.. instead it should be like this..
apktool b framework framework-res(new).apk
here frame work is the folder that is to be built as an apk with file name framework-res(new).apk this is the thing that might be causing you error.. hope i helped
Click to expand...
Click to collapse
Hi mhrsolanki2020
I am agree with your tut, but one thing, are you sure we have to type " apktool If systemui.apk " to edit .xml files ?
Because when i edit .xml in systemui.apk , i always only typed "apktool if framework-res.apk " with "apktool if com.htc.resources.apk" and everything works fine .
Sorry for my english
Mazer.one said:
Hi mhrsolanki2020
I am agree with your tut, but one thing, are you sure we have to type " apktool If systemui.apk " to edit .xml files ?
Because when i edit .xml in systemui.apk , i always only typed "apktool if framework-res.apk " with "apktool if com.htc.resources.apk" and everything works fine .
Sorry for my english
Click to expand...
Click to collapse
no its not neccecasry.. but then its better to install it .. no harm in using 2mb from your harddisk is it
You're right
Sent from my HTC Wildfire S A510e using XDA
I am getting fc of systemui app...status bar gone...ishould look in to deeeeeply......
Sent from my HTC Wildfire S A510e using XDA
Pleas Help..
When I work Combile and Decombile APKTOOL for File framwork-res.apk
Of Version Jelly Bean 4.1.2 XXLSJ All OK
But When Add My Rom BootLoop
Are you signing the apk after you recompile it??
Sent from my GT-I9300 using Tapatalk 2
AuSSiELaMbChOpS said:
Are you signing the apk after you recompile it??
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
no signing apk
whats this broplem
help
heeeeeeeeeeeeeeeeeeeeeeelp
amro habib said:
help
heeeeeeeeeeeeeeeeeeeeeeelp
Click to expand...
Click to collapse
The problem is with the signing. (The framework-res.apk has to be signed with the platform key)
Try to sign the apk (use apkmultitool), but I think it won't work, because you wont have the platform key.
I suggest you to do the following:
If you use apktool or apk-multi-tool apkmultitool.com:
1) if you want to change drawables, just push the new png-s into the original framework-res.apk (open the original framework-res.apk with 7zip, and drag and drop the new png in the corresponding drawable folder).
2) if you want to change xml-s, decompile framework-res.apk, change xml-s, recompile framework-res.apk, then extract the "resources.arsc" from the new apk, and push it to the original framework-res.apk (again with 7zip or any compatible file manager)
3) if you change some smali code, then you need to the same as in step 2, but with the classes.dex file.
Basically you should use the original framework-res.apk as a starting point, and (without extracting it) push all your mods into it!
OR try the UOT kitchen: http://uot.dakra.lt/
Cheers!
Gyebro said:
The problem is with the signing. (The framework-res.apk has to be signed with the platform key)
Try to sign the apk (use apkmultitool), but I think it won't work, because you wont have the platform key.
I suggest you to do the following:
If you use apktool or apk-multi-tool apkmultitool.com:
1) if you want to change drawables, just push the new png-s into the original framework-res.apk (open the original framework-res.apk with 7zip, and drag and drop the new png in the corresponding drawable folder).
2) if you want to change xml-s, decompile framework-res.apk, change xml-s, recompile framework-res.apk, then extract the "resources.arsc" from the new apk, and push it to the original framework-res.apk (again with 7zip or any compatible file manager)
3) if you change some smali code, then you need to the same as in step 2, but with the classes.dex file.
Basically you should use the original framework-res.apk as a starting point, and (without extracting it) push all your mods into it!
OR try the UOT kitchen: http://uot.dakra.lt/
Cheers!
Click to expand...
Click to collapse
all this work bootloop..
As you all know, Sprint disables the 1x icon from displaying when you are in 1x coverage. It still shows the 3G icon. I know that you can modify the values file and edit the boolean to enable it. I have tried to use apktool and I cannot even get the program to work.
Anyhow, I was wondering if someone who knows how to do this could decompile my SystemUI.apk file, fix it, recompile it and send it back to me. It would be greatly appreciated! Just let me know, and I'll email you my SystemUI.apk file and whatever you may need to get it done.
Thanks,
Rich
DONE. if there's anything else you need PM me or whatever
Hit thanks if this worked.
Please read forum rules before posting
Questions go in Q&A
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator
Attached is my SystemUI.apk. The reason I need this particular one done is because I've made a bunch of image changes and stuff, particularly for the signal bars, battery, and data icons.
Thanks!
Use apktool 1.5. Flip the 3g minimum value in bools.xml
shiftr182 said:
Use apktool 1.5. Flip the 3g minimum value in bools.xml
Click to expand...
Click to collapse
There inlies the problem. I can't get apktool to work on my computer for some reason, lol
Any way to do this with an odex rom?
Sent from my SPH-L900 using xda premium
M4ver1ck said:
Any way to do this with an odex rom?
Sent from my SPH-L900 using xda premium
Click to expand...
Click to collapse
yes there is
owensri said:
Attached is my SystemUI.apk. The reason I need this particular one done is because I've made a bunch of image changes and stuff, particularly for the signal bars, battery, and data icons.
Thanks!
Click to expand...
Click to collapse
tis below
t3project said:
tis below
Click to expand...
Click to collapse
Awesome, works great! Thanks! Very much appreciated.
owensri said:
Awesome, works great! Thanks! Very much appreciated.
Click to expand...
Click to collapse
now, why cant you get apktool to work on your pc? what is happening?
t3project said:
now, why cant you get apktool to work on your pc? what is happening?
Click to expand...
Click to collapse
I download the files, and extract them where they say to do so. I can't get it to run at all though. Says the file isn't valid or something like that.
owensri said:
I download the files, and extract them where they say to do so. I can't get it to run at all though. Says the file isn't valid or something like that.
Click to expand...
Click to collapse
firstly make sure you have the JRE/JDK installed from here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
download this file: http://www.androidfilehost.com/?fid=9390288116658471591
extract it to c:\apktool
copy framework-res.apk to c:\apktool
copy twframework-res.apk to c:\apktool
open a command prompt (with admin privileges if on win8), navigate to c:\apktool
type apktool if framework-res.apk
next type apktool if twframework-res.apk
copy any.apk to c:\apktool
type apktool d any.apk to decompile
edit the files in the c:\apktool\any\ you need changed
to recompile type apktool b any any.apk
there are a few more steps left but you need to be able to get this working first.
na7q said:
DONE. if there's anything else you need PM me or whatever
Hit thanks if this worked.
Click to expand...
Click to collapse
Which rom will this systemui work on, like Lk8 stock deodex or....? Is This systemui stock with the exception of 1x/3x? Thanks....
transmitting from:
GaLaXy Class Starship Enterprise NCC-SPH-L900
owensri said:
As you all know, Sprint disables the 1x icon from displaying when you are in 1x coverage. It still shows the 3G icon. I know that you can modify the values file and edit the boolean to enable it. I have tried to use apktool and I cannot even get the program to work.
Anyhow, I was wondering if someone who knows how to do this could decompile my SystemUI.apk file, fix it, recompile it and send it back to me. It would be greatly appreciated! Just let me know, and I'll email you my SystemUI.apk file and whatever you may need to get it done.
Thanks,
Rich
Click to expand...
Click to collapse
Just updated to ma7. Is there any way to get this working again on ma7? Thanks
Sent from my SPH-L900 using xda premium
t3project said:
firstly make sure you have the JRE/JDK installed from here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
download this file: http://www.androidfilehost.com/?fid=9390288116658471591
extract it to c:\apktool
copy framework-res.apk to c:\apktool
copy twframework-res.apk to c:\apktool
open a command prompt (with admin privileges if on win8), navigate to c:\apktool
type apktool if framework-res.apk
next type apktool if twframework-res.apk
copy any.apk to c:\apktool
type apktool d any.apk to decompile
edit the files in the c:\apktool\any\ you need changed
to recompile type apktool b any any.apk
there are a few more steps left but you need to be able to get this working first.
Click to expand...
Click to collapse
ok thanks for this.. got apktool working finally yah yah.. what are the few more steps left????
this is awsome.. on my way to being a rom developer..
I am sooo excited..
t3project said:
firstly make sure you have the JRE/JDK installed from here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
download this file: http://www.androidfilehost.com/?fid=9390288116658471591
extract it to c:\apktool
copy framework-res.apk to c:\apktool
copy twframework-res.apk to c:\apktool
open a command prompt (with admin privileges if on win8), navigate to c:\apktool
type apktool if framework-res.apk
next type apktool if twframework-res.apk
copy any.apk to c:\apktool
type apktool d any.apk to decompile
edit the files in the c:\apktool\any\ you need changed
to recompile type apktool b any any.apk
there are a few more steps left but you need to be able to get this working first.
Click to expand...
Click to collapse
Ok well I did this and decompiled flashbar service made a test Color change and than built it back. Installed the new apk into my rom and flashed it and now my multi window does not work.. sooooooo there must be some thing else I need to do. .can someone help please. Anxious to get my first ron going
I DID IT!!!!!!!!!!!!!!!!!!!!!
I decompiled an apk made a change abs recompiled it. . I know I know whoopee people do it every day. . But this is my first time. . Yeah Yeah Yeah I did it. .
t3project said:
firstly make sure you have the JRE/JDK installed from here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
download this file: http://www.androidfilehost.com/?fid=9390288116658471591
extract it to c:\apktool
copy framework-res.apk to c:\apktool
copy twframework-res.apk to c:\apktool
open a command prompt (with admin privileges if on win8), navigate to c:\apktool
type apktool if framework-res.apk
next type apktool if twframework-res.apk
copy any.apk to c:\apktool
type apktool d any.apk to decompile
edit the files in the c:\apktool\any\ you need changed
to recompile type apktool b any any.apk
there are a few more steps left but you need to be able to get this working first.
Click to expand...
Click to collapse
t3 can you make this for your MA7 deodex so we can flash this to have the 1x/3x on the new rom?
transmitting from:
GaLaXy Class Starship Enterprise NCC-SPH-L900
Or would someone be able to make a standalone that would work with any of the TW based MA7 roms?
Sent from my SPH-L900 using xda app-developers app
cherylbaker said:
Ok well I did this and decompiled flashbar service made a test Color change and than built it back. Installed the new apk into my rom and flashed it and now my multi window does not work.. sooooooo there must be some thing else I need to do. .can someone help please. Anxious to get my first ron going
I DID IT!!!!!!!!!!!!!!!!!!!!!
I decompiled an apk made a change abs recompiled it. . I know I know whoopee people do it every day. . But this is my first time. . Yeah Yeah Yeah I did it. .
Click to expand...
Click to collapse
great job cheryl. i just seen your posts. lol
elniper said:
t3 can you make this for your MA7 deodex so we can flash this to have the 1x/3x on the new rom?
transmitting from:
GaLaXy Class Starship Enterprise NCC-SPH-L900
Click to expand...
Click to collapse
yes but digitalblur posted his up in a flashable zip in his thread unless you want something totally stock
I've searched everywhere how to edit Settings.apk using Apktool or Apkmanager. but i can't understand it.
i just want to add a description in my Brightness settings Powered by WhiteMagic.
what should i do? please help me.
rambg2 said:
I've searched everywhere how to edit Settings.apk using Apktool or Apkmanager. but i can't understand it.
i just want to add a description in my Brightness settings Powered by WhiteMagic.
what should i do? please help me.
Click to expand...
Click to collapse
Download apktool by iBotpeaches. Get the aapt for windows. Extract both the things in the same folder. Get framework-res.apk and SemcGenericUxpRes.apk in /system/framework and place it in this folder. Now shift+right click in that folder and open cmd there. Type - apktool if framework-res.apk nozomi
Then type - apktool if SemcGenericUxpRes.apk nozomi
Now place settings.apk in that same folder and type - apktool d -f -t nozomi Settings.apk
Then make any changes that you want to do and type - apktool b Settings
Collect your new apk in Settings/dist. Then open your original settings.apk with winrar and also open your new apk with winter. Copy the Meta-inf folder from old to new and chose store as compression method. Enjoy!
Sent from my LT26i using xda app-developers app
abcdjdj said:
Download apktool by iBotpeaches. Get the aapt for windows. Extract both the things in the same folder. Get framework-res.apk and SemcGenericUxpRes.apk in /system/framework and place it in this folder. Now shift+right click in that folder and open cmd there. Type - apktool if framework-res.apk nozomi
Then type - apktool if SemcGenericUxpRes.apk nozomi
Now place settings.apk in that same folder and type - apktool d -f -t nozomi Settings.apk
Then make any changes that you want to do and type - apktool b Settings
Collect your new apk in Settings/dist. Then open your original settings.apk with winrar and also open your new apk with winter. Copy the Meta-inf folder from old to new and chose store as compression method. Enjoy!
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
I just think his problem isn't on how to compile/recompile, but wheter on where to edit it.
thanks man, that's my another problem. I finally solved how to compile settings.apk. My only problem now is how to show the "Powered by WhiteMagic" on the brightness in settings. do you know how to do it? Thank you in advance mate!
EDIT: I already compiled it. but i can't make it work on my phone. the Settings are missing when i replace it with my new one. Sorry for my English
I just think his problem isn't on how to compile/recompile, but wheter on where to edit it.
Click to expand...
Click to collapse
that's my main problem is.
rambg2 said:
that's my main problem is.
Click to expand...
Click to collapse
Ok. I can trying doing it, if you help me with something else. I will give you an Settings.apk. You gonna decompile it and look at every .xml file for the WhiteMagic line. When you find it, I will try to add it and help ya.
Here is it: Decompile, go at all .xml files and search for WhiteMagic inside the .xmls. When you find, tell me the file and in which line it is located.
Sorry: Dropbox failed. I will get you the link when it works again.
okay! please upload here the file. Thank You Mate!
EDIT: okay i'll just wait until you fix your DropBox.
rambg2 said:
okay! please upload here the file. Thank You Mate!
EDIT: okay i'll just wait until you fix your DropBox.
Click to expand...
Click to collapse
Here is it:
https://www.dropbox.com/s/qhu7buabnalj64w/Settings.apk
Good luck
I found in folder res/values/string.xml i found it there.
and the others is in the
res/value-xx and res/value-xx-mdpi every folder of that inside the string have whitemagic thins.
in every string.xml there is Powered by Whitemagic.
rambg2 said:
I found in folder res/values/string.xml i found it there.
and the others is in the
res/value-xx and res/value-xx-mdpi every folder of that inside the string have whitemagic thins.
in every string.xml there is Powered by Whitemagic.
Click to expand...
Click to collapse
Thanks. That should do it. I will take a look at it when I have access to my PC. Should be fairly easy to do. I will test on my first, and if I manage, you can upload yours so O can mod for you.
Wow... This is harder than I thought. But Niaboc helped me find it. He will teach me so I can do it myself
Sent From my LT26i using Tapatalk HD
How to edit systemui.apk in Stock ROM?
denisf1981 said:
How to edit systemui.apk in Stock ROM?
Click to expand...
Click to collapse
Decompile it with apktool
Make changes
Recompile with apktool
Push to system with permissions 644 & restart phone or make a flashable zip
Apktool with instructions & usage can be found
https://ibotpeaches.github.io/Apktool/
Can use Ubuntu/Linux or Windows
Obviously requires rooted phone