[REQUEST]Remove AM/PM from lockscreen and status bar - Xiaomi Mi A1 Themes, Apps, and Mods

I want to remove AM/PM from lockscreen and status bar clock? (without using 24hr format)
And I have no idea where to start.
I tried decompiling SystemUI and framework-res but still no clue.

+1

YB EDISON said:
I want to remove AM/PM from lockscreen and status bar clock? (without using 24hr format)
And I have no idea where to start.
I tried decompiling SystemUI and framework-res but still no clue.
Click to expand...
Click to collapse
AM/PM from status bar can be removed by using GravityBox. But I couldn't find any way to remove it from locksreen. Even a xposed module lockscreen mods doesn't have such option.

YB EDISON said:
I want to remove AM/PM from lockscreen and status bar clock? (without using 24hr format)
And I have no idea where to start.
I tried decompiling SystemUI and framework-res but still no clue.
Click to expand...
Click to collapse
systemui.apk
res/values/bools.xml

Rajeev said:
systemui.apk
res/values/bools.xml
Click to expand...
Click to collapse
Hi
Is there anyway to centre the lockscreen clock and remove am/pm from it without 24 hr ??
Thanks

mdmaher said:
remove am/pm from it without 24 hr ??
Click to expand...
Click to collapse
Try to do so
In SystemUI\smali\com\android\systemui\statusbar\policy\Clock.smali find method and delete highlighted in red
Code:
.method private final getSmallTime()Ljava/lang/CharSequence;
.....
.....
.....
invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v19
.line 313
const-string/jumbo v20, "[COLOR="Red"]a[/COLOR]" ###[COLOR="Blue"]should be const-string/jumbo v20, ""[/COLOR]
.line 312
invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

kep2008 said:
Try to do so
In SystemUI\smali\com\android\systemui\statusbar\policy\Clock.smali find method and delete highlighted in red
Click to expand...
Click to collapse
Thanks, I will try

pls how to hide status bar clock on lock screen ?

use this module
{
"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"
}

Just use Susbtratum and Andromeda via adb then download Substweaks to remove AM/PM.
Sent from my Xiaomi Mi A1 using XDA Labs

Related

[MOD JB XWLSW 4.1.2] _StatusBar Like MIUI_ [UPDATE]

Hello buddy​
This is little mod StatusBar Like MIUI using lidroid 16 toggle. Work fine in NeatRom,Jellysnap, and may be Stock jb 4.1.2..
Just flash zip in Recovery and reboot. hope you like it​
NOTE :
.Toggle reboot, power, not work, hide it. i'm not Sign SystemUI
SCREENSHOT :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
LINK DOWNLOAD :
STATUSBAR LIKE MIUI
THANKS TO :
.Sale
.Wanam
.ILLegal Dev
.DCSMS
.Reza Rivani
.ILmnss Fams
.HardCord Fams
UPDATE..!!
StatusBar Like MIUI with lidroid 23 toggle
NOTE :
.Toggle flahslight, reboot, power, not work, hide it. i'm not Sign SystemUI
SCREENSHOT :
LINK DOWNLOAD :
STATUSBAR LIKE MIUI 23 TOGGLE
ENJOYY
Nice:thumbup:
maybe you can update the OP and include the build no (XWLSZ,XWMS1...)
engloa said:
Nice:thumbup:
maybe you can update the OP and include the build no (XWLSZ,XWMS1...)
Click to expand...
Click to collapse
oke sir,, thanks for sugges
RizaLeon said:
Sure baddy.. Upload your systemUI.apk
Click to expand...
Click to collapse
Umm wasn't asking for a mod. Was just saying maybe you can put the base you used for making the mod in the OP like xwms1 and so on. Completely upto you of course
Little review for your hard work
on right panel, we see two xposed modules actvated : Xblast tools and XuiMod.
i only keep lidroid-res.apk and restore lidroidsettings and systemui from @_Sale_ after review. I keep it because i like toggles
your systemui 1.5Mo,
systemui from NeatRom , 8Mo , i think we loose some functions if we keep yours in neatrom.
thanks @RizaLeon
engloa said:
Umm wasn't asking for a mod. Was just saying maybe you can put the base you used for making the mod in the OP like xwms1 and so on. Completely upto you of course
Click to expand...
Click to collapse
sorry my bad english :crying:
Troubadour666 said:
Little review for your hard work
on right panel, we see two xposed modules actvated : Xblast tools and XuiMod.
i only keep lidroid-res.apk and restore lidroidsettings and systemui from @_Sale_ after review. I keep it because i like toggles
your systemui 1.5Mo,
systemui from NeatRom , 8Mo , i think we loose some functions if we keep yours in neatrom.
thanks @RizaLeon
Click to expand...
Click to collapse
Thanks for review,, Good :good:

[GUIDE] Change DateView format (Now with carrier name)

