yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] Carlos Arriaga:
LineageOS is a free, community built, aftermarket firmware distribution of Android 8.0 (Oreo), which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

What's working :

Boots

RIL (Calls, SMS, Data)

Wifi

Bluetooth

Camera

Video Playback

Audio ( Record and Playback )

Flash

Led

GPS

What's not working :

Video Recording (use footej camera)

SELinux is permissive

Instructions :

Download the latest build and gapps

Reboot to recovery

Flash the latest build and gapps

Reboot

Downloads :

Builds : LineageOS for Moto G 2013

Google Apps : https://cloud.kenzoroms.club/?dir=opengapps

Reporting Bugs

DO NOT Report bugs if you're running a custom kernel or you installed Xposed

Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)

If it is a random reboot, grab /sys/fs/pstore/console-ramoops and /sys/fs/pstore/dmesg-ramoops-0. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)

If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log

Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

TELEGRAM GROUP FOR G 2013

Credits :

[MENTION=5778309]luca020400[/MENTION]: for working the msm8226 - lineage maintainer

[MENTION=5778309]LuK1337[/MENTION]: for working the msm8226 - lineage maintainer

Motorola: For providing the Kernel Source Code

LineageOS Team

Donations :

You don't have to but if you want so...

Carlos Arriaga: Paypal

XDA:DevDB Information

LineageOS 15.1, ROM for the Moto G

Contributors

Carlos Arriaga, LuK1337, luca020400

Source Code: https://github.com/MotoG2013

ROM OS Version: 8.x Oreo

ROM Kernel: Linux 3.4.x

ROM Firmware Required: TWRP Recovery

Version Information

Status: Stable

Created 2017-09-06

Last Updated 2018-01-08
[Moto G 4G Android Development] Carlos Arriaga:
Reserved
[Moto G 4G Android Development] thevanesth:
Nice, I'll wait for a more stable build, keep this thread alive please!!
[Moto G 4G Android Development] dovahkiin4756:
Can't believe peregrine community still active. Thanks, OP. Downloading right now.
[Moto G 4G Android Development] aha360:
Hmm, I wonder if Google Camera works with this Android ROM but I doubt it.

Massive thanks [MENTION=6331811]Carlos Arriaga[/MENTION] et al for making Oreo work on a piece-of-crap device that I have LOL =P
[Moto G 4G Android Development] thedeadfish59:
****t, I hope there are any dev alive for titan as well :p
[Moto G 4G Android Development] dannroda:
Deleted
[Moto G 4G Android Development] TheMax94:
EAP SIM work on it?
[Moto G 4G Android Development] laserdisko:
Prueba version 20170908

Instalada en mi moto g 4g xt1040 la versión del 20170908 y los errores que encontré fueron:

– En la instalación error 7 que no salía antes. Cambié el archivo updater script por la versión del 20170902 y funcionó, no sé si esto sea un grave error pero instaló la rom sin errores.

-Al iniciar da un error “el proceso system no responde”, da opciones cerrar aplicación y esperar.

-No funciona la cámara, da error de acceso, muestra la opción de reportar – ignorar. Descargué e instalé dos aplicaciones de cámara del playstore a ver si funcionaba pero dieron error de no acceso a la cámara por estar siendo usada por otra aplicación.

No encontré otros inconvenientes pero lo que miré funcionó perfecto, muy rápida y agradable la Rom. No rootee porque era lo siguiente a las pruebas de funcionalidad y paré ahí. Quiere decir que ya quedó ajustado el tema del giro de la pantalla y el wifi que no andaban en la versión del 20170906

Espero nueva versión para probar de nuevo y gracias por el trabajo y esfuerzo.
[Moto G 4G Android Development] Tapsibaba:
Nice, I'll wait for camera to work before installing it on my mother's phone.

Keep up the good work mate!
[Moto G 4G Android Development] aha360:
Test version 20170908

Installed on my bike g 4g xt1040 the version of 20170908 and the errors I found were:

- In the installation error 7 that did not come before. I changed the updater script file for the 20170902 version and it worked, I do not know if this is a serious error but installed the rom without errors.

- At start it gives an error "the system process does not respond", gives options to close application and wait.

- Camera does not work, gives access error, shows the option to report - ignore. I downloaded and installed two camera applications from the playstore to see if it worked but they failed to access the camera because it is being used by another application.

I did not find other inconveniences but what I saw worked perfect, very fast and pleasant the Rom. Do not rotate because it was the next to the functionality tests and I stopped there. It means that the theme of the screen rotation and the Wi-Fi that were not in the version of 20170906

I hope new version to try again and thanks for the work and effort

