yashsingh1/xdaforums huggingface dataset:
[Moto G Android Development] Skyfly19:
I had try to install viperFX on the B variant without succes.

The official version 2.5.0.5_Nougat_IO_test_fix can't install the driver with the audio_effects.conf file (located in /systems/vendor/etc).

If I delecte this file, the apk let me install the driver but after a reboot, the app show the driver statut: abnormal and none option affect the audio quality.

With the Unofficial 2.7.2.1 By Team DeWitt, I got exatly the same issue.

Did you think to the problem may come from one of the additional security hardening features of this variant ?

(I don't want to do a full wipe for try it on the A variant, I only got 1 phone :()
[Moto G Android Development] MSe1969:
If you give me the EXACT data, where to download the apk file, or the exact app name to search for in Aurora, I could try on my test device with A variant next week.
[Moto G Android Development] Skyfly19:
You can download the 2.5.0.5_Nougat_IO_test_fix here:

(source: official viper4android xda thread)

ViPER4Android_FX_v2505

MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.

www.mediafire.com

And the Unofficial 2.7.2.1 from apk mirror:

https://www.apkmirror.com/apk/team-dewitt/viper4android-fx/viper4android-fx-2-7-2-1-release/
[Moto G Android Development] Tiki Thorsen:
I am using TWRP 3.2.1.-0, since the I first installed this ROM.

I can not remember if I encrypted the phone before though.
[Moto G 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/falcon/lineage-14.1-20210116-UNOFFICIAL-oms-falcon.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/falcon/lineage-14.1-20210116-UNOFFICIAL-mG-oms-falcon.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 Android Development] rintinfinn:
Hi, I just wanted to say thanks for the everlasting falcon support! This is truly the best unofficial rom I ever used, with privacy and security in mind. Two thumps up!

I just have a had a strange problem recently: the device can no longer connnect to my desktop via adb. (I tested both Windows and LInux). The desktop also does not recognize the phone for usb-file-transfer anymore. Only usb charging works. Maybe somebody has an idea how to solve this?
[Moto G Android Development] ChrisRM:
Another excellent update, although it wasn't OTA-advertised when I updated. Interestingly, the exposure API got Micro-G complaining that Bluetooth was turned off; upon starting Bluetooth, the NHS Covid-19 app started right up without any sign of concern. I suspect much work done in Micro-G....
[Moto G Android Development] MSe1969:
Thanks for the positive feedback - yes, microG is currently being very actively developed, which is good.
[Moto G Android Development] Tiki Thorsen:
I tried to encrypt with TWRP 3.2.1-0, 3.3.1-0, 3.4.0-0 and 3.4.0-0 and it all results in the same, it does not encrypt and boots straight into the OS normally.

I tested this using the latest update via OTA.
[Moto G Android Development] MSe1969:
Thanks for your positive feedback!

Regarding ADB, I have no good idea - it works w/o any issues on my falcon test devices.

On a Windows PC, you usually need device-specific hardware drivers to get "exotic" USB protocols like ADB or fastboot working, whilst this works out of the box on native Linux systems. So when you say "Linux" above, you mean a "native" Linux installation (i.e. your PC directly boots Linux or at max. you have a real VM booting Linux), or do you refer to the installable "Linux sub system" under Windows 10? In that case, I would tend to the conclusion, that you may have to re-install the Motorola USB drivers. (Please note, that I do not use Win 10 privately, so I have no experience with it in regards to Android development). If you have that issue under a

native

Linux installation (i.e. not the "Linux subsystem" under Win10), what is the output of the command lsusb (when your phone is connected)?
[Moto G Android Development] MSe1969:
Thanks for the information - in the past (scroll through this thread), when this issue had been raised, I was always able to make a successful test with my own device. This test requires some preparation, as I would first have to format the /data partition etc.

Also in the past, the recommendation to use TWRP 3.2.1-0 turned out to be the solution.

I'll perform another test in the course of next week to verify again on my side.

Which exact falcon model ("XT" number) do you have? And which build variant (A or B) do you use?
[Moto G Android Development] Tiki Thorsen:
XT1032, Variant B.
[Moto G Android Development] rintinfinn:
Lsusb gives no output regarding to the motog. This is on Xubuntu 20.04. I have no clue whats going on. It was working perfectly fine for years. Now the usb drive is just not recognized any more. Maybe the hardware is failing? I tried different cables as well, charging works, but there is not data connection. I also heard this might be a rare android software bug, were no solution exists.
[Moto G Android Development] ChrisRM:
This is just the view of a particularly cynical DP practitioner but I'd still buy new cables. If it can charge but otherwise not behave, then it's the sort of random behaviour I see with RPi's when the SD card starts to go bad. The number of times I've racked my brains to see why the wretched thing is doing <x> when it should be nowhere near <x>, only for the whole thing to disappear when fed the same programs but on a new SD card.... Just a suggestion.
[Moto G Android Development] MSe1969:
Hi,

I have done another test for encryption on my XT1032, variant B - latest ROM release (Jan. 2021):

- Made a TWRP backup

- Copied Internal memory (incl. TWRP backup) to my hard drive

- Formatted /data partition & rebooted into initial "naked" system

- Copied back the Internal storage stuff from my hard drive

- Rebooted back to recovery and restored TWRP backup and reboot to system

- During reboot, system was automatically re-encrypted (with percentage indicator slowly counting up)

-

All went fine!

My statement remains: Encryption works and I am not able to reproduce any issue with encryption.

(I use the official TWRP 3.2.1-0 for the falcon device.)

Regards, M.
[Moto G Android Development] MSe1969:
In regards to the "rare android software bug", that can be easily tested by connecting your device to a different computer.

Besides - I have no good explanation - "cable or hardware", as mentioned already.

On a native Linux installation, this stuff simply works out of the box - if you have Windows, device-specific drivers are key in addition.

And since you indicate, that you can boot your PC to Windows and Linux and it won't work in either case, the possibility of having screwed your config can be excluded, as it would be a strange coincidence, that this happens simultaneously on two different OS's.
[Moto G Android Development] peelie:
Hi all

Is anyone getting random reboot/start problems on their hardened versions?

i.e. where the phone hangs on the motorola logo?

I think there may be an issue with lineageos 14.1? as I am getting problems on 14.1 with another motorola device as well.

thanks for any input!

edit / this is for the dec 2020 rom
[Moto G Android Development] Tiki Thorsen:
Thank you for the testing, I will try again sometime with your method.

(Excuse my ignorance) But confuses me is, why the normal/standard method of encryption does not work.
[Moto G Android Development] MSe1969:
I doubt you could test with "my method" - in fact, what happens during encryption is, that the encryption flag is set and the phone is restarted. During boot, the phone realizes, that the encrypt flag is set, but the device isn't encrypted, so it starts the encryption process (to describe is very simple).

What happened during my test is exactly that situation (restore of a backup with encryption flag set to a non-encrypted /data partition), that is why this sequence looks a little weird.

Nevertheless - the crucial part is that the encryption process has worked normally.

Your issue description states, that the phone reboots, but encryption isn't performed.

I am not an expert on this - but just to make sure: How much space is left on your device? I assume, that a significant amount of free space is needed to encrypt (maybe an error is shot, which you can't see during boot?).

In case your Internal memory is "almost full", could you try to copy a lot of stuff from your Internal memory to your PC's hard drive and purge it to e.g. aim at having at least ~3GB free space on your device and try again?
[Moto G Android Development] MSe1969:
Haven't experienced any issues on my devices - but have to admit, that the falcon/peregrine are not my daily drivers, so I usually don't create a lot of load on them - weird things usually happen, if you put heavy load on your device...
[Moto G Android Development] Tiki Thorsen:
I have not on my falconFalcon and Osprey from MSe1969.

Ah I understand.

I double checked the free space and I do have it available.

I only installed a few necessary apps for me and Magisk is not installed, still does not encrypt.

I just tried to encrypt your ROM for osprey (the new 10 version) and it exactly the same issue, that it reboots directly into the OS normally and it does not encrypt.

I guess I am doing something wrong.
[Moto G Android Development] Skyfly19:
Update for viperFX:

I had tryed an another install method after switched my SElinux to permisive by usind the SElinux switch apk.

This method:

https://xdaforums.com/t/guide-root-install-viper4android-on-nougat.3465597/

SElinux switch apk:

[APP][TOOL][2.0+][OFFICIAL]The SELinux Switch

The SELinux Switch . What's The SELinux Switch & What Makes It Different from The SELinux Toggler? I'll outline this in brief since it would take too much time and space in explaining everything in detail. Primarily, The SELinux Switch was...

xdaforums.com

And this time the driver look like to be well installed but none of the option change the audio quality :(

The driver statut is random, sometime it indicate to it's enabled and sometime no.

Edit: If I change the SElinux statut to enforcing, the driver status pass to Abnormal.

I think to the only working method is to use the magisk module :unsure:
[Moto G Android Development] MSe1969:
Weird... - as indicated, works fine on both devices for me. Can you try to produce a log?

I assume you didn't re-size any partition or re-format into a different disk format (e.g. ext4 vs. f2fs)?
[Moto G Android Development] Tiki Thorsen:
I never re-sized nor changed the format, just wiped them.

Sadly I don't know how to produce a log.
[Moto G Android Development] Tiki Thorsen:
Is there a way to restore the partitions to default with TWRP?
[Moto G Android Development] ceroberoz:
Hi, just logged in to watch and comment in your thread and say thank you to maintain this security minded rom for Moto G.

Previously I am using Lineage OS patched with Micro G.

But since there is no support from Lineage I am at loss since there is no new update and feel blessed when I found this thread.

Once again, thanks for maintaining this rom.
[Moto G Android Development] MSe1969:
Not an "easy one" by means of having kind of a button "Restore to defaults". However, I can - next week - look up a couple of things and tell you a set of commands, you can use to find out your actual partition size (and verify, whether it may have been resized).

EDIT: The idea would follow this thread here (it is for a different device, so

DON'T

take it by the word, what you read there): https://gitlab.com/LineageOS/issues/android/-/issues/1027
[Moto G Android Development] Tiki Thorsen:
Oh so it was not me being a dotard haha

Thanks for the link, I will try as soon as I can.
[Moto G Android Development] ChrisRM:
@MSe1969 , anything about CVE-2021-3156 that we should worry about (the sudo exploit)?
[Moto G Android Development] MSe1969:
No. LineageOS does not contain 'sudo'. If you have e.g. flashed the root addon, you have an 'su' binary, which is a different thing.
[Moto G 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/falcon/lineage-14.1-20210207-UNOFFICIAL-oms-falcon.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/falcon/lineage-14.1-20210206-UNOFFICIAL-mG-oms-falcon.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 Android Development] ChrisRM:
This is good, both the Falcon and the Peregrine updated OTA, and both responded well. The Falcon however, that seems to have lost the wifi fix. I started having wifi loss after the January update and put it down to '**** happens' but it's still an issue with the February ROM. Any chance you could check back on this?
[Moto G Android Development] fsamHawk002:
Hi i upgraded my moto G XT1032 few months back..its working but very very slow..i m not sure what kind of term i should used to explain its version but its look like this ... CyanogenMod Version 14.1-20161029-unofficial- falcon..

i tried to update it from settings>about>update but it is showing internet connection error though my internet is working fine...

Can anyone please help me update it or suggest any method to downgrade it to the stock rom, 4.4.4 or whatever bring it back to work well..

Thanks in advance
[Moto G Android Development] phpbb3:
You're running a 5 year old build m8.

Either use TWRP and clean install this LOS builds from this thread, or stock falcon files can be found here:

https://xdaforums.com/t/index-moto-g-falcon-peregrine-factory-firmware-images.3110795/
[Moto G Android Development] MSe1969:
Well, I still don't have a clue, what exactly causes this.

However - while patching the kernel this time, I had to skip a commit, which was based on further, yet missing (difficult to find) commits.

On a different device (amami), also having a 3.4 kernel, everything applied w/o issues, so I will find and apply those commits also to the falcon/peregrine kernel. I have the feeling, that those commits *could* have a positive impact here . . . - let's see.

EDIT: Currently working on integrating the most recent "Prima" WiFi driver from CAF, which is suitable for the MSM8226 SoC - requires to apply misc. missing commits to make it compile. If this succeeds, I expect to either have a complete non-booting desaster or all WiFI issues solved... - let's see :p
[Moto G Android Development] Apollon.Theos:
XT1033 (2013)

All latest versions "lineage-14.1" cannot turn on Wi-Fi. Any ROM with Android 10 don't have this problem.

With Android10-ROM not enough RAM to install OpenGapps (pico) :(
[Moto G Android Development] Apollon.Theos:
I test some ROM from 202011* to 202102*
[Moto G Android Development] Apollon.Theos:
Very strange :

on page 32 I'm logged and can post reply

on page 33 I'm guest and cannot post reply
[Moto G Android Development] MSe1969:
Please scroll back in this thread - seems Android 10 messes with a specific file required for WiFi, people trying 10 all have that issue. Solution linked in respective post.

Edit: You will also find in this thread some statements on higher Android versions and why in my opinion it won't make a lot of sense for the falcon to go beyond Android 7.1 (aka LineageOS 14.1)
[Moto G Android Development] Apollon.Theos:
Question:

how flash logo from original ROM with LineageOS-14.1 ?

Author is good boy, but after green ball on start screen animate lines not beautifully .
[Moto G Android Development] Apollon.Theos:
I try copy file to /root/persist, to /persist - Wi-Fi not work

I return to twrp-3.2.1.0 and flash again = not work Wi-Fi

I try return to TWRP 3.4 or 3.5 ? flash 5.0.2 stock ROM, maybe this help

for Wi-Fi advanced show MAC as 02:00:00:00:00:00
[Moto G Android Development] Apollon.Theos:
At this time no differents between version Android, only visual improvements.
[Moto G Android Development] MSe1969:
There is a forum section called "Moto G themes & apps" under Moto G, which has threads for logos and for boot animations, I suggest you look there.
[Moto G Android Development] MSe1969:
I think TWRP does not mount /persist, so you would have to connect via adb in root mode, when your LineageOS is up & running and then copy the file.
[Moto G Android Development] XDAnewone:
Probably you are right. (y) I am currently on A10, Superior OS.

Issues: WiFi does not connect & No space for Gapps.

I wish to come to 'LineageOS 14.1' like you have suggested.

Here, I have a question: Should I just flash LOS? I mean, some new devices on A11 have this 'anti roll back' policy.

Is it safe for me to flash LOS 14.1 over A10 Superior OS on falcon?

Any help & response appreciated. Thanks...
[Moto G Android Development] MSe1969:
As you would have to anyhow perform a clean flash (i.e. wipe /data and wipe /system), I wouldn't see any reason against trying. And if WiFi makes trouble, scroll back to apply the linked solution.
[Moto G Android Development] XDAnewone:
Thank you. I will try.

My question was more like 'Is there a bricking possibility IF I downgrade from A10 to A07'.

From your reply, looks like there isn't.
[Moto G Android Development] MSe1969:
I don't think so, but it's important to really do a clean flash (wipe data, system, cache, dalvik). Also, in case you had to repartition anything for 10, this must be reverted. If you even encrypted in 10, I would go for formatting /data.
[Moto G Android Development] XDAnewone:
Done, thanks. From A10 to your A7.1.2.

Everything went smooth. First downgraded from twrp 3.4.0.0 to your 3.2.1

First clean flash (data, system, cache, dalvik). Then flash ROM (B variant). Clear cache & dalvik. Reboot to system, Took (hardly) few minutes to boot to system.

My old issues;

- Wi-fi connects. No problem

- Many GB free in device, so all good.

- And no need of Gapps, right?

Let me see if I face wifi auto-dis-connect issue mentioned in OP in future.

Also, lets see battery life...

Thanks. (y)
[Moto G Android Development] MSe1969:
If you use build variant A, you

can

, but you don't have to, install Gapps. Your choice based on your personal preference.

If you use build variant B (hardened microG build),

do

not

install Gapps (this will screw everything up) !

Regards, M.
[Moto G Android Development] XDAnewone:
Thank you.
[Moto G Android Development] qualmelon:
This worked really well! Thank you for maintaining the package.

After wiping the device I couldn't drag the .zip to my sd card but I was able to push it from the linux terminal with:

adb push lineage2021unofficial.zip /sdcard while booted into the TWRP recovery partition.

where lineage2021unofficial.zip is the unofficial rom which I renamed for convenience. Sharing this here in case others encounter the same issue. Thank you once again for all your hard work.
[Moto G Android Development] Apollon.Theos:
TWRP not mount, you is right. I use ADB ROOT before dance with file. ADB SHELL LS / not show any "persist" folder with Lineage 14.1. What I do wrong?
[Moto G Android Development] MSe1969:
Just to be sure: You have enabled root, so 'adb root' really has succeeded?

So if you e.g. simply execute 'adb shell' you see the # prompt and not the $ prompt?
[Moto G Android Development] Apollon.Theos:
Now cannot verify. I try to return to 5.1 and wait first boot :) Long time wait, maybe brick :)
[Moto G Android Development] Apollon.Theos:
My way to heal "not working Wi-Fi"

1. try to return to stock firmware (I use Android 5.1) , maybe enough only "fastboot flash partition gpt.bin"

2. reboot (maybe not successful)

3. reboot to fastboot (maybe not with first attempt)

4. connect to computer and verify with "fastboot devices"

5. fastboot boot twrp-3.5.0_9-0-falcon.img ( you can use that like)

6. wipe cache, dalvik, system, data ("flash partition" destroy all it early)

7. copy to phone your like version lineage-14.1 ROM ( + logo, at pleasure)

8. flash all your .zip

9. reboot

Wi-Fi now WORK!

all links for ROM, instructions - see messages MSe1969
[Moto G Android Development] Apollon.Theos:
Now I try to use ROM with Aurora services. I'm planing use my Moto G as "work phone" with Microsoft Teams and Microsoft Authenificator. May be "Aurora" have not fresh version of program.

My Xiaomi Redmi 3S live only half day, try Moto G :)
[Moto G Android Development] Apollon.Theos:
@MSe1969 can you add to your ROM "select regional number format" independent from primary language ?

English best for small screen, but Celsius degrees is more familiar. :)
[Moto G Android Development] Tiki Thorsen:
The issue I had with the encryption was caused when installed the Android 10 ROMs.

