[FIX][5.1.1][any Xperia device] Status bar icons gap fixed - Xperia Z2 Android Development

As we all know, in android 5.1.1 there's a gap between the battery icon and the signal bar.
I managed to fix this little issue :good:
What you get:
The gap between the battery icon and the signal bar will be resized
Your current LTE/4G icon will be preserved
How to install:
I asked serajr to include this feature in his Xperia Xposed module, in order to let this fix work on any Xperia with any firmware :good:
From ver 2.2.2 onwards this feature is supported:
http://forum.xda-developers.com/showpost.php?p=63152553&postcount=1365
So just download and install the last Serajr Xperia Xposed (LP) from Xposed Installer and you'll get the fix
What part of the code has been changed?
If you like to modify the code manually or you need to add this feature to your rom without Xposed framework, here's the trick (very simple):
Decompile SystemUI
Enter this folder: res/layout
Open up signal_cluster_view.xml
Change this:
Code:
<com.android.systemui.statusbar.SignalClusterView android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingEnd="@dimen/signal_cluster_battery_padding"
with this
Code:
<com.android.systemui.statusbar.SignalClusterView android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingEnd="0.0dip"
Recompile
Many thanks to @serajr and @moly82
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"
}

Is this for odexed or deodexed rom?
Edit.
Working on odexed rom...
But if you delete odex file it stops working...probably won't work on deodexed roms

I confirm this patched SystemUI is working just fine on stock .232 Customized DE odexed.

vikrant7027 said:
Is this for odexed or deodexed rom?
Edit.
Working on odexed rom...
But if you delete odex file it stops working...probably won't work on deodexed roms
Click to expand...
Click to collapse
It works on both odexed and deodexed :good:
Have you flashed via recovery?
Have you done a cache and dalvikcache wipe?
The tool remove the old "systemUI" directory and push a single deodexed file without the odex part. That's why it works on odexed and deodexed.
You can find an automatic backup of your old "systemUI" in System anyways.
If you want to push manually, you have to delete the arm folder.

istux said:
It works on both odexed and deodexed :good:
Have you flashed via recovery?
Have you done a cache and dalvikcache wipe?
The tool remove the old "systemUI" directory and push a single deodexed file without the odex part. That's why it works on odexed and deodexed.
You can find an automatic backup of your old "systemUI" in System anyways.
If you want to push manually, you have to delete the arm folder.
Click to expand...
Click to collapse
Don't worry...I am on odexed rom and it worked for me
Thanks

I don't get it what the problem is on .232, could someone show/explain it because? I'm on .546 jet
Sony Xperia Z2

istux said:
I need someone with z2 who can test if my mod for z3 and z3-compact work for you too
This fix remove the gap between the battery icon and the signal bar.
Download here: http://d-h.st/2Ckm
You need the last .232 firmware
Flash via recovery
Remember to make a FULL BACKUP before modding.
Only expert people, please!
Please report below, thank you :good:
Click to expand...
Click to collapse
Can make for Z1?

Thank You OP, Works fine on the Z2 Odexed .232

anakdayak said:
Can make for Z1?
Click to expand...
Click to collapse
If it works on z3, z3c and z2, then it should work on z1 too.
Give it a try. Make a full backup and flash it

Thought I was the only person who noticed these gaps. IMO the statusbar icons have always been extremely unaligned on android, almost no matter which manufactor ROM but the latest AOSP versions seems to have gotten it better, but Sony's not so much..
I'm on Existenz so I doubt this SystemUI will do much good (maybe you can make an existenz version if I provide the .apk?) but on another note, how about the gap on the left of signal and wifi icon? Initially I actually thought it was a gap on the right side of the no-sound icon(s) but seems like it aint, after enabling the alarm icon...
Did a little photoshop work. See what I mean?:
Maybe I'm just really nitpicking here
EDIT: Also, I don't really see the gap between the battery icon and the signal icon but that's because the ExistenZ rom has some different icons, right? I haven't actually used the stock ROM so I don't really know.

