yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] spiderxDa:
FM Radio

Thanks for the great rom! Everything works fine except for the fm radio wich closes down every time i try to open it. Could you please look into it? Thanks again ;)
[Moto G 4G Android Development] Julien41:
Hi,

thanks for the ROM, that's awesome guys !

Allstargaurav your donation link is dead, could you fix it ? I want to give you 5€

By the way, i'm a Java developer, but I never contributed to a rom, would be happy to do so.

But I dont have any problem to solve on my device/rom

Regards
[Moto G 4G Android Development] lucastracq:
i don't know if i'm late but, for anyone interested, this bug is finally fixed as far as i can say.
[Moto G 4G Android Development] globe79:
I can't see any update by [MENTION=7751333]Allstargaurav[/MENTION] on androidfilehost.com and I'm not sure if you posted to the right forum - please clarify. Are you talking about Peregrine or Falcon?
[Moto G 4G Android Development] lucastracq:
i'm actually just informing about progress for both devices. in a few words if you can build it yourself it won't have that bug anymore.
[Moto G 4G Android Development] AndroMani:
Hi sevenrock,

I am using Moto G2 4G LTE 2nd Gen "Thea" phone (XT1079) and I have read that but for the hardware specs. there is literally no difference between Peregrine (which is the First Gen LTE version from Motorolla) and Thea (which is 2nd Gen) as both are 4G LTE devices only.

I came across a video that explained how to change the device model check before flashing a new custom rom,

provided if other architecture is the same from the same device manufacturer. That video showed how to change

the device reference in the file "updater-script" in the location (META-INF\com\google\android) - after unzipping the ROM file - to the device architecture you have (in my case, changing Peregrine to Thea) and also remove the "assert"(getprop) line at the top so flashing in TWRP will not throw Error 7. Then re-zip to create a modified zip file for flashing.

Will the boot image of Peregrine work alright in Thea OR I have to find the right boot image for my device after doing the above change? And will the Pie ROM file "system.new.dat.br" install alright in my device if it passes the initial boot screen phase?

I am not sure doing it this way will work in my device OR will it softbrick or hardbrick it. Right now, I am using Lineage OS 15.1 Oreo ROM for Thea (Unofficial) by LuK1337 and it is working alright though SELinux is permissive. I am using Magisk 18.1 for root.

Please guide me as I am curious to try the Pie ROM from Peregrine version of this OP in my Thea Moto G2 4G LTE.

Thanks.
[Moto G 4G Android Development] AndroMani:
Hi Allstargaurav,

Thanks for your hardwork in bringing Pie ROM for Moto G LTE.

I have a question. I am using the 2nd Gen Moto G LTE, Thea. Can I flash this Peregrine ROM in my device.? I have found that but for the hardware specs, both Thea and Peregrine are similar devices.

Please let me know if I can try your Pie ROM in my device. I am just curious if it will boot, ofcourse, with any changes I have to make in the build. Right now, I am using Oreo ROM by LuK1337.

Thanks for clarifying.
[Moto G 4G Android Development] lucastracq:
i'm not able to answer your question, but i'll give you my opinion. anyway no need to post twice or to quote the first post.

yes, the devices are very similar but i'm sure that, even if it boots, you can encounter bugs. a better option, if you have the possibility, is to build it on your own.
[Moto G 4G Android Development] AndroMani:
Hi lucastracq,

Thanks for your response. As I didn't get a response to my earlier post, I thought I addressed it to a wrong person so I had to ask the same question again quoting the OP as he is the builder of the Pie ROM for the Peregrine device. Thanks again for clarifying.

Since I am not a developer I can't build a ROM myself and I can only try few modifications from one ROM to another (and in my case, since the device architecture is almost the same and there is no official development for the latest 2nd Gen LTE device, I thought if I can make certain tweaks to this ROM, it will work in my device though with certain bugs.). That's why I wanted to know from the XDA developer's forum. Still waiting to hear inputs from others for any remote chance...

Thanks.

​
[Moto G 4G Android Development] key-ancel:
I'm with the December version of 2018 and it's much better than the first version. But I found some bugs.

the music player mutates, some times.

some camera apps do not work. (Camera moto port)

Hotspot does not work.

For the rest it's fine, the Bluetooth does work, although as the post indicates otherwise. Unfortunately I return to AEX 5.8 for stability and the Hotspot.
[Moto G 4G Android Development] dionyweb:
Hi,

I built a new version today with the help of [MENTION=4977500]sevenrock[/MENTION] "build steps" Post and the hotspot works now !

