yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] :
Hey M, I clean flashed the latest build of this ROM a few weeks ago and didn't touch the phone since. Last week, I took a bunch of important photos with the default camera app to internal storage, put the phone away (connected to Wifi) and now went to transfer them to my PC and they're all gone. There's 1 JPG file of ~150 left and it's corrupted. Do you have any idea what could have happened?
[Moto G 4G Android Development] MSe1969:
No idea, that sounds weird.

Spontaneously, the only things I could think of are:

- Have you tried rebooting, just to be sure?

- If you reboot to recovery and use the internal file manager of TWRP, is it the same or can you see the files then?

- Your hardware / internal storage (hence your device) is damaged (can you normally access? Store files, edit files etc)

- Maybe you have some rogue app on your phone?
[Moto G 4G Android Development] :
Hey M, yes I rebooted and tried with TWRP - no luck. It was a clean install of this ROM (actually version 20200712), so any rogue apps must have been included. I can only hope something was damaged?
[Moto G 4G Android Development] MSe1969:
Then I am afraid it could be your hardware - but as said, this is really weird...
[Moto G 4G Android Development] ChrisRM:
This is looking good but Google Maps is protesting about needing Play Services updated; I should find a different mapping tool, perhaps?
[Moto G 4G Android Development] MSe1969:
A good alternative would be OsmAnd~

In regards to Maps, same as with other apps directly coming from Google, it is unfortunately not guaranteed that they always run fine with microG . . .

Did you recently upgrade the Maps app ?
[Moto G 4G Android Development] :
They were sensitive document photos with a lot of PII, as my regular phone had a broken camera. I used the default camera app and internal memory. Before taking the photos, I accidentally dropped the phone from about 1m, and after kept it in my pocket. It's still weird though.

My theory is, if there was nefarious activity from sketchy code (Aurora, F-Droid, ???), the culprit would leave the files so as not to arouse suspicion?

So, hopefully it was just some kind of bug with the camera app or a hardware error or something. It's not the first time people have lost photos. I guess I learned my lesson to use a traditional camera for such things.

Regardless, thank you for your work on this ROM. It's been great otherwise apart from this weird issue. I wonder if anyone else brings it up.
[Moto G 4G Android Development] ChrisRM:
No, due to my falcon becoming less predictable, I moved over to a spare peregrine I was bequeathed and am facing bringing that up to the same usefulness as the falcon. That's why the question, not that G Maps has been updated or changed, simply installed and found not to work...
[Moto G 4G Android Development] MSe1969:
In fact, background of my update question was, whether it was the newest maps version and it is, because you've freshly installed - maybe the version on your falcon wasn't the (meanwhile) newest, and that one still worked with microG...
[Moto G 4G Android Development] MSe1969:
If it was a fresh install, as you tell, there are no "questionable" apps shipped along with my build!

So far, nobody has brought up such an issue - the only thing, I am investigating right now, is, that rarely, WiFi drops after a while (falcon and peregrine) and requires a restart.

So if we also leave out the theoretical possibility of any "targeted" attack to YOUR individual device (let's not develop any paranoia, usually there always is a simple explanation for anything ;) ), and we also leave out the possibility of anybody having physically accessed your device, while it was unattended, the remaining option would be a HW defect...
[Moto G 4G Android Development] :
Thanks for following up M.

You seem legit :) I'm not interesting enough to be targeted, I think, and if I was, the attacker would have left the files so as not to arouse suspicion. The device was physically secured the entire time, so we can probably just chalk it up to a hardware fault - which is rare but not unheard of - likely due to mechanical abuse (dropping it, pocketing it, etc.) around the time of shooting the photos, or it just being old.

Thanks again for your great work and communication :)
[Moto G 4G Android Development] Irish_Dude:
Absolutely brilliant ROM.

Running flawlessly on my Moto G

Is there anyway to root this ROM?

Would love to install AFwall+ but it requires root

Thank you so much Dev :)
[Moto G 4G Android Development] MSe1969:
Thanks for the positive feedback - regarding root, see post #3 in this thread.
[Moto G 4G Android Development] MSe1969:
New builds with October ASB

Hi all,

new builds are available for download and will soon be offered as well via OTA update:

A. Default LineageOS 14.1 with substratum and microG patch

https://sourceforge.net/projects/li...0201010-UNOFFICIAL-oms-peregrine.zip/download

ASB Security string 2020-10-05