Now fix is included in last serajr's Xperia Xposed :good:
I added the code to change, if you're a developer.
Read the OP!!!

istux said:
Now fix is included in last serajr's Xperia Xposed :good:
I added the code to change, if you're a developer.
Read the OP!!!
Click to expand...
Click to collapse
And for those who want to know how this fix works in the module, here is whole related code:
PHP:
package serajr.xx.lp.hooks.systemui;
import com.android.systemui.statusbar.SignalClusterView;
import serajr.xx.lp.Xposed;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedHelpers;
public class SystemUI_StatusBarFixDataBatteryGap {
public static void hook() {
// habilitado?
if (!Xposed.mXSharedPreferences.getBoolean("xx_system_ui_enabled_pref", false))
return;
// SignalClusterView - onFinishInflate
XposedHelpers.findAndHookMethod(SignalClusterView.class, "onFinishInflate", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
SignalClusterView thiz = (SignalClusterView) param.thisObject;
// reseta os paddings horizontais
if (thiz.getPaddingEnd() > 0 || thiz.getPaddingStart() > 0)
thiz.setPaddingRelative(0, thiz.getPaddingTop(), 0, thiz.getPaddingBottom());
}
});
}
}

Thanks Sir

Related

How to Create the Theme for LG home 3 + LGHOME 5x4

hi
i like to share how to create your own lg home3 theme
i made the example of theme
i create this base on lg Marshmallow theme
the tool you need is
LG usb driver
Android-SDK
eclipse (in my case i use eclipse juno)
i share my source code so any one can easily learn how it work
unzip the project
and using eclipse to import the project
other helps are in zip file
version 1.1
change text color to white
change some pink color to deep red
enable some icon on icon change list
EDIT :
hide application icon from application drawer
open manifest.xml and do this change
- change
<category android:name="android.intent.category.LAUNCHER" />
- to
<category android:name="android.intent.category.DEFAULT" />
here i give the example output, it is standard apk you can test it by just install the apk
ironman_theme.zip
lock screen wallpaper use this
wallpaper_01.jpg
Home_IronmanTheme_v1.1.zip
Home_IronmanTheme_v1.0.zip
TUTORIAL HOW TO CREATE THEME
please check the attachment
===============================
LG-HOME 3 mod 5x4 row
------------------------------------------
version : 3.0.034
so far support 10F and 10H
mod :
5x4 row home icon
customize calendar mod for theme creator
Customize Calendar theme required
at theme_resource.xml
add this line : <CalendarStyle title="XXXX" />
title can be : biz, cozywall, marshmallow, space, lte, odyssey, shine, thor
For installation :
If your LGHome 3 stock is already deodex, it can install as normal application
if not deodex :
delete LGHome stock, (in my case i install another Home before deleting) then reboot, then you can install as normal application
LGHOME3_mod_5x4_caltheme.apk
{
"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"
}
update version 1.1
bullghost said:
EDIT :
hide application icon from application drawer
- change
<category android:name="android.intent.category.LAUNCHER" />
- to
<category android:name="android.intent.category.DEFAULT" />
lock screen wallpaper use this
Click to expand...
Click to collapse
hi
Where this change this change???
and
How do I install???(in Recovery?)
Akbar.e said:
hi
Where this change this change???
and
How do I install???(in Recovery?)
Click to expand...
Click to collapse
oops sorry didnt explain which file is to do that change, i have update the how to do the change
no no need recovery, just install the apk as usually
Can you upload some screenshots
Thanks
ty for this! but, can u make step by step tutorial for us newbie how to use it in eclipse and how to do all steps till the end? or..if it's easier 4u maybe short video tut?
any way...nicely done. :good:
icyeye said:
ty for this! but, can u make step by step tutorial for us newbie how to use it in eclipse and how to do all steps till the end? or..if it's easier 4u maybe short video tut?
any way...nicely done. :good:
Click to expand...
Click to collapse
your welcome icyeye,
maybe i will try to take some screenshot for tutorial as i could
Does anyone already made a theme? If yes, please upload it and share us the download link. THANK YOU:highfive:
Thanks!
Thanks, man, I installed the theme and its pretty good. How is this thread so abandoned?
sorry, but which version of eclipse i need to download? for mobile developers or maybe just classic?
We really need to get this thread active. Will start working on themes. If we are successful in changing icons then who wants other launchers. Will save some more ram.
Partial Success
Tried editing the original iron man apk. Seems we have future prospects for theme making. Just need to learn some more. Credits to OP
Tmk969 said:
sorry, but which version of eclipse i need to download? for mobile developers or maybe just classic?
Click to expand...
Click to collapse
just classic eclipse juno , the current new release version
hi guys iam just back, many have todo, and my motherboard got blow up after electricity down, anyway
i have upload the tutorial , on first page, in attachment.
hope fully can help you guys to easily to fallow how to create theme
hi back update ,mod the LG Home launcher base on nomaj request thread
and update to customize the calendar , now calendar can be change for theme creator
bullghost said:
hi back update ,mod the LG Home launcher base on nomaj request thread
and update to customize the calendar , now calendar can be change for theme creator
Click to expand...
Click to collapse
OH! tnx! i hope that 5x4 mod for JB is iposible too... so if you need files i can provide
Cool
This is great. hope that you guys will share your theme
AW: How to Create the Theme for LG home 3 + LGHOME 5x4
I think I will try to do a theme with that tutorial soon
Thank you for that! :thumbup:
...sent with my LG Optimus 4X HD...
nomaj said:
OH! tnx! i hope that 5x4 mod for JB is iposible too... so if you need files i can provide
Click to expand...
Click to collapse
iam still waiting official jb -_-! , it will be good if you share it i try to mod it , but i cannot test it since myphone still on 10H

