yashsingh1/xdaforums huggingface dataset:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I don't have this device so I can't test it and not sure if the file paths with be the same but you can try something like this

In twrp goto /data/system/packages.xml

Find <package name=com. What ever package name is for Trebuchet launcher and under <perms> or <permissions> add or amend

<item name="android.permission.STATUS_BAR" granted="true" flags="0" />

Another option maybe is to reflash your gapps package after you flash the rom update
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
That's too complex for me as I use Lawnchair anyway. But I try reflashing GApps.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] dopefishh:
Are there google apps included? All of a sudden with the latest rom I have a Google Play version in my version info and three google system apps installed...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
No.

What are the Google System Apps? OK Google Hotword Enrollment, Hey Google Hotword Enrollment and X Google Hotword Enrollment? They are only for the microphone and device-specific (they are in the Motorola Stock ROM and they are taken from there). Blame Moto. They don't do anything without Google Play Services btw.

And that "Google Play version" is the Version of the "Play System Updates". It requires Google Play Services too and is to update the system without manufacturer action (an attempt to solve the update problem of Android). Due to system updates need more integration into the system as a flashable zip can modify this needs to be integrated into the ROM (That part is open source). The Linux kernel is too old though so this will not do anything.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] dopefishh:
Eternal thanks for the clarification, it really got me scared.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
Please hit the thanks button then ;)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] jib@rmi.ge:
After the new update it becomes impossible to wake up the phone, only turning on the charger helps.

It also became perceptibly warmer.

There was nothing like this in the previous version, it was excellent, extra smooth and everything.

Does anybody else confirm the problem? Any remedies?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bilelgouasmia:
please ,which version dolby atmos working for lineage 17.1 ?

i tried many versions for android 10-Q but its crached
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] PureTryOut:
Although this ROM is working fine in general, my sister is having an issue where the colors are off in the whole picture and the top right quarter is different from the rest as well. It basically makes it impossible to use the camera properly.

Is this a known issue and is there a fix? Right now my sister is thinking of buying a new phone because of this and I would like to prevent that if possible.

[IMG="Example picture with wrong colors"]https://fam-ribbers.com/_matrix/media/r0/download/fam-ribbers.com/aMPyqLBTMFIlQaUGkryxqPis[/IMG]
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] m_vaisakh:
It is a known issue, you can use google camera as an alternative, but be warned, video recording doesn't work on them.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] PureTryOut:
I thought it was a ROM issue, but you're saying it's an app issue? Does video recording just not work on Google Camera so if she'd install a different camera app it might just work fine, or will video recording not work on any app?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] m_vaisakh:
It is a rom issue.

Video recording should work on all apps, just that google camera is a special camera with all the Google AI photography goodies available for the Pixel devices.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] PureTryOut:
Hmm ok, I'll let her try another camera app then (if she has the space for it that is).

Another issue she has is that sometimes the internet connection will not work for (for both wifi and LTE) and nothing will load. After a minute or so it usually works again which is a bit strange.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] m_vaisakh:
Never heard of this issue, neither have I faced it.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] jib@rmi.ge:
Shame on me. I withdraw this. I forgot that fingerprint lock was on :mad:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sglwilso:
I've been trying to flash the safetynet module to pass safetynet checks but can't find it. What exactly do I need to do?

Thanks!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
You can use "MagiskHide Props Config" or [AD] use my own ROM called Mint-OS that passes SafetyNet out of the box. The only differences to Lineage are documented in the feature section of the XDA post. [/AD]
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sglwilso:
MagiskHide props config will help it pass basicintegrity fail as well?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
Yes
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] blarrgh1:
Any chance one of the developers has seen this post about a camera fix/has tried it yet?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] m_vaisakh:
Yes we have, and apparently the method they used doesn't work for us.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
[MENTION=5982915]CodeZero[/MENTION] please update the TWRP link in the OP:

----

After so many years the official TWRP finally is 64bit. It supports Encryption and Treble and can even backup EFS and Persist from the GUI! No matter what TWRP you use, this is better :D

Download it here: https://twrp.me/motorola/motorolamotog5.html
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] xenondroid:
Tested it today and dual sim feature seems to be broken. It doesn't see my second sim and I cannot disable SIM ports.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] cp101da:
official lineage?

Hey, any chance now this could be converted to official Lineage OS, now that we have an offiicial 64 bit TWRP?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
No - as I keep saying lineageos has very strict requirements to become official

Everything that works in stock must work fully in lineageos - as camera doesn't work as it does in stock for example it will fail these requirements

