Development [ROM][11.0][OFFICIAL] LineageOS Modded 18.1 [DISCONTINUED]

Search This thread

Electimon

Recognized Developer

Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

LineageOS Modded is a free, community built, aftermarket firmware distribution of Android 11 (R), which is designed to increase performance and reliability over stock Android for your device.

LineageOS Modded is based on the Android Open Source Project and LineageOS with extra contributions from many people within the Android community.

All the source code for LineageOS Modded is available in the LineageOS Modded Github repo.

What's working?
  • Everything as far as I can tell...

Installation
1. Boot into twrp
2. Advanced -> ADB Sideload -> Swipe
3. adb sideload copy-partitions.zip
4. Go back into sideload mode
5. adb sideload lineage.zip
6. Wipe Data
7. Reboot to bootloader
8. fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img

Downloads: http://1pwn.ixmoe.com/android/ginna/los-18.1/lineage-18.1-20210621-HOMEMADE-ginna.zip
Notes
  • This ROM comes with Google Apps!
  • This ROM comes with Customizations that are not apart of LineageOS
Sources: https://github.com/motoe7

Credits: @electimon, @RohanHasabe8, betaxab

Jan 27 2021: Fix Safetynet, fix touch issues, fix some other issues

Jan 28 2021: Fix PIP mode

Jan 30 2021: Fix Hotspot

June 2 2021: Fix touch for ginna models with the new panel

June 15 2021: Fix touch for focaltech panels

June 20 2021: June Patch, fix safetynet and other little stuff
 

Attachments

  • vbmeta.img
    8 KB · Views: 556
  • copy-partitions-20200903_1329.zip
    2.2 KB · Views: 529
Last edited:

anthony.d