Help theming FlymeOS StatusBar

Hello,
I have a meizu MX HK M30 dual core with flymeOS 1.1.7 Which is based/created upon Android ICS 4.0.3.
I want to theme my status bar, but the SystemUI.apk is completetly different than other ICS Rom or CM9 Rom.
I have tried different thing for modding but all the time systemUI stop working, but compiling with no errors, I think there is some isssue with smali code.
So I need the help of a good themer for modding and explain to me how my systemUI for statusbar work.
I want a small transparent statusbar with center clock whithout date, wifi and carrier signal on the left.
I upload some screen shot of FlymeOS
{
"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"
}
As you can see in the Home there is a big statusbar and this is here that I want a small statusbar.
Make attention the notification of sms or other are in the second row of the big statusbar and need to be placed at the top.
Here is a Google Drive link with stock deodexed SystemUI.apk Framework-res.apk of FlymeOS 1.1.7 :
https://docs.google.com/folder/d/0B5e4iFwEmsizUjdhYlZ5UE1XN1E/edit
Thanks in advance.
The trick used by MrColdbird to always have the small statusbar is to pretend we're never on the Home Screen (if I understood correctly the smali mods).
Regarding the placement, I think the xml res mention several date objects
- com.android.systemui.statusbar.policy.HomeClock
com.android.systemui.statusbar.policy.DateView in layout/status_bar_large.xml & layout/home_lower_panel.xml
(2-row status)
- com.android.systemui.statusbar.policy.Clock in layout/status_bar_opr.xml
(?)
- com.android.systemui.statusbar.policy.Clock in layout/status_bar_small.xml
(1-row status?)
- com.android.systemui.statusbar.policy.DateView in layout/status_bar_expanded.xml
(dragged statusbar?)
Can you try & see if you can tweak these xml files?
Edit: does it belong better in forumdisplay.php?f=1905 ?
Thanks for reply
Do you come from MeizuMe?
So I have already tried to change some value in this XML files
If I undestand correctly the large home status bar work like that :
there is one file in res/layout/statusbar.xml this file call three other XML for the different look of the status bar :
- 1 res/layout/small_status_bar.xml which is the code for the look of the status bar when an app is open.
- 2 res/layout/opr_status_bar.xml which is the code for the lockscreen status bar.
- 3 res/layout/status_bar_large which is the code for the home status bar this file include a call of /res/layout/home_lower_panel.xml which is the second line of large home status bar.
So the thing that I want to know is can I remove the Home_lower_panel.xml whithout problem or I need to touch the smali code ?
If I need to touch the smali code I can't because I don't understand how smali works. I have already read some article on the google dev guide but I don't undestand.
Can you try some edit on the systemUI file try to compil and upload your file for testing I need an external coder and point of view because my processus for modding is wrong.
I put the recommended files for work on google drive : systemUI you have the framework-res.apk and systemUI.apk
try in your side give me the file for testing.
( ATTENTION : If you have your own meizuMX for testing be carrefull the files that I have upload come from FlymeOS 1.1.7 the latest update from meizu.
I have Just deodex the rom. So if you want to test in your own you need a Flyme 1.1.7 deodex rom, I can upload it if you need.)
Sometimes I have some aapt error when (for example) : I remove home_lower_panel.xml and I tried to recompile.
For a succefull compil I need to export the classes.dex and ressource.arcs inside my working SystemUI folder.
But after that I have SystemUI stop working when the phone start I use root explorer, I give the good permissions.
Do you think I make something wrong and do I need to make a flash zip and clear data ?
And I don't understand what you mean "Edit: does it belong better in forumdisplay.php?f=1905 ?" ?
Thanks for giving a little of your time for some FlymeOS user.
Hi,
No body with experiences in ICS, JB, CM theming wants to help ? please, take a look on the file which I upload.
Thanks.