Also I believe you can't use any "hacks" to pass safetynet if you want to become official
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] m_vaisakh:
There aren't any hacks for safetynet on our lineage.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Sorry I lost track at what roms have used methods to pass safetynet by default
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] :
Is there going to be an OTA for the July 2020 Security Patch level?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
Disclaimer: That is my own ROM

You could also use Mint OS. It is Lineage + automated daily updates + better smoothness + real OTA updates :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] :
I know, I found yours as well

However it'd seem that it doesn't support Encryption...

If I installed yours over the one in this thread, would I need to do a clean install?

Anyway my real question was if there was going to be an update for this ROM on this thread here if there was going to be a new build with the July 2020 security updates installable by dirty flash.

I just said OTA without thinking
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
Encryption is the same on this; dirty flash should work

An update will come but will take time
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] r0nr:
Sorry I haven't used TWRP for a long time.

I have managed to boot unlock, twrp, install lineage, magisk and verity.

The moto g5 (not plus) boots and works perfectly and is detected as rooted in root checker.

But I still have the following 3 questions below: I, II and III.

In question I, I just want to be sure I used the correct order.

But when doing a backup and restore the device doesn't boot full (stays stuck on lineage boot animation).

Regarding the "system image" I read about it and it seems it is for fastboot/ADB so I tried backing up and restoring with and without "system image".

But still the restore process seems to fail constantly.

I. What is the correct order of doing a full flash+root process?

1. twrp

- no reboot, immediatly proceed to next step -

2. Lineage 17.1

- no reboot, immediatly proceed to next step -

3. no verity opt encrypt 5.1

- no reboot, immediatly proceed to next step -

4. magisk

- no reboot, immediatly proceed to next step -

5. Gapps

- REBOOT SYSTEM -

II. When I want to create a full backup

I check the following in 'Backup':

System , System Image , Data , Cache , Boot , Recovery , Vendor , EFS , Lopgo

III. When I want to do full clean restore from a TWRP backup

1. Advanced wipe (within 'Wipe' I check the below items)

check: Dalvik/ART Cache , System , Data , Internal Storage , Cache , Vendor

do NOT check: Micro SD Card, USB OTG

2. Restore (select the .zip backup and then check the below items)

System, System Image , Data , Cache , Boot , Recovery , Vendor , EFS , Logo
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
1: no verity opt encrypt is unnecessary when using magisk

2: Don't choose both system and system image, choose only one of them (I recommened System Image)

3: seems right

Ah use this TWRP: http://cedric.nift4.tk/twrp
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] facua92:
Hi, using Gcam posted by nift4 video recording is working but flash on recording doesnt. I've ensured that it is activated and tried rebooting phone. Any idea which could be the problem? Is it only happening to me? Model xt1670.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] facua92:
Camera stops working.. yersterday it worked.. today it doesnt. When working camcorder flash does not work. Rebooting solves the problem and works again but camcorder flash still not working and it is very annoying rebooting every time i need to use camera. Is there something to do about it? Model xt1670. thx in advance.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] m_vaisakh:
Use stock Oreo then.

We as a custom rom developers are working on finding a fix for it.

It's better to keep the third party apps discussions out of this thread as we don't support those discussions in the rom thread.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] facua92:
In the rom post says that camera and camcorder works.. Which camera app should i use without problems other than green tint in low light? I know you are doing your best finding a definitive fix for camera problem. I just ask in order to know if im using a wrong app or if my phone model is the problem.. I apologise if you missunderstood my comments. I like the rom very much, i just insist because seems to be people that dont have the problems i have. Thanks for replies
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
It is not your phone model it's just that nobody knows how Camera is really broken. Green tint is one of the issues but there are others too. About APP: Use the Almost Perfect Gcam 7.2 I posted here on XDA. It does the job great.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] facua92:
Did tried that app, downloaded from your post. Did work just a few times.. then same result. Even rebooting phone did not worked for me. Thanks anyway man!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
Are you encrypted?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] kniffte:
Hello,

I'm thinking about switching to this ROM. The only open question: how do I update without reinstalling the entire (updated) ROM? Setting up the phone takes me 1-2 days.

Since I havent seen anything about updates, I think there arent any.

Can I help you providing those? I wasnt able to find any docu on how to create/distribute updates - so I would need help on that part.

Thanks and please tell me, if we can get this rollin'.