------------------

PLEASE USE THE ENGLISH LANGUAGE.

Apart from that, the ROM in question gives me no proper signal - no phone calls/SMS/data, and as stated on the OP, the camera is broken
[Moto G 4G Android Development] elchino05:
Maybe i'll consider using it when mobile data is working, great work
[Moto G 4G Android Development] laserdisko:
Test 20170914 version

Installed the version of 20170914 in moto G XT1040. The camera does not work, flashlight, bluetooth (tries to connect but in the search of devices is put in permanent cycle of disconnection - connection) and the wifi is disconnected (connects a moment and falls, then reconnects and stays in cycle, Conection - disconnection). Linux appears as permissive, thanks for the effort to Carlos Arriaga and I expect another more stable and complete version to test.
[Moto G 4G Android Development] Nicomix:
Hello Carlos.

I see you have been updating every day the falcon version, and I saw that now there are few things working, now the camera take pictures and the bluetooth works, and I would like to see that changes in peregrine, please <3, could you upload another peregrine version?
[Moto G 4G Android Development] Carlos Arriaga:
New build is up!

Changelog:

* Bluetooth fixed

* Camera fixed

* Dual sim fixed

* Flash fixed

* Others bug fixed :)

OP UPDATE PLEASE READ

Download in the OP :) happy flash guys
[Moto G 4G Android Development] Os_A:
AndoidFile host has problems today
[Moto G 4G Android Development] volxbit:
You can assemble for LG L70 w5?
[Moto G 4G Android Development] laserdisko:
Test 20170927 version

Hi carlos.

I have tried for two days the version of September 27 in my peregrine and the only thing that did not work is my camera, open and I send a message "Camera error Can not establish connection with the camera".

Everything else worked fine, I had to go back to my previous version since I need the camera; thank you for your work and I hope you can solve this unique detail that is missing. Greetings from Colombia.
[Moto G 4G Android Development] Carlos Arriaga:
Read OP camera only works with cameringo APP
[Moto G 4G Android Development] schrickz:
I'm missing the music player in this ROM. Please add in the next build.
[Moto G 4G Android Development] nospam.xda-developers@hen:
Installed version from 09/27 and everything works perfectly (using Cameringo camera app)! Thank you so much for extending lifetime of my good old moto g! :)
[Moto G 4G Android Development] Lobo_Azul:
Thanks

I have installed the last build (sep 27, 2017) in my Moto G 4G XT 1045 and I'm reallt surprised by how well it works already. Once the camera issue is solved this will be reccomendable for daily use (I'm actually using it as my daily phone. So basically crash-testing.)

One thing I noticed is that if you use a SD Card as adoptable storage, the size of the card is wrong. The images are of a 16 GB SD Card, that shows as a 32 Gb and containing a big 16 Gb file that is tottaly used (I think it's showing the entire filesystem as a big file.)

I tried to expulse the SD card and re insert it to get an error message showing but it didn't happen, I don't know how to reproduce. It just accepts the card and works normally, it's just the wrong values showing. You can move apps to SD and from SD to internal memory without problem.

But, I repeat, it shows wrong values but is working right at least apparently.
[Moto G 4G Android Development] bartekm01:
Hi Carlos

I'he instaled latest build for peregrine and after two day's I had a couple of reboots, but I canot find any of logs like bellow:

/sys/fs/pstore/console-ramoops and /sys/fs/pstore/dmesg-ramoops-0.

Also when i set "setenforce 0" from a root shell, grab /data/misc/audit/audit.log

Where can I find them?

Thx

Wysłane z mojego XT1039 przy użyciu Tapatalka
[Moto G 4G Android Development] SplaszIG:
the development of this rom stopped ? no new builds since sep 29
[Moto G 4G Android Development] Nicomix:
The changes are the same

I understand that the changes made on falcon are merged on peregrine too, but Carlos doesn't want (maybe because there aren't a lot of peregrine users) or doesn't have time to make another build, but don't worry, surely we are going to see the official build of lineageos15 for peregrine when lineageos15 arrives.
[Moto G 4G Android Development] Carlos Arriaga:
currently there is bootloop in Falcon, I do not see to update in peregrine if it does not start in Falcon.
[Moto G 4G Android Development] SplaszIG:
I see, thanks for your reply and i hope the bootloop problem is solved soon, cuz latest build for peregrine runs well even with the random reboots
[Moto G 4G Android Development] dionei:
installed the lasted one, this rom run fine with almost no bugs,

data, gps, bt and wifi are working right.

the problem is that pip fc some times, I think bcs of lack of memory,

