Volume Indicator - AT&T Samsung Galaxy S II SGH-I777

Can someone tell me where the volume indicator is kept?
I thought it was in the settings.apk "res\drawable-hdpi\app_gauge.9.png"
I changed from green to blue, erased cache and rebooted but it's still green.
Any help would be appreciated.
Thx,
Dave

dhostetter said:
Can someone tell me where the volume indicator is kept?
I thought it was in the settings.apk "res\drawable-hdpi\app_gauge.9.png"
I changed from green to blue, erased cache and rebooted but it's still green.
Any help would be appreciated.
Thx,
Dave
Click to expand...
Click to collapse
It's actually in progress_horizontal.xml in the drawable folder in framework-res.apk. There's a start color and an end color that define the gradient

Thanks.
I installed Notepad++ to look at the code and all I get is garbage that I can't make out.
Do you know if there is a setting in Notepad++ to make this viewable or another software I could use to edit this?

You have to decompile the apk first. You have to use apktool (http://code.google.com/p/android-apktool/) or another utility based on it, like apkmanager

stone_ship said:
You have to decompile the apk first. You have to use apktool (http://code.google.com/p/android-apktool/) or another utility based on it, like apkmanager
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1053227
^^ to decompile

Related

[Q] Need help modifying framework-res.apk or twframework-res.apk and services.jar

Hello, maybe this is the wrong thread but i seem to not be getting any help over at Q&A's... I'm porting a theme from the captivate forums and for some reason my dropdown notifications have a transparent background and the text is black as well for any popup window like when you long press the homescreen to get widgets, and wallpaper chooser, so i think i need to modify either the framework-res.apk or the twframework-res.apk but don't kno exactly what file to modify to either get the text to white or get a background on those things... if anyone would advice me i'd appreciate it... thanks
Also if anyone could guide me into modifying the services.jar to change the clock color i would also appreciate it...
THIS IS THE LINK TO WHAT IM WORKING ON
danalex0829 said:
Hello, maybe this is the wrong thread but i seem to not be getting any help over at Q&A's... I'm porting a theme from the captivate forums and for some reason my dropdown notifications have a transparent background and the text is black as well for any popup window like when you long press the homescreen to get widgets, and wallpaper chooser, so i think i need to modify either the framework-res.apk or the twframework-res.apk but don't kno exactly what file to modify to either get the text to white or get a background on those things... if anyone would advice me i'd appreciate it... thanks
Also if anyone could guide me into modifying the services.jar to change the clock color i would also appreciate it...
THIS IS THE LINK TO WHAT IM WORKING ON
Click to expand...
Click to collapse
you need to edit the .xml files.
for notification you need to edit statubar_expand.xml and files that has similar name to that xml. dont exactly remember what its called.
its in framework-res.apk/res/layout
the notification pulldown background is in
twframework-res.apk/res/drawable-hdpi
eunkipark92 said:
you need to edit the .xml files.
for notification you need to edit statubar_expand.xml and files that has similar name to that xml. dont exactly remember what its called.
its in framework-res.apk/res/layout
the notification pulldown background is in
twframework-res.apk/res/drawable-hdpi
Click to expand...
Click to collapse
Well for the notification pulldown background ive got the one i wanted... what im referring to is when u have a notification, for instance you downloaded something from the market and u get successfully downloaded that one notification has no background it is set to transpare t and the letters are black so i can really read what it says...
anybody wishing to help?
If it is an image you need to edit to be non-black/transparent the file I think you're looking for is called "status_bar_item_background_normal.9.png"
Change that to a totally opposite color and see if that's it?
If you mean editing the color of the letters then I do not know what to edit in the .xml file.
Hope I helped!
How can I modify the XML files? 'cause when I extract them from apk file, all of them are protected, I can't read any codes. Can anyone show me how to fully unprotected them?
P/s: I always get this error "An invalid character was found in text content. Error processing resource..." whenever I open xml file with IE.
vnthantai said:
How can I modify the XML files? 'cause when I extract them from apk file, all of them are protected, I can't read any codes. Can anyone show me how to fully unprotected them?
Click to expand...
Click to collapse
^^ +1.....
danalex0829 said:
^^ +1.....
Click to expand...
Click to collapse
they must be decompiled with apk manager
additionally when you recompile make sure to check the log as there will be several images that will be renamed from. 9.png to png you must use the draw9patch program found in the tools folder of the android ask to 9patch these images otherwise your apks will not compile correctly. Im on my phone now so I can't provide the necessary video link how ever simply go on youtube and search how to use draw9patch there is a very good beginners explanation (2 part) of what a 9 patch is and how to use the 9 patch utility
Sent from my AXURA powered Vibrant
are all of images in "res/drawable-hdpi" folder 9.png formated files? or just some of them?
vnthantai said:
are all of images in "res/drawable-hdpi" folder 9.png formated files? or just some of them?
Click to expand...
Click to collapse
it varies, they can be in any folder really, but generally speaking that is where you will find most of them. Just check the logs and you will know exactly where to find them and what they were named.
was anyone able to figure out to edit services.jar in order to change clock color?
aamir123 said:
was anyone able to figure out to edit services.jar in order to change clock color?
Click to expand...
Click to collapse
Here you go man. http://forum.xda-developers.com/showthread.php?t=940692
That thread will explain that part. Be careful with it though, and make a backup cas if you mess it up you'll get a boot loop as I did
am trying to edit the framework-res.apk
am trying to change the images of the slider (jog_dial_bg_rev.png) but when i save it and then install or move the .apk to system/framework folder
the phone crashes? has this got anything to do with the MD5?
all i wanna do is change the slider image based on the CM7 pro v20 ROM
my reason is because the black shadow covers the incoming call number
kashem58 said:
am trying to edit the framework-res.apk
am trying to change the images of the slider (jog_dial_bg_rev.png) but when i save it and then install or move the .apk to system/framework folder
the phone crashes? has this got anything to do with the MD5?
all i wanna do is change the slider image based on the CM7 pro v20 ROM
my reason is because the black shadow covers the incoming call number
Click to expand...
Click to collapse
Instead of extracting, Just open it with winrar or 7zip and drag and drop image in the 7zip window.
Sent from samsung vibrant

Decompiling SystemUI.apk problem

I've been trying to decompile SystemUI to mod a couple xml's. Whenever I try with apkmanager I get errors. I know there's some trick to get this to work with framework. Can anyone help a noob out?
tallgrasshawk said:
I've been trying to decompile SystemUI to mod a couple xml's. Whenever I try with apkmanager I get errors. I know there's some trick to get this to work with framework. Can anyone help a noob out?
Click to expand...
Click to collapse
its better to bring the error log here, its located in apk manager directory log.txt
When at the PC I will zip up my apktool and run you through what I do
---------- Post added at 05:08 AM ---------- Previous post was at 04:53 AM ----------
Here is my APKtool folder (I doubt it matters but I keep it in the C drive) C:\apktool
http://dl.dropbox.com/u/22063477/apktool.zip
1. apktool if framework-res.apk (this is the stock framework from whatever rom you are working on)
2. apktool d -f SystemUI.apk (seem to have better luck with using the force command)
3. make your edits
4. apktool b -f SystemUI SystemUIedit.apk
5. clap with glee that after bashing your head into a wall like I have been you can now edit XML's
6. now come help me fix some things in my themes
Don't you also have to install the twframework as well?
tallgrasshawk said:
Don't you also have to install the twframework as well?
Click to expand...
Click to collapse
I didnt have to but may want to avoid some of the phantom file missing errors
Hmm. I get the res folder decompiled but I still get a smali folder as well. And looking at the xml's I think I'm getting in over my head.
tallgrasshawk said:
Hmm. I get the res folder decompiled but I still get a smali folder as well. And looking at the xml's I think I'm getting in over my head.
Click to expand...
Click to collapse
here is what I did and it seemed to help me get teh basic understanding (changing clock color etc)
there is a app called CSDiff you can use it to compare diff in a folder, so I decompiled two SystemUI's one stock one themed and then took a look at what changed in the XML then can test and recompile. has worked ok for me so far lol
Thanks for the help boosted. I think I got the color figured out. Do you know how to change the font as well? I don't really see that in the xml anywhere.
tallgrasshawk said:
Thanks for the help boosted. I think I got the color figured out. Do you know how to change the font as well? I don't really see that in the xml anywhere.
Click to expand...
Click to collapse
this gave me a headache more than helped but may help you out a bit..
http://www.xoomforums.com/forum/mot...guide-xml-breakout-themeing-full-details.html
Hey boosted, have you seen this version of apktool? It allows the decompiling of SystemUI, etc. with no problem. Rename current apktool.jar and name this new one apktool.jar and put it into APKmanager's "other" folder.
Comment deleted

editing xml help, stuck in bootloop.

Hi everyone, i used to tommytomatoes linux software to work on framwork and com.htc.resource files and all seemed to go fine with tommy's tools. no errors.
i pushed them to my phone and then installed them using adb.
i restart the phone and end up in a bootloop.
all i did was edit the colors.xml file to change the color and nothing else, no images, not a thing.
is there a way to figure out what is wrong with the 2 apk's i edited?
Thanks for any and all assistance, xml editing is killing me.
what ROM is it from? odex or not?
i used the apk's from king cobras rom.
I can't quite remember (and it could be different on a GSM ROM but I doubt it) but I think if you edit xml you need to remove the arsc or dex from the apk before you recompile.
you can ask here - lots of great help there, including tommyt
http://forum.xda-developers.com/showthread.php?t=1320891
hackit said:
Hi everyone, i used to tommytomatoes linux software to work on framwork and com.htc.resource files and all seemed to go fine with tommy's tools. no errors.
i pushed them to my phone and then installed them using adb.
i restart the phone and end up in a bootloop.
all i did was edit the colors.xml file to change the color and nothing else, no images, not a thing.
is there a way to figure out what is wrong with the 2 apk's i edited?
Thanks for any and all assistance, xml editing is killing me.
Click to expand...
Click to collapse
If any .xml's are edited, before you recompile the .apk, you should remove the resources.arsc file. Then, compile.
^^^ that thanks, I couldn't remember lol.
pinky059 said:
If any .xml's are edited, before you recompile the .apk, you should remove the resources.arsc file. Then, compile.
Click to expand...
Click to collapse
il Duce said:
^^^ that thanks, I couldn't remember lol.
Click to expand...
Click to collapse
where is the resource.arc file i have looked in the decompiled apk and i dont see it, but i see it in one that i havent decompiled?
ok i keep getting stuck bootlooping.
I have removed the resources.arsc file and lef tit in and either way it's the same, all i'm editing is the colors.xml and nothing else.
If i post my colors.xml and the apk can you maybe try it and see if you can do it?
Thanks to anyone willing to take the time to do this.
Kev
dased14 said:
where is the resource.arc file i have looked in the decompiled apk and i dont see it, but i see it in one that i havent decompiled?
Click to expand...
Click to collapse
it build when you compile - then delete from "keep" or whatever before you "finish" (in apkmanager anyway)
hackit said:
ok i keep getting stuck bootlooping.
I have removed the resources.arsc file and lef tit in and either way it's the same, all i'm editing is the colors.xml and nothing else.
If i post my colors.xml and the apk can you maybe try it and see if you can do it?
Thanks to anyone willing to take the time to do this.
Kev
Click to expand...
Click to collapse
post your exact edits, and you MUST remove arsc when edited xml, and your apk here with what you're trying to do >>
http://forum.xda-developers.com/showthread.php?t=1320891

[Q][YP-GS1]how do i make the battery percentage make it update every 1%? not every 20

How do i make the battery percentage update every 1%? cuz my device updates it every 20% of the battery. using' yp-gs1 eu'
Sorry, thats not possible. It's a thing the Samsung Bootloader "SBL" manages.
Androthan said:
Sorry, thats not possible. It's a thing the Samsung Bootloader "SBL" manages.
Click to expand...
Click to collapse
I think he's talking about the battery indicator in the status bar. You have to modify the xml files related to the battery indicator in the framework-res.apk and put the valid images in the drawable folder You must, however, have basic knowledge of decompiling/compiling apk files. There might be a ROM based on your firmware whose framework-res.apk you can use, or there are multiple guides you can google for, and modify your own.
drakonizer said:
I think he's talking about the battery indicator in the status bar. You have to modify the xml files related to the battery indicator in the framework-res.apk and put the valid images in the drawable folder You must, however, have basic knowledge of decompiling/compiling apk files. There might be a ROM based on your firmware whose framework-res.apk you can use, or there are multiple guides you can google for, and modify your own.
Click to expand...
Click to collapse
Yup im talking about battery icon on status bar. Ive searched some guides. I already have images to replace the icons etc. And ive come to point where i should edit xml, but i cant open the xml file. I tried notepad++, notepad, xml editors online. But no good, or im not really allowed to open it? any help would be great!
kryptonify said:
Yup im talking about battery icon on status bar. Ive searched some guides. I already have images to replace the icons etc. And ive come to point where i should edit xml, but i cant open the xml file. I tried notepad++, notepad, xml editors online. But no good, or im not really allowed to open it? any help would be great!
Click to expand...
Click to collapse
You have to decompile the apk first. Use apktool to decompile and then open the xmls using Notepad++.
drakonizer said:
You have to decompile the apk first. Use apktool to decompile and then opne the xmls using Notepad++.
Click to expand...
Click to collapse
Oh ok, cuz i used winrar to extract the xml file/s. im gonna try to use apktool.

Remove big ugly network status (G,3G,4G) icons / text from chinese rom (Nougat)

Please help me to remove big ugly icons or text (not sure) from rom status bar on Nougat. I have tried everything, Gravitybox, substratum etc.. . I can change network signal strenght, battery, wi-fi and every other icon on status bar, but I can't remove this ugly ugly ugly 4G. This rom has SystemUi Tuner, but there only have option to disable Cellular data icon, but that way it doesn't show signal strenght.
I have Vernee Mars with rooted stock rom Android 7.0.
scytalemk said:
Please help me to remove big ugly icons or text (not sure) from rom status bar on Nougat. I have tried everything, Gravitybox, substratum etc.. . I can change network signal strenght, battery, wi-fi and every other icon on status bar, but I can't remove this ugly ugly ugly 4G. This rom has SystemUi Tuner, but there only have option to disable Cellular data icon, but that way it doesn't show signal strenght.
I have Vernee Mars with rooted stock rom Android 7.0.
Click to expand...
Click to collapse
These are on your drawable folder in SystemUI.apk. stat_sys_data_fully_connected_4g.xml, etc. Try changing the width and height to 0..0dip.
Tulsadiver said:
These are on your drawable folder in SystemUI.apk. stat_sys_data_fully_connected_4g.xml, etc. Try changing the width and height to 0..0dip.
Click to expand...
Click to collapse
What to change here?
scytalemk said:
What to change here?
Click to expand...
Click to collapse
You didn't decompile your Systemui.apk properly. To make these edits you have to decompile, edit, then recompile it back.
Try flashing this for now and see if it works. Visit this thread for a tool to help with all that.
https://forum.xda-developers.com/showthread.php?t=1633333
Make a backup first before flashing.
Tulsadiver said:
You didn't decompile your Systemui.apk properly. To make these edits you have to decompile, edit, then recompile it back.
Try flashing this for now and see if it works. Visit this thread for a tool to help with all that.
https://forum.xda-developers.com/showthread.php?t=1633333
Make a backup first before flashing.
Click to expand...
Click to collapse
Themer.zip didn't help. Big ugly $G is still there. I will try with tutorial.
scytalemk said:
Themer.zip didn't help. Big ugly $G is still there. I will try with tutorial.
Click to expand...
Click to collapse
Sounds good. It is a tutorial mainly with decompiling and recompiling. If you will upload your SystemUI I'll take a look.
Tulsadiver said:
You didn't decompile your Systemui.apk properly. To make these edits you have to decompile, edit, then recompile it back.
Try flashing this for now and see if it works. Visit this thread for a tool to help with all that.
https://forum.xda-developers.com/showthread.php?t=1633333
Make a backup first before flashing.
Click to expand...
Click to collapse
HUH! I DID IT!
I was not using TMA but only apktool, and I was using ES File explorer to extract framework-res.apk and SystemUI.apk. But it's ok now. I was hating my phone because that ugly big useless icons.
Thanks Tulsadiver!
Tulsadiver said:
Sounds good. It is a tutorial mainly with decompiling and recompiling. If you will upload your SystemUI I'll take a look.
Click to expand...
Click to collapse
OHH NO! I've rebooted the phone and now it's all black, like there is no SystemUI.apk. What did I wrong? I decompiled, changed, recompiled, signed SystemUI.apk and put it back to it's folder. Initially it was working, but after restart...
scytalemk said:
OHH NO! I've rebooted the phone and now it's all black, like there is no SystemUI.apk. What did I wrong? I decompiled, changed, recompiled, signed SystemUI.apk and put it back to it's folder. Initially it was working, but after restart...
Click to expand...
Click to collapse
You don't sign systemui.apk. you use the original meta-inf and Android.mainifest
Tulsadiver said:
You don't sign systemui.apk. you use the original meta-inf and Android.mainifest
Click to expand...
Click to collapse
OK. I have added original META-INF and AndroidManifest.xml to non-signed SystemUI.apk using 7-Zip, then created flashable zip using TMA, flashed it with TWRP, and now everything seems to be ok.
Thanks Tulsadiver.
please, can you upload the flashable zip you made for this?? I can"t get around TMA..
scytalemk said:
OK. I have added original META-INF and AndroidManifest.xml to non-signed SystemUI.apk using 7-Zip, then created flashable zip using TMA, flashed it with TWRP, and now everything seems to be ok.
Thanks Tulsadiver.
Click to expand...
Click to collapse
i have that problem also plz guys help

Categories

Resources