Updated TimeService.apk (explanation below)

B. Hardened build with pre-installed microG and F-Droid, patched for substratum

https://sourceforge.net/projects/li...1009-UNOFFICIAL-mG-oms-peregrine.zip/download

ASB Security string 2020-10-05

Updated TimeService.apk (explanation below)

Bromite Webview on 86.0.4240.73

updated microG with included Exposure notification API (for Covid tracing apps - see below)

Updated TimeService.apk

System time is now also synchronized via WiFi network (if no SIM card is present).

This helps also to improve the situation, if idle WiFi connections drop after a while

microG with included Exposure notification API

microG now contains an open-source implementation of Google's Exposure notification API, which is used by many Covid tracing apps.

Please make sure to re-enable your configured coarse location providers in the microG settings as a one-time activity after the upgrade.

Happy flashing!

Regards, M.
[Moto G 4G Android Development] MSe1969:
Update of EMail app (fix widget issue)

Hi all,

for those of you interested, who do not want for the next build :

I have created a flashable zip with the update of the AOSP E-Mail app to fix the widget issue described in this post

Happy flashing - regards, M.
[Moto G 4G Android Development] MSe1969:
microG interim update

Hi all,

the below applies only to users of the build variant B:

An interim update of microG GmsCore is available for download here as flashable ZIP:

https://sourceforge.net/projects/li...s/microG-Update-20201017-testkey.zip/download

The apk has been built from the microG source.

Please only use for the build variant B of this ROM (peregrine) or the falcon ROM from this thread

This update contains the following fixes:

GCM sign-in issues

Mapbox issues

Various improvements of the exposure notification API

There is currently no official new version of microG, but due to some issues, which I have experienced myself in regards to the Covid tracing app and GCM sign-in and which were fully solved after applying the update, I wanted to offer it for those of you, who are interested. To update, simply download the linked ZIP file and flash via TWRP (disable ZIP signature verification).

Important hints:

One of the possible issues with the EN API is an incredible growth of the database and thus, the space used by the microG app (the respective Covid tracing app may also start to behave weird due to that). If you get the system message, that memory is becoming short, don't delete the app data of microG - the EN-DB will properly reorganize after flashing the update

The UI has been re-shaped internally. If you start the microG UI and what you see looks "weird" (e.g. Exposure notifications API now shown, or device registration and GCM looking "disabled"), don't panic and DON'T change any settings. Instead, please go to Settings - apps, pick the microG GMS Core app and purge the app's cache (only the cache,

and not the app data

!) - Afterwards, all will be fine.

Regards, M.
[Moto G 4G Android Development] MSe1969:
New builds with November 2020 ASB fixes available

Hi all,

new builds are available for download and will soon be available via OTA updates:

A. Default LineageOS 14.1 with substratum and microG patch

https://sourceforge.net/projects/li...0201107-UNOFFICIAL-oms-peregrine.zip/download

ASB Security string 2020-11-05

Fix of AOSP E-Mail widget

Fix for CVE-2020-15999

System Webview updated to 86.0.4240.185

B. Hardened build with pre-installed microG and F-Droid, patched for substratum

https://sourceforge.net/projects/li...1106-UNOFFICIAL-mG-oms-peregrine.zip/download

ASB Security string 2020-11-05

Fix of AOSP E-Mail widget

Fix for CVE-2020-15999

Bromite Webview on 86.0.4240.181

Updated microG with fixes in GCM and EN API

Replaced weak F-Droid signatures with ROM's V2 signatures (see note below)

Please note:

The F-Droid and F-Droid privileged extension have been re-signed with this ROM's signing key. F-Droid keeps compatibility also to older Android versions, which however results in the necessity to use weak V1 signatures. In addition, they don't use V2/V3 signatures. To overcome this issue, the F-Droid apps have been built from source and V2-signed with the ROM's signing key.

You therefore need to de-install any updates, if you have made any - do do so, simply deactivate F-Droid and F-Droid privileged extension and activate them again. In case there were any updates, they will be de-installed and you will have as a result the delivered re-signed apps in their newest version.

Happy flashing!

Regards, M.
[Moto G 4G Android Development] Tihass:
Hallo MSe1969,

