yashsingh1/xdaforums huggingface dataset:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
Guys, I have not changed anything(except for kernel) since the previous update.The latest one is a build with the same tree(except for kernel) but updated Lineage sources.I don't know why you suffer from these problems.So, extract boot.img from the previous build and flash it using TWRP.If your problems are solved, I will revert the latest changes in my kernel source.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] MarcS:
Word / Excel

fyi: solved the Microsoft Word / Excel (Office) problem:

the hint was :

[ 01-18 08:31:16.111 1353: 6001 W/AccountManagerService ]
insertAccountIntoDatabase: Account {name=Office, type=com.microsoft.office}, skipping since the account already exists

--------- beginning of crash
[ 01-18 08:31:16.133 10963:10984 E/AndroidRuntime ]
FATAL EXCEPTION: AsyncTask #2
Process: com.microsoft.office.word, PID: 10963
java.lang.ExceptionInInitializerError...

fixed it by editing the accounts db via sqlite (adb root shell)

1|cedric:/ # sqlite3 /data/system_ce/0/accounts_ce.db
SQLite version 3.9.2 2017-07-21 07:45:23
Enter ".help" for usage hints.
sqlite> .headers on
sqlite> select * from accounts;
_id|name|type|password
1|xxxx@gmail.com|com.google|xxxx
5|xxxx@xxxx.xx|com.microsoft.android.enterprise15|
6|TouchDown-Exchange|com.nitrodesk.account|NitroDesk
7|WhatsApp|com.whatsapp|
9|Amazon Video Sync|amazon.account|
22|Office|com.microsoft.office|xxxx
25|+xxxx|com.viber.voip|xxxx
sqlite> delete from accounts where _id=22;
sqlite> .quit
1|cedric:/ # exit

Word / Excel will now start (and has re-created the account info)

Conclusion: during upgrade while wiping cache data, there is still the "leftover" of the "Google Account Manager" entry in the database, Microsoft Office will try to (attempt) create the database entry again and this has failed. I would say this is Microsoft issue for upgraded devices, not Android nor LineageOS ;)

Regarding MTP issues, I also had this with previous versions, writing from PC to device is always fine, reading from device gives Windows "unkown error 0x80004005" (Windows 10)... sometimes
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] claviger:
Thank you for the new build. I have no problems with MTP, and have been using the new build. I did have one random crash/reboot, but other than that it has been working without and problems, including even Magisk with the F2FS patch. Seems just as stable so far as the previous build, which I used for months. Can't thank you enough, this build is really solid!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Spliff85555:
That's exactly how I fixed my similar problem after the update to the January version (restoring backup of November version showed, that the problem is only in the January version):

After reboot, my nextcloud client app asked for my server and credentials, and if I entered the correct credentials, it just crashed or restarted with the page asking for the server connection. That's how I fixed it:

adb root
adb shell
sqlite3 /data/system_ce/0/accounts_ce.db
.headers on
.tables

select * from accounts;
delete from accounts where type="nextcloud";
select * from accounts;

.exit
exit
adb shell 'setprop service.adb.root 0; setprop ctl.restart adbd'

However, after rebooting the phone, the problem re-occurs and I have to redo these steps. Do you have the same issue with your Microsoft Word / Excel (Office) problem?

Thanks,

-Spliff
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] matmutant:
I had no time yet to investigate, but after dirty installing latest build yesterday, I got two soft reboots today (so kernel messages would be useless to read I think)

Other than that it works pretty well :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] MarcS:
You are right, after reboot I have to redo these steps, weird - no "solution" found yet.... will further investigate :eek:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] phuzz11:
My problem turned out to be related to the SD card. A quick re-format and it was all working again. USB tethering still works.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] cognid:
My honest and louder THANKS for this ROM. I've been using it for a few days without major issues.

Taking back a question raised in post #986 in this thread:

As a dual-SIM user, I'm exactly on that situation, I need to enable/disable either SIM on demand, but couldn't find where to do it.

In this post on Reddit:

(It seems I can't post external links as a new user, but Reddit post is referenced within this forum here)

there's a nice switch control next to each SIM on "Settings" --> "SIM cards". Unfortunately these switches are not visible in my phone.

If this is a feature that can be added to this ROM, kindly consider it for the next updates. :)

Again, thanks indeed for this cool ROM!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] christianix:
Thanks [MENTION=6810779]wzedlare[/MENTION] for the great fundamental work!

