I Can't Find The twframework-res.apk - Samsung Galaxy Nexus

So I am trying to using apk-took but I can not located the twframework-res.apk I have found the framework-res.apk in /system/framework/ directory and place both files in the other folder. I am running the stock rooted rom. Do I need to find the rom and decompile it or does someone already have those files for the GN that I can use. Any help would be nice. Thanks :cyclops:

LOL because we dont have a touchwiz framework-res.apk why are you looking for it anyways?

I figured, I thought it was required for apk tool. Thanks for the reassurance though and taking your time to answer this question.

Nope just need to run
Code:
apktool if framework-res.apk
then you can start decompiling system apps and such. Make sure you have the framework-res.apk from your ROM and running that command in the same directory (folder) as the APK.

ÜBER™ said:
LOL because we dont have a touchwiz framework-res.apk why are you looking for it anyways?
Click to expand...
Click to collapse
Hello! Where to find the twframework-res.apk in Android Oreo?

Related

[Q] Modifying xmls

I am interested in changing the color of the text of the status bar. I have already modified all the images I need, now just need to modify the xml.
I am modifying the framework-res.apk colors xml. After I have made the change I recompile the apk. Switch out the Meta-INF and AndroidManifest.xml with the ones from the original apk but when I push to my phone the color of the status bar text isn't changing. These are the lines I have changed:
<color name="status_bar_text">#ff73cd68</color>
<color name="status_bar_clock_text">#ff73cd68</color>
You might find better luck actually pming a themer or posting it in the theme section. Not much Turner's drop by here
Sent from my SPH-D710 using XDA App
davidc23 said:
You might find better luck actually pming a themer or posting it in the theme section. Not much Turner's drop by here
Sent from my SPH-D710 using XDA App
Click to expand...
Click to collapse
yeah I was thinking that, I might just check on the irc channel. Thanks for looking out.
Hmmm did you reboot the phone?
Sent from my Epic™ 4G Touch
globalninja said:
Hmmm did you reboot the phone?
Sent from my Epic™ 4G Touch
Click to expand...
Click to collapse
Yeah, I didn't actually push the framework. I created a flashable zip.
dtm_stretch said:
Yeah, I didn't actually push the framework. I created a flashable zip.
Click to expand...
Click to collapse
If you got the framework-res.apk to recompile without errors then the changes you made should definitely work. There is no need to sawp anything owhen recompiling, just edit the xml, recompile it as a system app and push it to system/app via root explorer or any equivalent.
Which ROM framework are you trying to modify?
fnut6969 said:
If you got the framework-res.apk to recompile without errors then the changes you made should definitely work. There is no need to sawp anything owhen recompiling, just edit the xml, recompile it as a system app and push it to system/app via root explorer or any equivalent.
Which ROM framework are you trying to modify?
Click to expand...
Click to collapse
Thanks ill give that I try.
I am actually modifying the ICS theme for Cakulin's rom.
**Doesn't seem to work either. I should be changing the colors.xml in the framework-res.apk right?
Got it: Make sure to delete the stupid resources.arsc!
dtm_stretch said:
Thanks ill give that I try.
I am actually modifying the ICS theme for Cakulin's rom.
**Doesn't seem to work either. I should be changing the colors.xml in the framework-res.apk right?
Click to expand...
Click to collapse
Yes, and although you won't find the values folder when you recompile you'll still need to delete the resources.arsc when recompiling, if you'd like, you can attach the framework-res.apk you're trying to modify and I can change it for you.
I also, stated inadvertently, to place it in system/app that is incorrect it goes in system/framework which may actually be part of the problem.
fnut6969 said:
Yes, and although you won't find the values folder when you recompile you'll still need to delete the resources.arsc when recompiling, if you'd like, you can attach the framework-res.apk you're trying to modify and I can change it for you.
I also, stated inadvertently, to place it in system/app that is incorrect it goes in system/framework which may actually be part of the problem.
Click to expand...
Click to collapse
I got it figured out, just before you posted about the resources. Now I just got to figure out why my launcher keeps restarting.

[Q]How to decompile framework.apk?

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!

[Q] Decompiling SystemUI.apk (3G/1x Icon Fix)

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

[Q]Editing Settings.apk

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

[Q] How to edit systemui.apk in Stock ROM?

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

Categories

Resources