After a format, wipe, resize/repair and a reinstall encryption works correctly again.
[Moto G Android Development] MSe1969:
Aurora is not an own app store, it accesses Google play store directly. So it offers you the proper apps.

However, there could be two issues:

a. Many apps are offered based on the device, and some app developers put restrictions into the play store meta data, based on device, Android version etc. - if you don't find your app or a too old version would be offered, try spoofing your device.

b. In case you use microG: It is a lean and great spy-free alternative to the genuine Google play services, but it does not cover 100% of its functionality. Some apps (e.g. many games, apps developed by Google itself, ...) very deeply integrate with the play services, and those apps could then have difficulties.
[Moto G Android Development] MSe1969:
Number format is different from temperature unit of measure. I am not sure, what you are referring to.
[Moto G Android Development] Apollon.Theos:
Regional setting include number format and units of measure. If I set primary language English and set regional settings for Russia (for me) - I receive needed result, short messages with km, mm Hg, m/s in programs.
[Moto G Android Development] Apollon.Theos:
Today, all day, cannot update "microG Service Core", update exist but not start update after I touch "update all"

Used ROM (LineageOS version):

14.1-20210206-UNOFFICIAL-mG-oms-falcon
[Moto G Android Development] Apollon.Theos:
I understand this, and have no complaints to you, as an author of this ROM

don't worry, be happy (c) :)
[Moto G Android Development] MSe1969:
microG is compiled from source with own signature, that is why you can't update it.

I usually compile a new version, with all commits available at Github
[Moto G Android Development] MSe1969:
Haven't seen your post as "criticism", just wanted to provide an explanation, also for others reading the forum. So all good :)
[Moto G Android Development] Facciolognorri:
HI, i've installed this rom (variant A with pico gapps) and it's working very well. Thanks for your job and your work for the security patches that keeps this build alive.

One thing: could it be useful to install apps like "hibernation manager" (without root access) to save some battery?