yashsingh1/xdaforums huggingface dataset:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ThunderKiller:
I got issues with importing contacts in the hands-free in my car. Can someone confirm this?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
Kernel patches

While it would be great hearing [MENTION=6810779]wzedlare[/MENTION]’s points of view to some of the questions in this thread, I assume that CVE-2014-9902 is not open:

CVE-2014-9902 is called “Google Nexus Qualcomm Wi-Fi driver CVE-2014-9902 Buffer Overflow Vulnerability”. It appears that only the Google Nexus 7 is affected, at least Google did provide a patch only for that device and NOT for AOSP unlike most other patches from that Security Bulletin. (According to Google, the bug was reported in March 2014, and the patched file got a timestamp of November 2013.)

https://source.android.com/security/bulletin/2016-08-01

https://source.codeaurora.org/quic/.../?id=3b1c44a3a7129dc25abe2c23543f6f66c59e8f50

The corresponding file in this cedric kernel appears to be of August 2016 and has the correct values (or the patch applied):

https://raw.githubusercontent.com/W.../prima/CORE/SYS/legacy/src/utils/src/dot11f.c

There is another kernel branch for the msm8937, I wonder if this known to [MENTION=6810779]wzedlare[/MENTION] and how it relates to the bq kernel source:

https://github.com/moto8937

---------- Post added at 09:04 PM ---------- Previous post was at 08:56 PM ----------

Android system does not stop to connect to NTP servers, although “fetch time from internet” and "auto time zones" is deactivated in the settings.

Does anybody know why/where this is initiated and how to stop this?

Does anybody know how to set a custom NTP server ("settings put global ntp_server ..." seems to not work any more)?

Thanks.

---------- Post added at 09:25 PM ---------- Previous post was at 09:04 PM ----------

BTW, this should be the kernel source for the Moto G5S (montana):

https://www.github.com/MotorolaMobilityLLC/kernel-msm/releases/tag/MMI-NPP26.102-41

... in case somebody wants to compare it to the Moto G5 (cedric) source:

https://github.com/MotorolaMobilityLLC/kernel-msm/releases/tag/MMI-NPP25.137-33

(Both should be pretty compatible, cf. https://xdaforums.com/showpost.php?p=74470672&postcount=12)

Maybe Motorola already fixed some of the issues mentioned in this thread.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] applesauceChris:
Have you installed any battery saving apps? Such greenify, amplify or forcedoze? Because I've installed them, and my battery is still pretty bad (yesterday I've disconnected it at 6am and battery was %20 at 1pm), so now I've unistalled them. Or did you modified something about the kernel? With apps like kernel auditor? Thanks in advance.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
No, I haven't installed any of the first three. I do have kernel adiutor, but only to view the governor states which are (since last update anyway) both on "inetractive". Even with the previous "performance" setting for the "small" cluster, I've had similar battery live as the CPU spends most of the time in deep sleep mode. Currently I've got the "orange power save" active and the battery is at 51% after three days. Kernel adiutor reports runtime=234:26 and deep sleep 195:30 hours for the "big" cluster (15% at 960MHz, rest sleeping). The "small" cluster is at 195:31 hours runtime and deep sleep.

Check the statistics, they should report the apps that are using most of the battery. If I've got WiFi enabled, my battery live is reduced drastically. But with 1.125GB data allowance in 4 weeks I don't need WiFi for my daily use. Mobile data doesn't use much power and the mobile radio is running anyway.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ateshga:
Hi there,

i am using the latest build from 12.11.2017 and i am very happy with it.

I have had no bugs since i flashed it.

My impression is that the Battery lasts longer now.

Everthing works fine for me. (I have no Whatss App, FB or other social media apps despite Threema)

Where can I donate to wzedlare?

Keep up the great work!

Cheers

A.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] matmutant:
you can't for now :

btw, I am happy to see everything's working fine for you :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Spliff85555:
LAN computer not reachable when using VPN always on

I discovered a problem using VPN, not sure if it belongs to this ROM, since I also tried RR(unofficial), ViperOS(official) and OctOS(official) with the same result. Just posting it here because currently this ROM is what the phone is running with. Maybe it's a bug in Android 7.1?

I setup a VPN connection from the phone to my home router and connected it successfully. Then the phone is able to use all connections in LAN or WAN as expected. Checking my http server's logs I see that the phone is using the IP address assigned for the proper VPN connection correctly.

However, if I check 'always on', the phone only is able to establish WAN connections, all LAN connections fail, i.e. I can't access my own http server.

Trying the same with a Huawei P10 with Android 7.0 and patches from Sept. 1st 2017, it works as expected.

Is this a known bug?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Here are some values people can test out if they find that call volume is too loud

Add the following to the build.prop in /system under additional properties