Member
Jan 7, 2021
7
0
Awesome, been waiting for this, thanks very much! Had some errors while loading copy-partitions.zip but the image flashed and seems to be working well. Look forward to future versions with SELinux enforcing and also without gapps (but maybe that's not likely with no opengapps for 11?)

Would be great if there was a way to remove the obtrusive "device can't be trusted" message at boot. It can be just as trusted as my desktop PC ffs. At least moto allows the bootloader unlock without much trouble.
 

Electimon

Recognized Developer
Awesome, been waiting for this, thanks very much! Had some errors while loading copy-partitions.zip but the image flashed and seems to be working well. Look forward to future versions with SELinux enforcing and also without gapps (but maybe that's not likely with no opengapps for 11?)

Would be great if there was a way to remove the obtrusive "device can't be trusted" message at boot. It can be just as trusted as my desktop PC ffs. At least moto allows the bootloader unlock without much trouble.
hi, selinux is enforcing also there will be no version without gapps sorry
 

anthony.d

Member
Jan 7, 2021
7
0
hi, selinux is enforcing also there will be no version without gapps sorry

No worries about the gapps, i'm grateful to have a lineage rom for this device.

I tried flashing again. Pardon if the details below are excessive, I don't fully understand the process, and the dual-slice device config. Here's what happened:

copy-partitions gets to 47%, then fails with the following error:

Partition vendor_a
dd: /dev/block/dm-4: write error: No space left on device

installed lineage again, this time went to slot B. rebooted back into TWRP and tried copy-partitions again (to see if it was different after lineage had been installed in both slots) and this time it succeeded. Installed lineage again, this time to slot A. Wiped the device, rebooted, and I still get the selinux error. If it's relevant, the device model is XT2052-1.

Also want to add: I applied disable-verity both times, and cmd line output indicated writing to vbmeta_a and vbmeta_b.
 
Last edited:

Cyb3rSl4v3

Member
Feb 4, 2021
24
7
Moto E (2020)
I installed the rom mainly as a reference against the no speaker (except in calls) issue I'm having with 17.1. Also I'll note there the issue isn't jacksensing as I had guessed. A soundfile playback autopauses on headphone removal. With 18.1 here I do get speaker output, however one bug I noticed for me (boostmobile-sku:mot20526anb/xt2052-6) (also present in 0206 17.1) is that in-call volume adjust doesn't work. The indicator moves, but the actual volume does not. I'll send some logcats. Seems to be stuck at what is probably supposed to be max volume.
 
  • Like
Reactions: bolo19692

Cyb3rSl4v3

Member
Feb 4, 2021
24
7
Moto E (2020)
I finally figured out how to build 18.1 on my 8g-ram system such that I don't have to worry about uninstalling gapps (amongst other motivations). I'll post details once I've done another less manual build. The trickiest part was that the 17.1 workaround of setting JAVA_TOOL_OPTIONS/_JAVA_OPTIONS to -Xmx6g wasn't getting used by metalava in 18.1. I ended up editing the last line of out/soong/host/linux-x86/bin/metalava and putting it in there which finally worked. Perhaps tools/metalava/gradle.properties is the right place. My first pass doesn't have carrier data/call service working, but that may be because I did something with TimeService to get it to compile. In any event, I think the 16g minimum warning from the build system is more than a bit confusing combined with the metalava java heap issues. I may try a 4g-ram build sometime just for amusement... It just seemed inconceivable that there really was a 16g-ram requirement. I know even phones come with 16g these days, but still. Of course my hope is to see a cheap phone of mine self-hosting one of these days. Perhaps with some high end microsd card or an otg drive for swap partition and build tree...
 
  • Like
Reactions: kozmo2k4

Cyb3rSl4v3

Member
Feb 4, 2021
24
7
Moto E (2020)
I finally figured out how to build 18.1 on my 8g-ram system [...] The trickiest part was that the 17.1 workaround of setting JAVA_TOOL_OPTIONS/_JAVA_OPTIONS to -Xmx6g wasn't getting used by metalava in 18.1. I ended up editing the last line of out/soong/host/linux-x86/bin/metalava and putting it in there which finally worked. Perhaps tools/metalava/gradle.properties is the right place.
I haven't quite done a fully automated build yet, but tools/metalava/gradle.properties didn't work for me. Then I found that the metalava (wrapper) script was build/soong/scripts/jar-wrapper.sh, and adding a next to last line of-- javaOpts+=("-Xmx6g") --seems to work. I also now better understand device/motorola/ginna/lineage.dependencies and seem to be able to reproduce this image sans gapps (though an selinux issue i haven't looked too much at yet). I may focus more on 17.1 until 18.1 becomes more generally official. I also seem to be getting occasional sigsegvs with jre/metalava dumping hs_err_pid*.logs. However thus far a simple rerun of brunch/ginna has never reproduced the problem.
 

fddm

Senior Member
Feb 24, 2011
287
186
Camera apps have quite a lag related to camera apiv2. Haven't had time to debug, but Open Camera works perfect as it defaults to the old api.
 

fddm

Senior Member
Feb 24, 2011
287
186
Idk about system r/w, but Magisk works fine. This is also a really good rom. Stable and nearly everything works.
 

Spaceminer

Senior Member
Idk about system r/w, but Magisk works fine. This is also a really good rom. Stable and nearly everything works.
I checked, it has system rw. I can't believe how fast my LTE speeds are too. 7-10MBs vs 50kbs on stock. The only thing holding me back is no full screen toggle for apps, and the in call volume is stuck at the maximum at all times. Soon as those get fixed I'm running this 24/7.
 
  • Like
Reactions: fddm
2+ months now with 18.1 on my daily driver.

No hardware issues.
Ofox recovery.
Magisk 21.4 thru the latest canary build have worked as far as I can tell.
No volume troubles.
Can mount system RW.


My only setback is that I don't have access to around 9Gb on /data and /sdcard, including /sdcard/Android/obb
I can set perms any way in terminal and in recovery terminal 0777, 0655, etc., but upon reboot, I cannot read or write.

Can read and write to /system and /system_root, no problem.

This is possibly due to me forgetting to wipe encrypted /data after first flash? I wiped after first boot, no change.
Then, started the flash process from scratch and wiped before first boot, but must have missed something.
The file and folder names are not random characters.

One of those things I thought will work out when I get around to it, but now just found my pics are being saved to a folder in the mystery space, and I need to place a .zip in *./obb.

Im learning, A/B is new to me.
Maybe my mistake will help someone when I find a solution.
I am open to suggestions, lessons, and any other info, even if I should already know it.

I will report when something changes.
 

Spaceminer

Senior Member
2+ months now with 18.1 on my daily driver.

No hardware issues.
Ofox recovery.
Magisk 21.4 thru the latest canary build have worked as far as I can tell.
No volume troubles.
Can mount system RW.


My only setback is that I don't have access to around 9Gb on /data and /sdcard, including /sdcard/Android/obb
I can set perms any way in terminal and in recovery terminal 0777, 0655, etc., but upon reboot, I cannot read or write.

Can read and write to /system and /system_root, no problem.

This is possibly due to me forgetting to wipe encrypted /data after first flash? I wiped after first boot, no change.
Then, started the flash process from scratch and wiped before first boot, but must have missed something.
The file and folder names are not random characters.

One of those things I thought will work out when I get around to it, but now just found my pics are being saved to a folder in the mystery space, and I need to place a .zip in *./obb.

Im learning, A/B is new to me.
Maybe my mistake will help someone when I find a solution.
I am open to suggestions, lessons, and any other info, even if I should already know it.

I will report when something changes.
I never had this issue so I'm guessing it's something to do with encryption. I would try clean flashing LOS to both slots then formatting data using the type "yes" option to remove encryption. Are you using adoptable storage by chance?
 

Mr.Conkel

Senior Member
Oct 10, 2020
301
84
London
Nexus 7 (2013)
OnePlus 5T
How can I install this rom via recovery, I have never used side load. Why is it not booting? What is wrong. I flashed rom in slot B with twrp in slot A sorry still a little new with this device. But regardless it is not booting whatsoever and I am confused as to why
 

Spaceminer

Senior Member
How can I install this rom via recovery, I have never used side load. Why is it not booting? What is wrong. I flashed rom in slot B with twrp in slot A sorry still a little new with this device. But regardless it is not booting whatsoever and I am confused as to why
Flash it to both slots and format data before booting up.
 
  • Like
Reactions: Mr.Conkel

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Discontinued, los-modded 12 is coming soon
    4

    Code:
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */

    LineageOS Modded is a free, community built, aftermarket firmware distribution of Android 11 (R), which is designed to increase performance and reliability over stock Android for your device.

    LineageOS Modded is based on the Android Open Source Project and LineageOS with extra contributions from many people within the Android community.

    All the source code for LineageOS Modded is available in the LineageOS Modded Github repo.

    What's working?
    • Everything as far as I can tell...

    Installation
    1. Boot into twrp
    2. Advanced -> ADB Sideload -> Swipe
    3. adb sideload copy-partitions.zip
    4. Go back into sideload mode
    5. adb sideload lineage.zip
    6. Wipe Data
    7. Reboot to bootloader
    8. fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img

    Downloads: http://1pwn.ixmoe.com/android/ginna/los-18.1/lineage-18.1-20210621-HOMEMADE-ginna.zip
    Notes
    • This ROM comes with Google Apps!
    • This ROM comes with Customizations that are not apart of LineageOS
    Sources: https://github.com/motoe7

    Credits: @electimon, @RohanHasabe8, betaxab

    Jan 27 2021: Fix Safetynet, fix touch issues, fix some other issues

    Jan 28 2021: Fix PIP mode

    Jan 30 2021: Fix Hotspot

    June 2 2021: Fix touch for ginna models with the new panel

    June 15 2021: Fix touch for focaltech panels

    June 20 2021: June Patch, fix safetynet and other little stuff
    2
    Thanks for the report, since I switched kernels in #40-42 I forgot to import the focaltech driver. I'm compiling the new build right now.
    2
    Touch is now fixed for models with the new panel! -42
    2
    Thinking about picking up a Moto E 2020 (USA variant? if they still do that). How's stability with this ROM? Do all, if not MOST, features work? If it's good enough for a daily driver I might pick one up to replace my dying X4 with its constant signal issues and connectivity drops.
    Use this ROM on my main phone and it's really very good. Fast and stable and provides a better experience than stock IMO. I'm a bit behind on updates now, but I do experience a finicky(but usable) camera.

    Even though I personally like it, I'm not sure I'd recommend it to others. This is a low end phone that had a very short production run and sports really unimpressive hardware.