To anybody interested in an updated version, I've build a ROM with the latest patch level of Lineageos:

lineage-14.1-20180204-UNOFFICIAL-cedric.zip

lineage-14.1-20180204-UNOFFICIAL-cedric.zip.md5sum

To reproduce my result, please feel free to use my manifest (thanks to [MENTION=5982915]CodeZero[/MENTION] for his manifest I used as basis):

Android Manifest

What I didn't manage to do is:

Verify the kernel contains no extra patches

Verify the vendor blobs are really the original blobs

The former I didn't manage because currently I don't find my way through the kernel forest:

There are even two cedric branches in Motorolas Repo (2 commits difference)

No idea which tree Motorola based their work on?

There is the referenced upstream kernel in version 3.18.x?

There are kernel trees from Linaro in version 3.18.x (one especially for Android)?

[MENTION=6810779]wzedlare[/MENTION] pulled in some more updates (from upstream?)

The latter is because I've installed Lineageos before thinking about pulling vendor binaries from the image. And Motorola doesn't provide factory images - for whatever reason.

Maybe someone could help me with one or the other issue.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] christianix:
First, please remove the "out" directory before you start building. But my guess is that there are some software tools missing. Did you install all the required packages as described for example here:

https://wiki.lineageos.org/devices/flo/build

Please also note that not everybody here is able to understand German. But the error messages you posted are German. I would recommend you use the standard locale "en_US.UTF-8" in your build environment. That saves you a lot of trouble with localisation.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
I've been following http://www.lineageosrom.com/2017/01/how-to-build-lineageos-rom-for-any.html and was missing

ccache libssl-dev libssl-doc

I'm trying to build again and will report back.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] AlexKruidenberg:
When will we see an updated version with android patch level February? It would be nice to have the latest security patches.:)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
I don't know. Trying to build it myself, but failed again.

javac: file not found: /home/testuser/android/system/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/cyanogenmod/platform/Manifest.java

Is there a tool to check if the build environment is valid and complete?

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bojnice:
Added new phones, only others !?

https://www.lineageos.org/Changelog-16/
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] tjMF6:
I did not find any content that contains "cedric" or "motog5".

Neither in the latest post from the lineage os team nor in the cmxlog.com website (that contains all the changelogs and devices that will be supported in the future)

Seems like MotoG5 stays inofficial :crying:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] AlexKruidenberg:
Any progress with the february patch level?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] duchMotoG5:
XT1676

Hey there,

so much thanks for this LineageOS 14.1! Works great.

Today I discovered that I cannot transfer files to my debian laptop via USB. Got a

libmtp-error: Could not get file from device

I can, though, transfer files from my laptop to MotoG5.

Anybody an idea how to work around that?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] cal002:
Try go-mptfs.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] phuzz11:
There's a list of requirements that the developers have to jump through to become an official Lineage device, which you can find on their website (I can't link yet)

It's a pretty big list, and it's not like developers get paid anything to do this work. So Cedric might end up as an official device, but it'll take a lot of work first.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bojnice:
IS there a lot of differences among Moto G5 and the old Moto devices, that reached official status?

Thanks for the answer
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Shooting Star Max:
They need to be fully working features with the included official applications. I.e., no PDAnet for USB tethering or Footej for video recording. Everything has to be native and working. Until those issues are solved, we have no chance of having official builds.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] duchMotoG5:
Thanks. Tried go-mtpfs but get libusb error. Strange, lsusb reports right device, mtp-detect reports XT1524. My MotoG5 is a XT1676.

I can write to internal storage and external sdcard, but I cannot read for example DCIM fotos.

Any Idea?

Update: Got it working. If I mount with go-mtpfs from a virtuell console it works. Complains a lot during copying files, but does the trick. Suppose Cinnamons automount gets in the way.

Thanks for the hint
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Freestila:
Problem with bluetooth

Thanks for the great work, i really appreciate it. But i have two bugs to report, or at least problems i encounter.

First, i have some problems with bluetooth working correctly. The problems i see are:

- No sync of my contact list with a bluetooth car radio / hands free speak system

- Bluetooth status remains as "connected to device XXX" even if the connection is closed (e.g. device shut down). Auto-reconnect also sometimes doesn't work.

- Search for Bluetooth-devies is sometimes buggy and will not find devices. Could be connected with the above problem.