Make sure build.prop permissions is 644 and then restart

Iv also included the property for media steps as well so you can have more control of volume when listening to music

ro.config.vc_call_vol_steps=14
ro.config.media_vol_steps=30
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] meinzz200:
Thanks for your suggestion.

For me it seems that the lowest possible call volume doesn't decrease with this value. I also tried a value of 60 but that also doesn't decrease the minimum volume. It just adds more steps to the volume selection.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] english_tony:
Official or unofficial?

Hello, I have a moto G5 and I'm wondering what to do. I've always used LineageOS (previously CyanogenMod) on pretty much all my phones. However, this ROM is still "unofficial" and I'm not sure what that means... Does that mean that LineageOS hasn't approved it yet? What's the guarantee that it's safe to use? Will my privacy be respected?

Thanks
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
Firstly, please do not quote the whole thread, it is against rules.

It means that LineageOS does not give official support to this device, hence you will not receive nightly ota updates.Other than this, it is the same as official builds.Your data is safe as it is encrypted.Even TWRP can not decrypt it if it is locked.And also, all sources are open to public which means you don't need to worry.If you are still worried, you can't install any custom rom as they are all based on los source.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] english_tony:
Thanks for the amazingly quick response. I have 2 more newbie questions:

1. If it doesn't get nightly updates from LineageOS, how does it get security updates etc?

2. Can you point me to a page with *reliable* instructions for installing twrp? I've seen plenty of contradictory stuff and I don't want to brick my new phone :)

Thanks again!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
1. I manually build another los and post it in this thread, the users manually install the new update over their previous rom.

2. Official TWRP Thread: https://xdaforums.com/g5/development/official-twrp-3-1-1-0-moto-g5-t3699737
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] axlrvx:
Even official LOS don´t give you any warranty... Just flash and try it.

Edit: and please, don´t quote the first post.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] english_tony:
So, no OTA updates? I'll just have to check in on XDA occasionally?

Thanks again for your replies
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] razzor1984:
If the msm8937 Kernel isnt affcted of cve-2014-9902 so why isnt it marked as not affected? @ https://cve.lineageos.org/android_kernel_bq_msm8937 ?

I assumed that the Qualcomm wifi driver is the same or at least similar, the links @ the cve mention only the nexus 7 - 2013 but the bug is in the FW of the Wlan module.

Thanks for the investigation - b.zill, now we can assume that cve-2014-9902 is fixed or the patch was applied.

I guess the majority wants fancy new roms but isn't interested in bug fixing at the core of the system. Im well aware that alle kernels < 4.4 are EOL and need manual patching(if a patch is available), but why isn't it correctly documented?

Thats a symptom @ the CVE Lineage page, if you look up diffrent kernels, your jaw is dropping in the ground, because your devastated that the majority of the kernel versions are under 50% (patch level indication).

I'm also aware that this percentage isnt correct, but it should be a high priority for a kernel maintainer!!!!!!!!! Opensoure cant only worke when we see, what is fixed an whats needed to be fixed. Transparency is the keyword!

At this point i cant say that certain Cves are patched in my msm8937 Kernel, its like russian roulette if a Cves hits me or not because the cve page isnt trust worthy........

Best regards Razzor
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] #Henkate:
Fix .flac

Hi there!

I dont own a Moto, but i own an Huawei Nova. I had the same errors regarding flac and managed to fix it. While ive been searching on Google, ive ran into in your posts, so i thought that i should reply you.

Please check this commit.