I don't have any problem with music player or video : [MENTION=7337652]key-ancel[/MENTION] could you elaborate on this ?

regards
[Moto G 4G Android Development] sevenrock:
These are my current build steps, updated from my last post.

To begin with you need to LineageOS source code

repo init -u git://github.com/LineageOS/android.git -b lineage-16.0
mkdir .repo/local_manifests

Into the just created directory .repo/local_manifests you put this file called local_manifest.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<!-- Motorola repos -->
<project path="device/motorola/peregrine" name="sevenrock/android_device_motorola_peregrine" remote="github" revision="lineage-16.0" />
<project path="device/motorola/msm8226-common" name="sevenrock/android_device_motorola_msm8226-common" remote="github" revision="lineage-16.0" />
<project path="kernel/motorola/msm8226" name="sevenrock/android_kernel_motorola_msm8226" remote="github" revision="lineage-16.0" />
<project path="vendor/motorola" name="sevenrock/proprietary_vendor_motorola" remote="github" revision="lineage-16.0_msm8226-common" />

<!-- LineageOS repos -->
<project path="packages/resources/devicesettings" name="LineageOS/android_packages_resources_devicesettings" remote="github"/>
<project path="system/qcom" name="LineageOS/android_system_qcom" groups="qcom" />

</manifest>

My github repos are based on

https://github.com/sevenrock/android_device_motorola_peregrine <- https://github.com/MotoDevelopment/android_device_motorola_falcon.git

https://github.com/sevenrock/android_device_motorola_msm8226-common <- https://github.com/MotoDevelopment/android_device_motorola_msm8226-common.git

https://github.com/sevenrock/android_kernel_motorola_msm8226 <- https://github.com/RenanQueiroz/android_kernel_motorola_msm8226

https://github.com/sevenrock/proprietary_vendor_motorola/tree/lineage-16.0_msm8226-common <- https://github.com/MotoDevelopment/android_device_motorola_msm8226-common

Then start the download and get some coffee/tea/whatever, it will take some time

repo sync -c -j 8

After you downloaded the vanilla LineageOS code we start patching it, but before

you should always reset it to vanilla state and resync if you ran a build before:

rm -rf out/
repo forall -c 'git reset --hard ; git clean -fdx'
repo sync --force-sync -c -j8

After that you apply the current patches

python vendor/lineage/build/tools/repopick.py \
227120 \
230642 \
234649 236765 \
238812 \
241802 \
242058 242059

for i in \
torch-colorz \
p-display-shrink \
pie-battery-styles \
pie-linked-volumes \
pie-data-restriction \
; \
do
python vendor/lineage/build/tools/repopick.py -t $i
done

python vendor/lineage/build/tools/repopick.py -p -t \
bt-sbc-hd-dualchannel-pie

To start the build issue these commands:

source build/envsetup.sh && croot && WITH_SU=true brunch peregrine

If you do not want your ROM to be rooted just omit "WITH_SU=true".

With "WITH_SU=true" you do not need any other package to root your phone.

The list of additional patches gets smaller as most patches were committed upstream.

Added the SBC HD patch for BT audio improvements after bugs were fixed.
[Moto G 4G Android Development] key-ancel:
Hi, I'm still trying LOS16 on my peregrine. The songs are muted: when I'm playing a list of songs, with any player app, sometimes the music is muted, the timeline of the music advances, but nothing is heard, even if the volume goes up.

After a long time and restart, everything works again. But then the bug persists. Disable the AudioFX equalizer only for headphones, and apparently solve the problem.

On the new compilation, when they publish it? Thanks and regards :)
[Moto G 4G Android Development] dionyweb:
Hi [MENTION=4977500]sevenrock[/MENTION]

How do you choose/select the patches or topics that would be relevant to peregrine mobile ?

I might be interested in understanding the process.

Thanks
[Moto G 4G Android Development] neurer:
According to the updated build-targets peregrine userdebug cm-14.1 is now unsupported.

Quick question: Is encryption working for anyone when following the build steps by [MENTION=4977500]sevenrock[/MENTION] ?
[Moto G 4G Android Development] sevenrock:
Same problem here with current build, patches welcome ;)

---------- Post added at 10:04 PM ---------- Previous post was at 10:03 PM ----------

The patches I selected are not specifically relevant for peregrine but either include new features up for inclusion in lineageos or fix general bugs.

---------- Post added at 10:16 PM ---------- Previous post was at 10:04 PM ----------

https://t.me/MotorolaG/28914

Try this patch: https://t.me/MotorolaG/28917
[Moto G 4G Android Development] key-ancel:
I found a new bug, when I mark stars in the radio app, it crashes.