kniffte
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] m_vaisakh:
You can just dirty flash [i.e., flash the rom and the gapps (if you're using any) without needing to wipe anything at all]
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] eboelens:
Hello the app succesfactors is started but a few seconds later a security check tells me that the app can not work for security reason's.

Hidden feature from magisk isn't working for this app

Is there a solution ?

Can somebody help me with that?

Erik
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Does your rom pass safetynet? (both basic integrity & ctsprofile)

Have you hidden magisk manager app with a random package name from settings menu?

Have you hidden the app that detects root with magisk hide?

Have you hidden or uninstalled other apps that some apps look for to know you are rooted - these include titanium backup root browser and other root based apps that modify other apps (in some extreme cases even having a twrp folder is enough to cause an app not to run for "security reasons" which is why scoped storage in later android versions is a good idea as it stops apps detecting other apps & files outside its scope)

If the answer is yes to all the above and the app still doesn't work there's nothing you can do about it
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] eboelens:
1.

Safetynet control integrity & ctsprofile : the result is false

I don't now what that means. I will search on the Net
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hordesoflocusts:
Install magiskhide props config, magisk module , and choose a certified fingerprint

Steps; open a terminal window, type su, type props

Edit device fingerprint, pick a certified fingerprint, (ex moto g6)

Reboot

Check safetynet
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
You can make ctsprofile pass by changing device fingerprint but basic integrity you won't be able to pass

The op will need to rebuild the rom to pass that most likely unless magisk mods the boot.img to pass secure boot - not sure you'll have to try
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] eboelens:
I changed the magisk app name and it works ;)

Thank you for your help

---------- Post added at 09:08 AM ---------- Previous post was at 08:37 AM ----------

Aaaargh after I sent my last post ,the app goes again in security, :(

I forgot hidden the app in magisk it works now :good:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] dronte:
A big thank you to CodeZero (and also to TheFixItMan, nift4, and everyone else that has been actively contributing to the thread) for giving my old G5 (XT1676) another lease on life. I was previously on 16.0 and had issues recording video and I am happy to say that with the 2020-06-12 ROM video is working as intended!

As a bonus, I also got encryption to work even though I am not sure why. Initially it caused a boot loop, then it suddenly worked after a few wipes. The only guess I have is that I did not set my lock pattern until after encrypting, but that feels like an awful explanation.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] z3dd1cu55:
Question about Treble

Hi all,

I hope I post this at the right spot (I'm new to XDA).

I have a question about Treble:

As far as I know the g5 doesn't have the Treble architecture with Stock ROM (Android 8.1).

Do I need to follow some special instructions to flash LOS 17.1 coming from Stock appart from using the right TWRP version?

Thanks in advance!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
The following is overkill but will backup everything & will give a complete guide which will eliminate any potential issues

Backup anything on internal storage you want to keep eg music photos docs

Flash official 64bit twrp

Backup all partitions in twrp in case you need to restore anything in the future

In twrp goto wipe format data (option on right) (removes encryption)

Reboot to recovery (to allow data to be mountable after removing encryption)

Goto wipe - advanced wipe

Wipe system data cache

Install rom zip

Install gapps (android 10 arm64 nano)

Install magisk (optional)

Wipe cache/delvik cache

Restart

You can encrypt again if you want to
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] CodeZero:
LineageOS-17.1 [20/08/2020] Is Up!

ChangeLog :-

Maintenance update only, just a repo sync

- Android-10.0.0_r41 Build (August security patch)

- Included all new changes from LineageOS

Download Link:

Check OP

And here are Open Gapps for Android 10.0

Regards,

CodeZero
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] riyan65:
[MENTION=5982915]CodeZero[/MENTION] I have found this bug in call app. Please check if something gone wrong. As other are able to use.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] DancingEmeralds:
The ROM is impressive and it runs great, fingerprint gestures and everything worked after restarting the phone once so moto actions appeared in settings.

I just thought I'd post a couple of issues I had and how to fix.

1. "OK Google" model update error notification that wouldn't go away. ( Happened on both my G5 phones using nano & stock gapps although I now know above nano isn't recommended ) -

Apparently it was meant to be fixed with latest gapps but didn't seem to be. Installing the latest "Google" apk from an apk website as mentioned in a reddit thread worked ( "/google_assistant_error_on_lineageos_v160/" )