erst einmal danke für das tolle Rom. Ich bekomme kein Adaway.APK installiert, egal welche Version und von welchem Server ich die APK runterlade bekomme ich immer eine Fehlermeldung, beim Parsen des Paketes ist ein Problem aufgetreten. Ich habe noch ein Moto G Falcon und habe dort dein Falcon Rom laufen, da funktioniert die Installation einwandfrei ! Könntest du weiterhelfen, woran das liegen könnte ?

Die Installation habe strickt nach deiner Anleitung durchgeführt.

Das ROM ist mit der Lineage Addonsu gerootet, Aps und ADB haben Root zugriff.

Die Installation von unbekannten Quellen, ist eingeschaltet.

Schönen gruß aus Hamburg

Matthias
[Moto G 4G Android Development] MSe1969:
Hi Matthias,

the forum rules dictate to use English as communication language here, so I am answering in English.

A couple of questions to your issue:

- Which build variant do you use? Standard or microG?

- Does the package parsing error ONLY occur for the AdAway apk or also for other apk files?

- Is it the same apk file, which properly installs on your falcon, but not on your peregrine?

Regards, M.
[Moto G 4G Android Development] Tihass:
Hi MSe1969,

I use the Default A Build, lineage-14.1-20201107-UNOFFICIAL-oms-peregrine

I just can't install the adaway apk, no matter which variant I take, the current 5.1.0 or older. no matter if I download them from Github, F-Droid or sourceforge, no variant can be installed. I can install other App apk files !

I also tried the same apk file that I installed on my Falcon, it doesn't work

I hope you can help and thanks for your Support.

Best Regards

Matthias
[Moto G 4G Android Development] MSe1969:
Thanks, next questions: - Do you have Gapps installed? If yes, which flavor? Do you have the same Gapps setup on your falcon?

And do you have any "security / antivirus" app installed? If yes, uninstall! This is "snake oil" on Android (at best: completely useless; otherwise: causing such issues, whilst spying you out and/or being itself a vulnerability)
[Moto G 4G Android Development] Tihass:
Yes Opengapps ARM 7.1 Pico the same on the Falcon Device.

I have no Antivirus installed.

Best Regards

Matthias

---------- Post added at 02:33 PM ---------- Previous post was at 02:30 PM ----------

As additional information. I tried to install the APK from the internal memory and from the SD card, both fail.
[Moto G 4G Android Development] MSe1969:
Hmm..., ok - first things first.

The AdAway version 5.1.0 declares the minimum SDK to be 26, which is Android 8.0 aka "Oreo":

This ROM is Android 7.1 ("Nougat"), aka SDK 25. Hence, there is no chance to get this version installed on

any

Android 7.1 ROM - you need to install an older version still supporting SDK 25 (e.g. version 4.3.6)

Then - to your specific device issue - please try the following (using version 4.3.6):

1. Reboot to TWRP recovery and wipe cache and dalvik and reboot the system again

2. If that does not help, enable developer settings, connect your phone to the PC, have the downloaded 4.3.6 apk file on your PC and try to install the app via adb:

adb install AdAway-4.3.6-200726.apk

Please let me know the error message, if any.

Regards, M.
[Moto G 4G Android Development] Irish_Dude:
ROM still running flawlessly

Patiently awaiting a new build with December patch :)
[Moto G 4G Android Development] MSe1969:
New builds available with December 2020 ASB

Hi all, new builds are available for download and also offered as OTA updates:

A. Default LineageOS 14.1 with substratum and microG patch

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20201218-UNOFFICIAL-oms-peregrine.zip/download

ASB Security string 2020-12-05

System Webview on 86.0.4240.198

B. Hardened build with pre-installed microG and F-Droid, patched for substratum

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20201217-UNOFFICIAL-mG-oms-peregrine.zip/download

ASB Security string 2020-12-05

Bromite Webview on 87.0.4280.68

Updated microG from upstream to 0.2.14.204215-15 (picked until 720b089)

F-Droid updated to 1.10-alpha1-114

Happy flashing!

Regards, M.
[Moto G 4G Android Development] MSe1969:
New builds with January 2021 ASB available

Hi all, new builds with January 2021 ASB are available for download and offered via Updater app as OTA.

A. Default LineageOS 14.1 with substratum and microG patch

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210117-UNOFFICIAL-oms-peregrine.zip/download

ASB Security string 2021-01-05

System Webview on 87.0.4280.101 & fix of persistent histograms eating disk space

B. Hardened build with pre-installed microG and F-Droid, patched for substratum

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210116-UNOFFICIAL-mG-oms-peregrine.zip/download