I was in maps using pip and runned youtube and then fc.

some times phone gets hot but i think is bcs of ok google in all screen that I activated.

I recommend this rom to keep the development on our phone.
[Moto G 4G Android Development] Rs801:
Can I flash this rom in xt1033?
[Moto G 4G Android Development] aha360:
Use the FALCON verison of this ROM, which is available on Carlos Arriaga's website.
[Moto G 4G Android Development] user822:
Hi.

Quick question about building.

Once i checked out all the regular LineageOS stuff with the "repo" command, how do I add in the custom repositories that are still under "Alberto" on github instead of LineageOS.

Thank you for your help!
[Moto G 4G Android Development] durifon:
Hi I just installed this rom from Resurrection Remix 8.5 on my peregrine (XT1032). Everything works like a charm but... The most important thing: sim not recognized. Is there a turnaround?

---------- Post added at 06:21 PM ---------- Previous post was at 06:03 PM ----------

PS: going back to RR and my sim works ...
[Moto G 4G Android Development] m00head:
XT1032 is falcon, not peregrine:

[INFO] All Moto G Codenames, Models and Variants - reddit

https://www.reddit.com/r/MotoG/comments/62iosc/info_all_moto_g_codenames_models_and_variants/
[Moto G 4G Android Development] Renan Souzaa:
Sim card is not working.

I also tested the 14.1 oficial lineage, also did not work the sim card, someone with this problem too?

I use the Moto G1 4G [XT 1039]
[Moto G 4G Android Development] muktadir6m:
sim card not working!
[Moto G 4G Android Development] xdaluka1:
sim card works @ version 2017/09/27 @ xt1039
[Moto G 4G Android Development] sevenrock:
https://github.com/Unofficial-Moto is not available anymore -> 404 :(

Is there another place where I can find the needed code to build a peregrine los15-based ROM?
[Moto G 4G Android Development] Eddy Stark:
Has anyone tested the new android version 8.1 lineage-15.1-20171223_175721-UNOFFICIAL-peregrine?

PS: I tested and got stuck in the loading screen
[Moto G 4G Android Development] ed-cheko:
Exactly the same thing happens to me :(
[Moto G 4G Android Development] aha360:
Is anyone else having this problem? This is worrying if it remains unfixed, and yes, as it turns out, the ROM will not even boot up at all and I have been waiting over 15 minutes for the phone to boot without success, and to make matters worse, there doesn't seem to be any earlier versions of the ROM being available now.
[Moto G 4G Android Development] Nexive:
I have it too. It's in a bootloop.

The last working build is the one from 27 september.

It's available on androidfilehost: https://androidfilehost.com/?fid=673791459329048843
[Moto G 4G Android Development] aha360:
Thanks for the link, but I have installed [MENTION=7751333]Allstargaurav[/MENTION]'s AOSPExtended ROM in the meantime.
[Moto G 4G Android Development] Nexive:
The 08/01/2018 build is booting on my peregrine. :) Seems working great! :)

Using this gapps: https://xdaforums.com/redmi-note-3/development/gapps-opengapps-t3720449
[Moto G 4G Android Development] gasston:
@ Nexive : have you a link for this ROM ? (08/01/2018 build) I've read again the topic and didn't saw it ...

For Peregrine of course ;)
[Moto G 4G Android Development] sevenrock:
Check this section from the OP of this thread:
[Moto G 4G Android Development] Eddy Stark:
Camera work?
[Moto G 4G Android Development] aha360:
Stills work, but video doesn't, as mentioned on the first page
[Moto G 4G Android Development] Sivics:
On my phone the screen doesn't auto-rotate.

I did a complete wipe of the phone before installing.
[Moto G 4G Android Development] Eddy Stark:
Are you using the latest version lineage-15.1-20180109-UNOFFICIAL-peregrine.zip?
[Moto G 4G Android Development] Sivics:
I downloaded the 20180108, just some minutes before the uploading of the new version.

Now it works!
[Moto G 4G Android Development] sevenrock:
Trying to build a los15.1-based ROM based on https://github.com/MotoG2013/local_manifest/blob/lineage-15.1/README.md I needed to make these modifications:

Error reported by Ninja (https://github.com/MotoG2013/androi...mmit/c13b63885a2d8ea89b9546fc65dcfa333ed578fd is not enough)

Fix

--- device/motorola/msm8226-common/CMActions/Android.mk.orig	2018-01-09 19:22:59.109784227 +0100
+++ device/motorola/msm8226-common/CMActions/Android.mk	2018-01-09 19:19:24.246254268 +0100
@@ -13,8 +13,8 @@
android-support-v14-preference \
android-support-v7-appcompat \
android-support-v7-preference \
- android-support-v7-recyclerview \
- org.cyanogenmod.platform.internal
+ android-support-v7-recyclerview
+# org.cyanogenmod.platform.internal

LOCAL_PROGUARD_FLAG_FILES := proguard.flags

Error:

Fix

--- hardware/qcom/fm/fm_hci/Android.mk.orig	2018-01-08 23:23:37.000000000 +0100
+++ hardware/qcom/fm/fm_hci/Android.mk	2018-01-09 19:24:52.341528746 +0100
@@ -13,8 +13,8 @@
libhidltransport \
libhwbinder \
liblog \
- libutils \
- vendor.qti.hardware.fm@1.0
+ libutils
+# vendor.qti.hardware.fm@1.0

LOCAL_CFLAGS := -Wno-unused-parameter

Error:

EDIT: Maybe these commits fix the problem?

https://github.com/XPerience-AOSP-L...mmit/e59007c2378b77d645dcade1430ff944dac7ad44

https://github.com/XPerience-AOSP-L...827e0de#diff-42093a6732b496e5669e16c7cf365289
[Moto G 4G Android Development] sevenrock:
The XPerience project has apparently fixed the camera problem:

https://xdaforums.com/showpost.php?p=73972263&postcount=2

https://xdaforums.com/showpost.php?p=75138192&postcount=149

Searching through their repos I found a camera-related commit which is missing in this ROM:

https://github.com/XPerience-AOSP-L...mmit/e451f3a2417c075e97b10d98643906f784a3884c

I could not run-time test the patch yet, hth.
[Moto G 4G Android Development] schrickz:
everything seems getting better except for the camera video recording. one thing I noticed, on 20180109, having problem with setting up the lock screen. It's hanging up upon second phase of PIN input, if I tried to force a reboot, it'll booted up with locked screen with PIN code input loops.
[Moto G 4G Android Development] baxtex:
Awesome to find that there is N build for this old phone!
[Moto G 4G Android Development] Nicomix:
I have tested it and everything works fine, I have the sensation that the animations has something wrong, I think the graphics drivers are not optimized yet or I don't know, anyway I feel the rom smooth and I like it, the mobile data and the calls work ok.
[Moto G 4G Android Development] sevenrock:
What about enabling "Go edition" settings?

This post contains the commit which needs to be ported to somewhere to device/motorola/msm8226-common/msm8226.mk

https://xdaforums.com/showpost.php?p=74841875&postcount=20

This post explains what this is all about:

https://xdaforums.com/showpost.php?p=74750789&postcount=1
[Moto G 4G Android Development] aha360:
Well, for the impatient, Google Camera allows this croaking device to take stills and video with the camera, so if you cannot wait, here it is, and yes, both [MENTION=5528496]alfianguy[/MENTION] and myself have tested this app, with me testing this via conventional installation methods, and via the flashable ZIP method, and it works without issues.
[Moto G 4G Android Development] Eddy Stark:
I'm using the latest version with your camera (thanks so much) and it works perfectly, the only problem is that I can not charge the battery with the phone off he automatically restarts whenever I try to charge while it is off
[Moto G 4G Android Development] cptechnik:
crashes if

- searching for restart-menu/power-menu

- and click on result...

normaly power-menu-settings are hidden... maybe because this...

...nice work... continue!
[Moto G 4G Android Development] sevenrock:
Afaics there are some patches missing in lineage-15.1 for this: https://review.lineageos.org/#/q/topic:oreo-mr1-offmode-charging

---------- Post added at 07:21 AM ---------- Previous post was at 07:19 AM ----------

Afaics some patches are not committed yet for this function: https://review.lineageos.org/#/q/topic:oreo-mr1-rebootmenu
[Moto G 4G Android Development] sevenrock:
Hi, I tried to build a los15.1-based ROM for peregrine using https://github.com/MotoG2013, pulled today.

It built fine after wiping system/data/cache/dalvik/sdcard and I could boot the phone with it,

but the SIM card was not detected. The reason for this seams to be shown in logcat:

01-21 13:38:04.872 7329 7329 F DEBUG : pid: 7326, tid: 7326, name: thermal-engine >>> /vendor/bin/thermal-engine <<<
01-21 13:38:04.872 7329 7329 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
01-21 13:38:04.876 7329 7329 F DEBUG : Abort message: 'CANNOT LINK EXECUTABLE "/vendor/bin/thermal-engine": cannot locate symbol "index" referenced by "/system/vendor/bin/thermal-engine"...'
[...]
01-21 13:38:07.686 7340 7340 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
01-21 13:38:07.689 7340 7340 F DEBUG : Abort message: 'CANNOT LINK EXECUTABLE "/vendor/bin/mpdecision": cannot locate symbol "android_atomic_acquire_load" referenced by "/system/vendor/bin/mpdecision"...'

This looks like the shim libs were not used. Also /vendor/bin/hw/rild is not running,

which seems to be the main reason for the SIM card problem.

Using lineage-15.1-20180109-UNOFFICIAL-peregrine.zip from

https://sourceforge.net/projects/moto-g/files/peregrine/Lineage-15.1/ works however, all three

binaries, thermal-engine, mpdecision, rild, show up on the shell using "ps".

What am I doing wrong?

Was the image built with exact the same code as provided on github?

Another question: Afaics the combination "sdcard used as adopted storage & encrypted phone",

which means FDE - not FBE, does not work with twrp due to a new password verification mechanism

in Android 8.1, which is not supported by twrp, right?

To flash new images I used USB OTG with success, but backup/restore of the data partition

with twrp is not possible anymore. Which backup strategy do you use? Titanium Backup can

backup individual apps and their settings, but I never tried to backup/restore all Android system

settings. Can Titanium Backup be a full replacement for a twrp-based backup of /data?

I guess not. What do you propose?
[Moto G 4G Android Development] tonibm19:
An Android GO build would be awesome for our device.
[Moto G 4G Android Development] Eddy Stark:
An Android GO build would be awesome for our device +1
[Moto G 4G Android Development] M1chiel:
Check this: https://www.xda-developers.com/android-oreo-android-go-low-ram-patcher/

It seems to work well for my Samsung S4 mini running LineageOS 15.1.
[Moto G 4G Android Development] sevenrock:
Problem solved :) https://xdaforums.com/showpost.php?p=75627087&postcount=54
[Moto G 4G Android Development] mrLoma:
I want to try out 15.1 on my old peregrine. I was wondering if you guys still post newer builds. Out do we just user the January one.

