[Guide] [Mod] New Style of Stock Battery Layout - Sony Xperia M2

!! Hello XDA !!
=====================
Last update: 1-16-2017​
STOCK (BATTERY PERCENTAGE OFF)
{
"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"
}
STOCK (BATTERY PERCENTAGE ON)
MOD (BATTERY PERCENTAGE OFF)
MOD (BATTERY PERCENTAGE ON)
What have I done ??
Created a new layout structure, so that it looks different, when we choose the percentage mode on or off.
Created a new battery icon pack
Colored the stock battery icon pack
How to?
1. First, yes right!! Decompile your SystemUI.apk please (i'm using THIS GREAT TOOL by @Ticklefish || thanks )
2. Open your msim_system_icons.xml for Dual-SIM devices or system_icons.xml for Single-SIM devices. (res/layout/here)
Find this lines:
PHP:
<LinearLayout android:id="@id/somc_battery" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginStart="4.0dip">
<ImageView android:layout_gravity="center_vertical" android:id="@id/status" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:id="@id/battery_meter" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:layout_gravity="center_vertical" android:id="@id/battery_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stamina_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<FrameLayout android:id="@id/battery_percent" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.sonymobile.systemui.statusbar.BatteryImage android:layout_gravity="start|center" android:id="@id/battery_percent_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
Change to be like this:
PHP:
<LinearLayout android:id="@id/somc_battery" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginStart="4.0dip" android:gravity="center_vertical" >
<ImageView android:id="@id/status" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<FrameLayout android:id="@id/battery_meter" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingBottom="1.0dip">
<TextView android:layout_width="wrap_content" android:layout_height="12.0dip" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:text="POWER -" android:id="@+id/text_bat_add" android:textSize="7.0dip" android:gravity="center_vertical" android:paddingRight="2.0dip" />
<com.erryy.BatteryText android:layout_width="wrap_content" android:layout_height="12.0dip" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="7.0dip" android:gravity="center_vertical" android:layout_gravity="right|top" android:paddingRight="3.0dip" />
<ImageView android:layout_gravity="center_horizontal|bottom" android:id="@id/battery_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_horizontal|bottom" android:id="@id/stamina_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:id="@id/battery_percent" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.sonymobile.systemui.statusbar.BatteryImage android:layout_gravity="start|center" android:id="@id/battery_percent_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
3. Copy my icons to the correct directory (look at attachment)
4. Copy smali codes to the correct directory. This is for adding battery percentage (look at attachment or check this LINK for original thread) || Thanks to @Erhany
FIXING IN EXPANDED HEADER (FOR DUAL-SIM ONLY)
Open your status_bar_expanded_header.xml, and find this line :
PHP:
<FrameLayout android:layout_gravity="center_vertical" android:id="@id/system_icons_container" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_height">
<include layout="@layout/system_icons" />
</FrameLayout>
Change to be like this :
PHP:
<FrameLayout android:layout_gravity="center_vertical" android:id="@id/system_icons_container" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_height">
<include layout="@layout/msim_system_icons" />
</FrameLayout>
5. Recompile and done !!
NOTE :
I'm running on Z5 STYLE ROM || base 5.1 || D2302 (Dual-SIM)
[*]If you want to try my codes in different devices or OS or ROM, please adapted with your codes
[*]If you want to change the icons, i suggest to adjust the size of icons that I made. Because I using FrameLayout, not LinearLayout for icons re-position

Excellent work, my friend! :good:
And I love the icons, especially the blue ones! They look great!
Sent from my Sony Xperia Z3 Compact using XDA Labs

Ticklefish said:
Excellent work, my friend! :good:
And I love the icons, especially the blue ones! They look great!
Sent from my Sony Xperia Z3 Compact using XDA Labs
Click to expand...
Click to collapse
Yap! Nice words. Thanks, sir [emoji3]
You can take my icons if you want
Sent from my XPERIA M2 DUAL using XDA-Developers mobile app

FunSucker said:
Yap! Nice words. Thanks, sir [emoji3]
You can take my icons if you want
Click to expand...
Click to collapse
Thanks! Just send them my way and I'll add them to the next Icon Pack. :highfive:
Sent from my Sony Xperia Z3 Compact using XDA Labs

Can u make mod for me? I dont know how mod smali. Stock blue battery is nice.

Ticklefish said:
Thanks! Just send them my way and I'll add them to the next Icon Pack. :highfive:
Click to expand...
Click to collapse
Great news, i'll be waiting, sir [emoji106]
djborek said:
Can u make mod for me? I dont know how mod smali. Stock blue battery is nice.
Click to expand...
Click to collapse
Yes, sure. I'll try to help you when i coming home.
Not needed changing the smali codes, just simply copy the smali files in OP to your systemui. Thats all, sir
=======================
EDIT
=======================
Please backup first before push this systemui.
I'm not sure this is works / not, because your running on odex ROM. But, let me know.
Sent from my XPERIA M2 DUAL using XDA-Developers mobile app

FunSucker said:
Great news, i'll be waiting, sir [emoji106]
Yes, sure. I'll try to help you when i coming home.
Not needed changing the smali codes, just simply copy the smali files in OP to your systemui. Thats all, sir
=======================
EDIT
=======================
Please backup first before push this systemui.
I'm not sure this is works / not, because your running on odex ROM. But, let me know.
Sent from my XPERIA M2 DUAL using XDA-Developers mobile app
Click to expand...
Click to collapse
Fail on odex se screen? M2 is HDPI u copy icons to good folder?
EDIT:
This is from z5style make this but i have too this rom

djborek said:
Fail on odex se screen? M2 is HDPI u copy icons to good folder?
EDIT:
This is from z5style make this but i have too this rom
Click to expand...
Click to collapse
In my systemui, still works in xhdpi folder
I made it with 2 version method, with decompile and without decompile.
AND, i put the icons in hdpi folder, in both. i hope it works.
try this

Its with decompile.Look icon its work but %battery is not good show.

Without decompile. Maybe works when only change icon? But numbers too much going to left siede.

bro can you make flashable zip ?

djborek said:
Without decompile. Maybe works when only change icon? But numbers too much going to left siede.
Click to expand...
Click to collapse
oke, i try to resize the icons. try this, sir.
Tamilselvan.love said:
bro can you make flashable zip ?
Click to expand...
Click to collapse
for same device model & ROM with me, i can.

It works bro but can u make version without decompile to white %battery?

djborek said:
It works bro but can u make version without decompile to white %battery?
Click to expand...
Click to collapse
yes, sure. try this.

where should i put the smali?

Biakjosh said:
where should i put the smali?
Click to expand...
Click to collapse
Decompile your SystemUI.apk first, and then you can see the smali folder.
Sent from my XPERIA M2 Dual using XDA-Developers mobile app

After decompiling, There was no smali folder so I just put the extracted smali folder there but doesn't work. does this method work on odex rom?

Biakjosh said:
After decompiling, There was no smali folder so I just put the extracted smali folder there but doesn't work. does this method work on odex rom?
Click to expand...
Click to collapse
Absolutely not, sir. Sorry.
I said in OP, I'm running on Z5 Style ROM and thats ROM using deodexed patch.
Sent from my XPERIA M2 Dual using XDA-Developers mobile app

hi @FunSucker thanks for this guide :good:
can you share how to change the text % battery for this mod?
what code should I change in file BatteryText.smali or BatteryText $ 1.smali?

Mirza_H said:
hi @FunSucker thanks for this guide :good:
can you share how to change the text % battery for this mod?
what code should I change in file BatteryText.smali or BatteryText $ 1.smali?
Click to expand...
Click to collapse
You can change it by simply changing or adding android: textAppearance values with your choice.
Find this line in your system_icons.xml / msim_system_icons.xml , and then change the blue text
Code:
<TextView [COLOR="Red"]android:textAppearance[/COLOR][COLOR="Blue"]="@style/TextAppearance.StatusBar.Clock" [/COLOR]android:textSize="7.0dip" android:gravity="center_vertical" android:id="@id/text_bat_add" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="12.0dip" android:text="POWER -" />
<com.erryy.BatteryText [COLOR="Red"]android:textAppearance[/COLOR][COLOR="Blue"]="@style/TextAppearance.StatusBar.Clock"[/COLOR] android:textSize="7.0dip" android:gravity="center_vertical" android:layout_gravity="center|right|top" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="12.0dip" />

Related

[23042011][Theme][Overcome1.6.x][GingerElegance]

Hi All,
This is the overcome in the taste of ginger.....
1 picture is worth than 1000 words....
apply via CWM recovery : -View attachment OverCom-1.6.X.GingerEleganceTheme.zip
{
"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"
}
,
,
,
,
,
Thanks to All,
Credit :-
Developers for XDA-Galaxy S themes :-
- _JKay_ for the nice Quick Panel icons
- ock for the GT-I9000 GB theme
Tab mates biopsn, kai_kiat88, natious, DistortedWisom, alterbridge86 & all...
Good luck..
That looks very neat!
You are the man
thanks alots
really apreciate your hard work
Nice work! Thanks for sharing.
Curious to see if it work with v. 1.4.5 but i doubt.
Sent from my GT-P1000 using XDA Premium App
af974 said:
Nice work! Thanks for sharing.
Curious to see if it work with v. 1.4.5 but i doubt.
Sent from my GT-P1000 using XDA Premium App
Click to expand...
Click to collapse
give it a chance after fw backup....
thnx
Galaxyer said:
give it a chance after fw backup....
thnx
Click to expand...
Click to collapse
i've tried applying a theme for overcome 1.4.5 on overcome 1.6.0 afew days back but boot-looped. i guess it won't work too if it's the other way round.
Galaxyer said:
give it a chance after fw backup....
thnx
Click to expand...
Click to collapse
Yeah, doesn't work. Boot loop but honestly i knew that cos i gave try with another theme here im forum, but as i said, nice work, i like it.
Sent from my GT-P1000 using XDA Premium App
Whaouuu soooo nice thanks a lot bro !!! Good work im just sad this theme will not work with BOYPPC rom
Sent from my GT-P1000
Great work, love the theme. Thanks.
Sent from my GT-P1000 using XDA App
its steel on overcome 145
ı put ıt on overcome 161 but the music player has no option of folder selection so i turn back to 145 again
Thanks
Very nice theme bro, thanks a lot !!!
P.S i flash overcom 1.6.1 just for this theme !!!
Good work !!
Hi bro Galaxyer,
Just a small request from you
Would you mind change the data icon on the status bar to the green one.. as it still appear as the default data icon
Thanks for the help.
Bit Of Help Please
Solved due to Galaxyer! Cheers
ElephantStone82 said:
Hi i was wondering if any one could help ive tried as much as possible to change the text colour on the pulldown
bar to white! for overcome 1.6.1
i tried apktool and followed many tutorials posted by the theme makers on this site! but no joy!
ive edited the! "status bar.xml, staus bar expanded.xml. staus bar latest event content.xml"
but all force close!!
I HAVE-
-decompiled, recompiled edited with notepad ++
-pulled out the the xml and edited them with and placed them in the orignal frame work.apk
ect................
Now im trying hex editor but not sure what text to change!
most sites say look for 08 00 00 1C but i cant find this code within some of the xmls Mainly "Staus bar latest
event content.xml"
i would love to make my "minimal theme" for Overcome 1.6.1 but this one thing is holding me back!
I would be greatful if someone could help me out!
or alternatively post one of the themes (VAGREEN 1.6.1/HONEYCOMB 1.6.1/GINGER ELEGANCE...)
with just the text changed to white (maybe brightness slider to grey would be great) so i can place and edit my png
into the framework.apk
Thank you so much!!!
Click to expand...
Click to collapse
Hi ElephantStone82;
This is what you're looking for:-
http://forum.xda-developers.com/showpost.php?p=9066440&postcount=1
hope to see your theme soon....
Thank You galaxyer!! my theme is on the section somewhere but after 200 views and no comments! doesnt fill me with confidence! its called Minimal Theme! just updated to 1.6.x
sorry to bring this up here but i can't seem to shrink the brightness panel like what you did.
i use apk manager.
after decompiling, editing the zzzz_quickpanel_brightness_settings.xml like below:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.server.status.quickpanel.BrightnessSettingsView android:orientation="vertical" android:background="@drawable/zzzz_quickpanel_brightness_bg" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:paddingTop="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ImageView android:gravity="center_vertical" android:id="@id/icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:src="@drawable/zzzz_quickpanel_brightness_icon" />
<TextView android:textSize="10.0dip" android:typeface="sans" android:textStyle="normal" android:textColor="@color/black" android:gravity="center_vertical" android:id="@id/title" android:background="@null" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:text="@string/brightness_settings_title" />
<SeekBar android:gravity="center_vertical" android:id="@id/brightness" android:paddingLeft="10.0dip" android:paddingTop="1.0dip" android:paddingRight="20.0dip" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" />
<CheckBox android:textSize="10.0dip" android:typeface="sans" android:textColor="@color/black" android:gravity="right|center" android:id="@id/automatic" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" android:layout_marginRight="10.0dip" android:text="@string/brightness_settings_automatic" />
</LinearLayout>
</com.android.server.status.quickpanel.BrightnessSettingsView>
i recompiled it but i get a long list of errors due to some public.xml
can you help me out please galaxyer ?
kay_kiat88 said:
sorry to bring this up here but i can't seem to shrink the brightness panel like what you did.
i use apk manager.
after decompiling, editing the zzzz_quickpanel_brightness_settings.xml like below:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.server.status.quickpanel.BrightnessSettingsView android:orientation="vertical" android:background="@drawable/zzzz_quickpanel_brightness_bg" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:paddingTop="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ImageView android:gravity="center_vertical" android:id="@id/icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:src="@drawable/zzzz_quickpanel_brightness_icon" />
<TextView android:textSize="10.0dip" android:typeface="sans" android:textStyle="normal" android:textColor="@color/black" android:gravity="center_vertical" android:id="@id/title" android:background="@null" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:text="@string/brightness_settings_title" />
<SeekBar android:gravity="center_vertical" android:id="@id/brightness" android:paddingLeft="10.0dip" android:paddingTop="1.0dip" android:paddingRight="20.0dip" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" />
<CheckBox android:textSize="10.0dip" android:typeface="sans" android:textColor="@color/black" android:gravity="right|center" android:id="@id/automatic" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" android:layout_marginRight="10.0dip" android:text="@string/brightness_settings_automatic" />
</LinearLayout>
</com.android.server.status.quickpanel.BrightnessSettingsView>
i recompiled it but i get a long list of errors due to some public.xml
can you help me out please galaxyer ?
Click to expand...
Click to collapse
Hi Kay_kiat88,,
It's my pleasure...You have to shrink the background png as well...
Code:
<com.android.server.status.quickpanel.BrightnessSettingsView android:orientation="vertical" android:background="@drawable/[COLOR="DarkRed"][U]zzzz_quickpanel_brightness_bg[/U][/COLOR]"
so you have to resize \res\drawable-hdpi-v4\zzzz_quickpanel_brightness_bg.png..
and thats all
Greetings
Galaxyer said:
Hi Kay_kiat88,,
It's my pleasure...You have to shrink the background png as well...
Code:
<com.android.server.status.quickpanel.BrightnessSettingsView android:orientation="vertical" android:background="@drawable/[COLOR="DarkRed"][U]zzzz_quickpanel_brightness_bg[/U][/COLOR]"
so you have to resize \res\drawable-hdpi-v4\zzzz_quickpanel_brightness_bg.png..
and thats all
Greetings
Click to expand...
Click to collapse
i did resized it but there were still errors when recompiling
kay_kiat88 said:
i did resized it but there were still errors when recompiling
Click to expand...
Click to collapse
can you post the log.txt from the apk_manager folder or just the last part of it...
may be due to miss-spell or some xml missing in layout folder.....
little help
since this theme seems to be one of the best and most edited
i was wondering if you could help me with you editing skills i would like to know what xml i need to edit to get rid of the text!
Thanks You!

[GUIDE][Mods][All Devices]How to add/ Change Clocks to Analog/ Digital with Seconds

Hi devs...
Today i will share to you How to add/ Change All Clocks to Analog nor even with Seconds Digital Clock...
This method only for you who have experiences or familiar with Apktool/ Apk Multy tool/ etc.
So, Let's do this;
Required:
PC
Apktool or similar Tools
NotePad++ for edit xmls files
WinRAR or 7z
A Cup of coffee (Yeaahh...)
1. Change your Clock Lockscreen (From framework or UxpNxtLockscreen)
Only need to change "Textview" to "DigitalClock" for it;
> Decompile your framework-res.apk
> Navigate to /res/layout/
> Open keyguard_screen_tab_unlock.xml (for normal lockscreen) or keyguard_screen_password_portrait.xml (for Password lockscreen)
> Search for this line:
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="12.0dip" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
You just need to change the RED color text:
Code:
<[COLOR="Red"]TextView[/COLOR] android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
> That's it, now save and Recompile...
Do the same way for UxpNxtLockscreen.apk with open w_clock.xml on /res/layout/
And we got 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"
}
2. Change your Status bar Clock and Status bar Expanded Clock
> Decompile your SystemUI.apk
> Navigate to /res/layout/
> Open status_bar.xml (for Status bar Clock) and status_bar_expanded_header.xml (for JB status bar expanded clock)
> On status_bar.xml, search for this line:
Code:
<[COLOR="Red"]com.android.systemui.statusbar.policy.Clock[/COLOR] 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 the RED code to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
Yeah, we know what it should be
> Save and Recompile...
Now play with expanded clock;
> Open status_bar_expanded_header.xml
> Search for this line:
Code:
<[COLOR="Red"]com.android.systemui.statusbar.policy.Clock[/COLOR] android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
> I bet you already knew what you have to do... yep, change the RED code to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
> Save and Recompile...
> And we got look like this:
3. Change your lockscreen Clock to Analog Clock (from framework or UxpNxtLockScreen)
> Decompile framework-res.apk
> Navigate to /res/layout/
> Again, Open keyguard_screen_tab_unlock.xml (for normal lockscreen) or keyguard_screen_password_portrait.xml (for Password lockscreen)
> Search for this line:
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="12.0dip" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
You just need to change the RED color text:
Code:
<[COLOR="Red"]TextView[/COLOR] android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
> You need to HIDE these lines first (hide the Digital Clock) by add this code:
Code:
android:visibility="gone"
> Then, copy this line to show Analog Clock upside the above lines:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
> Now code lines should be look like this:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
<LinearLayout android:layout_gravity="top" android:orientation="vertical" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="22.0dip">
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="22.0dip" android:layout_marginBottom="3.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="62.0dip" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
> Save it
> We have new id for now then,
> Navigate to /res/values/
> Open ids.xml and add this line at the end of ids (above </resource> code )
Code:
<item type="id" name="analogClock1">false</item>
> Save and Recompile...
Now play with UxpNxtLockScreen clock;
> After decompiling
> Navigate to /res/layout/
> Open w_clock.xml
> Search for this line:
Code:
<RelativeLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/timeRelativeLayout24h" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="-6.0dip">
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="76.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:singleLine="true" android:shadowColor="@color/clock_text_shadow_color" android:shadowDx="@integer/clock_text_shadow_dx" android:shadowDy="@integer/clock_text_shadow_dy" android:shadowRadius="@integer/clock_text_shadow_radius" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="16.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:singleLine="true" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_toRightOf="@id/timeDisplay" android:layout_alignParentTop="true" />
</RelativeLayout>
> Again, HIDE the Digital Clock before add the Analog Clock by add this line:
Code:
android:visibility="gone"
> Just like the way we made for framework-res.apk, add the Analog Clock lines mentioned above.
> It's should be look like this:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/timeRelativeLayout24h" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="-6.0dip">
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="76.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:singleLine="true" android:shadowColor="@color/clock_text_shadow_color" android:shadowDx="@integer/clock_text_shadow_dx" android:shadowDy="@integer/clock_text_shadow_dy" android:shadowRadius="@integer/clock_text_shadow_radius" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="16.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:singleLine="true" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_toRightOf="@id/timeDisplay" android:layout_alignParentTop="true" />
</RelativeLayout>
> Wait, it's NOT perfect looks yet :cyclops:
> You need to make some MARGIN to the top of Clock, then:
> On second line, add the RED code and should be look like this:
Code:
<LinearLayout android:orientation="vertical" android:id="@id/clock_and_date" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="fill_parent" android:layout_height="wrap_content" [COLOR="Red"]android:layout_marginTop="36.0dip"[/COLOR] android:layout_alignParentTop="true" android:layout_centerHorizontal="true
> Margin should be differ for some Screen Sizes. Then look up for your self...
> Done, Save and Recompile...
> And we got look like this:
4. Add Analog Clock in expanded status bar layout
> Decompile your SystemUI.apk
> Navigate to /res/layout/
> Open status_bar_expanded.xml (for JB devices)
> Search for this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
> Below the code, add this line:
Code:
<AnalogClock android:layout_gravity="bottom" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" [COLOR="Red"]android:layout_marginBottom="100.0dip"[/COLOR] android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" />
> See the RED code? That mean depends on your Screen Sizes,.... you know what you have to do...
> And we got look like this:
One more simple guide for change the Analog Clock Style: CLICK ME!
That's it for the Guides, if you have some questions related to this method, just post here...
But, don't ask me for how to use apktool or bla..bla..bla... Try to use your Search Bar Engine or CLICK ME!...
If you had Xperia E Single SIM on your hands, i have those things already for ya... CLICK ME!
CREDITS:
> XDA Developers Staff and Members
> Rizal Lovins for JB Apktool
> Google
> My Coffee...
> If someone forgotten by me, please PM then i will edit the Credits... Thanks
Give me a Motivate by Hit that THANKS button
or Help me for Upgrade my Damn Networking by DONATE to me:fingers-crossed:​
Awesome
Very nice! I haven't done much Android development but I hope to do this for a ROM for my HTC One V.
I've tried out step#1 (seems simple enough) but every time I install the modded framework-res.apk, the ROM just continuously loops at boot animation. I've made sure to set the permissions. I've tried two methods:
Using winRar, I simply add the modded .xml files into the already signed framework-res.apk.
Using apktool, I recompile the framework-res.apk and use this.
I've tried installing while Android is running and through adb while in recovery. No luck. All attempts just boot loop. I should note that I also made the same changes to _landscape.xml instances as well (so that it will also apply when the screen is rotated).
I haven't tried this on any other ROMs and frameworks yet (but I definitely will). The ROM I'm using is CM10.1 (jb 4.2.2) based. Any advice or indication as to what may be going wrong? Thanks!
bro how did u got xperia z blinds view lock screen(i saw in screen shot) on your xperia e??????
filoxo said:
Very nice! I haven't done much Android development but I hope to do this for a ROM for my HTC One V.
I've tried out step#1 (seems simple enough) but every time I install the modded framework-res.apk, the ROM just continuously loops at boot animation. I've made sure to set the permissions. I've tried two methods:
Using winRar, I simply add the modded .xml files into the already signed framework-res.apk.
Using apktool, I recompile the framework-res.apk and use this.
I've tried installing while Android is running and through adb while in recovery. No luck. All attempts just boot loop. I should note that I also made the same changes to _landscape.xml instances as well (so that it will also apply when the screen is rotated).
I haven't tried this on any other ROMs and frameworks yet (but I definitely will). The ROM I'm using is CM10.1 (jb 4.2.2) based. Any advice or indication as to what may be going wrong? Thanks!
Click to expand...
Click to collapse
i think as i know, framework-res.apk should be un-signed apk (coz it's system app)
if this mods (only change clock lockscreen) meet some probs, it should be boot as well but self rebooted when goes to lockscreen...
Droidlover123 said:
bro how did u got xperia z blinds view lock screen(i saw in screen shot) on your xperia e??????
Click to expand...
Click to collapse
blinds? sorry can't get you....
yayakuya said:
i think as i know, framework-res.apk should be un-signed apk (coz it's system app)
if this mods (only change clock lockscreen) meet some probs, it should be boot as well but self rebooted when goes to lockscreen...
blinds? sorry can't get you....
Click to expand...
Click to collapse
Bro effect in xperia z lock screen is called blind view.
See screen shot!!!!!
Please tell me way to port it.I love that effect!!!!!!
Sent from my C1505 using xda app-developers app
Droidlover123 said:
Bro effect in xperia z lock screen is called blind view.
See screen shot!!!!!
Please tell me way to port it.I love that effect!!!!!!
Sent from my C1505 using xda app-developers app
Click to expand...
Click to collapse
He got a stock app which was called: UxpNxtLockScreen.apk
Want it? Google plz
Can you made quide if you know how to center clock in status bar?
Sent from my ST26i using xda premium
maple_mak said:
He got a stock app which was called: UxpNxtLockScreen.apk
Want it? Google plz
Click to expand...
Click to collapse
Bro I already tried many of them but neither of them worked!!!!
Can you post working one????
Sent from my C1505 using xda app-developers app
Droidlover123 said:
Bro I already tried many of them but neither of them worked!!!!
Can you post working one????
Sent from my C1505 using xda app-developers app
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2192776
But it only works on JellyBean.
maple_mak said:
http://forum.xda-developers.com/showthread.php?t=2192776
But it only works on JellyBean.
Click to expand...
Click to collapse
Thanks bro will try that!!..!..:thumbup::thumbup::thumbup:
Sent from my GT-P3100 using xda app-developers app
maple_mak said:
http://forum.xda-developers.com/showthread.php?t=2192776
But it only works on JellyBean.
Click to expand...
Click to collapse
Bro i tried that but it is not working on xperia e!!!!!!!!!!!
any suggestions????
Droidlover123 said:
Bro i tried that but it is not working on xperia e!!!!!!!!!!!
any suggestions????
Click to expand...
Click to collapse
1) Does your device are Android 4.1?
2) Have you try reboot after put the lockscreen?
3) Or you haven't set permission?
If this 3 question you done already but nothing, I don't have any idea solved...
maple_mak said:
1) Does your device are Android 4.1?
2) Have you try reboot after put the lockscreen?
3) Or you haven't set permission?
If this 3 question you done already but nothing, I don't have any idea solved...
Click to expand...
Click to collapse
Yes xperia e have 4.1 and I rebooted plus gave correct permissions still not working...,
Hope yayakuya bro will help!!!!!
Sent from my GT-P3100 using xda app-developers app
excellent job :thumbup: :thumbup:
Sent from my Xperia Tipo using Tapatalk 4 Beta
Perfect Work om my GO...thanks (pressed)

