[Moto G 2015 Android Development] MSe1969:
This thread is discontinued - Please visit my LineageOS 16.0 Osprey thread

Hi,

this is my unofficial LineageOS 14.1 microG-enabled build series for the Moto G 2015 (osprey) device with current security patches.

The builds here have already a history in Osprey LineageOS 13 with microG patch thread for the 'cm-13.0' branch - it may be worth to scroll through it to find additional information.

The builds have got the following features:

LineageOS 14.1 with current security patches (from official LineageOS repositories)

Security string 2020-05-05, AOSP tag 7.2.1_r36

Squid kernel for the Osprey device (currently own fork with most recent patches)

Adapted LineageOS Jelly Browser (additionally having Startpage and Qwant as search engines)

OTA Support

Root is not included and would need to be flashed separately

VoLTE support is same as in official LineageOS (supposed to work, can't test myself)

System certificates taken from AOSP Oreo branch

Device encryption fully functional

There are three build variants available:

A. Default LineageOS 14.1 with substratum and microG patch

For those who simply want to use LineageOS 14.1 with substratum theme engine

Download here

Patched for the use of microG - you can either flash Gapps or manually install microG as apps (or use neither of those)

Patched for the use of the substratum theme engine (the substratum app and the themes need to be downloaded separately)

System Webview M81

B. Hardened build with pre-installed microG and F-Droid

For the security/privacy focused

Download here

Pre-installed microG same as the LineageOS for microG project

Pre-installed AuroraStore / AuroraServices

Additional security hardening features listed below

SQLite 'secure delete' feature enabled

Access to /proc/net blocked for user apps

Bundled netmonitor app to allow network monitoring

Enhanced Privacy Guard: Switches for motion sensors and other sensors available

Oreo backport: SET_TIME_ZONE permission restricted to system apps

Oreo backport: Access to timers in /proc restricted

Cloudflare as default DNS (instead of Google)

Privacy-preferred default settings

No submission of IMSI/phone number to Google when GPS is in use

Bromite System Webview M81

C. Above hardened microG build with substratum patch

Download here

Same features as above (B), but . . .

Patched for the use of the substratum theme engine (substratum app and themes need to be downloaded separately)

Source Code links

LineageOS: https://github.com/LineageOS

Kernel: https://github.com/lin14-mGoms/android_kernel_motorola_msm8916/tree/mse_v2

microG patch: https://github.com/microg/android_p...aster/patches/android_frameworks_base-N.patch

microG-Build: https://github.com/lineageos4microg

Patches for Substratum: https://github.com/LineageOMS

local manifest: https://github.com/lin14-mGoms/local_manifests

hardening features: see reserved post further below

Installation instructions

YOU ARE RESPONSIBLE SOLELY YOURSELF FOR ANY ACTIONS YOU DO WITH YOUR DEVICE !!!

Please note - I won't explain any single aspect (e.g. how to install 'fastboot' on your PC or troubleshoot USB connectivity issues under Windows). Search the net and consult the search engine of your choice or look here in XDA, there is plenty information available.

Pre-Requisites

Get familiar with the hardware keys of the Motorola Moto G 2015 (osprey) device, especially how to enter fastboot mode (switch phone off hold power + volume down together for about 3 seconds) and recovery mode (in fastboot mode, switch with volume key to the reboot recovery option and select with power key)

Activate the Developer options (Settings, about phone: tap 7 times on the build number), get into the new menu Developer options and activate, if available, the option "OEM unlocking")

Have fastboot and adb installed on your PC and make sure, you can connect via USB to your device in fastboot mode and via adb (you need to activate the option "USB debugging" in the Developer options)

Download the most current .ZIP file of this ROM and place it to your phone's internal memory or SD card

This build variants B and C come with microG pre-installed, so not applicable for Gapps (you can flash Gapps only on build variant A)

An unlocked bootloader (read the warnings carefully and backup your data!

Install TWRP recovery

If you come from stock ROM and have just unlocked your boot loader, this is the next thing to do. If you have already a working custom recovery on your device, there is no necessity to replace it.

However - I recommend to use the official TWRP recovery from the TWRP site. The following instructions are based on TWRP.

To install TWRP, download the TWRP.img file (Note: replace "TWRP.img" in the following instructions with the real file name) from this section to your PC, get it into 'fastboot mode', connect the device via USB to your PC and enter the following command on your PC:

fastboot flash recovery TWRP.img

Afterwards, directly boot into 'recovery mode' (see above) - I recommend not to boot the phone's Android system after having flashed TWRP. Once TWRP has been launched, you may decide to reboot your phone and install the ROM at any time later. But the first boot after flashing TWRP should be TWRP in recovery mode.

Advanced Wipe

ONLY perform the steps described here, if you come from Stock ROM or a different Custom ROM!

Boot into recovery mode. In TWRP, choose "Wipe", "Advanced" and specify "Dalvik", "System", "Cache" and "Data" to be wiped.

Make sure NOT to wipe "Internal memory" or "SD Card". Swipe to confirm the deletion and get back into the main menu.

Install the ROM

In the TWRP main menu, choose "Install". A file manager appears to let you navigate to your internal memory (path /sdcard) or your SD card (path /external_sd).

Choose the .ZIP file of this ROM and swipe to flash. If you update from a previous version of this ROM, you don't need to perform a wipe.

If you come from a different ROM (or stock firmware), make sure that you have performed the Wipe steps above.

When finished flashing, return to the main menu, choose "Reboot" and then "System", which will cause your phone to boot into Lineage OS 14.1 - be patient, the first boot after flashing a new ROM takes quite long!

Credits

Android Open Source project (AOSP)

LineageOS project

squid2 (Kernel)

microG project

CopperheadOS project

Substratum team

XDA:DevDB Information

[EOL][ROM][Osprey][LineageOS 14.1][Substratum][microG] (hardened), ROM for the Moto G 2015

Contributors

MSe1969

Source Code: https://github.com/lin14-mGoms

ROM OS Version: 7.x Nougat

ROM Kernel: Linux 3.10.x

Based On: LineageOS

Version Information

Status: Stable

Stable Release Date: 2020-05-07

Created 2018-03-22

Last Updated 2020-07-12