Off topic: LOS14.1 For peregrine is now precared.

Reegards
[Moto G 4G Android Development] sevenrock:
Which ROM version / build date?
[Moto G 4G Android Development] key-ancel:
I'm with LOS 16.0 PEREGRINE December 8 / 2018 :)
[Moto G 4G Android Development] sevenrock:
Please build a new ROM based on current code, the FMRadio

favourites bug was fixed upstream on Jan 22nd, 2019:

https://review.lineageos.org/c/LineageOS/android_packages_apps_FMRadio/+/239290
[Moto G 4G Android Development] arterry:
Tried a few times this week syncing on different days and still come up with the same issue of a software reboot after a fresh install. I'll look closely at the logs as I'm sure its the same error that keeps repeating for me. In case anyone else wants to compile lineage on 4GB of ram here are the varialbles I used:

export JVM_ARGS="-Xmx1024m -XX:MaxPermSize=256m"
export _JAVA_OPTIONS="-Xmx4096m"
sudo swapon /swapfile #added a 8 GB swapfile as the compile stage was asking for more ram
[Moto G 4G Android Development] tmm68:
I have installed the Cerebro kernal on my Peregrine with the Pie built from December. After reboot, i got a black screen. With the On/Off button i got the On/Off menue on top the the black screen.

Minutes later the phone rebooted itself. Bootloop every 5 minutes.

Now i am back to 14.1, this is for me the fastest and smoothest one. Pie was running but very slow.

I was not able to create my own built system. So i have to wait until someone built and releases a new one.

In general the Pie worked but slugging a lot. The system often showed the message " Close/Wait/Restart" by running apps like Maps because of the slow responsiveness.. I still would like it on my Peregrine. Till then, 14.1 is still a good daily driver.

Regards

TMM
[Moto G 4G Android Development] Allstargaurav:
Lineage 16.0 April Update

April security patch

Enforcing Build

Fixed Lineage Offline charger

Other Fixes and all that ****

Just Clean flash that's all

Would not be possible without [MENTION=7344859]RenanQueiroz[/MENTION] I did not do anything

Download: https://www.androidfilehost.com/?fid=1395089523397949222

Note: If you can't flash gapps look for other alternative gapps which is smaller in size.
[Moto G 4G Android Development] rektal:
Hi,

I stuck on after welcome screen with Wait a moment info and loading circle icon.

I did fresh install with pico gapps.

What should I do now?
[Moto G 4G Android Development] Cyber Pinguin:
Black screen

I experienced the same issue. I cannot get past "please wait" screen on setup wizard and when I flash the rom without gapps i get only black screen. I really wanted to test this build since the old one was already very good :)
[Moto G 4G Android Development] key-ancel:
Black Screen x2