I tried that one before but back than I couldn't find compatible gapps.
[Moto G 4G Android Development] schrickz:
LOS 15.1 was already officially announced, we should see newer builds soon.

Open GApps already had released 8.1 GApps too.
[Moto G 4G Android Development] sff462:
After using Lineage 15.1 on another phone, I found this thread and installed it today on my peregrine. I like it a lot, but have run into an unusual problem. If the phone is charging, I can't keep it shut off. If it's plugged in when I turn it off, it restarts after a short time. If it is not charging when I turn it off it remains off until I plug in the charging cable, then it turns back on. I must be overlooking a setting, but can's seem to find one. Any help would be appreciated. Thanks in advance.
[Moto G 4G Android Development] CornholioGSM:
interesting...i have by me two moto g.

one is falcon and other is peregrine. both are on unofficial los15.1 and both are too much different...thats no problem.

BUT why i am not able to install or run 8.1 apks from falcon to peregrine?
[Moto G 4G Android Development] ThePiGuy:
[MENTION=7751333]Allstargaurav[/MENTION] do you think your work on the msm8226-common (I just realised that other thread was falcon only, and not falcon and peregrine combined) might possibly go official for Lineage OS?
[Moto G 4G Android Development] Allstargaurav:
It might if I want to but first I need to fix bugs for that I need a server
[Moto G 4G Android Development] ThePiGuy:
Fair enough. What are the bugs currently?
[Moto G 4G Android Development] demoncamber:
Had a root issue, but solved it!
[Moto G 4G Android Development] demoncamber:
Found a bug, set lock screen pin does not work.

at the final step of reentering your pin again screen it locks up.

but... If you leave it be, it will eventually recover and pin will work.
[Moto G 4G Android Development] demoncamber:
Is this able to be fixed?

"Detected problems with app native libraries

libffmpeg.so text relocations

libpack.so invalid DT_needed entry "./obj/local/armeabi/libffmpeg.so

libpack.so text relocations"
[Moto G 4G Android Development] demoncamber:
I take it this rom is dead?
[Moto G 4G Android Development] ThePiGuy:
At the moment, yes

[MENTION=7751333]Allstargaurav[/MENTION] has brought the peregrine/falcon up for Oreo though (I think for AEX) and if anybody is interested I can run a few lineage builds for peregrine
[Moto G 4G Android Development] sevenrock:
Is there a twrp for peregrine capable of decrypting an oreo-encrypted device?
[Moto G 4G Android Development] ThePiGuy:
I don't know. I doubt it though. The official TWRP branch is for Android 6 decryption