[MOD] 4.4.2 TW Hidden power button

Hidden power button under the status bar clock.
No visual changes looks like the stock status bar:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Attention!
After this changes an Xposed modul can't move, or hide the clock.
Functions:
- Short press on the clock turns off the screen
- Long press, or swipe from the clock top to the bottom opens the power menu.
Needed tools:
Apktool
Notepad++
1. Decompile SystemUI.apk
2. Navigate to \res\layout folder
3. Open status_bar.xml
Add BLUE lines.
Code:
<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 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:textSize="@dimen/status_bar_battery_text_size" android:textColor="#ffffffff" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="12.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
</LinearLayout>
[COLOR="Blue"][B]<FrameLayout android:gravity="center" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true">[/B]
[/COLOR]<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:ellipsize="none" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" android:paddingStart="6.0dip" systemui:ampmSmall="false" />
[COLOR="Blue"][B]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@null" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" />
</FrameLayout>[/B][/COLOR]
</LinearLayout>
</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">
4. Save your changes
5. Build SystemUI.apk
6. Push to your Phone, set permissions, reboot
I did it already for the N9005XXUENC2 firmware: Download
tkari4 said:
Hidden power button under the status bar clock.
No visual changes looks like the stock status bar:
Attention!
After this changes an Xposed modul can't move, or hide the clock.
Functions:
- Short press on the clock turns off the screen
- Long press, or swipe from the clock top to the bottom opens the power menu.
Needed tools:
Apktool
Notepad++
1. Decompile SystemUI.apk
2. Navigate to \res\layout folder
3. Open status_bar.xml
Add BLUE lines.
Code:
<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 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:textSize="@dimen/status_bar_battery_text_size" android:textColor="#ffffffff" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="12.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
</LinearLayout>
[COLOR="Blue"][B]<FrameLayout android:gravity="center" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true">[/B]
[/COLOR]<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:ellipsize="none" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" android:paddingStart="6.0dip" systemui:ampmSmall="false" />
[COLOR="Blue"][B]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@null" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" />
</FrameLayout>[/B][/COLOR]
</LinearLayout>
</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">
4. Save your changes
5. Build SystemUI.apk
6. Push to your Phone, set permissions, reboot
I did it already for the N9005XXUENC2 firmware: Download
Click to expand...
Click to collapse
Do you have flashable zip?
nice
AldrichDSaints said:
Do you have flashable zip?
Click to expand...
Click to collapse
Flashable zip attached here: http://forum.xda-developers.com/showpost.php?p=51305774&postcount=157
Copy SystemUI.apk in system / priv-app folder, than you can flash it.
Don't forget backup your current SystemUI.apk.
@tkari4 Thanks for sharing your guids. I think Note 3 community is missing a development thread like the one in Note (by majdini). so as you have reasonable knowledge about smali things, that would be nice if you could open such thread so that everyone can add his mod/guide/tip to it and all can be found in the same thread.
Sent from my SM-N9005
tkari4 said:
Flashable zip attached here: http://forum.xda-developers.com/showpost.php?p=51305774&postcount=157
Copy SystemUI.apk in system / priv-app folder, than you can flash it.
Don't forget backup your current SystemUI.apk.
Click to expand...
Click to collapse
Thanks. I'm gonna try this one
This mod works great! Thank you!
tkari4 said:
Flashable zip attached here: http://forum.xda-developers.com/showpost.php?p=51305774&postcount=157
Copy SystemUI.apk in system / priv-app folder, than you can flash it.
Don't forget backup your current SystemUI.apk.
Click to expand...
Click to collapse
Could you provide the download link instead of thread link.um just a noob and dont have that much idea about all this stuff. It will be helpful if you just provide the download link of flashable zip.
Take care
Sent from my SM-N900 using XDA Premium 4 mobile app
---------- Post added at 08:15 AM ---------- Previous post was at 07:45 AM ----------
Will this mod work on n900 octa core firmware version DNA6 KITKAT.
THANKS
Sent from my SM-N900 using XDA Premium 4 mobile app
---------- Post added at 08:37 AM ---------- Previous post was at 08:15 AM ----------
Wprking great...it took time me to understand. ...thanks
Sent from my SM-N900 using XDA Premium 4 mobile app
just usable on KK?
noway for using on JB?
MEHRDAD595 said:
just usable on KK?
noway for using on JB?
Click to expand...
Click to collapse
I'm using this code on 4.1.2 too, so should work on JB.
@tkari4
Needs your help, sent you PM
Tried with my rom but dont work.using s5282 tw jb 4.1.2 rom! :/
SystemUI hidden power N9005XXUENC2
tkari4 said:
Hidden power button under the status bar clock.
No visual changes looks like the stock status bar:
Attention!
After this changes an Xposed modul can't move, or hide the clock.
Functions:
- Short press on the clock turns off the screen
- Long press, or swipe from the clock top to the bottom opens the power menu.
Needed tools:
Apktool
Notepad++
1. Decompile SystemUI.apk
2. Navigate to \res\layout folder
3. Open status_bar.xml
Add BLUE lines.
Code:
<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 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:textSize="@dimen/status_bar_battery_text_size" android:textColor="#ffffffff" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="12.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
</LinearLayout>
[COLOR="Blue"][B]<FrameLayout android:gravity="center" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true">[/B]
[/COLOR]<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:ellipsize="none" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" android:paddingStart="6.0dip" systemui:ampmSmall="false" />
[COLOR="Blue"][B]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@null" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" />
</FrameLayout>[/B][/COLOR]
</LinearLayout>
</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">
4. Save your changes
5. Build SystemUI.apk
6. Push to your Phone, set permissions, reboot
I did it already for the N9005XXUENC2 firmware: Download
Click to expand...
Click to collapse
prejudice and can do so with the firmware N9005XXUEND5? tnx
Yes it should work on latest ROM too.
Who are not good with compiling here attached two version of hidden power
1.Who are using stock battery
2.Who are using modified Imaged battery
Download according your SystemUI and flash from recovery.
dr.ketan said:
Yes it should work on latest ROM too.
Who are not good with compiling here attached two version of hidden power
1.Who are using stock battery
2.Who are using modified Imaged battery
Download according your SystemUI and flash from recovery.
Click to expand...
Click to collapse
tnx
MOD] 4.4.2 TW Hidden power button
dr.ketan said:
Yes it should work on latest ROM too.
Who are not good with compiling here attached two version of hidden power
1.Who are using stock battery
2.Who are using modified Imaged battery
Download according your SystemUI and flash from recovery.
Click to expand...
Click to collapse
sorry but to ND5 dont work ..tnx also
MOD] 4.4.2 TW Hidden power button UPDATE for ND5
ANDROIDXFOREVER said:
sorry but to ND5 dont work ..tnx also[/QUOTE
use file manager with root permissions go to sistem private / app / and overwrite with this.
https://drive.google.com/file/d/0B8KAAvt9JyRXeTNHQ0dqTmMzcEk/edit?usp=sharing
tnx for help to Dr.Ketan
Click to expand...
Click to collapse
if i used this on center clock ,, will it work ?
jakTomas said:
if i used this on center clock ,, will it work ?
Click to expand...
Click to collapse
dont work center clock.....but work all function to wanam xposed
ANDROIDXFOREVER said:
dont work center clock.....but work all function to wanam xposed
Click to expand...
Click to collapse
what do you mean " but work all function to wanam xposed " ?

[MOD] [JB] [E\E DUAL] kitkat inspired systemUI (now transparent)

FIRST OF ALL BACKUP YOU ROM JUST IN CASE ANYTHING WENT WRONG
kitkat inspired systemUI
ONLY TESTED ON XPERIA E DUAL
( IT SHOULD WORK ON XPERIA E OR ANY MDPI XPERIA)
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"
}
change log:
All white themed kitkat icons
moved the toggles under the clock/date
reorderd toggles
increased clock size 32dip
removed am/pm
This mod supports dual sim but I'm using 1 sim on my xperia E dual
this is a noob friendly guide you wont need to decompile and recompile any apks
Method 1 (easy)
Backup your systemUI.apk and systemUI.odex if existed
rename systenUI final.apk to systemUI.apk
delete systemUI.odex if existed
copy systemUI.apk to "system\app" and replace
reboot or soft reboot you phone
Downloads:
systemUI.apk
Method 2 (advanced)
Backup your systemUI.apk and systemUI.odex if existed
extract systemUI.apk from "system\app"
open it with winrar
add the continents of res.rar to your systemUI.apk replace if promoted
return your systemUI.apk to "system\app" and replace
reboot or soft reboot your phone
Downloads:
res.rar
------------------------------------------------------------------------------------------------------------------------------------------
Update 1
screenshots:
change log:
transparent background
moved settings shortcut next to clear button
clear button is an icon instead of text
changed wifi off, data off, bluetooth off icon with more visible ones
drag handle pressed is now white
important note:
to make the notifications itself transparent you must add this Files to your framework-res.apk
steps:
Backup your systemUI.apk and framework-res.apk and systemUI.odex if existed
rename systemUI transparent.apk to systemUI.apk
delete systemUI.odex if existed
copy systemUI.apk to "system\app" and replace
reboot or soft reboot you phone
now the framework-res apk:
Extract framework-res.apk from "system\framework"
open framework-res.apk with winrar and put the continents of included RAR file inside framework-res.apk
this step is very important if you do it wrong you will end up with a boot loop
copy the modified framework-res.apk to your SDcard
then copy it to "system\"
then change Permissions to rw- r-- r--
then cut it to "system\framework" and replace
reboot or soft reboot you phone
Downloads:
SystemUI tarnsparent.apk
put inside (framework-res.apk).rar
I have just added another sim card to my phone so this is how it looks with dual sim
Thanks to @Dzepar for the transparent mod
:good: if it helps​
Good SystemUI !
What Theme icons ? Name ?
DanielFlorin said:
Good SystemUI !
What Theme icons ? Name ?
Click to expand...
Click to collapse
systemUI icon are extracted from CM11
if you mean the launcher icons
they are called stark icons
https://play.google.com/store/apps/details?id=kov.theme.stark
zero_omar said:
systemUI icon are extracted from CM11
if you mean the launcher icons
they are called stark icons
https://play.google.com/store/apps/details?id=kov.theme.stark
Click to expand...
Click to collapse
which firmware will supports this????
Divesh ahuja said:
which firmware will supports this????
Click to expand...
Click to collapse
which icons do you mean ?
I tweaked it a little but I want to add the rotation lock toggle and brightness toggle but systemUI crashes when I add them
I will release it as soon as I figure it out
for now can any one help me to add them
this is the code I'm currently using
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="vertical" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="54.0dip">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textSize="40.0dip" android:id="@id/clock_expanded" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginRight="-4.0dip" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
<ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="54.0dip">
<ImageView android:id="@id/wifi_button" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/zzz_notification_quick_setting_wifi_on" android:scaleType="center" android:layout_weight="1.0" />
<ImageView android:id="@id/bluetooth_button" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/zzz_notification_quick_setting_bluetooth_on" android:scaleType="center" android:layout_weight="1.0" />
<ImageView android:id="@id/switch_sim_button" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/zzz_notification_quick_setting_sim_switch_default_sim_card_sim1" android:scaleType="center" android:layout_weight="1.0" />
<ImageView android:id="@id/sound_button" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/zzz_notification_quick_setting_sound_on" android:scaleType="center" android:layout_weight="1.0" />
</LinearLayout>
</LinearLayout>
@zero_omar which digital clock widget are u using ???
[email protected] said:
@zero_omar which digital clock widget are u using ???
Click to expand...
Click to collapse
clock jb+
zero_omar said:
clock jb+
Click to expand...
Click to collapse
SystemUI final.apk - [Click for QR Code] (1.04 MB, 235 views)
235 views 1 thanks .....
Not working on tipo dual
hard91 said:
Not working on tipo dual
Click to expand...
Click to collapse
It says in title E/EDual, and as I recall Tipo doesn't have stock JB.
All the Best.
Sent from my D2303
sorry,will you plz port one for tipo dual??
haha
hard91 said:
Not working on tipo dual
Click to expand...
Click to collapse
can i do it with locked bootloader???
works on odexed stock JB Xperia E?
Batter percentage not showed
When i add systemui.final in my sony xperia e dual
But battery percentage not showed?? wt to do???