[MOD][4.4.2/4.4.4] Dark OnOffTools Widgets v2 (Upd 11/08)

OnOffTools Widgets dark transparent!
Intructions:
- backup first
- mount system in recovery
- flash the zip
- reboot and enjoy the darkness
{
"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"
}
Update 11/08 (v2): GPS and hotspot widgets updated.
Upd 26/05: updated for stock rom .402 (deodexed)
Update 11/08 (v2)
Update 11/08 (v2): GPS and hotspot widgets updated.
Very cool n Nice...http://forum.xda-developers.com/images/icons/icon14.gif
Can you tell me what theme are you using?
El.Guaje said:
Can you tell me what theme are you using?
Click to expand...
Click to collapse
I'm not using any theme. I'm just using my own flashable mods (click to show content in my signature) and Serajr Xperia Xposed module for the apptray icon.
nreuge said:
I'm not using any theme. I'm just using my own flashable mods (click to show content in my signature) and Serajr Xperia Xposed module for the apptray icon.
Click to expand...
Click to collapse
Is there any way to try you icon without flashing through CWM?
El.Guaje said:
Is there any way to try you icon without flashing through CWM?
Click to expand...
Click to collapse
Yes, applying this theme: iTHEME METAL - Z2
Mod working for 4.4.4
how to install?
I follow your step to install the zip, but nothing happen in my z2 d6503 (4.4.4 deodexed stock ROM)
And then, I try to move the onofftool.apk to system/app . But the onofftool is gone when I restart my z2 .
Would you tell me why and how to install your mod?thx~
As always great work, Keep it up dude!!!
D-Ares said:
I follow your step to install the zip, but nothing happen in my z2 d6503 (4.4.4 deodexed stock ROM)
And then, I try to move the onofftool.apk to system/app . But the onofftool is gone when I restart my z2 .
Would you tell me why and how to install your mod?thx~
Click to expand...
Click to collapse
You must mount system before flashing and it will work.
If you move the onofftool.apk to system/app, don't forget to set correct permissions.
nreuge said:
You must mount system before flashing and it will work.
If you move the onofftool.apk to system/app, don't forget to set correct permissions.
Click to expand...
Click to collapse
What is the meaning of “mount system" ? Would u tell me more details ? Thx~
D-Ares said:
What is the meaning of “mount system" ? Would u tell me more details ? Thx~
Click to expand...
Click to collapse
In recovery, there is somewhere the option to mount system.
nreuge said:
In recovery, there is somewhere the option to mount system.
Click to expand...
Click to collapse
Mount system and flash the zip. But the onofftool is gone when I restart my z2 .
Oh~ it make me so crazy 〒_〒 I want to know why and how to do
D-Ares said:
Mount system and flash the zip. But the onofftool is gone when I restart my z2 .
Oh~ it make me so crazy 〒_〒 I want to know why and how to do
Click to expand...
Click to collapse
Are sure your rom is deodexed ?
So sorry but I can't help you, it's working fine on my device.
nreuge said:
Are sure your rom is deodexed ?
So sorry but I can't help you, it's working fine on my device.
Click to expand...
Click to collapse
I sure my ROM is deodexed
nreuge said:
OnOffTools Widgets dark transparent!
Intructions:
- backup first
- mount system in recovery
- flash the zip
- reboot and enjoy the darkness
Update 11/08 (v2): GPS and hotspot widgets updated.
Click to expand...
Click to collapse
Hello, is somewhere an manual how to hack original OnOffTools.apk for dark background? Or what exactly i need to do for setting up only the dark background? Iwant modify xperia m OnOffTools.apk. Thank you.

