613+ Upgrades - QS Tiles and Hebrew Date on Lockscreen with Toggle

MtkSystemUI Mod v2

This is the MtkSystemUI apk from 6.1.3 with the following enhancements:

  1. It supports @ars18’s fix adding the hotspot QS tile back into the ROM (mirrored here).

  2. It supports many other QS tiles - including dark theme toggle, based on שניאור שמח’s guide on mitmachim (although I used apktool instead of MT Manager - so I get a drop of credit for being a teeny wee bit more manual) - related to above.

  3. It supports Hebrew Date on the lockscreen based on @מחנה_ידידים 's post on mitmachim which he references on the forum here.

So what did I do - if I just followed the guides? Well… I added support to toggle the Hebrew Date on the lockscreen on and off. Now I really get credit - because I did it manually, all by myself, without using AI (which, I feel, still should be celebrated, especially by the “organic” types). This app is platform signed, if it makes a difference to anyone.

Download the APK from mega.

Install using the following long run-on command (requires root):

adb push MtkSystemUI.apk /sdcard/MtkSystemUI.apk && adb shell "su -c 'mount -o remount,rw / && cp /sdcard/MtkSystemUI.apk /system_ext/priv-app/MtkSystemUI/MtkSystemUI.apk && chmod 644 /system_ext/priv-app/MtkSystemUI/MtkSystemUI.apk && chown root:root /system_ext/priv-app/MtkSystemUI/MtkSystemUI.apk && chcon u:object_r:system_file:s0 /system_ext/priv-app/MtkSystemUI/MtkSystemUI.apk && mount -o remount,ro / && rm /sdcard/MtkSystemUI.apk && reboot'"

To turn on Hebrew Date on the Lockscreen:

adb shell settings put global show_hebrew_date_on_lockscreen 1

To Turn it off:

adb shell settings put global show_hebrew_date_on_lockscreen 0

I found it really cool to write the settings lookup in smali, though it took a lot of trial and error (I really did do it manually), so throw me a like.

This is part of my Qin ROM which I hope to finish soon if I ever actually figure out all the stuff I want to do. The finished ROM will of course provide a UI for ticking the new features, no need for ADB commands. Also, the Hebrew date on homescreen involves patching the Launcher, not the System UI, so that’s a different release.

For the geeks - under the hood, it exposes a global static instance of com.android.systemui.SystemUIApplication which extends Application, providing global access to application Context. A helper class called GlobalSettingsHelper uses this Context object to look up the show_hebrew_date_on_lockscreen, passing a boolean back to the caller - who does not require a Context. This made it easy to modify the guide’s code in the updateHebrewDisplay method of the HebrewDateHelper. Since the guide’s code ingeniously takes a TextView object and updates it inline, instead of modifying the original class tied to the layout, it is trivial to control visibility and content from this method. Whatever.

UPDATE - Updated version of Extra Settings app here [Extra Settings (remote) 1.2 (2)], adds UI toggle for Hebrew Date on lockscreen and Navigation bar.

And now, poll:

Should the Hebrew Date on the Homescreen use the same setting as the Lockscreen (So they are both either on or off), or should they be separate settings?


Latest Updates:

The most current mod app versions are:

  • MtkSystemUI Mod V4
  • Extra Settings (remote) 1.3 (3)

Get them in their intro post, below.
If you want to know what changed, you’re going to have to read the whole thread…

10 Likes

Nice!

I say two separate settings

You do get credit. For real. U ok after the smali? :rofl:

4 Likes

A little woozy perhaps, but I’ll live.

UPDATE Extra Settings 1.2 (2) - here is an updated version of “extra settings” which offers a UI toggle for turning hebrew date on and off. It also allows toggling navigation bar on the bottom of the screen on and off.
(Credit to יצחק.א on Mitmachim for his guide on enabling the navigation bar. Credit to gemini for writing the toggle.)

I sincerely hope to address the UI quirks with the navigation bar (update - done here), and to make the icons in extra settings compatible with dark theme (update - done here). But for tonight, it’s waaaay past bedtime.

App on mega [Extra Settings (remote) 1.2 (2)]. I do not have the keystore for the original, so you cannot install this one over it. You will need root to replace. @ars18 or @TripleU you are welcome to resign and share so users can upgrade without root, installing over the original. For now, use this command to install:

adb push remote.apk /sdcard/remote.apk && adb shell "su -c 'mount -o remount,rw / && cp /sdcard/remote.apk /system/priv-app/remote/remote.apk && chmod 644 /system/priv-app/remote/remote.apk && chown root:root /system/priv-app/remote/remote.apk && chcon u:object_r:system_file:s0 /system/priv-app/remote/remote.apk && mount -o remount,ro / && rm /sdcard/remote.apk && reboot'"

