Development [ROM][OFFICIAL][lemonadep][13] LineageOS 20

Search This thread

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,309
34,658
Halifax
GT-i9250
Google Nexus 4
Anyone know why you can't sideload Magisk in recovery or even use twrp to install it? It freezes and does nothing? I patched the boot which is a alternative but it's longer that way.
Noticed this myself in TWRP. It also happens on Lineage Recovery? Wondering if it's the .capex files not being processed correctly by the installer. Even so it should fail more gracefully than hanging like that. I'm going to look into it.

Doesn't happen on my wife's 8T running PE Plus 13 on PE Recovery at least.

My workaround for now was to flash TWRP with TWRP, reboot to recovery, dump boot, boot to ROM and turn on airplane mode immediately (to not start failing SafetyNet/PlayIntegrity), patch the dumped boot in Magisk, reboot to recovery and flash the magisk_patched.img 😕
 
Last edited:

Crazy_Fox

Senior Member
May 7, 2008
65
28
Hi, Team!
Does anyone got crashes with "Settings -> Wallpaper and style" ?
PS: Upgraded from official LOS 19 w/o wiping Data
 
Hi, Team!
Does anyone got crashes with "Settings -> Wallpaper and style" ?
PS: Upgraded from official LOS 19 w/o wiping Data

Not to tell you how to do things on your own phone, but dirty flashing a major Android upgrade over the previous one (i.e. 19.1 to 20) has the potential to introduce all sorts of problems, from minor to major. This particular thing could be a symptom, but I couldn't say for sure.
 

LuK1337

Recognized Developer
Jan 18, 2013
8,824
17,793
Samsung Galaxy S III I9300
Moto G 2014

xerves78

Senior Member
Dec 6, 2015
275
44
NRW
Not to tell you how to do things on your own phone, but dirty flashing a major Android upgrade over the previous one (i.e. 19.1 to 20) has the potential to introduce all sorts of problems, from minor to major. This particular thing could be a symptom, but I couldn't say for sure.
why are dirty flash not good ?
on stock roms upgrades never need a wipe data
why it is a problem on custom roms ?
 

AnierinB

Recognized Developer
AOD seems a little wonky on Lineage 20 with the full size double-line clock... Like it's offset too low on the screen, so it overlaps with the battery percentage overlay. 🤔

Also some apps like FX File Explorer aren't allowed to enable notifications (even though I had never disabled them in 19.1).

Haven't figured out any workarounds yet.


Edit: I've disabled double-line clock for now until the AOD offset gets fixed.