I cannot get past "please wait" screen on setup wizard :(
[Moto G 4G Android Development] hrincon:
Just a question, is SELinux enforcing and the camera now records?

From the changelog it seems like camera recording is now working, but it says nothing about SELinux.
[Moto G 4G Android Development] banksio:
Did a clean flash, but like the previous posters I also get "Phone is starting" with a loading bar that never disappears. It then crashes to a black screen. Any ideas?
[Moto G 4G Android Development] John Paden:
Moto G LTE Peregrine, had a stable Lineage 14 that did not get any updates any more.

Trying

boot to fastboot

fastboot flash recovery twrp-3.3.0-0-peregrine.img

PC side OKAY - Phone gives pink error Mismatchd Partition size (recovery)

boot to recovery, wipe davlik cache data system, format data

install lineage-16.0-20190421-UNOFFICIAL-peregrine.zip

reboot

boots, but ends in a black screen. Reboot via Power Botton shows some small icon thing same does Volume up or down. Looks like AppStarter hangs.

Looks you folks got ahead of this and see something? How?

Luckily, the last available install from here https://files.moskvich.xyz/LineageOS/14.1/peregrine/ still installs and works.
[Moto G 4G Android Development] banksio:
Not yet. Still broken here.

Looks like it might be a wider issue as some users are reporting the same thing on unofficial flo builds.
[Moto G 4G Android Development] tatocrow:
After installing the black screen, only the volume up and down and the power down menu can be seen on the screen. forgive my bad english
[Moto G 4G Android Development] Vitouu:
I've also got this problem after a clean install, I still appreciate the whole work made though :)
[Moto G 4G Android Development] Allstargaurav:
Lineage 16.0 April Update

Fixed Black Screen Issue

April security patch

Enforcing Build

Fixed Lineage Offline charger

Other Fixes and all that ****

Just Clean flash that's all

Would not be possible without [MENTION=7344859]RenanQueiroz[/MENTION] I did not do anything

Download: https://www.androidfilehost.com/?fid=1395089523397953949

Note: If you can't flash gapps look for other alternative gapps which is smaller in size.
[Moto G 4G Android Development] John Paden:
Cool. Boots.

Hi [MENTION=7751333]Allstargaurav[/MENTION] and [MENTION=7344859]RenanQueiroz[/MENTION],

super work. Tested on my Peregrine.

Clean install (TWRP 3.3.0.0, wipe Davlik, Cache, Data, System, format Data)

Boots, configures, survives my first 10 minutes of testing.

Seems, Trebuchet is still not 100% stable - some hangs while Configuration / Display / fontsize / displaysize - but ingnorable.

Well, the phone is snappy but not fast but amazing for such an old processor. 2.56GB of the 8GB are used, so some space left.

Perfect holiday phone!
[Moto G 4G Android Development] tatocrow:
excellent rom friend .... an excellent job, now working with android 9 on moto g fully functional for daily use. Thank you
[Moto G 4G Android Development] sdembiske:
Nice job [MENTION=7751333]Allstargaurav[/MENTION] & [MENTION=7344859]RenanQueiroz[/MENTION] ... Thank you!

Just found out NTFS format is supported in the rom - have stricken the original comment below as file size on the SD Card is no problem whatsoever with this format now ... Well done.

A big drawback for me, however, is the lack of SD Card exfat format support. Would really appreciate if you could implement it in another build ... please refer to: https://github.com/LineageOS/android_external_exfat branch 16.0 as download size to the SD card is limited.

Thanks again,

S.
[Moto G 4G Android Development] pigeons9:
This is great, thank you!

I formatted my phone & loaded this and everything seems to be working fine so far. I'm curious if encryption is working? I made an attempt to enable it, it shows the 'Droid' briefly then takes me to the lock screen and the phone remains unencrypted.

The animations are a little sluggish, to be expected. Under Accessibility settings a 'Remove animations' switch exists which makes the phone more responsive.
[Moto G 4G Android Development] arterry:
The latest update also fixes hotspot, thank you so much!
[Moto G 4G Android Development] alex71184:
can you tell me the Gapps to install?
[Moto G 4G Android Development] sdembiske:
open_gapps-arm-9.0-pico
[Moto G 4G Android Development] pigeons9:
Been mostly fine as a daily driver this week. Is it me or does the LED notification light not work? Also, could be unrelated, but I noticed a phenomenon where I receive duplicate text messages sometimes days apart.
[Moto G 4G Android Development] tatocrow:
Notification light is working properly, all in settings without configuration problems ...
[Moto G 4G Android Development] 197:
Very thankful for this update, fixes the issue of the time resetting on power off, and security patches on a 4+ year old phone is brilliant.

Still getting the issue where icons can't be picked up a few minutes after power on.
[Moto G 4G Android Development] 197:
Try the pico version instead.
[Moto G 4G Android Development] pigeons9:
For me, the light works for missed calls & new voicemails. It does not light up for new text messages, even after making a custom setting for it. Notification sounds work fine.
[Moto G 4G Android Development] woam:
Hi,

SELinux is disabled, is this normal or is there something to do?

thx for your work
[Moto G 4G Android Development] lucastracq:
normal
[Moto G 4G Android Development] macmobile:
Tried this one for a change. Nice work!

Biggest problem at the moment: Some push notifications (Hangouts, WhatsApp etc.) seem to be late from time to time. Looked it up in the developer options, but their status already says "active". Any hint what to do about it? Thanks in advance!
[Moto G 4G Android Development] marexel:
Worked!

Seems that the combination of Lineage-16 and the Nano-GApps are now too big for peregrine.

Kr,

marexel
[Moto G 4G Android Development] Pupet_Master:
Is there any con of this vs the latwst lOS 14?
[Moto G 4G Android Development] gingerlee:
Great! I've been trying this out since yesterday and so far everything works perfectly. Thanks for your work.

(using pico-gapps, chrome, gmail, google maps, waze, google calendar)

I don't suppose there is any chance of getting wifi-calling to work, is there?

(oh, I just noticed that google fit isn't recording any steps)
[Moto G 4G Android Development] pierosimo:
:good: Nice work

Hi it's possible to install this rom on the non-4g phone, or there is some hw problem?
[Moto G 4G Android Development] Pupet_Master:
Not possible
[Moto G 4G Android Development] macmobile:
Suddenly not able to turn on mobile data. Working again after restart.
[Moto G 4G Android Development] macmobile:
Still very unreliable push notifications. Anyone else?
[Moto G 4G Android Development] tatocrow:
An error detected is that the phone when it is charged while being turned off, never turns off the screen
[Moto G 4G Android Development] l33thium:
Hi and thank you for your nice job.

I have only one "big" problem. After each reboots i need to re-pair all known bluettoth devices on first connection.

And sometimes the launcher or the entire UI crash and need a reboot before using the phone.
[Moto G 4G Android Development] Caleb_cz:
Same here, i had to re-pair my headphones after reboot as well.

This with combination of random reboot after circa 6-7 hours is only issue i have with this ROM. Otherwise it's very impressive. I would like to donate for your effort somehow, but first donation link from first post is broken.
[Moto G 4G Android Development] Oddb411:
Does anyone have issues with the headphone jack since the last update? It is inconsistent for me now; sometimes it works perfectly, other times it will only play for a second before going silent. It doesn't seem to be hardware related, and I opened mine up to make sure there was nothing wrong with the metal contacts. I haven't tried a clean flash back to the previous ROM to confirm.

Other than that issue, the latest update fixes the problems from before with the FM radio and the long-press for app shortcuts and rearranging icons on the launcher. The continued updates are much appreciated for such an old device!
[Moto G 4G Android Development] Caleb_cz:
Same problem with headphone jack, reboot helps.
[Moto G 4G Android Development] arterry:
This fixed my issue with sound turning off at random points in songs and videos. I have not tested it with Bluetooth
[Moto G 4G Android Development] ferish2:
which gap should download(x86 or arm) for this rom?
[Moto G 4G Android Development] 197:
Arm
[Moto G 4G Android Development] MaCianz:
Hi i'd like to play pokemon go on this phone...is it possible to bypass safety net? As i know magisk hide need a kernel version higher than 3.8(and this rom has 3.4)
[Moto G 4G Android Development] hendrix73:
Does it work for the moto g1 xt1040?
[Moto G 4G Android Development] sdembiske:
Yes - no problem if your device is bootloader unlocked and you have a custom recovery (TWRP) installed.
[Moto G 4G Android Development] Oddb411:
Thank you for this, turning off AudioFX did the trick. My headphone jack is working again just like that. Much appreciated!
[Moto G 4G Android Development] hendrix73:
Does the bluetooth work?
[Moto G 4G Android Development] 197:
Yes.
[Moto G 4G Android Development] trumpikas:
This Rom is super good. Basically atleast as good as the original Android 5.1 or maybe even better. All seems to function as well.
[Moto G 4G Android Development] panagiotis15:
How about the battery consumption???It is daining fast?
[Moto G 4G Android Development] 197:
Not on my phone, it seems pretty good for me.
[Moto G 4G Android Development] panagiotis15:
Well i will try it....i had a 6.0 and its a month that i am on 7.1...but i will make a try with it...
[Moto G 4G Android Development] hendrix73:
From what version of twrp does this rom work?
[Moto G 4G Android Development] 197:
It isnt specified which version you need but its best to use the latest version to avoid any potential problems.
[Moto G 4G Android Development] hendrix73:
Help! I install the rom on my moto g lte 2013 peregrine xt1040 without problems, but when I try to install the gapps I get this error ...

"Insufficient storage space available in

System partition. You may want to use a

smaller open apps package or consider

removing some apps using ga pps-conflg.

See: '/ usb-otg / New folder / openJapps_log. Txt '

for cmplete details and Infor = atlm. "
[Moto G 4G Android Development] sdembiske:
Try using open_gapps-arm-9.0-pico - it's the one that worked for me without issues on the xt1040 - the others above it in the Open GApps list are too large for the Moto G LTE system partition. Once installed you can then download any missing apps from Play Store that are a must have for you.
[Moto G 4G Android Development] hendrix73:
Could you pass me the link of the gapp that worked for you? because I also tried a pico, and it did not work either. I chose the arm gapp and it does not appear peak. It only appears on the arm64

---------- Post added at 04:58 PM ---------- Previous post was at 04:57 PM ----------

Could you pass me the link of the gapp that worked for you? because I also tried a pico, and it did not work either. I chose the arm gapp and it does not appear peak. It only appears on the arm64

---------- Post added at 04:59 PM ---------- Previous post was at 04:58 PM ----------

Could you pass me the link of the gapp that worked for you? because I also tried a pico, and it did not work either. I chose the arm gapp and it does not appear peak. It only appears on the arm64
[Moto G 4G Android Development] 197:
https://opengapps.org/ select ARM, 9.0 and pico and click the download button.