IMPORTANT: If you already installed the update posted by @ars18 in the 6.1.3 thread - uninstall that first before running the ADB command! That update installs to the /data partition, whereas this command is replacing the base apk in the /system partition.


UPDATE - Extra Settings (remote) 1.3 (3), introduced here, is signed with the same signature as the original 1.0 shipped with the ROM and the updated 1.0 linked in the 6.1.3 thread. It can be installed as an update and does not require the above command. If you already installed version 1.2, you will have to use this command to install 1.3. EDIT: Users are reporting issues installing as an update, discussed below. Recommended that you use the ADB method.

2 Likes

In the final room, can you include @Yidish’s phone app instead of the Google one?

Did you use the updated one in 6.1.3 post as base?

As for sig, AOSP platform keys

Btw, the navigation bar is provided even though I personally think it looks awful. Also, it doesn’t really “shtim” with dark theme (which is why all the pictures in the post are in light theme) because somehow you can see behind it when scrolling. I can try to find the elements in System UI and fix it, but its not a high priority.
I actually use navigation on the qin like this: The owl key is mapped to home using key mapper, whereas the back button functions natively as… well, a back button. Also, longpressing the back button brings up the recents screen natively. So there you go - physical 3 button navigation using only one keymap and you don’t need FNG (which I found supremely annoying) or an on screen navigation bar that hogs precious real estate in an already limited environment.

My maps for the qin are here in this post.

1 Like

I pulled the code straight from the github you provided me - it was at version 1.0, so unless versioning wasn’t bumped with the second release, then this is based on the first version. What changed in the second release? Can you share the updated code? Also - in the signing config, there was a keystore (which I didn’t have), which is why I assumed it was different than the private key / public key test keys - without even checking. I remeber once importing a private key / public key pair into a .jks (which is essentially the same thing as Android Studio’s ,keystore). Guess I can figure it out again or just resign the app using the individual certs. Point is - can you check the github and possibly share updated code before I resign and re-upload? (And if you remember what changed, it will save me a comparison and a prompt).

It should be updated then. Check if the app switching toggles work right.

Also, that signature I derived from downloading the 6.1.3 post apk.

err? (for more information, press 1. - 11111111111111111111)

Heh?

Can you elaborate on on the steps you took to “derive” the signature, and what you mean by the “6.1.3 post apk”. If you are referring to the extra settings apk linked above, then can you explain how that will help me obtain your certs for signing a different app? Sorry, drop foncused.

When I say derive I mean I just checked that apks signature.

That was a while ago, I’m more professional now :rofl:

What I think happened was @TripleU made the more settings app, misplaced the sig, I then signed with PK’s. I THINK

sorry :rofl:

Just try updating over old with stock pk signatures

That apk in that post is signed with stock AOSP platform keys

Refer to this:

Keys are there

ty. Have the keys lol - the system ui app on top of this thread is already platform signed. I wonder who sent them to me? :winking_face_with_tongue: . Quick question - do you remember what changed / got added in your updated extra settings app. (Also why does the apk have such a scary name - “remote”? looking at the code, its not “remotely” “remote”)

Only called remote because that’s the apk it replaced from duoqin. Package name causes it to show up where it does.

I believe that’s the latest pushed source to GH, was just some fixes with the app switching I think. Check the commits

Sorry, like I said I’m more professional now than when I worked on the ROM :melting_face:

Update - v3

MtkSystemUI Mod V3

  • Added dataconnection tile to values/strings.xml (Key quick_settings_tiles_stock) based on actual supported tiles listed in com.android.systemui.qs.tileimpl.QSFactoryImpl.java. Incidentally, discovered that reverse, alarm, mictoggle, and reduce_brightness (included in the Mitmachim guide) are not supported by 6.1.3.
  • I’ll be honest, I have no clue what this does or why it is here, because it doesn’t seem to do anything.

Apk file on mega.

Extra Settings (remote) 1.3 (3)

  • Fixed icon drawables for compatibility with dark theme.

  • Changed Hebrew Date preference title.

  • Re-signed with platform signature (should now be able to be installed on top of original as an update. If you already updated using the long adb command, use the same command to re-install this one). Fake news. Use the long ADB command from here to install.

  • Bump version to 1.3 (3).

Apk file on mega.

Stay tuned!

5 Likes

Update MtkSystemUI Mod V4

  • Fixed navigation bar optics for dark and light theme.

  • MtkSystemUI Mod V4 Apk file on mega.
  • Extra Settings (remote) 1.3 (3) remains unchanged, and is also available on mega.
3 Likes

Wow! Thanks! :+1::folded_hands:
Can you add the search bar in settings from מדריך | החזרת שורת החיפוש והסרת הכותרת הענקית ב-הגדרות | מתמחים טופ - פורום הטכנולוגיה של הציבור החרדי

1 Like