2. Formatting SD card as internal storage would fail when done from the notification bar prompt ( Error message : "Attempt to invoke virtual method 'java.lang.String.android.os.storage.VolumeInfo.getId()' on a null object reference').

This led to the SD card being defined as corrupt in "Settings -> Storage" ( which would also fail to format as internal ).

So you need to format as external storage from either of those screens, maybe try a restart, then go to "Settings -> Storage -> [Select the External SD card] -> Menu -> Storage Settings -> Format as internal" and from there it formats as internal without an error the times I tried it and seemed stable.

--

Camera

I thought it'd be useful to define the camera situation I encountered because looking through the pages it was quite confusing for me to know exactly what was going on.

I know it seems to be a frustrating issue for the people working hard on it so I'm not complaining just putting together a clear explanation for others.

So my experience on the XT1676 ( 2GB & 3GB RAM) which may be different than for others:

The included camera app would for periods either shoot images with distorted colours and/or a bright green box in the top 1/4 of the image. The pictures were unusable rather than just having small problems. Video recording for me froze when pressing stop using the camera app.

Other standard Camera apps would regularly give normal photos and videos, but, you can only take 1 or 2 photos before the camera stops working and/or the app crashes.

There is a superior camera app from nift4 if you follow their instructions ( https://xdaforums.com/g5/themes/gcam-7-2-video-recording-enhanced-hdr-t4132803 ) - This works great and allows you to take repeated pictures and record videos. This gives you a working camera app with some minor niggles.

Other applications that try to use the camera directly will run in to the same issues as number 2 in this list, being able to take 1 or 2 photos before the app crashes.

It depends on your use case. You can get a working camera app and a great ROM. But for apps which access the camera directly and don't allow file selection/separate camera input then the camera will not work.

Again this isn't a criticism and it's my own experience but it's a shame I need that because I was loving everything else.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Guttergorm:
Camera just disappeared (app) with a dirty flash, any ideas on how to get the app back? [MENTION=5982915]CodeZero[/MENTION]: Great ROM, thanks a lot!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] geemcjim:
Keyboard swiping library location

Just a note to point out that with this release, the libjni_latinimegoogle.so location is back to /system/lib64.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] CodeZero:
can you please get me logs thanks
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] CodeZero:
weird try clean flash.. camera was working fine for me
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] kniffte:
Encrypting the phone is not working

Hello,

I'm coming from an earlier version of LineageOS 17.1 for sanders (see https://xdaforums.com/moto-g5s-plus/development/stable-rom-lineageos-17-1-sanders-t4030317). With this version, I have been able to encrypt my phone and have been using it this way since March 2020.

This this version has not been updated, I've been switching to this version here (lineage-17.1-20200720-UNOFFICIAL-sanders.zip - see https://xdaforums.com/sho...1&postcount=24).

Sadly, I removed the encryption during the installation process (had some trouble with my TWRP). Now, I cannot get my phone encrypted - the phone gets stuck in bootloader screen (I let it run for 12 hrs). The same applies to HavocOS.

Sadly, I cannot provide any logs, and I cannot see any status during the process.

Any ideas on that? I need the encryption for company access.

I've tried it with

twrp-sanders-r20.img (twrp-3.2.1-r21) and twrp-3.4.0-0-sanders.img (twrp-3.4.0).

Thanks a lot.

kniffte
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
This is an Cedric ROM. Wrong thread or incompatible ROM.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Guttergorm:
After a cache/dalvik wipe camera is back.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] riyan65:
Sorry for the delay, I have pm you the logs.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] 1lexxi:
Some features from the 17.0 build are missing

Hi, so i have a few problems with the newest update. First of all, the adaptive brightness ist completly gone, i checked in the status bar and in the settings. And the minimum brightness is much higher than on the LOS 17.0 build, and its MUCH darker with 3rd party apps like Brightness Tweaks which manually set the brighness of the screen. And the battery use history isnt working either. Are those features just disabled or is it a bug? its just really annoying and i might just revert to the 17.0 build. Thanks, Lexi

Images of the missing adaptive brightness button & the battery use history: imgur(dot)com(slash)a(slash)a4XaGjl [cant post links yet]
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
They are probably because you migrated from an very old build to the newest one. Like directly updating Windows XP to 10.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Darkyuuki:
thanks for clarifying my doubt
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Israsan93:
So I installed this rom (clean install) but now I cant install some apps on google playstore, I have Magisk and cts profile is false (back on pie I didn't had this problem), I even repackaged magisk and enabled magisk hide on google apps. I want to use this awesome rom but if I cant use my everyday apps normally, I'll have to go back to pie :(
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
If CtsProfile is false I suggest changing the device fingerprint (magisk module) https://xdaforums.com/apps/magisk/module-magiskhide-props-config-t3789228/

And you can always manually download & install apps
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Alejandro miranda:
Well, I tell you that yes, you have the same errors as Android, both on the camera (green tint and recordings sometimes work), Chrome there is only one version that works the videos, and the optimization of the battery is terrible lasts at least 3 hours of use He continued and the pitcher in the gestures is sometimes locked, but to be the first compilation of Android 10 is very good
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Israsan93:
Somehow following the instructions makes both ctsprofile and basic integrity false