[ROOT][PIE] Night Light for XZ Premium (and many others)

Sebi673

Senior Member
Oct 11, 2013
381
139
0
29
Bucharest
Hey guys,

Rooted recently, got on Pie and found myself missing the Night Light - such a little thing that makes all the difference at night. Tried redoing the steps I did to enable it on Oreo but failed.
Anyway, long story short, after a few xda threads I installed Pix3lify, which is a hit n miss - and I already had Digital Wellbeing port. So I extracted the apks responsible for night light only and put them in a zip.

The apk had a lot of lines reporting to Ambient display and other functionalities which have been removed - the apk has 2kb and enables night light - just that.

Install: Copy nightLight.apk to system > vendor > overlay (set 644/-rw-r--r-- permissions). Best to use MIXplorer

OR

Flash the zip via TWRP/Magisk Installer (Nightlight_v1)- Thanks to @alagga for the Magisk Module :)

Since the port is from Pixel, it goes hand in hand with Digital Wellbeing port (magisk module).
Night Light settings in Display > Advanced > Night Light. Quick settings tile present in the dropdown customization area.


Have a good Night(Light)
 

Attachments

Last edited:

TheArt.

Senior Member
Feb 13, 2012
518
350
83
Milan, at the moment
digiga.it
Hey guys,

Rooted recently, got on Pie and found myself missing the Night Light - such a little thing that makes all the difference at night. Tried redoing the steps I did to enable it on Oreo but failed.
Anyway, long story short, after a few xda threads I installed Pix3lify, which is a hit n miss - and I already had Digital Wellbeing port. So I extracted the apks responsible for night light only and put them in a zip.

The apk had a lot of lines reporting to Ambient display and other functionalities which have been removed - the apk has 2kb and enables night light - just that.

Install: Flash the zip or copy the apk to system > vendor > overlay (+644 permissions).

Since the port is from Pixel, it goes hand in hand with Digital Wellbeing port (magisk module).

Have a good Night(Light)
Are there any chances to make it work using adb, just like the old Oreo apk? Because I am on stock unrooted

Sent from my XZ1 Compact using XDA Labs
 
  • Like
Reactions: mukul93

Sebi673

Senior Member
Oct 11, 2013
381
139
0
29
Bucharest
Are there any chances to make it work using adb, just like the old Oreo apk? Because I am on stock unrooted

Sent from my XZ1 Compact using XDA Labs
Not that I know of. Tried the old adb line but that won't work. Anyway, if you plan on rooting, make sure you do the DRM backup - totally worth the effort.
 

ricardo99831390

Senior Member
Dec 1, 2013
199
21
38
Santiago
it doesn't work for me. I flashed through twrp and I also flashed the digital well-being through magisk.
Edit:you need to install the pixelify module.
Edit2:it crashes system UI with pixelify and it doesn't work just flashing the zip.
 
Last edited:

Sebi673

Senior Member
Oct 11, 2013
381
139
0
29
Bucharest
it doesn't work for me. I flashed through twrp and I also flashed the digital well-being through magisk.
Edit:you need to install the pixelify module.
Edit2:it crashes system UI with pixelify and it doesn't work just flashing the zip.
I found pixelify a bit buggy for xzp, that's why I took out only the apk for ambient display/night light, modified the lines so it only enables night light. I only use the digital well-being. If the zip doesn't work try manually putting it in overlays and set permissions.
So no pixelify plugin, just that zip (tested on my xzp single sim on android pie).
Tell me how it goes
 
  • Like
Reactions: ricardo99831390

Sebi673

Senior Member
Oct 11, 2013
381
139
0
29
Bucharest
Flashing the ZIP didn't work for me. Copying the apk manually did though. Thanks!
@steso90

Thanks for the feedback! I've did the modifications very late at night so I recycled a zip I had in handy. There was a lot of copy/paste of the apk and not so much twrp flashing. Updated description. :)
And I didn't notice any screen sluggishness. I'll keep an eye out tho :)

Thanks again!
 
Last edited:

Sebi673

Senior Member
Oct 11, 2013
381
139
0
29
Bucharest
I can't modify the system partition and I'm running mixplorer with root. That's strange
Double check the root permissions in magisk root section - perhaps you denied them by mistake. mixplorer has no issues manipulating root files - as long as it has the permission granted
[update]Strange. I can't seem to modify root folder structure - for example, adding a new folder in priv-app does nothing - tried with two file explorers. Best bet is to use a flashable zip for such apps or TWRP's file explorer which has plenty of manipulation options.

Cheers!
 
Last edited:
  • Like
Reactions: SGH-i200

SGH-i200

Senior Member
Aug 31, 2009
1,039
241
93
Install: Copy nightLight.apk to system > vendor > overlay (set 644/-rw-r--r-- permissions). Best to use MIXplorer

Night Light settings in Display > Advanced > Night Light. Quick settings tile present in the dropdown customization area.
This night light port is running without problems on latest Pie firmware for the XZ1. Thank you very much! :good:

---------- Post added at 10:41 PM ---------- Previous post was at 10:24 PM ----------

The apk had a lot of lines reporting to Ambient display[...]
Could you do a port for the Ambient display feature, too? Its the only thing I'm missing: "Ambient display: Wake screen when you receive a notification" - Without this feature the notification light hints at the notification, but I have to press a button to see the notification.
 
Last edited:

Sebi673

Senior Member
Oct 11, 2013
381
139
0
29
Bucharest
This night light port is running without problems on latest Pie firmware for the XZ1. Thank you very much! :good:

---------- Post added at 10:41 PM ---------- Previous post was at 10:24 PM ----------


Could you do a port for the Ambient display feature, too? Its the only thing I'm missing: "Ambient display: Wake screen when you receive a notification" - Without this feature the notification light hints at the notification, but I have to press a button to see the notification.
In its original form, there were lines calling the ambient display. But it felt buggy and since the screen is LCD, I found it very inconvenient since my goal was the night light. I'll send the original overlay tomorrow.
Cheers
 
  • Like
Reactions: SGH-i200