The other problem is with a tool like Llama, which should find the current antennas i'm connected to to offer some kind of location tracking. The app only finds one antenna / cell network id, regardless of the area i'm in. And the id seems to be wrong, too, since it will not correctly change the location.

The first bug is the biggest problem for me, since my car free speack radio will not work correctly (e.g. i would need to enter the number to call manually).
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] iagossilva:
Will this ROM receive more security patches?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
I don't know. I've been trying to build it myself, and have finally been able to complete the task.

using prebuilt boot.img from BOOTABLE_IMAGES...
boot size (10633216) is 63.38% of limit (16777216)
running: openssl pkcs8 -in build/target/product/security/testkey.pk8 -inform DER -nocrypt
running: java -Xmx2048m -Djava.library.path=/home/testuser/android/system/out/host/linux-x86/lib64 -jar /home/testuser/android/system/out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmp9ORYME /home/testuser/android/system/out/target/product/cedric/lineage_cedric-ota-df4fc51b31.zip
done.
[100% 21868/21868] build bacon
Package Complete: /home/testuser/android/system/out/target/product/cedric/lineage-14.1-20180317-UNOFFICIAL-cedric.zip

motorola/lineage_cedric/cedric:7.1.2/NJH47F/df4fc51b31:userdebug/test-keys
430329352319a8667eaf8d3a5268a51c lineage-14.1-20180317-UNOFFICIAL-cedric.zip

There were several problems, mostly missing resources (not enough RAM, not enough CPU cores and threads, emergency shutdown due to overheating after assigning more cores, ...) so I don't know if the result is correct. I guess I'll have to purge the cache and start over, hoping it will run through over night. Build time on my notebook is more than 6 hours. I'd rather flash an image from a known-working build process than risking my daily driver with my new build.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
Build with march security patch is on the thread now.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
Thank You Very Much!

I've just installed that one and today's pico gapps, phone is up and running again.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] iagossilva:
How do I update the ROM without losing my already installed apps?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] iagossilva:
This ROM has a bug where it does not show the most recent app in the recent panel
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] cango123:
Open the recents menu twice (open - close - open again), then the most recent app will show up. But yeah this a known issue on cm/lineage based roms until 7.1.2... Aosp based roms are not affected by this.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
Coming from an older version, boot into TWRP, install the image and openGapps, wipe data+cache (the left slider in TWRP after successful installation) and reboot (right slider). That's it. Apps and data are retained, only the app cache is erased. The reboot will take up to a couple minutes.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] woozie.2007:
i think you are wrong, maybe you want to say dalvik and cache, not data, because wiping data you will wipe all apps
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
Yes, whatever. It's a combo slider on the install image menu of TWRP.

Regards

Ektus.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] icantlogin:
I have no idea what you guys are talking about, I have never encountered this bug, nor do I encounter it after installing this latest update.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Spliff85555:
Thanks, up and running! :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Ramonms98:
Any fixes? Only security patch? Thanks anyway
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] iagossilva:
Do I need to format system partition before flashing the new version?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ektus:
No.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
Only the security patch has changed as people started to focus on oreo.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] takoa:
While there is a voice call, the data connection is lost in both sim.

Xt1676
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bojnice:
Two new 14.1 phones. No moto

https://www.androidpolice.com/2018/...eo-arrives-nexus-player-two-devices-get-14-1/
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Chris180206:
Location/GPS not working without GApps?

Hi wzedlare,

first of all, thanks a lot for your effort in delevoping this great ROM, much appreciated!

Sorry, if this question has been asked before, but I couldn't find anything on this thread.

Is GPS location working on this ROM without GApps? I tried to get a signal with google maps via opera browser and via the maps.me app, but both apps couldn't determine my location even though all permissions had been granted.

Has anyone else experienced this or am I missing something? Or might I even have a hardware issue with my phone?

Thanks and regards,

Chris

Edit add:

Sorry, I tried GPS only and high accuracy location mode.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] LambdaPerl:
Hi Chris, just chiming in with my experience (I have the XT1676 (~3 GB RAM variant)).

I use OsmAnd (from F-Droid) to do my satellite navigation and it does work, but you have to wait until you get a GPS lock.

Getting a GPS lock could take you about 12 minutes (if I remember right) for the first time, as your phone has to download some data (the 'almanac') from the GPS satellites which are constantly emitting it at a fairly slow data rate (300 bps if I remember).