Ive took a look at cedirc`s device tree and it looks like you have that codec in media_codecs_8956.xml. So you have to comment it out or just remove it and then add the following line like here.

<Include href="media_codecs_ffmpeg.xml" />

On my phone flac seems to work after those changes, without the following blobs:

vendor/bin/audioflacapp
vendor/lib/libFlacSwDec.so
vendor/lib64/libFlacSwDec.so

Since its working without them, it looks like they arent needed, but i dont know yet about that.

Have a nice day!

Robert.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Marianopela:
Exactly
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Shooting Star Max:
I really hope we could get this fixed! It could also fix the USB tethering problem.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
This is part of what we described before as „USB bug“: copying from Moto to PC (mostly) not possible, no refresh of the device directory listing, disrupted MTP connections, no tethering, and such. No solution so far.

I assume it's rather about APN settings than a bug. Search for "virgin-internet apn settings" brings up some pages with correct APN settings, did you check that? Maybe add a new APN profile with correct APN, but without auth type (PAP/CHAP) specified, IPv4 only, APN types "default,dun,supl".
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] :
Is it a problem of LOS on Moto or Moto itself?

Unfortunatelly this is probably not an APN problem. I use "official" one. I have some circumstantial evidences this is a provider problem, but I have no prooves. I hoped this log can tell something. I see there are some errors:

I/QImsService( 1857): IFRequest : [0239]< REQUEST_SET_IMS_CONFIG error: 2

I/QImsService( 1857): IFRequest : [0240]< REQUEST_SET_SERVICE_STATUS error: 2

but this tells me nothing.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
It works on stock ROM and on other LOS devices, so I assume, it's only a problem in LOS for cedric.

(On the provider connection problems, I cannot comment.)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
As a workaround, I've got My Phone Explorer installed. With both the phone and my notebook connected to the same network (WiFi for the Phone), I can use the program on the notebook to reliably move files to and from the phone.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
Thanks, but wireless is not possible here. I'd rather open the cover and remove the SD card, but that's not a daily option either. MTP and tethering via USB are standard features of Moto phones (and most others) for years now, so I somehow hope, [MENTION=6810779]wzedlare[/MENTION] would give us a hint how we could support him finding and removing the bugs.

While browsing around in the source trees: [MENTION=6810779]wzedlare[/MENTION], I would be happy if you'd share a little bit where you derived the sources from and how the process of adaption works. How did you get started with the cedric trees? What derives from stock ROM, AOSP, Lineage, and other developers? When I look at the commits, I don't really get it.

Regarding patch levels: the kernel on Moto G5 / G5s stock ROM seems still on 3.18.31 (which I regard as a shame for Lenovo / Motorola, since that version is outdated since April 2016!), you are using 3.18.48 (Feb 2017) in the Lineage 14.1 tree and 3.18.63 (July 2017) in the Lineage 15 tree. Current version (in AOSP as well) is 3.18.84. You mentioned that you don't own the device—is patching of the kernel a scope for you, or do you focus on sharing a somewhat stable ROM? Do you intend to work on the 14.1 tree or do you only focus on the Oreo tree? It's just that it is a bit of a black box to me what's going on and how we could assist or contribute.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] jib@rmi.ge:
Filenames for download do not anymore contain build date. May I assume that the build is no newer than the latest update as indicated on the first page?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] floydburgermcdahm:
Correct - as indicated on the first page the last update was done on Nov 12th.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zdoe:
just got lineage on. but i need true superSU (for foldermount, that insists on it), not the addonSU.

my efforts: 2.82 installs ok, but doesn't give root. the addonSU does, but foldermount doesn't work.

(sorry for not reading 92 pages before asking this - the search on superSU on this thread doesn't give definite answers.)

did anyone get it to work? how? what exact version of superSU zip?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
Maybe it's not a root issue: Did you check the FolderMount thread if Nougat is supported at all? Seems like last update of FolderMount was in June 2016 to add Marshmallow support. https://xdaforums.com/showthread.php?t=2192122

Alternative: Magisk with MagiskSU and the magisk-foldermount module
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sebasssalazar:
How do I get my mobile data to work?? I'm trying to send whatsapp messages but it doesn't seem to work. The messages don't get sent. Does anybody have this problem??

Sorry if it's something kind of stupid but I'm new at this and I don't know if i'm doign anything wrong!!.

BTW, everything else seems to work nicely :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
Insert a data-capable SIM card into the slot, select the APN that matches your provider's requirement, and enable mobile data for that SIM slot. Disable WiFi, otherwise data won't be routed over the mobile connection.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zdoe:
foldermount!

likely what i'm seeing is indeed not a root issue, but some way foldermount wants just superSU. no, i haven't really read the latest posts on the foldermount thread - i know the developer is AWOL, despite his app being one of the essential ones for real life usability.

magisk works with this ROM? - if, that could solve my problem. will do some reading...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] soumitro316:
Poor in-call audio quality

I have tried quite a few ROMs on my G5 including this one as well as LineageOS 15. One thing that remains the same in all ROMs is that calls are very noisy and the voice quality is poor as compared to the stock ROM . Is there any way to fix this? I always use nano gapps so could that be causing a problem?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sebasssalazar:
I already did everything you just said but nothing happens, i've had to install de stock ROM in order to use the mobile data. :confused:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
Then I can only say "WFM". I haven't got WhatsApp, though, just browser and various other apps (Google Play, F-Droid, K9-Mail, trackbook and some more) that are all working as expected.

Edit:

In case of my dual-SIM phone (Cedric, 3GB RAM) I've got to both activate data usage on the SIM to use and set this same SIM to "preferred for data usage". It doesn't switch automatically, so setting the preference to SIM 1 and activating data for SIM 2 will result in no connection.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Marianopela:
I face soft reboots every now and then. Usually on Instagram and chrome (but that may be a coincidence because I use them a lot). I don't think I could take a log because it happens suddenly and not everyday either
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Shooting Star Max:
It happens to me too, but they are always when I am not using the device, so I don't really care. I care more about the USB tethering bug. Still, you might grab your last_kmsg, which shows what happened before the last reboot.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
That file is stored in /sys/fs/pstore/console-ramoops

I did check it on my phone, the last entry was from November 11th. Too long ago to be of any use, but I'll keep this in mind and try to gather more data if my phone reboots again. It has been quite stable with the latest version from November 12th, 2017 and I'm down to one charge per week :)

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
Two lockscreen issues

1. When in standby after a time-out, the device does sometimes (rarely) not respond to fingerprint wake-up, but needs to be reactivated via power button + fingerprint. After unlock, the open apps then sort of rearrange quickly (looks like they get the focus for fractions of a second). I do not know this behaviour from a regular start via power button. It seems to be not related to the active app before standby.

2. Apps opened via one of the two lockscreen app icons require a password (except emergency). This seems to be a bug, since the lockscreen apps are supposed to work without unlocking. Plus, it is not clear to me what happens if “emergency” is hit in this situation, since this usually applies to the phone only and leads to an emergency dialling menu. But other apps (like a calculator) do not have an emergency mode.

Can somebody confirm that? Thanks.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] mrfrantastic:
I opened a thread in Q&A section. But I didn't get any answers. Since going back to stock is a but "risky" on this device I stuck to LOS and hope for a fix in the future.

Maybe [MENTION=6810779]wzedlare[/MENTION] can tell us if there is a fix for bad call quality.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] b.zill:
Call quality

On Lineage for Samsung G800F, there was a problem with “robotic voice” around a year ago. It seemed to be caused by Adaptive Multi-Rate Wideband (AMR-WB) settings when both call partners used HD telephony with the AMR-WB codec, like on mobile to VoIP or 3G/UMTS calls. Maybe this is of help to find out if it applies to your noisy calls as well:

https://xdaforums.com/showpost.php?p=70372394

https://xdaforums.com/showpost.php?p=70713131
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] mrfrantastic:
Thanks for your help. I installed the app and will see if amr-wb enabled is going to help. Maybe someone else can chime in? The code in your first link didn't work, though.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] soumitro316:
Can confirm the code does not work:/ Also I have switched back to stock now so I can't test whether this app works at the moment. Pleased do keep us posted if it works for you. The bad call quality is the only thing keeping me from switching to LOS permanently!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zdoe:
where to find stock ROM as an installable ZIP?

how did you get back to stock? i'm having trouble with my TWRP backup, as in this thread:

https://xdaforums.com/g5/how-to/how-to-root-moto-g5-t3579833/post74742429#post74742429

is an installable stock ROM zip to be found somewhere? where?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] soumitro316:
Yes so I downloaded the stock ROM from here :

https://firmware.center/firmware/Motorola/Moto G5/Stock/

And then followed these flashing instructions :

http://www.stechguide.com/download-stock-firmware-of-moto-g5/

Hope this helps!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zdoe:
what i was looking for, thanks.

the instructions are not about just installing the ZIP, though. can one do that, or have to follow the instructions on the 2nd post (& reroot the phone)?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] soumitro316:
As far as I know, the only way to return to stock is to extract the zip and flash the images as given in the instructions, unless you already have a TWRP nandroid backup of your stock ROM which you can restore.

So basically, first you follow the instructions on that website to return to stock (this will wipe all your data, so make sure to backup everything first). After this, you can flash TWRP and reroot!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] mbryantuk:
No Signal

Can anyone help and sorry if this has been covered previously.

Just flashed this and stock opengapps but I am not getting any phone signal.

When i first flashed this earlier i had signal now i am getting nothing, Did a full wipe and reinstalled and setup the Vodafone uk APN.

Any ideas on what could be the cause/fix?

Thanks

---------- Post added at 05:50 PM ---------- Previous post was at 05:45 PM ----------

Further to this when in Mobile Network Settings > Network Operators

If i press Refresh i get "Error while searching for networks"
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zdoe:
ok. i do have a TWRP backup, but it asks for a pattern that i don't have that i've so far been unable to crack and is not the one i'd set up.

another way: would you be willing to share your TWRP backup? assume that would get me going quickly.

your first site link has 3 versions of the download. unless you say otherwise, i'll do

CEDRIC_NPP25.137-33_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

thanks.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Fedray:
about the wrong pattern after restoring backup you need to do this

go to file manager in twrp, go to data/system and look for 3 files called "locksettings.db", delete them.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zdoe:
ok, cool. the tutorials on the web refer to different file names that don't exist on the stock ROM. i'm now on lineageOS, so can't check right at this moment if "locksettings" files exist. assume yes, i'll be in business very fast.

try that next. thanks.

----------

12/11 - yes, just reporting that i'm now back on stock past the pattern. thanks, Fedray.