[MOD] [LMY47E]APM, Centre Clock, Battery Text - CleanROM v1.0.0 28/03/2015

{
"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"
}
​ I love the stock look of Android L. It is the reason I bout the Nexus 6. As with all versions of Android, there are extra features that could be added in. So with that I have done!
Disclaimer
These MODS have been designed to work with @scrosler - CleanROM only. These MODS change core files, so only use with LMY47E based DEODED rom's. If you try to use with other roms you will get FC's - You have been warned.
Take a backup first before flashing any MODS
The MODS
Centred clock
Battery Text
Both Battery Text and Centred Clock
Updated Advanced Reboot Menu Icons - Note I did not write the APM, just updated the icons
Look in post #2 for the downloads. All credit goes to scrosler for his amazing rom.
Downloads
This section I will provide the downloads for the above mods. I will also include the stock files that come with Clean ROM, so you can change back easily at any time.
Look at the bottom of the post to see the different downloads.
Please provide feedback and let me know what you think!
Change Log
V1.0.0
Initial files
​
Mods are up Enjoy! Remember only use with CleanROM v2.1. These will cuase FC's on other roms!
reserved 3
Nicely done! Thanks for sharing!
Yo! Yo! Yo!
Nice to see some mods showing up!!!! And yep good ol' gunthermic is in the house!!! LOL
good job Stephen, any chance we can see battery % with icon in status bar? ill take a look over the code tonight when I get home
Yes that is very easy. Edit the system_icons.xml file and look for android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" remove android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" and change width and height to back to normal. I cant remember what the default values are..
I had been thinking of making one with the icon as well. But had enough for today! @Danvdh if you could have a look at the clock for me. It is not 100% right. I think it needs to be a bit bigger!
Stephen said:
Yes that is very easy. Edit the system_icons.xml file and look for android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" remove android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" and change width and height to back to normal. I cant remember what the default values are..
I had been thinking of making one with the icon as well. But had enough for today! @Danvdh if you could have a look at the clock for me. It is not 100% right. I think it needs to be a bit bigger!
Click to expand...
Click to collapse
I'll give it a look over tonight
Can we get one for the led light while phone is charging?
Just got up and running on CleanROM this morning ... Flashed these mods a bit ago and so far so good! Thanks @Stephen
Thanks for the mod, anyway to get the battery to the left? Thanks
I can certainly have a look. I think that would mess up notifications though,
Do these MODs work on the latest CleanROM 2.20 which is based on 47M? Or we should wait for an update? TIA
YankInDaSouth said:
Just got up and running on CleanROM this morning ... Flashed these mods a bit ago and so far so good! Thanks @Stephen
Click to expand...
Click to collapse
Lancez said:
Do these MODs work on the latest CleanROM 2.20 which is based on 47M? Or we should wait for an update? TIA
Click to expand...
Click to collapse
Reading the YankInDaSouth post seems compatible......I think (and hope).....
crisgen said:
Reading the YankInDaSouth post seems compatible......I think (and hope).....
Click to expand...
Click to collapse
No, that was yesterday ... Have not tested with latest build
Yes they should be fine with the latest build. I will have some time over the weekend, so I plan to re-base the mods on CleanROM v2.2. Just take a backup of your rom first, before installing them.
I also think the battery mod is better with the charging icon, so I will include it in the next release.
I also now have learnt how to disable the brightness slider, so may include that as an option.
Does anybody know how to disable the "Connected as media device" notification? I am certain it is in SystemUI, but I cant find any references to it!
Will there be an update for LMY47H???
Sent from my SinLess NeXus 6 using TapaTalk!!
LVY47H. Tested on the stock rooted and only the center clock mod works.
The rom has to be deodxed for the APM to work. These mods are only designed to work with CleanROM as it was his files I used as a base.