And turns out the disabled notifications issue is an Android 13 issue which some apps are afflicted with, but it can be fixed on the app side, per this MalwareBytes forum thread: https://forums.malwarebytes.com/topic/290668-android-13-blocking-notifications/
This is actually due to google's incomplete resolution switching implementation merged into AOSP 13 that affects any SystemUI resources set in px. I've written a DisplayUtil that gets the ratio for the max resolution vs the current resolution to counter it, but to apply that to so many resources in SystemUI is just not ideal. I submitted a change with my utility to AOSP master gerrit, which made google aware of this issue (they'll be taking a different approach) and am hoping it will be fixed with QPR2 or later.

For reference (link to the change on aosp gerrit is here as well):

What you can do in the meantime is set your resolution to the max (1440) and the affected resources should be scaled properly.
 
Last edited:
  • Like
  • Love
Reactions: Aqq123 and osm0sis

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,309
34,658
Halifax
GT-i9250
Google Nexus 4
This is actually due to google's incomplete resolution switching implementation merged into AOSP 13 that affects any SystemUI resources set in px. I've written a DisplayUtil that gets the ratio for the max resolution vs the current resolution to counter it, but to apply that to so many resources in SystemUI is just not ideal. I submitted a change with my utility to AOSP master gerrit, which made google aware of this issue (they'll be taking a different approach) and am hoping it will be fixed with QPR2 or later.

For reference (link to the change on aosp gerrit is here as well):

What you can do in the meantime is set your resolution to the max (1440) and the affected resources should be scaled properly.
Fantastic! Thanks for your work!

You're right, 1440p (then cranking up the Display size to compensate) gets things looking right again. 😁
 

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,309
34,658
Halifax
GT-i9250
Google Nexus 4
this should be done just once
on updating, just persist magisk from magisk manager
(as described here)
I've already confirmed it's broken right now and can't be done in TWRP at all, let alone just once (which I agree should be done on custom ROMs to install the addon.d script). You can copy in the addon.d script manually as /system/addon.d/99-magisk.sh for now. I'm going to see about looking into it today.

Edit: So far, I can confirm Lineage Recovery is unaffected, so it must be something different with TWRP's shell/mount/execution environment.
 
Last edited:
Hi,
Just installed from a fresh LOS 19.1 I updated... a week - works perfect (I don't use the GApps anymore, I just sideloaded Magisk back). I'll report bugs if any.
Small question, is it useful to update the recovery ? I updated it before upgrading to 20, and the device became unbootable, so I reflashed the latest LOS 19.1 Recovery and everything ran fine.
I pushed back libjni_latinimegoogle.so to get the finger gestures on the AOSP keyboard (/system/product/app/LatinIME/lib/arm64), works great !

Thanks to all the devs and the community !!!
 

Cmindo

Senior Member
Jul 29, 2016
71
9
Is there a way to get the aperture app (new camera app) back without having to clean flash?

I uninstalled it using ADB shell but would like it back.

Perhaps there's an APK I can download?
 
Is there a way to get the aperture app (new camera app) back without having to clean flash?

I uninstalled it using ADB shell but would like it back.

Perhaps there's an APK I can download?
I don't know if it will work, but here is my original apk (from /system/product/app/Aperture).
Check the owner (root) and permissions (0644), and if the oat dir is here (odex files)...
You can also extract from the ROM file using payload-dumper-go...
 

Attachments

  • Aperture.apk
    8.1 MB · Views: 31
  • Like
Reactions: Cmindo
why are dirty flash not good ?
on stock roms upgrades never need a wipe data
why it is a problem on custom roms ?

Like I said, do what you like. If it works for you, fantastic. However, I've been doing this long enough to not trust dirty flashing a new major Android release over an older release (i.e. 12.1 to 13), because there's simply no guarantee that something between major releases hasn't changed significantly to mess something up. (I also don't split two 10s while playing blackjack, because I'm not about to take the chance of throwing away the third best hand you can have, and a good chance of beating the dealer, for possibly two lesser ones that could bust and lose twice the money.)
 

der_akinator

Senior Member
Mar 27, 2015
169
261
Berlin
OnePlus 3T
OnePlus 9 Pro
Noticed this myself in TWRP. It also happens on Lineage Recovery? Wondering if it's the .capex files not being processed correctly by the installer. Even so it should fail more gracefully than hanging like that. I'm going to look into it.

Doesn't happen on my wife's 8T running PE Plus 13 on PE Recovery at least.

My workaround for now was to flash TWRP with TWRP, reboot to recovery, dump boot, boot to ROM and turn on airplane mode immediately (to not start failing SafetyNet/PlayIntegrity), patch the dumped boot in Magisk, reboot to recovery and flash the magisk_patched.img 😕
Strange bug. I have noticed that magisk installation works if TWRP is booted with "fastboot boot boot.img", but I have no clue why it doesn't work if it's booted from device.
 
  • Like
Reactions: osm0sis

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,309
34,658
Halifax
GT-i9250
Google Nexus 4
Strange bug. I have noticed that magisk installation works if TWRP is booted with "fastboot boot boot.img", but I have no clue why it doesn't work if it's booted from device.
So far I've narrowed it down to the Magisk busybox losetup as part of mounting apex hangs the entire shell the very first time it's run on /dev/block/loop0, which normally would just fail and trigger iteration up to the next (and next, until unused) loop# since 0 and other lower loops are often already in use.

Interesting that it's related to boot state, and works with Lineage Recovery flashed but not TWRP, considering all the commands are run in Magisk's busybox ash with Magisk's busybox commands either way. :confused:

Edit: I just remembered a potentially connected issue from my notes testing twrp-11 on my 9 Pro, where `mount -o loop` commands fail only when TWRP is fastboot boot'd; sort of the opposite of what we're seeing now boot state wise, and the command only failed, didn't hang the whole shell.

Edit 2: Follow up in the TWRP thread: https://forum.xda-developers.com/t/...ryption-support.4523857/page-14#post-87951761
 
Last edited:

kjslabber

Senior Member
Mar 8, 2015
246
55
68
Northeast Ohio
OnePlus 8T
OnePlus 9 Pro
I tried to sideload magisk using twrp. It appeared to install correctly but after rebooting to system magisk didn't appear installed in magisk manager. I prepared to patch the boot image, when I went to patch the image file in manager the option to direct install was available. I installed using direct install and rebooted. Got root. Very strange. I'm on LE2125, using magisk 25.2. All is good. I have twrp installed on phone.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    Some news regarding this longstanding problem and the fix described below:

    New suggestion from LuK1337 in the issue thread here
    Code:
    adb shell settings put global cached_apps_freezer disabled
    or I guess the equivalent setting in developer options. Remember to reboot after changing it.
    I'm trying it myself now, will update in a day or two with results...

    Edit: 12h in... I'm 99% sure this has solved the issue. Have not experienced Firefox crash message, Firefox input failure, media playback failure or games failing to load, all of which happened pretty reliably previously.

    According to the LOS Gerrit, this change has been merged into android_kernel_oneplus_sm8350. Also, the changes to move the OP9Pro to the OOS 13 firmware and binaries (in the kernel, android_device_oneplus_lemonadep, and android_device_oneplus_sm8350-common) are in the process of being incorporated (some have already been merged, others are still in code review). That should mean that when OP9Pro releases resume, it'll be with the requirement to finally update the necessary firmware to LE2125_11.F.20. And the peasants... rejoiced. 😁
    5
    Okay, for those of you who'd like to switch back to LineageOS 19.1 until these problems are resolved (or just want to stay on 19.1 for whatever reason), I built an unofficial release right after the February ASB patches were merged. Links are provided below for the zip, sha256, and recovery image files (you'll probably have to flash the recovery image first since the LOS 20 recovery would consider it a downgrade and refuse to flash the zip; either that, or use TWRP). This is pure, unfiltered LineageOS, with absolutely no changes made by me. You should probably turn off system updates after installing so that you aren't pestered to upgrade to LOS 20, which would defeat the whole purpose. 😁

    This will be the only build I make available until the next ASB patches are available in March, or if there's a fix for any serious issues that are merged into the 19.1 tree in the interim, as the LOS team usually doesn't do anything other than minor fixes to previous releases (their major work is concentrated on the current release). Also note that I'm not providing any support, I'm just making 19.1 available to those who want it. 😉

    ROM: lineage-19.1-20230218-UNOFFICIAL-lemonadep.zip
    Checksum: lineage-19.1-20230218-UNOFFICIAL-lemonadep.zip.sha256sum
    Recovery: lineage-19.1-recovery-lemonadep.img

    Let me know if the links aren't working (they're on MediaFire for now, which I haven't used in a dog's age) and I'll try to fix them.
    5
    hey @LuK1337
    I think that after the merging with firmware a13 it has been broken again that the device wakes up only from off with the alarm.
    I'm with limonade, but in the first versions I installed (19.1 if I remember correctly) I had the same problems and in a short time you solved it.
    When you have some time if you take a look at it I would appreciate it, thanks!
    4
    I just would like to do clean flash this time around but I never came up with a good solution to backups&restore apps that would be fast and painless. Any tips there? What's the current go to?

    Swift Backup. Backs up and restores apps flawlessly (Titanium Backup, the community's previous "go to," hasn't been updated in ages, and doesn't handle modern app configurations like split APKs properly). It also backs up text messages, call logs, and WiFi settings, scheduled backups, cloud storage, everything the average user needs. Spend the few dollars and go with the paid version, it's well worth the investment.
    4
    According to the recent commits and the update to the firmware guide, when upgrading from a "old" install of LOS 20, should the update be done manually to apply the firmware update or can it be done via the LOS updater (and potentially restart) without bricking?
    OTA, unless you want to potentially hurt yourself for no reason to whatsoever.
  • 12
    2okPze5.png


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

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

    Instructions :
    Downloads :
    GPL compliance :
    Reporting Bugs
    • DO NOT Report bugs if you're running a custom kernel or you installed Xposed
    • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
    • If it is a random reboot, grab /sys/fs/pstore/console-ramoops and /sys/fs/pstore/dmesg-ramoops-0. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
    • If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
    Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

    Code:
    What is your--
    LineageOS version:
    LineageOS Download url:
    Gapps version:
    
    Did you--
    wipe:
    restore with titanium backup:
    reboot after having the issue:
    
    Are you using--
    a task killer:
    a non-stock kernel:
    other modifications:
    
    Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:
    8
    Some news regarding this longstanding problem and the fix described below:

    New suggestion from LuK1337 in the issue thread here
    Code:
    adb shell settings put global cached_apps_freezer disabled
    or I guess the equivalent setting in developer options. Remember to reboot after changing it.
    I'm trying it myself now, will update in a day or two with results...

    Edit: 12h in... I'm 99% sure this has solved the issue. Have not experienced Firefox crash message, Firefox input failure, media playback failure or games failing to load, all of which happened pretty reliably previously.

    According to the LOS Gerrit, this change has been merged into android_kernel_oneplus_sm8350. Also, the changes to move the OP9Pro to the OOS 13 firmware and binaries (in the kernel, android_device_oneplus_lemonadep, and android_device_oneplus_sm8350-common) are in the process of being incorporated (some have already been merged, others are still in code review). That should mean that when OP9Pro releases resume, it'll be with the requirement to finally update the necessary firmware to LE2125_11.F.20. And the peasants... rejoiced. 😁
    8
    Thank you for your work so far, and will there be any support plans in the future😉
    Depends on the outcome of this comment - https://gitlab.com/LineageOS/issues/android/-/issues/5384#note_1284136018
    5
    Thanks, yep been reading up on MSM tool. I used to be a big fan of TWRP when we were running with LG V20 and earlier days but seems like there are still various problems and gotchas with it for OP9Pro. Magisk doesn't play nice, or it does if you hold your mouth this way while you flash, etc.

    So we've stuck with Lineage recovery on this device. I do have good memories of TWRP though and hope it fully gets there someday for OnePlus 9Pro.

    Thanks for responses - appreciate it!
    Just for future reference, Android 12-13 TWRP is pretty much feature complete for OP9x: https://forum.xda-developers.com/t/...twrp-with-a12-a13-encryption-support.4523857/

    Will be made official soon. @der_akinator has done an amazing job, and in a remarkably short amount of time!
    5
    Okay, for those of you who'd like to switch back to LineageOS 19.1 until these problems are resolved (or just want to stay on 19.1 for whatever reason), I built an unofficial release right after the February ASB patches were merged. Links are provided below for the zip, sha256, and recovery image files (you'll probably have to flash the recovery image first since the LOS 20 recovery would consider it a downgrade and refuse to flash the zip; either that, or use TWRP). This is pure, unfiltered LineageOS, with absolutely no changes made by me. You should probably turn off system updates after installing so that you aren't pestered to upgrade to LOS 20, which would defeat the whole purpose. 😁

    This will be the only build I make available until the next ASB patches are available in March, or if there's a fix for any serious issues that are merged into the 19.1 tree in the interim, as the LOS team usually doesn't do anything other than minor fixes to previous releases (their major work is concentrated on the current release). Also note that I'm not providing any support, I'm just making 19.1 available to those who want it. 😉

    ROM: lineage-19.1-20230218-UNOFFICIAL-lemonadep.zip
    Checksum: lineage-19.1-20230218-UNOFFICIAL-lemonadep.zip.sha256sum
    Recovery: lineage-19.1-recovery-lemonadep.img

    Let me know if the links aren't working (they're on MediaFire for now, which I haven't used in a dog's age) and I'll try to fix them.