[UNITY] Various Fixes for the Moto G5/G5S [9+]

JarlPenguin

Senior Member
Oct 16, 2018
888
797
103
jarlpenguin.github.io
HUGE thanks to @giri45 for actually providing the fix!

What's this?

A Unity installer ensures that you can use this module with any kind of root solution (as long as it supports init.d)! If you have Magisk, flash the module through the Magisk Manager, but if you don't have Magisk, just flash the module through TWRP. When you want to uninstall the module, flash it again in Magisk Manager or TWRP.

As for the module itself, it provides a fix for LiveDisplay/Night Light on the Moto G5/G5S for anyone running an AOSP-based ROM running Android 9 or higher, and enables Camera2 API + EIS if you wish so.

Do NOT attempt to install this on other devices, or ROMs based on Android <9! Device and Android version checks have been applied to make sure this module will not install on incompatible devices. This module assumes that you are using the latest stock Oreo firmware (including bootloader, GPT and etc.)! Do not report issues if you are not on the latest firmware.

Tested ROMs:

Havoc OS 2.2
Pixel Experience 9.0
AOSPExtended 6.3
crDroid 5.0

Known issues:

Fix doesn't work on Nougat firmware. You must have fully flashed the stock ROM/flashed it via OTA, for this fix to work.

Downloads:

Download from Magisk Repo.​

Flash via Magisk Manager or TWRP. Make sure you have a root solution which supports init.d!
 
Last edited:

Ænimal

Senior Member
Oct 9, 2013
537
243
43
Thanx for trying to fix this. Unfortunately it's not working on my xt1794 running AospExtented. First try flashing through twrp failed, the updaterscript didn't recognize my phone (correctly), then installing as magisk module, but no night light..
 

JarlPenguin

Senior Member
Oct 16, 2018
888
797
103
jarlpenguin.github.io
Thanx for trying to fix this. Unfortunately it's not working on my xt1794 running AospExtented. First try flashing through twrp failed, the updaterscript didn't recognize my phone (correctly), then installing as magisk module, but no night light..
That's really weird. Installs fine and works on PE, installs fine but doesn't work on ViperOS, and now doesn't work on AOSPExtended.

Could you try providing installation logs located in the Internal storage?

Have you also tried manually replacing the files? If that works, then it's not a problem with the ROM...
 
Last edited:

Ænimal

Senior Member
Oct 9, 2013
537
243
43
That's really weird. Installs fine and works on PE, installs fine but doesn't work on ViperOS, and now doesn't work on AOSPExtended.

Could you try providing installation logs located in the Internal storage?

Have you also tried manually replacing the files? If that works, then it's not a problem with the ROM...
Deleted
 
Last edited:

Ænimal

Senior Member
Oct 9, 2013
537
243
43
Okay, I think I have found the problem now. What have you not upgraded?
As I said, I upgraded the baseband, the rest is firmware from nougat. On another device I'm running lollipop firmware and no problems regarding night light on pie ROMs..

Edit: I see you updated op, will report back once I fully upgraded firmware (for now I want to be able to revert back to nougat). Thanx for your efforts
 
Last edited:
  • Like
Reactions: JarlPenguin

JarlPenguin

Senior Member
Oct 16, 2018
888
797
103
jarlpenguin.github.io
As I said, I upgraded the baseband, the rest is firmware from nougat. On another device I'm running lollipop firmware and no problems regarding night light on pie ROMs..

Edit: I see you updated op, will report back once I fully upgraded firmware (for now I want to be able to revert back to nougat). Thanx for your efforts
Thanks. I updated the OP a while ago, but I do want to figure out the root cause of the problem, whether it is the vendor image, bootloader, GPT, or something else.
 
  • Like
Reactions: Ænimal

Ænimal

Senior Member
Oct 9, 2013
537
243
43
Thanks. I updated the OP a while ago, but I do want to figure out the root cause of the problem, whether it is the vendor image, bootloader, GPT, or something else.
I'm planning on upgrading everything except bootloader and gpt.bin, then I'll try your fix again and report back:good:

Edit: OK, done. I did flash bootloader, did not erase userdata and did not flash stock recovery. Good news is: system feels alot snappier - not so good news is that fix is still not working for me..

For anyone with similar issue: use cf.lumen instead and don't forget to thank the dev
 

Attachments

Last edited:

JarlPenguin

Senior Member
Oct 16, 2018
888
797
103
jarlpenguin.github.io
I'm planning on upgrading everything except bootloader and gpt.bin, then I'll try your fix again and report back:good:

Edit: OK, done. I did flash bootloader, did not erase userdata and did not flash stock recovery. Good news is: system feels alot snappier - not so good news is that fix is still not working for me..

For anyone with similar issue: use cf.lumen instead and don't forget to thank the dev
That's weird... One thing I know that is that this fix doesn't work on Nougat firmware.