Hey guys -
Here are flashable zips to swap the back button with the recent keys. This is a pretty simple modification but I wanted to bring it together in a clean thread here for anyone who is interested in the modification. I eventually just figured this out myself after nothing was available in custom ROMs for quite some time.
For those who are curious what all is changed, here are the here are the basics. This is the first attempt I've ever made at doing anything like this so I apologize if something doesn't look right but here is what I did. You will need to get apktool then do this:
1) Download SystemUI.apk and framework-res.apk to computer
2) apktool if framework-res.apk
3) apktool if SystemUI.apk
4) apktool d SystemUI.apk
5) Modify SystemUI\res\layout\navigation_bar.xml
Here is the stock snippet for reordered:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true">
<View android:visibility="invisible" android:layout_width="40.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" />
<FrameLayout android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:layout_weight="0.0">
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/ime_switcher" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_ime_switcher_default" android:scaleType="centerInside" android:contentDescription="@string/accessibility_ime_switch_button" />
</FrameLayout>
</LinearLayout>
6) apktool b SystemUI
7) copy SystemUI.apk from SystemUI\dist
There are 4 zip files. A modify and restore for both rastapop and stock 5.01.
** BE SURE TO WIPE DALVIK/CACHE AFTER FLASHING
Zenoran said:
Hey guys -
Here are flashable zips to swap the back button with the recent keys. This is a pretty simple modification but I wanted to bring it together in a clean thread here for anyone who is interested in the modification. I eventually just figured this out myself after nothing was available in custom ROMs for quite some time.
For those who are curious what all is changed, here are the here are the basics. This is the first attempt I've ever made at doing anything like this so I apologize if something doesn't look right but here is what I did. You will need to get apktool then do this:
1) Download SystemUI.apk and framework-res.apk to computer
2) apktool is framework-res.apk
3) apktool is SystemUI.apk
4) apktool d SystemUI.apk
5) Modify SystemUI\res\layout\navigation_bar.xml
Here is the stock snippet for reordered:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true">
<View android:visibility="invisible" android:layout_width="40.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" />
<FrameLayout android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:layout_weight="0.0">
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/ime_switcher" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_ime_switcher_default" android:scaleType="centerInside" android:contentDescription="@string/accessibility_ime_switch_button" />
</FrameLayout>
</LinearLayout>
6) apktool b SystemUI
7) copy SystemUI.apk from SystemUI\dist
There are 4 zip files. A modify and restore for both rastapop and stock 5.01.
** BE SURE TO WIPE DALVIK/CACHE AFTER FLASHING
Click to expand...
Click to collapse
Love this Mod, any chance you will take request? Say SlimLP or LoliPop Dream? That would be awesome. I will happily provide the system files.
[email protected] said:
Love this Mod, any chance you will take request? Say SlimLP or LoliPop Dream? That would be awesome. I will happily provide the system files.
Click to expand...
Click to collapse
Probably not due to the amount of time it takes to properly build and test things to the point where I'm comfortable posting it. There were some weird things with the framework after boot creating some unique properties of one of the apks making the mod specific to that installation. I had to pull files from recovery prior to boot to make the modded zip work for fresh installs and I don't know enough about why. But basically that means reflashing my device and testing multiple times to make sure it works so it's very time consuming.
If I have the time, I'll do requests in my free time. Finals are starting to come to a close if thats okay with OP.
Any way to get a menu button on the far right. That's about the only mod I'm really waiting for. Know your all busy with life so I'm just puttin it out there. Hehe. Happy holidays everyone.
Any screen shots of the icons? Thx
Via my NeXus™ 6 on Tapatalk⁴
{
"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"
}
There you go
---------- Post added at 07:26 AM ---------- Previous post was at 07:23 AM ----------
Also a note. Make sure you are fully flashed, meaning ROM, Gapps, and Kernel, before you flash. Boot up, then flash this mod. I had issues if I tried to do them all at once. Just an FYI.
---------- Post added at 08:14 AM ---------- Previous post was at 07:26 AM ----------
zephiK said:
If I have the time, I'll do requests in my free time. Finals are starting to come to a close if thats okay with OP.
Click to expand...
Click to collapse
I'd Love that, If I test / assist, let me know.
I'm desperate for SlimLP and LoliPop Dream, but I am an addict, so ANY that you throw our way would be awesome. Thanks
zephiK said:
If I have the time, I'll do requests in my free time. Finals are starting to come to a close if thats okay with OP.
Click to expand...
Click to collapse
Fine by me! That's why I provided the steps to recreate so people can do whatever they want.
I'm going to give this a try once I get lunch and establish the environment. Instructions seem simple enough, I just have to set up apktool environment, the one I had previously doesn't install the framework probably because its not updated for Lollipop so I'll have to do that.
I did check up into it, oddly enough apktool_2.0.0rc3.jar and using apktool bat doesn't provide "is" as a valid input but is showing up in command prompt with the list of usages. I'll have to look more into it once I get food, im starving.
Edit: I got it, didn't use OP's instructions but did it the way I normally mod apks. Just had to update the apktool for the tool I used to decompile Lollipop apks.
Going to flash the new LiquidSmooth and then apply the mod and I'll report back on testing then I can take requests.
I wish Lollipop didn't hide all the contents of the ROM. It used to be a lot easier since I can extract the apks without installing the ROM.
And it's good to go. Upload framework-res.apk and systemui.apk and I'll fulfill some requests include ROM name.
Sent from my Nexus 6 using Tapatalk
Edit:
LiquidSmooth 12/19/2014 Only: https://www.androidfilehost.com/?fid=95864024717066420
Thank you for taking on this project !!
https://drive.google.com/folder/d/0B_g_T_jTM-hkaHVWcENpVE9Tb00/edit
---------- Post added at 01:59 PM ---------- Previous post was at 01:56 PM ----------
zephiK said:
And it's good to go. Upload framework-res.apk and systemui.apk and I'll fulfill some requests include ROM name.
Sent from my Nexus 6 using Tapatalk
Edit:
LiquidSmooth 12/19/2014 Only: https://www.androidfilehost.com/?fid=95864024717066420
Click to expand...
Click to collapse
[emoji1]
[email protected] said:
Thank you for taking on this project !!
Click to expand...
Click to collapse
What version is this for?
zephiK said:
What version is this for?
Click to expand...
Click to collapse
lollipopdream_aosp_shamu-20141211.zip
for the*Google Nexus 6, by*upndwn4par
---------- Post added at 02:42 PM ---------- Previous post was at 02:42 PM ----------
Build 7
Could anyone do a build for Pure Shamu? Or has anyone tested it on Pure Shamu yet?
Sent from my Nexus 6 using XDA Free mobile app
[email protected] said:
lollipopdream_aosp_shamu-20141211.zip
for the*Google Nexus 6, by*upndwn4par
---------- Post added at 02:42 PM ---------- Previous post was at 02:42 PM ----------
Build 7
Click to expand...
Click to collapse
Lollipop Dream Build 7: https://www.androidfilehost.com/?fid=95864024717066505
Not tested, should work though, I'm 99% certain. Report back
dambrosioj said:
Could anyone do a build for Pure Shamu? Or has anyone tested it on Pure Shamu yet?
Sent from my Nexus 6 using XDA Free mobile app
Click to expand...
Click to collapse
None of the zips will work for Pure Shamu as each ROM as their own SystemUI / Framework which are core fundamentals of a ROM. Upload the two files from your ROM and I'll do it for your ROM.
I can mass produce these in less a minute, fairly simple to do.
zephiK said:
Lollipop Dream Build 7: https://www.androidfilehost.com/?fid=95864024717066505
Not tested, should work though, I'm 99% certain. Report back
None of the zips will work for Pure Shamu as each ROM as their own SystemUI / Framework which are core fundamentals of a ROM. Upload the two files from your ROM and I'll do it for your ROM.
I can mass produce these in less a minute, fairly simple to do.
Click to expand...
Click to collapse
You're 99% right, as you can see below. First is at 493 DPI, next is 560, its a bit to the right
493
560
I'm totally psyched with this mod!!!!
The only problem I have which I'm sure I can fix is if the phone is in Landscape mode, it still follows the Back Home Recents format.
I'll work on that sometime later (enjoying my day after a tough week of finals)
Can't get it to work with the Pure Shamu 3.2 ROM. Just keep getting the never ending System UI crashes.
Perhaps it's also due to me having the Dark Theme mod installed as well??
Baldilocks said:
Can't get it to work with the Pure Shamu 3.2 ROM. Just keep getting the never ending System UI crashes.
Perhaps it's also do to me having the Dark Theme mod installed as well??
Click to expand...
Click to collapse
As I mentioned earlier,
None of the zips will work for Pure Shamu as each ROM as their own SystemUI / Framework which are core fundamentals of a ROM. Upload the two files from your ROM and I'll do it for your ROM.
I can mass produce these in less a minute, fairly simple to do.
Click to expand...
Click to collapse
Upload Pure Shamu 3.2 ROM Framework-res.apk and SystemUI.apk and then I'll mod it.
Baldilocks said:
Can't get it to work with the Pure Shamu 3.2 ROM. Just keep getting the never ending System UI crashes.
Perhaps it's also due to me having the Dark Theme mod installed as well??
Click to expand...
Click to collapse
If you are looking for this to work on Pure, you should upload the requested files that ZephiK had mentioned in this post. Both the op and zephiK are awesome for doing this.
zephiK said:
And it's good to go. Upload framework-res.apk and systemui.apk and I'll fulfill some requests include ROM name.
Sent from my Nexus 6 using Tapatalk
Edit:
LiquidSmooth 12/19/2014 Only: https://www.androidfilehost.com/?fid=95864024717066420
Click to expand...
Click to collapse
---------- Post added at 04:23 PM ---------- Previous post was at 04:22 PM ----------
Oops
---------- Post added at 04:36 PM ---------- Previous post was at 04:23 PM ----------
Strangely, I'm fine with the back being on the bottom in landscape, odd.
Related
In some of the ROM's I've seen here the lockscreen is transparent, but in the ROM I use it's not, and I should like to know how to make it transparent.
If this would involve downloading source code, changing it and recompiling it, just let me know and I'll forget about it for now, but if it's something that a relative beginner might be able to accomplish then any pointers would be appreciated.
TheGrammarFreak said:
In some of the ROM's I've seen here the lockscreen is transparent, but in the ROM I use it's not, and I should like to know how to make it transparent.
If this would involve downloading source code, changing it and recompiling it, just let me know and I'll forget about it for now, but if it's something that a relative beginner might be able to accomplish then any pointers would be appreciated.
Click to expand...
Click to collapse
2.03 Roms have a broken vanilla lockscreen which look 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"
}
This lockscreen has the trasparency and can be changed editing keyguard_screen_tab_unlock.xml in framework-res.apk (You need to deassemble with apktool).
You can change color and trasparency by changing the ARGB color highlighted down here.
If you refer to CyanogenMod or other Vanilla (from source) i can't confirm that changing the highlighted part of that xml will help (i don't know if there is a class which create the RelativeLayout and apply a background somewhere outside the xml) .
Code:
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout android:gravity="center_horizontal" android:id="@id/root" [B]android:background="#DC000000"[/B] android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock">
<TextView android:textAppearance="?textAppearanceMedium" android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="52.0dip" android:layout_marginBottom="10.0dip" android:layout_below="@id/carrier">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="72.0sp" android:gravity="bottom" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:gravity="bottom" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="8.0dip" android:layout_marginBottom="-6.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
</com.android.internal.widget.DigitalClock>
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_below="@id/time" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/date" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/status2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/status1" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/screenLocked" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="12.0dip" android:layout_below="@id/status2" />
<com.android.internal.widget.SlidingTab android:orientation="horizontal" android:id="@id/tab_selector" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="80.0dip" android:layout_alignParentBottom="true" />
<Button android:id="@id/emergencyCallButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="8.0dip" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_below="@id/screenLocked" style="@style/Widget.Button.Transparent" />
</RelativeLayout>
Well, I'll give it a shot, and let y'all know. We'll see what happens. I assume it's a boot into recovery and then use ADB pull to get the apk? And then push it back when when I've finished?
EDIT:
Well, I've pulled the APK, edited the file and am now backing up my phone before I push it back. I hope this works...
EDIT 2:
Well, I tried, and failed. It got stuck in a bootloop... I just pushed the original framework-res.apk back to get back to a working system.
TheGrammarFreak said:
Well, I'll give it a shot, and let y'all know. We'll see what happens. I assume it's a boot into recovery and then use ADB pull to get the apk? And then push it back when when I've finished?
EDIT:
Well, I've pulled the APK, edited the file and am now backing up my phone before I push it back. I hope this works...
EDIT 2:
Well, I tried, and failed. It got stuck in a bootloop... I just pushed the original framework-res.apk back to get back to a working system.
Click to expand...
Click to collapse
Read your logcat, it will give you advices on what's wrong.
Did you signed framework-res.apk with fakesign?
You could try to make a small update.zip and flash it instad of pushing.
Ok, well I'll look at into logcat.
I didn't know I had to sign it, I'll do that too. <-- How? A Google search yielded little,unless I was looking for the wrong thing
And I'll look into update.zip's later. Thanks for all your help.
EDIT:
Well, I had a go with logcat, and none of it means anything to me. I'll keep trying though. I may have filtered the wrong things. The thing is I'm not quite sure what I'm looking for. Oh well, I'll get there eventually. Doing this makes me realise how great ROM developers are...
Thanks again for your help with this
I've been trying hard with no luck.
The ROM I'm using is Azure (0.5), if anyone has any ideas on how to go about making the lockscreen I would be grateful for the help.
Cheers.
You can't push files to the system partition, we don't quite have access to it yet.... your best bet is to create an update zip and clockwork it in as mentioned above....
Sent from my Legend using XDA App
Quanny2000 said:
You can't push files to the system partition, we don't quite have access to it yet.... your best bet is to create an update zip and clockwork it in as mentioned above....
Sent from my Legend using XDA App
Click to expand...
Click to collapse
Well, I do it with my phone in clockworkMOD recovery, with /system mounted, and it seems to work fine...
where 2 find non-transparent screen lock
im pretty new to all this and am not that technical, so please bear with me
i have successfully rooted my legend and have installed custom rom speedlegend v.06
it comes with a lockscreen which is transparent.
i dont like the transparency and was wondering if you could point me in the direction of the link where i can find the lockscreen w/o a transparency?
id be happy with juz a black background with the clock and unlock and silent buttons
im not confident enough with coding or messing with coding to try and manually edit it
on a side note, do you think there would be any way to change the sliding "sound off" tab to make it enter vibration mode rather than no ring at all?
thanks in advance!
r3ptil3 said:
im pretty new to all this and am not that technical, so please bear with me
i have successfully rooted my legend and have installed custom rom speedlegend v.06
it comes with a lockscreen which is transparent.
i dont like the transparency and was wondering if you could point me in the direction of the link where i can find the lockscreen w/o a transparency?
id be happy with juz a black background with the clock and unlock and silent buttons
im not confident enough with coding or messing with coding to try and manually edit it
on a side note, do you think there would be any way to change the sliding "sound off" tab to make it enter vibration mode rather than no ring at all?
thanks in advance!
Click to expand...
Click to collapse
Well, if you follow the instruction up there ^ and set it all to #00000000 you'll get a black background.
I was about as noob as you when I tried to do it first (it was about my 3rd post), it's easy. You'll be fine.
i found a guide in the Nexus S forums to Add date to the top bar. (and removed from dropdown)
ported to ICS SGS project (AOSP ICS) for captivate by ME!!!
DOWNLOADS AT BOTTOM OF 1st POST
built on RC3.1 but will work on all versions. no ICSSGS release is perfect, so not going to worry about multiple versions unless I feel there is a real reason to.
made the zip to delete .odex file as this apk is de-odexed. so IT WORKS ON BOTH!!!
Battery mod included.
Right Hand Date ( Giggidy.. I had a right hand date last night..)
{
"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"
}
Centered Date/Time - smaller font
Made to work with trial and error combining two mod guides... and changing font size to 12. that was all me!
http://forum.xda-developers.com/showthread.php?t=1491887
http://forum.xda-developers.com/showthread.php?p=19760562#post19760562
Note: if you enable every statusbar icon(bt, vibrate,alarm,wifi etc) it will look messy cause the clock overlapse the icons...
Enjoy the Effin Mods!!
edits posted below.. the centre mod took a bit of playing around, original date centering guide was for AOKP (kang project) not AOSP (had centred time to begin with)
1. TO ADD DATE:
You have to decompile SystemUI.apk
Go to file: SystemUI.apk\res\layout\status_bar.xml
find the line looks like this... (line 15 ish..)
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
change androidaddingLeft= to "4.0dip"go to the beginning of the clock code and insert a line above it, paste this line above clock code
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
so it will look like this.... (keeping spacing in-line)
Code:
</LinearLayout>
[COLOR=Red]<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
</LinearLayout>
above in the original clock line, I set the
Code:
android:paddingLeft="4.0dip"
(was 6.0dip) to the same value as date, so they have the same space at the left.
With this setup, you will always see date and then clock at the right of the statusbar(I haven't test something else yet).
if you want to delete the date from the notification header, do the following:
in the file: SystemUI.apk\res\layout\status_bar_expanded.xml delete the following line
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
and in the line
Code:
<ImageView android:id="@id/settings_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_toRightOf="@id/date" android:contentDescription="@string/accessibility_settings_button" />
replace the
Code:
android:layout_toRightOf="@id/date"
with the following(it maybe not crucial, but I did it)
Code:
android:layout_alignParentLeft="true"
it should look something like that
the text size is probably looking different between date and clock, so in the file SystemUI.apk\res\values\styles.xml is the text size of both.
clock
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>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
and date
Code:
<style name="TextAppearance.StatusBar.Date" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
I changed both with
Code:
<item name="android:textSize">12.0sp</item>
HOW TO CENTER CLOCK/DATE AFTER FIRST MOD
2. CLOCK FIRST...
-navigate to your decompiled folder and go to res>layout>status_bar.xml
-look for this line:
Code:
<com.android.systemui.statusbar.policy.Clock
-delete the entire original clock line
-next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
-press "enter" to create an empty line
-place your cursor at the beginning of that empty line and paste this line of code:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
</LinearLayout>
-make sure everything lines up (see my xml below)
-lastly, find this line:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
-right after "@id/ticker" add this drawable:
Code:
android:background="@drawable/status_bar_bg_tile"
3. NOW DATE....
now find, copy & delete (or cut) the line we modded in 1st part (adding date):
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
and place it in the part pasted at the top, above the line...
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
so it will look like..... full xml - changes in RED..
Code:
<?xml version="1.0" encoding="utf-8"?><com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
[COLOR=#ff0000] xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">[/COLOR]
[COLOR=#ff0000] <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">[/COLOR]
[COLOR=#ff0000] <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />[/COLOR]
[COLOR=#ff0000] <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity "center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
[COLOR=#ff0000] </LinearLayout>[/COLOR]
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" [COLOR=#ff0000]android:background="@drawable/status_bar_bg_tile"[/COLOR]android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
reserved....
just in case have more mods...
Will this work on fuzion ics
Sent from my SGH-I897 using XDA App
I think fusion is built off of CM9. So it won't work. If it is built off ICS SGS then it will
Thanks a million TR...worked perfect on first try of both mods...nice work and I'll hit thanks when I get off work.
Sent from my SGH-I897 using XDA App
I'm not sure about the xda app but with tapatalk you are able to give thanks through the app, Same way you reply, click a post then click thanks
Its all good ....just got thanks taken care of.....ill keep an eye out for more updates from you.....later
REALLY SURPRISED this isn't more popular. I LOVE this mod
3 downloads?
Ima give this a try when i get home....
Awesome wallpaper mind sharing?
heres the wallpaper... but 1 sec i'll PM you "the.zip" file.
This is great thanks!
Sent from my SGH-I897 using XDA App
Love the way it looks. I am on the Kang CM9 RC0 right now and wish it worked on that. I assume if I flash it my stuff will be broken. So, I will wait for another version to magically appear somewhere maybe.
well if you use the guide part of the first post, and a little playing around, I'm sure it would be possible.
TRusselo said:
heres the wallpaper... but 1 sec i'll PM you "the.zip" file.
Click to expand...
Click to collapse
May I also get that "the.zip" file please?
TRusselo said:
well if you use the guide part of the first post, and a little playing around, I'm sure it would be possible.
Click to expand...
Click to collapse
I may mess around with and see what I can do. I love the way it looks. As a matter of fact if I could get this working I wouldn't need a huge widget on my main screen to display this info anymore. I have gone as far as extracting the xml files, but I am on a windows box and it doesn't like the XML format. Says it is corrupt, illegal characters etc. I will look around at some more of the modding guides and see if I can find a XML editor that will work. It seems most are still geared toward 2.2-2.2 versions of the OS. My knowledge is limited, as I am not a developer anyway.
Maybe I won't brick it.
I use windows only... Use notepad++ to edit... Anything...
And don't worry there is absolutely no risk of bricking your phone. At Worst, a bunch of force closes until you restore the original APK
Did you decompile APK properly? (right way) Or just use win rar? (wrong way). The winrar method will only work changing images
TRusselo said:
Did you decompile APK properly? (right way) Or just use win rar? (wrong way). The winrar method will only work changing images
Click to expand...
Click to collapse
Yeah, I seem to have taken a wrong turn with the winrar way. I saw information about apktool a few minutes ago and I just got it installed. So I will see if I can get to work this time through. Thanks for the info.
to de-compile ICS apks without error you will have to find the new updated AAPT.exe files and add them to the apktools ... ? bin folder??? er... sorry not at home. look through its folders and find the old one, and replace with new. ALSO add the updated AAPT files to " C:/Windows/ " as some times it will look for it there and other tools may install it there as well. I was unable to de-compile until i added it there.
APK_Manager ... er updated name...?? APK toolbox??
apktools...
xda auto-tools...
all does the same things and all need the aapt update to decompile ICS as they all use the same base tools through a different GUI...
--------------------------------------------------
1. SOFT POWER BUTTON
--------------------------------------------------
Today I will introduce about my new mod. This will add a soft lock button on your screen which help to decrease the usage of hard lock button
And another great thing is that this button has the same funtion with power button (hold to show power menu as well).
I'm on stock Bell 4.1.2 so the attached file below is only applied on Bell 4.1.2 deodexed only. U also may try on Mexican retail 4.1.2 and I think it should work. About 4.1.1 (Bell & ATT), I'm not sure so if anyone who is interested in, I will write a guide.
Note: About Back, Home, Task icons, I have used SoftkeyZ to change and forgot to go back to stock one before modding So if you want, search for the app and change it again. :">
Instruction:
- Put file in /system/app
- set permission: rw-r-r
Download: (see attachment)
Guide for doing this mod is in 2nd post below.
Here is 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"
}
-------------------------------------------------
5 SOFT KEY BUTTONS ( BACK, RECENT, HOME, SEARCH & MENU)
-------------------------------------------------
Here is the new mod as request from
It currently has a small limitation is that the search & menu button always show on lockscreen. I'm trying to figure out how to make it show only in homescreen. If anyone knows, plz tell me. Thank you.
Anw, enjoy this mod. Of course, this is for Bell 4.1.2 only I have no time to flash other stock firmware. I also attached the modded files for anyone want to compare and do this mod by themselves.
DOWNLOAD (see attachment)
INSTRUCTIONS:
- Put file in /system/app
- set permission: rw-r-r
SCREENSHOTS
Now I will write how to do this mod for your rom.
Requirement:
- Apktool (for decompile/compile) - If you dont have, go and download our Myth Tools here and install it.
- Notepad ++ (recommended or u can use other apps)
- Understanding about decompile/compile/replace file in system
- Deodexed system/rom/firmware
Target:
- We will modify SystemUI.apk
Instructions:
1. Pull your deodexed SystemUI.apk and use apktool to decompile it
2. Find "navigation_bar.xml" in \res\layout. Open it with Notepad ++
3. We need to modify 2 places in navigation_bar.xml:
- This place for screen when it's not rotation:
Code:
<FrameLayout android:id="@id/rot0" android:layout_width="fill_parent" android:layout_height="fill_parent">
- And this place for screen when it's rotation
Code:
<FrameLayout android:id="@id/rot90" android:paddingTop="0.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
4. In the 1st place, replace the code below (it's under "<LinearLayout..." line):
Code:
<View android:visibility="invisible" android:layout_width="40.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
with
Code:
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/lock" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
5. In the 2nd place, replace the code below (It's above the "</LinearLayout>" line)
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_back_land" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="40.0dip" android:layout_weight="0.0" />
with this one:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_back_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/lock" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="15.0dip" android:layout_weight="0.0" />
6. Now go to /value and open "ids.xml". Then add this line:
Code:
<item type="id" name="lock">false</item>
7. Next is editing "strings.xml" in /value. Add this line:
Code:
<string name="accessibility_lock">Lock</string>
8. Put the png file for lock image in the attachment below into /res/drawable-xhdpi. Or you can change it to ur image, it's up to u.
9. Compile and test.
Note: I also attached my navigation_bar.xml for you if you need it to compare.
Have fun with modding!
DK
Looks nice, and should come in handy to people with dis-functional power buttons. :good:
If only we could get an IOS6 style "Assistive touch" just like the one on the iPhone.
Codex01 said:
Looks nice, and should come in handy to people with dis-functional power buttons. :good:
If only we could get an IOS6 style "Assistive touch" just like the one on the iPhone.
Click to expand...
Click to collapse
Ya. I did this mod becoz all apps such as Toucher, Easy Touch...etc which look like "assistive touch" have problem with lockscreen funtion. After the screen turn off, it automatically turns on to lockscreen again. And that makes me mad =.='. So I decided to mod this one
Any guide to make it work on another rom,bro? This is so helpful to keep my power button.
Sent from my XT897 using Tapatalk 2
huatz84 said:
Any guide to make it work on another rom,bro? This is so helpful to keep my power button.
Sent from my XT897 using Tapatalk 2
Click to expand...
Click to collapse
I will write the guide when i come back home tonight
Sent from my MB886 using xda app-developers app
huatz84 said:
Any guide to make it work on another rom,bro? This is so helpful to keep my power button.
Sent from my XT897 using Tapatalk 2
Click to expand...
Click to collapse
Wrote the guide as ur request have fun!
devilsking said:
Wrote the guide as ur request have fun!
Click to expand...
Click to collapse
Thanks for the guide,bro.. I'll try it when I have much time.
I tested it. It works awesome.
wow, this is a great mod. very underated.
im surprised its not more in demand to have a MENU SOFT KEY, the stock navbar uses a lot of space and it can easily fit a softkey button for menu.
thanks again op, maybe you can add a matching menu (three dots) button in the nav bar section.
eugenile said:
wow, this is a great mod. very underated.
im surprised its not more in demand to have a MENU SOFT KEY, the stock navbar uses a lot of space and it can easily fit a softkey button for menu.
thanks again op, maybe you can add a matching menu (three dots) button in the nav bar section.
Click to expand...
Click to collapse
I think it's possible. As i Checked in code of menu button, it's only be invisible modify the code and it can be come visible. U can do it urself I'm busy these time and I dont know when I can do it
I'm an idiot... While wrestling my 2 year old to sleep, I applied the mod without renaming the original systemUI.apk... Now systemUI is dead, and I have no backup. Any chance someone could upload the stock AT&T systemUI.apk PLEASE?
I know... N00b move, but I blame the kid... Lol
Edit: extracted the apk from the rom zip and replaced modded apk. No go... Just gonna reflash and start from scratch... Ugh...
N7...'Nuff said...
http://android-gz.com
eugenile said:
wow, this is a great mod. very underated.
im surprised its not more in demand to have a MENU SOFT KEY, the stock navbar uses a lot of space and it can easily fit a softkey button for menu.
thanks again op, maybe you can add a matching menu (three dots) button in the nav bar section.
Click to expand...
Click to collapse
Done it as your request. Check the 1st post.
Thanks a lot,bro! Can I request advanced reboot on power menu?
huatz84 said:
Thanks a lot,bro! Can I request advanced reboot on power menu?
Click to expand...
Click to collapse
U means expanded power menu? For Bell 4.1.2? If yes, I already did and I will upload for u
devilsking said:
U means expanded power menu? For Bell 4.1.2? If yes, I already did and I will upload for u
Click to expand...
Click to collapse
Yeah,bro.. For Bell 4.1.2. Thanks a lot!
huatz84 said:
Yeah,bro.. For Bell 4.1.2. Thanks a lot!
Click to expand...
Click to collapse
Here u are. Flash it with cwm and remember to mount /system before flashing.
I changed some things in my framework-res (lockscreen mod) so if u want stock one, u can use myth tools to make it go back to default
http://d-h.st/Iwt
devilsking said:
Here u are. Flash it with cwm and remember to mount /system before flashing.
I changed some things in my framework-res (lockscreen mod) so if u want stock one, u can use myth tools to make it go back to default
http://d-h.st/Iwt
Click to expand...
Click to collapse
I also like the lockscreen mod. You are awesome,bro!! You can combine all your mods into a new stable ROM.
Here's my screenshot :
great work keep em coming
WOW!! THANK YOU SIR YOU ARE AWESOME!!
this should be implented in all roms for the atrix hd from now on its that awesome!!
How to Add BRIGHTNESS SLIDER TO NOTIFICATION PANEL for CM9 & CM10
Hi..Hi..Hello XDA , especially for Developer only
I want to share to you all how to add brigtness slider to notification panel for your Devices running CyanogenMod 9 & 10
Basically the guide is for Gingerbread, and I use all smali file and code from here http://forum.xda-developers.com/showthread.php?t=2152370
so full credit goes to evanlocked
I just made some change and fix to suit for Device running CM9 & CM10
WARNING !!!
But there is a little bug on this Mod, if you enable Automatic Brightness from your SETTINGS - DISPLAY -BRIGHTNESS - , the Brightness bar will dissappear from notification panel, and never want to show again, so make sure before and after applying this mod, never to do that
SEE THE SCREENSHOT :
{
"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"
}
If you can see, there is an Automatic brightness check box,
and the check box is only a fake check box, doesn't have accessibility to access Automatic brightness of our Device. so you are free to tick/check list it, and brightness slider will not dissapear.
ok lets go to Guide:
first of all need some requirement for this MOD-GUIDE
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else
STEP 1
Decompile your SytemUI.apk, go to
res/values/ids.xml
and add this line to the end
Code:
<item type="id" name="automatic">false</item>
NEXT - STEP -2
res/values/strings.xml
Add these two lines to the end
Code:
<string name="brightness_settings_automatic">AUTO</string>
<string name="brightness_settings_title" />
NEXT - STEP -3 for CM10
res/layout/status_bar_expanded.xml
and add the RED line code
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_widget_height" />
[COLOR="Red"]<include layout="@layout/adi_brightness" />[/COLOR]
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" android:gravity="center" android:id="@id/emergency_calls_only" android:paddingBottom="4.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="always">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
</ScrollView>
</LinearLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" android:src="@drawable/status_bar_close" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>
NEXT - STEP -3 for CM9
add the RED LINE
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="vertical" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="52.0dip">
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
<ImageView android:id="@id/settings_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_toRightOf="@id/date" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:id="@id/clear_all_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
</RelativeLayout>
[COLOR="Red"]<include layout="@layout/adi_brightness" />[/COLOR]
</LinearLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="top" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
</LinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.phone.ExpandedView>
NEXT - STEP -4
FOR CM9, YOU JUST SKIP THIS STEP-4 !!!
res/layout/status_bar_expanded_header
LINE xml 2
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" [COLOR="Red"]android:background="#ff000000"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
NEXT - STEP -5
Download the brightness bar source according to your device category :
Source_Brightness_HDPI
Source_Brightness_XHDPI
Source_Brightness_MDPI
Source_Brightness_LDPI
NEXT - STEP -6
Extract you have downloaded and merge it to your decompiled SytemUI.apk
Done and Recompile
I''ve made for my device Galaxy Wonder (HDPI) http://forum.xda-developers.com/showthread.php?t=2230063
and Galaxy Nexus http://forum.xda-developers.com/showthread.php?t=2265104
thanks to Omar1c for testing it
CREDIT & THANKS
arco
evanlocked
Omar1c
Galaxy Nexus xda themes forum
Galaxy wonder xda themes forum
XDA
CyanogenMod
ApkMultitools
and all of you , sorry if I missed
Reserved for something
will this mod work on CM10.1 ?
MicroLizard said:
will this mod work on CM10.1 ?
Click to expand...
Click to collapse
No , still force close..
I still try and try to get it working..
PS : But it will work to CM9
Sent from my GT-I8150 using xda app-developers app
Adi Aisiteru Reborn said:
No , still force close..
I still try and try to get it working..
PS : But it will work to CM9
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Yes, I've tried and it give me force close.
Big thanks!! :good:
Thank you bro work fine
androidphone2012 said:
Big thanks!! :good:
Click to expand...
Click to collapse
Screenshot will be appreciated
Sent from my GT-I8150 using xda app-developers app
Awesome bro!!
Sent from my Galaxy Nexus using xda premium
Omar1c said:
Awesome bro!!
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I want to write another porting Guide, CM10 O4x style lockscreen, will you test it for XHDPI version ?.
I 'll use your file framework , but before you test it, make sure you revert back to stok theme first, without mod installed on your device.
I'll send you PM when the flashable zip is ready
Edit : Done for the porting guide
Adi Aisiteru Reborn said:
Screenshot will be appreciated
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Yes, sir. :good: I slightly modified the layout
Adi Aisiteru Reborn said:
I want to write another porting Guide, CM10 O4x style lockscreen, will you test it for XHDPI version ?.
I 'll use your file framework , but before you test it, make sure you revert back to stok theme first, without mod installed on your device.
I'll send you PM when the flashable zip is ready
Edit : Done for the porting guide
Click to expand...
Click to collapse
Alright sorry for the late reply and yeah bro remember I'm your test monkey lul
Sent from my Galaxy Nexus using xda premium
Omar1c said:
Alright sorry for the late reply and yeah bro remember I'm your test monkey lul
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
that's oke Bro
do you still want flashable.zip ?
or you gonna try to do it your self ? http://forum.xda-developers.com/showthread.php?t=2269131
Adi Aisiteru Reborn said:
that's oke Bro
do you still want flashable.zip ?
or you gonna try to do it your self ? http://forum.xda-developers.com/showthread.php?t=2269131
Click to expand...
Click to collapse
Flashable zip would be great
Sent from my Galaxy Nexus using xda premium
Omar1c said:
Flashable zip would be great
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
well I need your CM10 android.policy.jar and services.jar
Adi Aisiteru Reborn said:
well I need your CM10 android.policy.jar and services.jar
Click to expand...
Click to collapse
Ok
Sent from my Galaxy Nexus using xda premium
---------- Post added at 02:20 PM ---------- Previous post was at 02:14 PM ----------
Adi Aisiteru Reborn said:
well I need your CM10 android.policy.jar and services.jar
Click to expand...
Click to collapse
Here it is
http://db.tt/9fmkUR6y
Sent from my Galaxy Nexus using xda premium
Omar1c said:
Ok
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
but first I want ask you
is it still working or not anymore ? http://forum.xda-developers.com/showthread.php?p=27873486
Adi Aisiteru Reborn said:
but first I want ask you
is it still working or not anymore ? http://forum.xda-developers.com/showthread.php?p=27873486
Click to expand...
Click to collapse
That's for GSM not toroplus so I can't test that one
Sent from my Galaxy Nexus using xda premium
Omar1c said:
That's for GSM not toroplus so I can't test that one
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Oke
give me 20 minutes , I'll send you PM soon, when flshble.zip ready
EDIT : Done
please check your PM
Adi Aisiteru Reborn said:
Oke
give me 20 minutes , I'll send you PM soon, when flshble.zip ready
EDIT : Done
please check your PM
Click to expand...
Click to collapse
Please please please!!! will u make a guide (optimus4x lockscreen) for ldpi device as well??????I am using cm10.1 right now and will test it..
One of the great things about Sony's recent roms is the battery text they provide. You no longer have to mod your battery icon yourself to get an exact percentage of your battery level.
But that means you don't really need the battery icon at all anymore. So this is how you get rid of it. And this is how you get rid of it the Awesome Way!
So this is what my phone looks like without any modding:
{
"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"
}
To remove the battery icon, you need to decompile your SystemUI.apk with apktool. There are many ways of doing this, and many tools, and I'm not going to list them all. Personally I always use Tickle My Android but it's up to you what you use. Refer to your tools instructions and MAKE SURE YOU MAKE A BACKUP FIRST!
Once you've decompiled your SystemUI.apk, you need to edit res\layout\status_bar.xml. This looks like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@color/system_ui_opaque_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<com.sonymobile.systemui.statusbar.operator.OperatorLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:ellipsize="marquee" android:gravity="start|center" android:id="@id/operator" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" android:paddingEnd="4.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="6.0dip">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconPartitioner android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</LinearLayout>
</com.android.systemui.statusbar.phone.IconPartitioner>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:layout_gravity="start|center" android:id="@id/battery_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" android:paddingStart="4.0dip" style="@style/SystemBarNotificationText" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="4.0dip" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:textAlignment="viewStart" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:textAlignment="viewStart" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
If you're new to Android xml, this can look a little overwhelming. But don't worry, we only need to deal with one line:
Code:
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="4.0dip" />
This is the code that controls the battery icon. It's tempting to think that this line could just be deleted but that can actually cause problems. Instead we'll to add a certain parameter to make Android ignore this line completely.
Code:
<ImageView [COLOR="Red"]android:visibility="gone"[/COLOR] android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="4.0dip" />
Save, compile, etc and you'll end up with something that looks this:
So this works. But...is it AWESOME?
Not yet. It all looks a little..odd. The battery text is smaller than the clock. So let's sort that out next. This is the battery text code:
Code:
<TextView android:layout_gravity="start|center" android:id="@id/battery_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" android:paddingStart="4.0dip" style="@style/SystemBarNotificationText" />
Remove the style parameter from near the end of the code and replace it with the textAppearance from the clock code:
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" />
Which gives us:
Code:
<TextView android:layout_gravity="start|center" android:id="@id/battery_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" android:paddingStart="4.0dip" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
And that, once you've saved, recompiled and everything else, looks like this:
So...is this AWESOME? No, not yet. This is just COOL. Read the next post to find out how to remove the battery icon in an even better way. In a way that's...can you guess...AWESOME!!
To remove the battery icon the AWESOME way, we need to do a bit more work.
First, decompile your original SystemUI.apk again and change the battery text in status_bar.xml as before. But, this time, don't edit the battery icon line. Instead cut and paste it to above the battery text line. Like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@color/system_ui_opaque_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<com.sonymobile.systemui.statusbar.operator.OperatorLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:ellipsize="marquee" android:gravity="start|center" android:id="@id/operator" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" android:paddingEnd="4.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="6.0dip">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconPartitioner android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</LinearLayout>
</com.android.systemui.statusbar.phone.IconPartitioner>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="4.0dip" />
<TextView android:layout_gravity="start|center" android:id="@id/battery_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" android:paddingStart="4.0dip" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:textAlignment="viewStart" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:textAlignment="viewStart" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Save and then edit stat_sys_battery.xml in the drawable folder. Change it from:
Code:
<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="4" />
<item android:drawable="@drawable/stat_sys_battery_15" android:maxLevel="15" />
<item android:drawable="@drawable/stat_sys_battery_28" android:maxLevel="35" />
<item android:drawable="@drawable/stat_sys_battery_43" android:maxLevel="49" />
<item android:drawable="@drawable/stat_sys_battery_57" android:maxLevel="60" />
<item android:drawable="@drawable/stat_sys_battery_71" android:maxLevel="75" />
<item android:drawable="@drawable/stat_sys_battery_85" android:maxLevel="90" />
<item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="100" />
</level-list>
to:
Code:
<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/no_battery" android:maxLevel="100" />
</level-list>
Then change stat_sys_battery_charge.xml from:
Code:
<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/stat_sys_battery_charge_anim0" android:maxLevel="4" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim15" android:maxLevel="15" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim28" android:maxLevel="35" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim43" android:maxLevel="49" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim57" android:maxLevel="60" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim71" android:maxLevel="75" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim85" android:maxLevel="90" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim100" android:maxLevel="100" />
</level-list>
to:
Code:
<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/stat_sys_battery_charge_anim100" android:maxLevel="100" />
</level-list>
Still with me so far? Don't worry, we're nearly done.
Now all you need to do is extract stat_sys_battery_charge_anim100.png from the icons.zip attached to this post and copy it into your applicable drawable folder. For my fellow Z users, you need to copy it into drawable-xxhdpi.
Next, extract no_battery.png from the zip and copy it into your drawable-nodpi folder.
Save your edited xml files, recompile and so on.
And this is the result:
And here's how it looks when charging:
And there's only one word to describe this... AWESOME!!
Reserved..
That's really, really great tutorial!
Thank you for your work, it helped me a lot :good:
Great toturial. But if you make flashable zip.that would be better.
Sent from my C6603 using XDA Premium 4 mobile app
This works really well - need to be a bit careful about preparing the files correctly, but the above is a good example of the difference between giving a man a fish and he eats for a day, and teaching a man to fish, and he eats for the rest of his life.
Good job.
Can't see "no_battery.png" anywhere ....
numan_malik999 said:
Great toturial. But if you make flashable zip.that would be better.
Sent from my C6603 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I did that with some of my mods back when the XZ was new. The trouble is there are so many roms and so many recoveries that I would have to make lots and lots of zips and I'd have to keep updating them. Sadly, my children and my job don't give me that sort of time right now.
And the zip would undo any mods you've already done on your SystemUI.apk.
It's better, if slower, to find out how to make these mods yourself. If you know how to do this sort of thing then it might be you that makes the next tutorial!
-woczarder- said:
That's really, really great tutorial!
Thank you for your work, it helped me a lot :good:
Click to expand...
Click to collapse
Anytime!
jervine said:
This works really well - need to be a bit careful about preparing the files correctly, but the above is a good example of the difference between giving a man a fish and he eats for a day, and teaching a man to fish, and he eats for the rest of his life.
Good job.
Click to expand...
Click to collapse
Damn..I ran out of thanks. Got to remember that for tomorrow..
But yes, I agree entirely. :good:
lonelyindark said:
Can't see "no_battery.png" anywhere ....
Click to expand...
Click to collapse
I've changed that post slightly. Now there's a small zip to download that has the images in it, which should be a lot more convenient. Sorry about that.
Ticklefish said:
I did that with some of my mods back when the XZ was new. The trouble is there are so many roms and so many recoveries that I would have to make lots and lots of zips and I'd have to keep updating them. Sadly, my children and my job don't give me that sort of time right now.
And the zip would undo any mods you've already done on your SystemUI.apk.
It's better, if slower, to find out how to make these mods yourself. If you know how to do this sort of thing then it might be you that makes the next tutorial!
Click to expand...
Click to collapse
Thanks.now i will try. Will give u response soon.
Sent from my C6603 using XDA Premium 4 mobile app
Ticklefish said:
I did that with some of my mods back when the XZ was new. The trouble is there are so many roms and so many recoveries that I would have to make lots and lots of zips and I'd have to keep updating them. Sadly, my children and my job don't give me that sort of time right now.
And the zip would undo any mods you've already done on your SystemUI.apk.
It's better, if slower, to find out how to make these mods yourself. If you know how to do this sort of thing then it might be you that makes the next tutorial!
Anytime!
Damn..I ran out of thanks. Got to remember that for tomorrow..
But yes, I agree entirely. :good:
I've changed that post slightly. Now there's a small zip to download that has the images in it, which should be a lot more convenient. Sorry about that.
Click to expand...
Click to collapse
Work perfect :good:
First of all thank you for this great guide.
I have a strange problem.
I use TMA to decompile systemui.apk and try to do the first hide the battery thing.
I found the line and edited it to:
<ImageView android:visibility="gone" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" androidaddingStart="4.0dip" />
Then recompile and then prepare it with opt 14 as a system apk.
Then i manually copied it into system/app and set permissions and rebooted, nothing has changed?
Then i did decompile the systemui.apk that i just copied to system/app only to find out that the line i edited is now like this:
<ImageView android:id="@id/battery" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" androidaddingStart="4.0dip" />
Is it supposed to be like that? why have the "gone" parameter moved?
I must have done something wrong here, could someone point me in the right direction?
Thanks in advanced.
qsec said:
First of all thank you for this great guide.
I have a strange problem.
I use TMA to decompile systemui.apk and try to do the first hide the battery thing.
I found the line and edited it to:
<ImageView android:visibility="gone" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" androidaddingStart="4.0dip" />
Then recompile and then prepare it with opt 14 as a system apk.
Then i manually copied it into system/app and set permissions and rebooted, nothing has changed?
Then i did decompile the systemui.apk that i just copied to system/app only to find out that the line i edited is now like this:
<ImageView android:id="@id/battery" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" androidaddingStart="4.0dip" />
Is it supposed to be like that? why have the "gone" parameter moved?
I must have done something wrong here, could someone point me in the right direction?
Thanks in advanced.
Click to expand...
Click to collapse
Curious..
First of all, it's generally not a good idea to replace your SystemUI.apk, or framework-res.apk, while the phone's still running. You can get away with it, but it's a little like trying to replace the sparkplugs in your cars engine while you're driving it.
Not a perfect example but you get the idea. I've experienced strange bugs on three separate devices that were caused by doing this. In the case of the last device, I actually broke it.
That's why TMA has the ability to make zip files. That way you can replace critical system apps without the system actually running.
This might why you're getting problems here. It might not. But it's certainly bearing in mind.
The first thing you need to do here is work out whether your SystemUI.apk actually did get replaced or not. If it didn't, that's what you need to fix. If it did, then it's something else we need to look at.
So make a big change that will easy to spot. Take your battery ImageView line and cut/paste it underneath the line with rhe clock. Save, recompile and so on. If the battery icon hasn't moved, you know your apk hasn't changed.
Ticklefish said:
Curious..
First of all, it's generally not a good idea to replace your SystemUI.apk, or framework-res.apk, while the phone's still running. You can get away with it, but it's a little like trying to replace the sparkplugs in your cars engine while you're driving it.
Not a perfect example but you get the idea. I've experienced strange bugs on three separate devices that were caused by doing this. In the case of the last device, I actually broke it.
That's why TMA has the ability to make zip files. That way you can replace critical system apps without the system actually running.
This might why you're getting problems here. It might not. But it's certainly bearing in mind.
The first thing you need to do here is work out whether your SystemUI.apk actually did get replaced or not. If it didn't, that's what you need to fix. If it did, then it's something else we need to look at.
So make a big change that will easy to spot. Take your battery ImageView line and cut/paste it underneath the line with rhe clock. Save, recompile and so on. If the battery icon hasn't moved, you know your apk hasn't changed.
Click to expand...
Click to collapse
I made a flashabel zip with the same result, nothing changed.
Tried to move battery beneath clock with no result. i tried to delete cash and dalvik to.
The apk is replaced and changed, if i pull it from the phone and decompile it i can see that battery is still beneath clock.
I think i made an error to think that this mod works on stock rooted odex rom?
Perhaps i need a deodexed rom?
qsec said:
I made a flashabel zip with the same result, nothing changed.
Tried to move battery beneath clock with no result. i tried to delete cash and dalvik to.
The apk is replaced and changed, if i pull it from the phone and decompile it i can see that battery is still beneath clock.
I think i made an error to think that this mod works on stock rooted odex rom?
Perhaps i need a deodexed rom?
Click to expand...
Click to collapse
It's a good question..but no. Whether it's odexed or not doesn't make any difference.
So your SystemUI's definitely changed but your statusbar hasn't? Interesting.. There are a few things that could be causing this but I'm sure we can resolve it.
Can you share a screenshot please? And also your apk's as well. I can take a look at them and see if I can sort it out for you.
Sent from my SK17i using XDA Premium 4 mobile app
Ticklefish said:
It's a good question..but no. Whether it's odexed or not doesn't make any difference.
So your SystemUI's definitely changed but your statusbar hasn't? Interesting.. There are a few things that could be causing this but I'm sure we can resolve it.
Can you share a screenshot please? And also your apk's as well. I can take a look at them and see if I can sort it out for you.
Sent from my SK17i using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Sure, no problem.
I have made a zip that contains systemui, screenshot & framework-res and uploaded it to dropbox because it was to big to upload here.
Please bare with me, i have probably made some noob error with this.
https://dl.dropboxusercontent.com/u/4043087/systemUI.7z
am so happy i didnt missed dis..... Tickle yhu really a pain in Sony Ass!!!
awesome is an understatement... its extremely an amazing way!!!
works like a tic toe...
---------- Post added at 01:01 PM ---------- Previous post was at 12:58 PM ----------
Edit: Number didnt show only charging icon!
How do we remove the battery %, just that if we're happy with the icon. ?
Solved: yhu added
Code:
android:visibility="gone"
in yur TextView code... cos i copied yur code!!!
---------- Post added at 01:05 PM ---------- Previous post was at 01:02 PM ----------
gopiraj_m said:
How do we remove the battery %, just that if we're happy with the icon. ?
Click to expand...
Click to collapse
wat do yhu mean buddy?
---------- Post added at 02:02 PM ---------- Previous post was at 01:05 PM ----------
Sweet!!!
whalesplaho said:
]
wat do yhu mean buddy?
---------- Post added at 02:02 PM ---------- Previous post was at 01:05 PM ----------
Click to expand...
Click to collapse
You should read again. I meant how do we remove the battery % on those xperia devices without stamina mode.
gopiraj_m said:
You should read again. I meant how do we remove the battery % on those xperia devices without stamina mode.
Click to expand...
Click to collapse
Itz already embedded in tha code... Unless maybe yhu try add dat yursef!
Sent from tsubasa using XDA app