For me, it doesn't seem to take all that long though, so there must be some magic going on which reduces this time (I am not a GPS expert so couldn't go into detail).

My advice would be: Stand outside (or at least near a window, seems to be enough for me, but does seem to take longer) for a few minutes to try and get a lock.

If that still fails you, I remember there may be some apps available which will tell you more about what GPS satellites your device is listening to and able to receive, it may be worth a look to see if anything is happening under the bonnet.

Not sure if there's any other suggestion I could offer but might be worth a go.

Cheers,

Not Wzedlare
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] cango123:
Also no gapps, no problems for me in GPS only mode...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] LambdaPerl:
Mind sharing the name of that app that shows SNR? Looks nifty.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] cango123:
:D:D:D:D

--> https://play.google.com/store/apps/details?id=com.chartcross.gpstest

Edit: Oh, no gapps.. https://www.apkmirror.com/apk/chart...-release/gps-test-1-5-4-android-apk-download/ :D
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Chris180206:
Hey LambdaPerl, hey Zokhii,

thanks a lot for your comments and suggestions (even though you're not wzedlare :p ).

Are you using the latest March 18th build as well? Because now that you mention it, I think it worked on my device before I updated...???

If so, only two options left, either my phone is broken or myself...

Thanks and regards,

Chris
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] LambdaPerl:
Nope, sorry, I'm not on March 18th yet.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] cango123:
Yes, I am using the 20180318 build without gapps for a week now and I don't face any issues... Weird, I don't know what is happening there but everything is absolutely fine for me :confused:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Techcri:
Heya, awesome work!

and i cant wait to flash it and see how smooth it might run :))

one question before i flash it i have tho:

is this a 64bits ROM?

LineageOS 15.1 requires twrp x64

or is this [Official] [8th Dec 2017] TWRP 3.2.1-0 Moto G5 [cedric] the one i need?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Fedray:
This rom is 32 bits, use official twrp.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Techcri:
thx!

sorry for the slightly offtopic question:

if i have LineageOS 15.1 installed atm and wanna switch to the version now of this thread,

do you have a tipp what i should beware of so i dont get into a bootloop or other surprises?

my next step would be straight

first factory reset and

then flash the 32bit of twrp

or other way around?

the next steps after installing twrp should be clear as its said in the opening poste of this thread:

Instructions :
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hoxirm:
Device - XT1675

TWRP 3.2.1-0 Moto G5 [cedric]

I have tried flash current build but getting" error:

"Can't install this package on top of incompatible data. Please try another package or run a factory rest

Updater process ended with ERROR: 7 Error instaling zip file '/sdcard/lineage-14.1-20180318-UNOFFICIAL-cedric.zip

Updating partition details....

...done"

I have done factory reset, I have also tried to change updater-script by removing assert lines, no luck.

Any ideas what Am I missing?

Edit:

Another thing I have noticed is that if I go to recovery mode it goes to message "no command" instead of TWRP, I went through whole process of flashing but always have same result...

Edit2: Going through the installation process in different roms I have found solution "Go to TWRP and wipe system, data, cache and dalvik-cache"

For someone that do not deal with roms on daily bases might be a bit difficult to know this.

Thx anyway
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] LambdaPerl:
Hello thread,

Having a problem with permissions to write to the SD card.

Whilst I can access files on the SD card via:

adb shell

root terminal (in Termux → `su`)

the system file browser, e.g. as would be used for choosing a file

I can't write any files or directories via apps (except via `su` in Termux).

When I list the contents of my external SD card via a root shell or through adb shell, the permissions look like:

drwxrwx--x root sdcard_rw (dirs)
-rw-rw---- root sdcard_rw (files)

However, when I list the contents via an unprivileged shell in Termux for example:

drwxr-x--x root everybody (dirs)
-rw-r----- root everybody (files)

It seems like the filesystem (which appears to be implemented via FUSE) presents different permissions and groups based on who is logged in.

Anybody have any idea of what's going on and whether I can try to rectify this? I'd like to be able to e.g. take photos/videos on my external SD card via OpenCamera as my internal storage is always full recently (due to a mysterious 5GB of 'System' files.. that 'Android can't display individually', and my habit of data hoarding :))

Cheers.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] wzedlare:
What happens if you use this command?

chmod 660 /putsdcardlocationhere/ -v -R