ASB Security string 2021-01-05

Bromite Webview on 87.0.4280.131

Updated microG from upstream to 0.2.16.204713-10 (picked until 2f29b93)

F-Droid updated to 1.10-alpha1-212

Happy flashing!

Regards, M.
[Moto G 4G Android Development] ChrisRM:
This one updated OTA as one would wish. The Aurora store seems troubled, however. There's a bundle of apps to be updated, all can be selected and told to update, but then each app sits there with a scrolling progress bar going nowhere and saying 'Waiting'. If in doubt, restart but this made no difference. I've not seen this on the Falcon but that may simply be because it was up to date anyway...
[Moto G 4G Android Development] MSe1969:
Works fine on my device - the Aurora version hasn't been updated for a while by the dev., so it is still 3.2.9 (i.e. no changes to the Aurora app since long time). I know from my own experience with other devices: Sometimes Aurora deserves a "force-close" and sometimes even a deletion of downloaded stuff (menu entry downloads), if it starts misbehaving...
[Moto G 4G Android Development] MSe1969:
New builds available with February 2021 ASB patches

Hi all, new month, new builds :)

A. Default LineageOS 14.1 with substratum and microG patch

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210207-UNOFFICIAL-oms-peregrine.zip/download

Security string 2021-02-05

Kernel patches

B. Hardened build with pre-installed microG and F-Droid, patched for substratum

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210206-UNOFFICIAL-mG-oms-peregrine.zip/download

Security string 2021-02-05

Kernel patches

Bromite System Webview updated to 88.0.4324.141

F-Droid 1.10-alpha-234

microG 0.2.17.204714-5

OTA updates will soon be offered via Updater app.

Regards, M.
[Moto G 4G Android Development] MSe1969:
New builds available with March 2021 ASB patches

Hi all, new builds are available:

A. Default LineageOS 14.1 with substratum and microG patch

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210308-UNOFFICIAL-oms-peregrine.zip/download

Security string 2021-03-05

B. Hardened build with pre-installed microG and F-Droid, patched for substratum

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210307-UNOFFICIAL-mG-oms-peregrine.zip/download

Security string 2021-03-05

Bromite System Webview updated to 88.0.4324.207

F-Droid 1.11

microG 0.2.18.204714

OTA updates will soon be offered via Updater app.

Regards, M.

EDIT: OTA updates now offered
[Moto G 4G Android Development] djibe89:
Hi, if you are wondering, F2FS doesn't work.
[Moto G 4G Android Development] MSe1969:
New builds available with April 2021 ASB patches

Hi all, new builds are available and already offered via Updater app:

A. Default LineageOS 14.1 with substratum and microG patch

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210410-UNOFFICIAL-oms-peregrine.zip/download

Security string 2021-04-05

System Webview updated to 89.0.4389.105

B. Hardened build with pre-installed microG and F-Droid, patched for substratum

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210410-UNOFFICIAL-mG-oms-peregrine.zip/download

Security string 2021-04-05

Bromite System Webview updated to 90.0.4430.59

F-Droid updated to 1.12

AuroraStore updated to 4.0.4 with AuroraService 1.1.0

Regards, M.
[Moto G 4G Android Development] MSe1969:
New builds available with May 2021 ASB patches

Hi all, new builds are available and already offered via Updater app:

A. Default LineageOS 14.1 with substratum and microG patch

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210509-UNOFFICIAL-oms-peregrine.zip/download

Security string 2021-05-05

System Webview updated to 90.0.4430.82

B. Hardened build with pre-installed microG and F-Droid, patched for substratum

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210509-UNOFFICIAL-mG-oms-peregrine.zip/download

Security string 2021-05-05

Bromite System Webview updated to 90.0.4430.204

microG upstreamed (no version upgrade)

AuroraServices upgraded to 1.1.1

Regards, M.
[Moto G 4G Android Development] NiruPela:
Hi, first of all, thank you very much for providing this ROM.

In case I have to remove this comment from this section, thank you for letting me know and I will transfer it to the section that you indicate to me. :)

Take both, I started with option A opting for GApps, and my cell phone did not go past the boot to continue the configuration. Then I took option B of microG and without problems it started working :). (Opt to turn off the phone after installation, until you know how to proceed).