[REQUEST] Dual clock on status bar

Hi there.
I was wondering if it is possible to create a module that adds a second clock to the status bar. I live abroad, and I used to use xposed for that (there's a module called XDualStatusClock which worked great) so I could have my home country and tmy residence country's time on the status bar. I have since upgraded to Lineage OS 14.1 (Nougat) and unfortunately xposed is not supported.
I haven't found any app that does this and I wanted to know if it would be possible to have something like that in Magisk. If anybody knows or knows if there is another way to do it, please, let me know.
Thabk you in advance.
Xposed and Magisk do quite different things (code injection vs file injection).
The short answer to your question is: Yes, it's possible but not as easy as you'd like.
The long answer is: If you wan't this with Magisk, you'll need use a Magisk module to mount and replace system files with modded files to get what you're after. Xposed can do this on the fly, Magisk does it by replacing system files with previously prepared files at boot.
pancomido said:
Hi there.
I was wondering if it is possible to create a module that adds a second clock to the status bar. I live abroad, and I used to use xposed for that (there's a module called XDualStatusClock which worked great) so I could have my home country and tmy residence country's time on the status bar. I have since upgraded to Lineage OS 14.1 (Nougat) and unfortunately xposed is not supported.
I haven't found any app that does this and I wanted to know if it would be possible to have something like that in Magisk. If anybody knows or knows if there is another way to do it, please, let me know.
Thabk you in advance.
Click to expand...
Click to collapse
All you need to do is decompile your system.apk and add a textclock to your status_bar.xml and set the time zone. I'm on Central time but I added a los Angeles time zone on an additional text clock. Flashed it systemlessly using djb77's evilthemer magisk module maker flashing just the status_bar.xml
{
"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"
}
Tulsadiver said:
All you need to do is decompile your system.apk and add a textclock to your status_bar.xml and set the time zone. I'm on Central time but I added a los Angeles time zone on an additional text clock. Flashed it systemlessly using djb77's evilthemer magisk module maker flashing just the status_bar.xml
Click to expand...
Click to collapse
Can you please specify, what the line was that you added in statusbar?
winesh said:
Can you please specify, what the line was that you added in statusbar?
Click to expand...
Click to collapse
To put it in the center of statusbar put this code right under xmlns:systemui="http://schemas.android.com/APK/res/com.android.systemui">
<TextClock android:textAppearance.StatusBar.Clock" android:gravity="center" android:I'd="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:single line="true" android:format12Hour="EEE h:mm a" android:timeZone="America/Los_Angeles" />
You can format it how you like and of course substitute the time zone you want. Also insert 24Hour format to the same code if you like.
Tulsadiver said:
To put it in the center of statusbar put this code right under xmlns:systemui="http://schemas.android.com/APK/res/com.android.systemui">
<TextClock android:textAppearance.StatusBar.Clock" android:gravity="center" android:I'd="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:single line="true" android:format12Hour="EEE h:mm a" android:timeZone="America/Los_Angeles" />
You can format it how you like and of course substitute the time zone you want. Also insert 24Hour format to the same code if you like.
Click to expand...
Click to collapse
Thanks bro, will try it as soon as possible.

Categories

Resources