I just found the trick to manipulate carrier label on notification bar when I'm exploring decompiled stock based SystemUI.apk..
Wanna know how to do that ??
Check this out :
Here I'm using lidroid's modified SystemUI, should work on other stock based SystemUI
First you need to decompile your SystemUI.apk
Open res/layout/status_bar_tracking.xml with any good xml editor (here I'm using NP++)
Find this line:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="#ff33b5e5" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
and change to:
Code:
<textView android:text="@string/carrier_label" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="#ff33b5e5" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
Save
Now open res/values/strings.xml
Add this line above </resources> :
Code:
<string name="carrier_label">ENTER_YOUR_COOLEST_TEXT_HERE</string>
so it'll be looked a like this:
Code:
<string name="carrier_label">ENTER_YOUR_COOLEST_TEXT_HERE</string>
</resources>
p.s. : change the ENTER_YOUR_COOLEST_TEXT_HERE with your desired label
Now save
Recompile (build) your SystemUI.apk
Push to your phone and you are.......
Done !!
The result will be looked like this :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Mine :
Remember to
ALWAYS MAKE BACKUP !!
before doing anything above..
I don't responsible of any negative things like bootloop, bricked device, burned SD card, you late to go to school, or the third world war caused by the guide above..
You have been warned !!
Click to expand...
Click to collapse
Good luck..
thanks for sharing here at arc forums
Sent from my LT15i using Tapatalk 2
think this is nice.
Transparent States
hello
Any Guide to get transparent states Bar
gonemad02 said:
thanks for sharing here at arc forums
Sent from my LT15i using Tapatalk 2
Click to expand...
Click to collapse
no prob mate,
it nice to share things with other..
chauhanjayc said:
hello
Any Guide to get transparent states Bar
Click to expand...
Click to collapse
check ur status bar while lockscreen..
does ur status bar hid it's clock in lockscreen and show it again when ur phone unlocked ??
if yes then it's impossible to make it transparent (at least for me),
i've tried thousand times and using thousand tricks on the status bar like that but no luck..
if u'r not sure with my statement above, just attach ur SystemUI and i'll check whether i can make it transparent or not..
iiandskater said:
no prob mate,
it nice to share things with other..
check ur status bar while lockscreen..
does ur status bar hid it's clock in lockscreen and show it again when ur phone unlocked ??
if yes then it's impossible to make it transparent (at least for me),
i've tried thousand times and using thousand tricks on the status bar like that but no luck..
if u'r not sure with my statement above, just attach ur SystemUI and i'll check whether i can make it transparent or not..
Click to expand...
Click to collapse
attaching my systemUI
chauhanjayc said:
attaching my systemUI
Click to expand...
Click to collapse
sorry..
ur SystemUI hides it's clock in lockscreen (same as mine),
i can't make it transparent..
There's an app you can use for that.
No need to decompile SystemUI.apk
http://forum.xda-developers.com/showthread.php?t=901865
I'm using it right now on my arc
Excuse me
Did you know how to modify xperia phone stock lockscreen carrier label?
Is in framework-res?
Thanks your guide, It simple work for me. :good:
Related
im trying to change the stsus bar background.png i change the image in framework-res.apk/res/drawable-hdpi/status_bar_background.png but it didnt change background it is still white can someone lead me in the direction pls
oakieville said:
im trying to change the stsus bar background.png i change the image in framework-res.apk/res/drawable-hdpi/status_bar_background.png but it didnt change background it is still white can someone lead me in the direction pls
Click to expand...
Click to collapse
it's in SystemUI.apk/res/drawable-hdpi/statusbar_background.png
on sense anyway...
thank so much
Ok edited systemui.apk still didnt change back ground it is still white i can change the top bar where the clock and notifications are but i want to change the drop down back ground from white to a picture and cant figure out how pls help
You can change the background by changing shade_bg.png in res/drawable-hdpi in systemui.apk to the image you want
changing shade_bg.png didnt work either
Hmm are you on a sense rom? If you upload your systemui I will take a look. All I changed in mine was shade_bg and ill attatch a picture of my status bar
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my HTC EVO 3D X515m using XDA App
ya im on stock rooted 2.08.651.2
It must be different for cdma than gsm. take the original systemui from your rom (so it doesnt have anything changed) then try changing statusbar_background.png (like previously said) and also status_bar_background. in systemUI
thisisboo said:
It must be different for cdma than gsm. take the original systemui from your rom (so it doesnt have anything changed) then try changing statusbar_background.png (like previously said) and also status_bar_background. in systemUI
Click to expand...
Click to collapse
tried that no go, statusbar_background.png works but thats the bar where clock is, status_bar_background did nothing i changed status_bar_background in framework-res too
oakieville said:
tried that no go, statusbar_background.png works but thats the bar where clock is, status_bar_background did nothing i changed status_bar_background in framework-res too
Click to expand...
Click to collapse
Ok, first of all make sure you are on a deodexed rom, not odexed. Now, you will need to edit the status_bar_background.png (in SystemUI.apk) to the image that you want to use. Also, you will need to edit the status_bar_tracking.xml, telling it to use the status_bar_background.png as the background for your expanded status bar. So using my rom as an example, after I decompiled the SystemUI.apk I edited 2 lines in the status_bar_tracking.xml from this......
android:background="@drawable/list_item_background"
to this......
android:background="@drawable/status_bar_background"
This is how it looked when I was done.....
hockeyfamily737 said:
Ok, first of all make sure you are on a deodexed rom, not odexed. Now, you will need to edit the status_bar_background.png (in SystemUI.apk) to the image that you want to use. Also, you will need to edit the status_bar_tracking.xml, telling it to use the status_bar_background.png as the background for your expanded status bar. So using my rom as an example, after I decompiled the SystemUI.apk I edited 2 lines in the status_bar_tracking.xml from this......
android:background="@drawable/list_item_background"
to this......
android:background="@drawable/status_bar_background"
This is how it looked when I was done.....
Click to expand...
Click to collapse
thanks that did it
oakieville said:
thanks that did it
Click to expand...
Click to collapse
Glad to help.
Sent from my NookColor using xda premium
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello, i just try to make my phone like a phablet/tablet with 4.0.4 or 4.1.2 android os last time, but i don't know i can make it a simple or not.
But now i can make it a "pop up manipulation" with some background manipulation too. So, here we go the tutorial will start now!
The first of this tutorial you must know about :
1. How to decompile/compile the apk file (don't ask here, you can search on google how to do that)
2. How to coding a xml file with some code
3. You must have a Apktool/ApkManager/ToolAlite by KuyaGaol
4. You must have a JDK and Latest Net framework for run Apktool/ApkManager/ToolAlite by KuyaGaol
5. You must take a beer! lol
Oke the first method is :
1. Download my Floating.zip
2. Pull the Framework-res.apk and SystemUI.apk
3. Do "if framework" on your Apktool/ApkManager/ToolAlite by KuyaGaol
4. Decompile SystemUI.apk
5. Extract my Floating.zip to your drawable directory. (you can extract on "drawable" or "drawable-mdpi" folder).
6. Open status_bar.xml from /res/layout/here and find this code, modify and save :
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"
and add this line code :
Code:
android:background="@drawable/trans"
or paste my line :
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="#00000000" android:gravity="center" android:id="@id/date" android:background="@drawable/trans" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
7. Open status_bar_expanded.xml from /res/layout/here and find this code, modify and save :
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical"
and add this line code :
Code:
android:background="@drawable/bg"
or paste my line :
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:background="@drawable/bg" android:focusable="true" android:descendantFocusability="afterDescendants"
8. Open status_bar_tracking.xml from /res/layout/here and find this code. modify and save :
Code:
<View android:background="@drawable/shade_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0" />
and change to this line :
Code:
<View android:background="@drawable/shade_bg" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_weight="1.0" />
Find this line :
Code:
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
and change to this line :
Code:
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/trans" android:scaleType="fitXY" />
9. Recompile your SystemUI.apk project and push it to your phone to the /system/app directory
Note :
- If you have any error upload your log.txt here from apktool
- If you have a force close systemui upload your logcat here from your device
Thanks To :
- Rizalien
- Official Group Galaxy Young Indonesia
- Official Group Sony Xperia X8 Indonesia
- Tiny Anastasia Development Group
- DCSMS
- and YOU!
Once again an awesome job from you bro!! :good:
Many THANKS for this!
wow
nice i will try this one
Does it work on CM10
Sent from my E15i using xda premium
Does this work with Cm7
Sent from my E15i using xda app-developers app
akoypinoy said:
nice i will try this one
Click to expand...
Click to collapse
thx dont forget to if framework
Vardaan007 said:
Does it work on CM10
Sent from my E15i using xda premium
Click to expand...
Click to collapse
i dont know, cause i never try cm9/cm10. if you want to try just do it, dont forget to make a backup. if success with it, tell me asap so i will edit my post
petrukgrinder said:
thx dont forget to if framework
i dont know, cause i never try cm9/cm10. if you want to try just do it, dont forget to make a backup. if success with it, tell me asap so i will edit my post
Click to expand...
Click to collapse
OK i'll try it for you soon and tell you asap!!!!!!!:laugh::highfive:
Doubt + Thanks
Hi bro, 'if framework' command how it works?
I know how to decompile and edit an apk but, I have to copy an file to ApkTool dir?
Sorry my bad english and I hit button thanks
Is a question am asking if u can help..
Any status bar app for Android 2.1 e15i...Help
Sent from my E15i using xda app-developers app
andyblessing said:
Is a question am asking if u can help..
Any status bar app for Android 2.1 e15i...Help
Sent from my E15i using xda app-developers app
Click to expand...
Click to collapse
Use omega statusbar app from market..
cool
I'm using Galaxy Y
I'm using Galaxy Y, I am very interested in your status
Can you make me one for the Galaxy Y does not
Tks :good:
Noob question my statusbar dissapear,logcat say its about not match shared id bla bla.its my first xml editing.Tia
Im using galaxy y s5360 cm 7 by percy.
Sent from my GT-S5360
thank you bro!
Edit:how to move carrier label aka cyanogenmod 7 word to the bottom of floating png?thanks in advance
Sent from my GT-S5360
i have mod in cm7...but there are problem ...when click settings button to fc status bar
how can I solve problem...?
Thanks
aldzi said:
cool
Click to expand...
Click to collapse
can i get ur statusbar and lidroid-res.apk
Looks pretty awesome. I'm going to try if I can get it working on my Galaxy Young :fingers-crossed:
I'll try this at work. hope it will work with my sgy...
Sent from SgY Evo-x 4.2 using xda-developers app .... btw, i'm a girl, don't call me sir... ;p
Nice guide om, i'll try it for SGW :thumbup:
Network speed in the status bar(when connected data transfer or wi-fi)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
View attachment LGSystemUI.zip(P765 20C CIS deodex)
Decompile deodex LGSystemUI.apk
Transfer the files from the archive to a folder policy (smali\com\android\systemui\statusbar)
View attachment Traffic.zip
In status_bar.xml(res/layout) after row:
Code:
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:tag="NO_R2L" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
Paste:
Code:
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Sorry for my ENG
for JellyBean v1?
aSpirit81 said:
for JellyBean?
Click to expand...
Click to collapse
Yes
Sorry bro,i mean JellyCream V 1 ?
aSpirit81 said:
Sorry bro,i mean JellyCream V 1 ?
Click to expand...
Click to collapse
If you flash the zip, it will remove some features of LGSystemUI of JellycreamV1, so if you want this mod follow the steps.
Flashable zip file ?
@Lgeob: Can You just upload modified LGSystemUI.apk? Tutorial isn't clear for me. I used AndroidMultitool for decompile and compile. Isn't working.
Lysolus said:
@Lgeob: Can You just upload modified LGSystemUI.apk? Tutorial isn't clear for me. I used AndroidMultitool for decompile and compile. Isn't working.
Click to expand...
Click to collapse
Throw your deodex LGSystemUI.apk
Lysolus said:
Click to expand...
Click to collapse
Try this,remove LGSystemUI.odex.Backup do not forget
View attachment LGSystemUI.apk
After reboot "Unfortunately, the Interface has been stopped". I'm on Jelly Cream V1.
Lysolus said:
After reboot "Unfortunately, the Interface has been stopped". I'm on Jelly Cream V1.
Click to expand...
Click to collapse
Try this
View attachment LGSystemUI.apk
I use to build files apk ApkTool:
http://d-h.st/jyQ
Lysolus said:
After reboot "Unfortunately, the Interface has been stopped". I'm on Jelly Cream V1.
Click to expand...
Click to collapse
You can use Xposed mod http://forum.xda-developers.com/showthread.php?t=1574401 with GravityBox http://forum.xda-developers.com/showthread.php?t=2316070module, It will give you the same functionality what you want with many more other funtions like transparent statusbar etc. without modding your systemui.apk you can revert back to your original ui anytime, its much more covinienent then moding.. Hope it help you..
@Lgeob: Ohhh jeah! It works, thanks so much. One question. Can you change color to white, or quick tutorial? I'll be glad
@Codeplex: I know about xposed and gravitybox, i used this but changing position doesn't work. Anyway, thanks too
Lysolus said:
@Lgeob: Ohhh jeah! It works, thanks so much. One question. Can you change color to white, or quick tutorial? I'll be glad
Click to expand...
Click to collapse
Сlock also become white,In style.xml(res/values)
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
[COLOR="Red"]<item name="android:textColor">#ffffffff</item>[/COLOR]
Lgeob said:
Watch also become white,In style.xml(res/values)
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
[COLOR="Red"]<item name="android:textColor">#ffffffff</item>[/COLOR]
Click to expand...
Click to collapse
It help me so much Thanks again
How to add the Lockscreen Text to any lockscreen.
As most know I have implemented this feature inside the Touchwiz Resurrection rom for galaxy ace i.
As seen below.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Basicly this mod was very easy to add .
What is inside the resources.zip ?
LifeCompanionText.apk ( App to change the text )
LifeCompanion smalis for the framework.jar
SpaceFont.ttf for the CoolJazz font from S3/4
Basicly what you would need to do is:
Download Resources Attachement.
Extract it
Decompile you’re framework.jar
Go to the extract smali folder from the resources.zip and copy the smali folder to the smali folder of you’re framework.jar.
Compile framework.jar
Now we are going to add it to the frameworks location/allocate the text.
Decompile framework-res.apk
Find a lockscreen layout to you’re likes.
I used “zzz_keyguard_screen_clockwidget.xml” but you would be able to put it inside : “keyguard_screen_tab_unlock.xml” for the normal sliding tab lockscreen and such.
Open the layout you wanted and simply add this line above the clock layout or where you want
Code:
<com.touchwizres.lifecompaniontext.LifeCompanionTextView android:textSize="40.0dip" android:textColor="#ffffffff" android:id="[COLOR="RoyalBlue"]@id/life_companion_tag[/COLOR]" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#7f000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
I placed this code just below
Code:
<view android:gravity="left" android:orientation="vertical" android:id="@id/clock_time_and_date" android:paddingLeft="7.0dip" android:paddingTop="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" class="com.android.internal.policy.impl.ClockWidget$TimeAndDate">
of the "zzz_keyguard_screen_clockwidget.xml"
Add this to the ids.xml
Code:
<item type="id" name="[COLOR="RoyalBlue"]life_companion_tag[/COLOR]">false</item>
Compile framework-res.apk
Decompile ur compiled framework-res.apk
Now we are going to fix the ID Values. From the smali .
Decompile ur compiled framework.jar
Open
Code:
com/touchwizres/lifecompaniontext/[COLOR="RoyalBlue"]LifeCompanionTextView.smali[/COLOR]
that’s inside the framework.jar
Find
Code:
const v3, 0x[COLOR="Red"]10202cc[/COLOR]
This is the “life_companion_tag” ID (
Code:
<public type="id" name="life_companion_tag" id="0x0[COLOR="Red"]10202cc[/COLOR]" />
) inside public.xml
We need to fix this to yours
Now when u have changed the code from 0x10202cc to something like 0x1020299 or something depends on ur framework-res.apk
U can compile the framework.jar
Now zip the files together and make sure these are set properly.
SpaceFont.ttf inside /system/fonts/**
LifeCompanionText.apk inside /system/apps/**
And then ofcourse you’re modified framework.jar and framework-res.apk inside /system/framework/**
Now you are done
Happy modding
On what roms can u apply this mod ?
Basicly it can be applied to ALL Roms atleast if u know what u are doing.
As Most of you all know i am a HUGE HUGE Open Source fan so in this case i fully opensourced this aswell
Here is the sourcecode: https://github.com/spacecaker/LifeCompanionLockscreentext
Import in Eclipse.
Compile app.
Export unsigned apk.
Sign apk.
Decompile apk.
Retrieve ur smali codes.
Implement in framework
Some helpers who helped me on some knowledge and ideas:
B16H22
MarioZaWa
Pineappleowl
and testers
It is just awesome! :thumbup:
Sent from my GT-S5360 using Tapatalk 2
nice guide. will try it
Can i include it in my ROM ? I need your permission
bangprovn said:
Can i include it in my ROM ? I need your permission
Click to expand...
Click to collapse
sure
Working perfectly in AOSP.
MuSaddiq said:
Working perfectly in AOSP.
Click to expand...
Click to collapse
Nice to see that someone else except me has implemented it and did it correctly to :thumbup:
Sent from my S500 using xda app-developers app
@SpaceCaker it will work on jellybean?
ocoot said:
@SpaceCaker it will work on jellybean?
Click to expand...
Click to collapse
AFAIK, It should work on jelly bean too.
MuSaddiq said:
AFAIK, It should work on jelly bean too.
Click to expand...
Click to collapse
looping on boot animation. i think i need to check my code again
Sent from my GT-S6310 using Tapatalk
ocoot said:
looping on boot animation. i think i need to check my code again
Sent from my GT-S6310 using Tapatalk
Click to expand...
Click to collapse
ur code either failed
or ID/ const value wrong
or forgot fonts
Sent from my S500 using xda app-developers app
ocoot said:
@SpaceCaker it will work on jellybean?
Click to expand...
Click to collapse
works on JB
should work on any rom
SpaceCaker said:
works on JB
should work on any rom
Click to expand...
Click to collapse
This mod is cool.Btw i want to ask is there any mod to change backgrounds of lockscreen for use in lidroid ,aosp etc
Sent from my GT-S5360 using Tapatalk 2
SpaceCaker said:
works on JB
should work on any rom
Click to expand...
Click to collapse
ok it works well
san122 said:
This mod is cool.Btw i want to ask is there any mod to change backgrounds of lockscreen for use in lidroid ,aosp etc
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
i am working on that
but should be possible
Great guide sir!
Works flawlessly.
Pinadala mula sa aking Kalawakan Y gamit ang Tapatalk 2
SpaceCaker said:
i am working on that
but should be possible
Click to expand...
Click to collapse
btw, you know how to make lockscreen transparent on JB? trying with another guide i have but still not work
ocoot said:
btw, you know how to make lockscreen transparent on JB? trying with another guide i have but still not work
Click to expand...
Click to collapse
nah not really
i did it on JB Java source once but removed it
Hi Geeks
Here's a small tutorial to provide colorization to Battery,Data Usage and Ram bar
Requirements:
1. Apktool or derivatives
2. Settings.apk
3. A good text editor
4.A framework with colorizable support . Link for framework . || Link for tut by BDFreak
5. Little common sense,as always
Click to expand...
Click to collapse
Tutorial:
1. Decompile Settings.apk
2. Download the Tutorial.zip in attachments View attachment Color_Settings_tut.zip
3. Replace the LinearColorBar.smali from downloads into your smali\com\android\settings\applications folder
4. Place the sonymobile folder inside smali\com.
This will make your Ram Curve color changing according to theme accent.
5. Now, downloaded zip inside resources and paste the three pngs inside res drawable-nodpi or drawable-hdpi folder of your Settings.
semc_progress_bg_holo_dark.9.png
semc_progress_primary_holo_dark_colored.9.png
semc_progress_secondary_holo_dark_colored.9.png
Click to expand...
Click to collapse
6. Now, go to res/drawable folder and open data_usage_bar.xml and replace everything with this code
PHP:
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background" android:drawable="@drawable/semc_progress_bg_holo_dark" />
<item android:id="@android:id/secondaryProgress">
<scale android:drawable="@drawable/semc_progress_secondary_holo_dark" android:scaleWidth="100%" />
</item>
<item android:id="@android:id/progress">
<scale android:drawable="@drawable/semc_progress_primary_holo_dark" android:scaleWidth="100%" />
</item>
</layer-list>
7. Now write a NEW xml named semc_progress_primary_holo_dark.xml inside res/drawable and paste the code
PHP:
<?xml version="1.0" encoding="utf-8"?>
<colorizable android:drawable="@drawable/semc_progress_primary_holo_dark_colored" android:color="@color/theme_accent"
xmlns:android="http://schemas.android.com/apk/res/android" />
8. Now write a NEW xml named semc_progress_secondary_holo_dark.xml inside res/drawable and paste the code
PHP:
<?xml version="1.0" encoding="utf-8"?>
<colorizable android:drawable="@drawable/semc_progress_secondary_holo_dark_colored" android:color="@color/theme_accent"
xmlns:android="http://schemas.android.com/apk/res/android" />
This will add colorization for the battery and data usage bar.
9. Go to res/values/colors.xml and add this color
PHP:
<color name="theme_accent">@com.sonyericsson.uxp:color/semc_theme_accent_color</color>
10. Open apktool.yml and it should have the following code
Code:
...
usesFramework:
ids:
- 1
[COLOR="Red"]- 2[/COLOR]
...
For an apk to take colorizable attributes from SemcGeneric it should be declared in apktool.yml.
Here -2 ids means SemcGenricUxpRes.apk
9. Recompile Settings.apk and Done!
Click to expand...
Click to collapse
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Hit Thanks if you like my work and always mention in credits when you use it!
Interesting tutorial. I will try it on Fluorescent Feather and tell you if it works .
You rock dude. Nice tutorial. And useful too. Keep giving us such things.
Nice tutorial, already implemented on Nextgen update
Nice Tutorial bro... :good: :highfive:
karandpr said:
Interesting tutorial. I will try it on Fluorescent Feather and tell you if it works .
Click to expand...
Click to collapse
Am waiting for your respose
BDFreak said:
You rock dude. Nice tutorial. And useful too. Keep giving us such things.
Click to expand...
Click to collapse
Thank you Bd,your tuts also helped!
Ayush Singh said:
Nice tutorial, already implemented on Nextgen update
Click to expand...
Click to collapse
Wow! Thats amazing.
Aneel said:
Nice Tutorial bro... :good: :highfive:
Click to expand...
Click to collapse
Thank you
Aweeeeeeeeeesome tutorial.
Definitely one to try.
PS: Can you make a tutorial on colorized check boxes/radio buttons?
NeoTrix said:
Aweeeeeeeeeesome tutorial.
Definitely one to try.
PS: Can you make a tutorial on colorized check boxes/radio buttons?
Click to expand...
Click to collapse
Refer to the tut by BdFreak linked in the OP
That should help
Not managed to make the tut. Can you help me? :crying:
nice tutor bro...thanks...
I still can not :/
Sent from my C5303 using XDA Free mobile app
I've tried it but it did not work for samsung galaxy young s6310 4.1 jb
please guide for touchwiz 4.1 jb..
takurcuy69 said:
I've tried it but it did not work for samsung galaxy young s6310 4.1 jb
please guide for touchwiz 4.1 jb..
Click to expand...
Click to collapse
Its for Xperia Devices mate
Needs an Xperia Framework
nice