I wanted to ask for help, I bought my XT1040 cell phone with stock rom without BL unlocked, the owner told me that the cell phone was rebooting, I assumed it was something from the ROM, then it did not go past the bootloop, I chose to put a custom ROM on it, I took LinageOs 14.1 the 2017 version from a page, everything worked fine, the only rare thing that only SIM connectivity worked very few times. After about 7 days without problems, using Spotify, Whatsapp, Shazam, Meet, and a Timer. The cell phone began to restart again, until the moment came that it was branded for all and my odyssey began again. I managed to find that ROM with microG and now it's working, but I'm scared!

Is there any way using an APK or fastboot / ADB command to verify the integrity of the folders or something that gives me an indication of why this is happening? Before removing the stock ROM, I used Moto Help and I checked all my sensors and "peripheral" hardware and none of them failed, but if the proximity one gave it an Ok state, but it was lagging. I would like to ask for help from you who really know about computer science and electronics that you suggest me to do. I really have a couple of hypotheses, maybe the ROM memory is already dead, or there is a certain section that cannot be read and the system breaks. (I assume this because when spotify downloaded songs it downloaded them again as if they were not there)
[Moto G 4G Android Development] MSe1969:
Hi,

to your question: I am not aware about any "hardware test" method or app. Would be interesting also for me to learn about that.

Regarding your suspicion, I agree and also think, that an area of your flash memory within the /data partition is corrupted, which would explain, why things first work, but when more and more data is stored, things start to go rogue.

The peregrine's flash memory isn't large, so you may hit that point soon. You can try mitigating this by aiming at only using the external SD card (there should even be an option in the Dev. Options, if I remember right), but I am afraid, that you'll have to look for another cheap used device... (there are companies offering such, even with some limited Warranty)
[Moto G 4G Android Development] NiruPela:
Thanks for answering.

If I am going to use the option that you refer to the SD card, I will have to buy a 16Gb one.

On the other hand, in my region, these phones are not very economical, compared to resale prices, it may be advisable to take one of a higher category. Ex: moto g4 price 9 thousand and moto g1 price 6 thousand.

Going back to flash memory, maybe I can do a size reassignment of the / data or / cache partition. I will continue investigating, it is interesting hehe.

PD: (Read edit)

I am amazed by what I just read. The internal memory of the moto g1 is literally a soldered microSD. That means if my problem is there I could try to replace it. Of course, it will not be a simple job.

Source: https://www.xataka.com.mx/celulares...rna-del-motorola-moto-g-es-una-simple-microsd

Edit PD:

That article published by Xakata is a lie, I am surprised that the Xakata page shares this misleading information, with that image man hallucinates an SD, which really is a magnet for the cases that Motorola launched can stick when it is open.

The memory of the Peregrine (Moto g1 xt1040) is this: http://www.datasheet.es/PDF/911296/KLM8G1GEAC-B001-pdf.html

Thanks. :)
[Moto G 4G Android Development] MSe1969:
Cool - really amazing and interesting.

(I also like the disclaimer at the end...)
[Moto G 4G Android Development] MSe1969:
New builds available with June 2021 ASB patches

Hi all, new builds are available and already offered via Updater app:

A. Default LineageOS 14.1 with substratum and microG patch

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210616-UNOFFICIAL-oms-peregrine.zip/download

Security string 2021-06-05

System Webview updated to 91.0.4472.101

B. Hardened build with pre-installed microG and F-Droid, patched for substratum

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210615-UNOFFICIAL-mG-oms-peregrine.zip/download

Security string 2021-06-05

Bromite System Webview updated to 91.0.4472.102

microG upstreamed to 0.2.19211515-9

Regards, M.
[Moto G 4G Android Development] MSe1969:
New builds available with July 2021 ASB patches

Hi all, new builds are available and already offered via Updater app:

A. Default LineageOS 14.1 with substratum and microG patch

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210714-UNOFFICIAL-oms-peregrine.zip/download

Security string 2021-07-05

Kernel: Many sec. patches applied (taken from Divest-OS)

B. Hardened build with pre-installed microG and F-Droid, patched for substratum

https://sourceforge.net/projects/lin14-mgoms/files/peregrine/lineage-14.1-20210714-UNOFFICIAL-mG-oms-peregrine.zip/download

Security string 2021-07-05

Kernel: Many sec. patches applied (taken from Divest-OS)

Bromite System Webview updated to 91.0.4472.146

microG upstreamed to 0.2.21.212158-2

AuroraStore 4.0.7

Regards, M.