What is this?
Just a DateView mod
What is DateView?
DateView is the date in our statusbar that shows when we expand our statusbar Many of us removing DateView in our statusbar maybe because it is annoying so lets make it cool
How to use
Download the attached DateView smali files.
Extract it and move to SystemUI/smali/com/android/systemui/statusbar (or just simply replace the DateView smalis)
To change the DateView format find
Code:
const-string v4, "E"
And change the "E" to any Java date format
(Not available for Carrier X DateView.smali)
To change the DateView to Carrier Name just download and extract Carrier X DateView.smali
Screenshot by @mohawk97
He use
Code:
const-string v4, "M"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
To display the time use this
Code:
const-string v4, "h:mm a"
For more Date formats go here
http://www.tutorialspoint.com/java/java_date_time.htm
This is the screenshot for Carrier X DateView
Credits
PotatoInc
Our friends from Lenox Evolution
You baby
​
mariozawa said:
What is this?
Just a DateView mod
What is DateView?
DateView is the date in our statusbar that shows when we expand our statusbar Many of us removing DateView in our statusbar maybe because it is annoying so lets make it cool
How to use
Download the attached DateView smali files.
Extract it and move to SystemUI/smali/com/android/systemui/statusbar (or just simply replace the DateView smalis)
To change the DateView format find
Code:
const-string v4, "E"
And change the "E" to any Java date format
Screenshot by @mohawk97
He use
Code:
const-string v4, "M"
To display the time use this
Code:
const-string v4, "h:mm a"
For more Date formats go here
http://www.tutorialspoint.com/java/java_date_time.htm
Credits
PotatoInc
Our friends from Lenox Evolution
You baby
​
Click to expand...
Click to collapse
Reserve:silly:
How to remove date ??
Himan Boro said:
How to remove date ??
Click to expand...
Click to collapse
I presume by deleting the line that starts
Code:
<com.android.systemui.statusbar.DateView
from status_bar.xml
I use Potato Clock Mods for this
the_vanya1 said:
I use Potato Clock Mods for this
Click to expand...
Click to collapse
Potato Clock Mod and this is different.
The first lets you change how the clock is displayed in the status bar. The second allows you to change how the date appears when the status bar is expanded. Most developers remove the date altogether though.

CLOSED | [XT907][4.4.2] Stock Launcher - Trans Bars Mod

{
"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"
}
- THREAD CLOSED
STOCK KITKAT LAUNCHER (DEODEXED)
+V4.4.2-10
+TRANSLUCENT STATUS AND NAVIGATION BARS
+WITH OR WITHOUT DOCK TEXT
INSTALL
+DOWNLOAD
+PLACE ON SDCARD
+FLASH THROUGH RECOVERY
+WIPE CACHE/DALVIK
+REBOOT
--------------------------------------------------------------------------
+DOWNLOAD - With Dock Text
+DOWNLOAD - Without Dock Text
--------------------------------------------------------------------------
+KITKAT ROM DEODEXER: LINK
--------------------------------------------------------------------------
FOR THE GEEKS!
TRANSLUCENT BARS:
Code:
res/values/styles = line 142
Code:
<style name="Theme" parent="@android:style/Theme.Holo.Wallpaper.NoTitleBar"[COLOR="Red"]>[/COLOR]
[COLOR="Red"] <item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:fitsSystemWindows">true</item>
</style>[/COLOR]
Click to expand...
Click to collapse
NO DOCK TEXT:
RAZR M:
Code:
res/values-hdpi/dimens
RAZR HD:
Code:
res/values-xhdpi/dimens
Code:
<dimen name="hotseat_cell_height">[COLOR="Red"]64.0dip[/COLOR]</dimen>
<dimen name="hotseat_width_gap">[COLOR="Red"]-1.0dip[/COLOR]</dimen>
<dimen name="hotseat_height_gap">[COLOR="red"]-1.0dip[/COLOR]</dimen
Click to expand...
Click to collapse
Awesome Job....thanks.
Sent from my XT907 using Tapatalk 2
ATTACK said:
FOR THE GEEKS!
TRANSLUCENT BARS:
Click to expand...
Click to collapse
Hi Attack, is there any way to do this through something like the build.prop? Not quite geeky enough, but I'd like to learn! At the moment I'm using GravityBox to handle the transparency for the status/nav bars, but was wondering if I could do it more... holistically.
dareiflash said:
Hi Attack, is there any way to do this through something like the build.prop? Not quite geeky enough, but I'd like to learn! At the moment I'm using GravityBox to handle the transparency for the status/nav bars, but was wondering if I could do it more... holistically.
Click to expand...
Click to collapse
Nope - you'll need to decompile Homescreen.apk, navigate to the xmls I listed above and add the code.
> https://ibotpeaches.github.io/Apktool/
> http://notepad-plus-plus.org/
Damn, gotta get my hands dirty for this then, haha. I have the XT905/Aus model, I'm assuming that the changes needed will be similar to the XT907? Thanks heaps for pointing me in the right direction!
dareiflash said:
Damn, gotta get my hands dirty for this then, haha. I have the XT905/Aus model, I'm assuming that the changes needed will be similar to the XT907? Thanks heaps for pointing me in the right direction!
Click to expand...
Click to collapse
Is the 905 on KitKat or jellybean?
Sent from my xt1031
ATTACK said:
Is the 905 on KitKat or jellybean?
Sent from my xt1031
Click to expand...
Click to collapse
It's on rooted/unlocked BL Jellybean 4.1.2
dareiflash said:
It's on rooted/unlocked BL Jellybean 4.1.2
Click to expand...
Click to collapse
Unfortunately, this wont work on Jellybean. To enable translucently on Jellybean you'll need to make some smali edits. I did that for the Galaxy Nexus on AOSP but I dont know if it will work on the Razr M. But if you want to try here's the guide.