[GUIDE][MOD] Lockscreen style Note 4 for Note 3 (new Update post#2)

VN-TEAM present Guide mod Locksceen style Note 4 for Note 3 !
First, This guide only help you to mod lockscreen Note 3 ( Time, clock, alarm, charging like Note4) , Not help you to enable Note4 lockscreen unlock effect or anymore .
Just tested on S5 ported rom Tweaked stock S5 port and My S5 port rom ( not avaiable on XDA) , Galaxy S4 ( 4.4.2) .
However this guide can apply for Note 2, S4, N3 neo... etc running Kitkat 4.4.2 .
{
"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"
}
*Note :
- You must have and basic knowledge about Decompiling and compiling apks .
- Text editor using Notepad ++
- Copy Keyguard.apk from your rom to PC for modding .
1. Move clock from Right to center .
Decompile Keyguard.apk, navigate to > Keyguard.apk/res/layout/Sec_single_clock.xml
Open Sec_single_clock.xml with Notepad++ :
See codes below ( Marked in red zone.)
Change to the whole line with this code:​
Code:
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/keyguard_single_clock" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/kg_singleclock_margin_left" android:layout_marginTop="@dimen/kg_singleclock_margin_top" android:layout_marginRight="@dimen/kg_singleclock_margin_right"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="bottom" android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/keyguard_single_clock_total" android:focusable="true" android:clickable="true" android:layout_width="wrap_content" android:layout_height="@dimen/kg_singleclock_height">
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="16.0dip" android:textColor="#ffffffff" android:id="@id/keyguard_single_clock_ampm_kor" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5.0dip" android:shadowColor="#cc000000" android:textAllCaps="true" android:format12Hour="@string/status_view_ampm_for_12_hours" android:format24Hour="@string/status_view_ampm_for_24_hours" style="@style/keyguard_text_shadow" />
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="@dimen/kg_singleclock_time_text_size_normal" android:textColor="#ffffffff" android:gravity="bottom" android:id="@id/keyguard_single_clock_time" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#cc000000" android:format12Hour="@string/status_view_12_hours_format" android:format24Hour="@string/status_view_24_hours_format" style="@style/keyguard_text_shadow" />
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="16.0dip" android:textColor="#ffffffff" android:id="@id/keyguard_single_clock_ampm" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:shadowColor="#cc000000" android:textAllCaps="true" android:format12Hour="@string/status_view_ampm_for_12_hours" android:format24Hour="@string/status_view_ampm_for_24_hours" style="@style/keyguard_text_shadow" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/kg_widget_common_date_text_size" android:textColor="#ffffffff" android:id="@id/keyguard_single_clock_date" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#cc000000" android:fontFamily="sans-serif" style="@style/keyguard_text_shadow" />
<View android:visibility="gone" android:layout_width="20.0dip" android:layout_height="0.0dip" />
2. Move Weather and Shealth to center .
Navigate to Keyguard.apk/res/layout/sec_adaptive_event_container_small.xml
See code below ( Marked in red zone)
Change to the whole line with this code:​
Code:
<com.android.keyguard.sec.AdaptiveEventContainerSmall android:gravity="center" android:orientation="horizontal" android:id="@id/adaptive_event_container_small" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layoutDirection="ltr" android:layout_marginStart="19.0dip" android:layout_marginEnd="19.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/emergency_container" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:layout_gravity="center_horizontal" android:id="@id/adaptive_info_area" android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/weather_container" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/ped_container" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
3. Move charging battery to center .
Navigate to Keyguard.apk/res/layout/keyguard_message_area.xml
See code below (Marked in red zone)
Change to the whole line with this code:​
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:paddingLeft="20.0dip" android:paddingRight="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.KeyguardMessageArea android:textAppearance="?android:textAppearance" android:textSize="@dimen/kg_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center" android:id="@id/keyguard_message_area" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:shadowColor="#7f000000" android:fontFamily="sans-serif" style="@style/keyguard_text_shadow"
xmlns:android="http://schemas.android.com/apk/res/android" />
</LinearLayout>
4. Move alarm icon to Center .
Navigate to Keyguard.apk/res/layout/sec_alarm.xml
See code below (Marked in red zone):
Change to the whole line with this code:​
Code:
<LinearLayout android:visibility="gone" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"
5. Download Note4 lockscreen wallpaper from Here
Copy it to : Keyguard.apk/res/drawable-xxhdpi/
6. All done and now Recompile apk .
Copy again Keyguard.apk to System/priv-app by Root explorer ( or etc)​
Special thanks to
:
VN-team
@thanhfhuongf
@tpv1988
Forum Samsungviet.vn
Click to expand...
Click to collapse
Update 16 Oct 2014 :
7. Move Owner Infomation from right to center .
Navigate to Keyguard.apk/res/layout/sec_owner_info .
Find this line :​
Code:
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
Change the whole line with this code :​
Code:
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
Save and done !
2nd......
Mission impossible! Vũ brother!
Good job
Good job
Gửi từ SM-N910S của tôi
Awesome latest firmware NI1 from S5 have 11 lockscreen effect !
ksr007 said:
Awesome latest firmware NI1 from S5 have 11 lockscreen effect !
Click to expand...
Click to collapse
Can u share this setting please
Sent from my SM-N910C
thereassaad said:
Can u share this setting please
Sent from my SM-N910C
Click to expand...
Click to collapse
Can not, mate ! It's from S5 korea N900S with lastest firware NI1, I think it will not work on older rom .
ksr007 said:
Can not, mate ! It's from S5 korea N900S with lastest firware NI1, I think it will not work on older rom .
Click to expand...
Click to collapse
Okay but we can mod it bro [emoji6]
I like that lockscreen effect ..
Sent from my SM-N910C
thereassaad said:
Okay but we can mod it bro [emoji6]
I like that lockscreen effect ..
Sent from my SM-N910C
Click to expand...
Click to collapse
ok ! I will upload for you, soon !
ksr007 said:
ok ! I will upload for you, soon !
Click to expand...
Click to collapse
Thanks mate
Sent from my SM-N910C
ksr007 said:
ok ! I will upload for you, soon !
Click to expand...
Click to collapse
please for all S5 ported rom user bro i like all that effect :angel:
I woud like if someone makes an xposed mod for this.
Sent from Galaxy Note 3 SM-N9005
ksr007 said:
Can not, mate ! It's from S5 korea N900S with lastest firware NI1, I think it will not work on older rom .
Click to expand...
Click to collapse
It's possible to get this wonderful mod on SM-N900 dr ketan rom with s5 launcher ...and it's possible to make a flashable zip file please thanks for your hardwork ...
ksr007 said:
Awesome latest firmware NI1 from S5 have 11 lockscreen effect !
Click to expand...
Click to collapse
Sick notification bar... can you share source please?
Thanks!
Someone make the modification for me of my file ? …*:/
I've not a Windows, I'm on Mac
Thanks
New update in post#2
Good job bro, keep it up [emoji7] [emoji7]
Gửi từ SM-N910X của tôi
Someone could upload the file modified?

Categories

Resources