Related
Can someone post a modded framework-res.apk of CM 9 beta 6 with CRT off-animation enabled cuz I can't decompile mine framework-res.apk.
Thanks in advice
Why can't you decompile it?
Apktool download here.
Just pull it from phone and:
apktool if framework-res.apk
apktool d framework-res.apk
hsrars-d said:
Why can't you decompile it?
Apktool download here.
Just pull it from phone and:
apktool if framework-res.apk
apktool d framework-res.apk
Click to expand...
Click to collapse
I get an error while trying to compile it back..
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
I have tried multiple guides and apktools with no luck....Please someone point me in the correct direction--->…I have been able to decompile, but no luck on recompile...
What errors are you getting? What OS do you have? Is this on a TW Stock based ROM or AOSP? Which apktool.jar/aapt.exe are you using?
Sent from my SPH-L710 using Tapatalk 2
Sry...windows 7....tw....systemUI.....upon recompile doesn't create new apk in apktool folder....caused by Java.io.File not found exception:....using the apktool found hereandroidforums.com/esteem-all-things...properly-decompile-recompile-aps-apktool.html
Use this apktool and aapt.exe
http://forum.xda-developers.com/showthread.php?t=1755243
Make sure you rename that jar to apktool.jar and place both the jar and exe in your apktool folder
Next, go to C:\User\Owner\apktool\framework and delete whatever resource apk's are in there
Next, get the framework-res.apk and twframework-res.apk from whatever ROM your working on and place them in your apktool folder
CD that apktool folder, after you cd type
apktool if framework-res.apk
apktool if twframework-res.apk
Decompile your SystemUI.apk again, make edits, recompile
Sent from my SPH-L710 using Tapatalk 2
Yes!!!!! :thumbup::thumbup::thumbup:
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..
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!