[TUTORIAL] [MOD] How to Disable Scrolling Cache for Smooth

Hello Today I have Bring Another Guide How to Disable Scrolling Cache for Smooth Scroll So Lets Start
Requirement
framework.jar from Your Phone
Instructions:
Step 1 :- Decompile Your Framework.jar
Step 2 :- Open smali/android/widget/AbsListView.smali
Step 3:- Search for
Code:
.method private createScrollingCache()V
{
"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"
}
Step 4 :- Change 0x1 to 0x0
Step 5 :- Search for
Code:
.method public setScrollingCacheEnabled(Z)V
Step 6 :- Change enabled to disabled
Step 7 :- Search for
Code:
invoke-virtual {p0, v1}, Landroid/widget/AbsListView;->setScrollingCacheEnabled(Z)V
Step 8 :- Replace with
Code:
invoke-virtual {p0, v2}, Landroid/widget/AbsListView;->setScrollingCacheEnabled(Z)V
Step 9 :- Now Compile
Step 10 :- Pus to ur Phone
what
About That
MrPhamHpGYC said:
what
Click to expand...
Click to collapse
Its Make Very Very Smooth Scrolling Yes Its Work
Reserved
sample video sir
Sorry
christopher devz said:
Click to expand...
Click to collapse
Sorry I can"t
SUCH HYPERION 8 and LENOX EVO V3
those custom roms had scrolling cache !
Ya
dansoy92 said:
those custom roms had scrolling cache !
Click to expand...
Click to collapse
Ya Many Rom Like Hyperion 8 Lenox 3 etc
deleted
zigbye82 said:
deleted
Click to expand...
Click to collapse
What
tnx sir
christopher devz said:
tnx sir
Click to expand...
Click to collapse
No Need to Say Anything Just Press Thanks
hi @AndroidFire is this applicable for other android devices and what android version is it for
i cant open any app after using this mod -_-
and neither i cant view my installed apps in settings
help please !
 @AndroidFire
Mranggapo said:
i cant open any app after using this mod -_-
and neither i cant view my installed apps in settings
help please !
@AndroidFire
Click to expand...
Click to collapse
very strange... this how to greate work on nexus 5 (this mod have many costom roms) !!!
if no work,replace the framework.jar back to stock

[GUIDE] [APP] [MM] [ROOT] [.570] [UPDATE :- 11.04.2016] Add Extra Quick Toggles

Hello friends
Here i am presenting a small guide for making / getting extra custom toggles / tiles in your Marshmallow Status bar. For this you need a rooted MM latest 570 build. This will work in Z2/Z3/Z3C only. You need a deodexed rom for this.
ENABLE SYSTEMUI TUNER
First we need to enable SystemUI tuner. For that swipe down status bar and long click on the settings icon for 4 seconds. ( Rounded icon as shown in image below).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After this you will get SystemUI enabled in settings like below image
Thats it. Now we need to download one application from playstore named " Custom Quick Settings". This app will work in non rooted phones also but u will miss some Quick Toggles like reboot , screenshot etc.. Here is the LINK. You can support the developer by purchasing the pro app too.. . Download and install the app. Open it. You will get a screen like below
Just play with it and get some extra useful quick settings like this
By using the default SystemUI u can't add more toggles because of restrictions. For that reason i have edited the MM SystemUI for getting unlimited Tiles and 4 Toggles in a raw. Find the Modded SystemUI flashable zip below and simply flash it through recovery. Make sure u have a deodexed MM rom.
DOWNLOADS
1) MM SystemUI With 4 Toggles In a RAW
2) MM SystemUI With 4 Toggles In a RAW + Invisible Power Button
3) MM SystemUI With 4 Toggles In a RAW + 5 Button Navigation Bar
IMPORTANT NOTE
If you already knows about this or you are a Xposed user means kindly do not spam this thread
Rajeev. Thank! :good:
Awesome guide rajeev
Nice bro ^^
eduardkdrv said:
Rajeev. Thank! :good:
Click to expand...
Click to collapse
vikash1994b said:
Awesome guide rajeev
Click to expand...
Click to collapse
Pandemic said:
Nice bro ^^
Click to expand...
Click to collapse
Thanks brothers

Categories

Resources