[GSI][13] LineageOS 20 TrebleDroid-based

Search This thread

AnonVendetta

Senior Member
Apr 29, 2016
1,584
577
Has anyone seen something like this? In the Frost app (an alternative Facebook client), I can't attach photos when sending messages, it just says "file chooser not found". Beforehand it was working fine, but never in LOS20.
Temporarily solved by switching to another unofficial app, Facebook Lite. It properly allows choosing photos. It must be an issue with Frost maybe not being updated for Android 13. Was working fine on all A12 GSIs.
 

zyhk

Senior Member
May 9, 2020
215
86
(deleted)
EDIT:
Huawei P10 still WIFI Disconnects after 2 Minutes turning screen off. Checked the logs and found this issue reported 3 years ago:

Working workaround:
Activate adb debugging as root in dev options and start adb as root on your pc:
$ abd root
$ adb shell
$ echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6

Then WIFI stays connected after you turn the screen off.

EDIT 2:
The workaround i mentioned is just temporary. It works till you reconnect to the WiFi or reboot. Disabling Ipv6 on your router makes it work but then some services might not work for you which rely on IPv6.

Since its TrebleDroid based i tried to install the TrebleDroid Android 13 GSI. In the TrebleDroid GSI the bug is also present. Its not a specific LineageOS problem.
Isn't this caused by wifi suspend optimizations?

Try
settings put global wifi_suspend_optimizations_enabled 0, and switch wifi off and on.
 
  • Like
Reactions: MIcHiJK

MIcHiJK

Senior Member
Feb 13, 2016
444
97
Isn't this caused by wifi suspend optimizations?

Try
settings put global wifi_suspend_optimizations_enabled 0, and switch wifi off and on.
Thank you for you reply. But sadly this isnt working. The only workaround is deactivating IPv6 right now. But its a bad workaround. Sadly this makes the phone unusable even if the rom is working great. This bug is also present in TrebleDroid which is used as base. The "light" approach isnt booting. I can provide logs but im not able to fix the cause by myself.
 

AnonVendetta

Senior Member
Apr 29, 2016
1,584
577
Does anyone else have problems with sending SMS?

Sending messages via RCS is possible without any problems.
The reception works as well. Only sending is not possible.
Never had an issue sending texts on this gsi. Just with phone calls consistently not going through in a select few areas. Sounds like a carrier issue. I use the AOSP messaging app, not google's messaging app. Or QKSMS, my fave 3rd party messaging app. No issue with that either, although i'm not sure if it supports RCS.
 
Thanks for your report on your experience.

Had tried the Google Messages app and also the AOSP SMS app.
Google Carrier Services is also installed.

On an Xperia XA2 with LineageOS 19.1 I was able to send SMS with the same apps and the same SIM card at the same location without any problems.

Where could the error be here?
The ability to send SMS is very important for me.
 

AnonVendetta

Senior Member
Apr 29, 2016
1,584
577
Thanks for your report on your experience.

Had tried the Google Messages app and also the AOSP SMS app.
Google Carrier Services is also installed.

On an Xperia XA2 with LineageOS 19.1 I was able to send SMS with the same apps and the same SIM card at the same location without any problems.

Where could the error be here?
The ability to send SMS is very important for me.
I'm just going to reiterate that it's probably a carrier issue. That would be my personal best guess. Have you checked your APN settings? Maybe they are incorrectly configured.
 

AnonVendetta

Senior Member
Apr 29, 2016
1,584
577
Yes, they are as recommended by the provider and the same as on the other smartphone via which SMS sending was possible without any problems.
OK. I get it. I misread you. I thought you meant that you were previously on 19.1, but switched to LOS20 and suddenly started having issues. Now I see that you're comparing a current device against another device that was also running an LOS gsi. If it was working on an older LOS gsi on the same phone, but not on 20, that wouldn't make much sense.
 

AnonVendetta

Senior Member
Apr 29, 2016
1,584
577
Yes, they are as recommended by the provider and the same as on the other smartphone via which SMS sending was possible without any problems.
I kind of had a similar issue a few months ago, when I swapped my active sim card from an older phone to my Note 20 Ultra (the one I'm using now). This was on the stock ROM, not a gsi. Basically, I got a carrier message saying that my settings for texts/calls/data were incorrect. And it was offering to remotely reprogram my sim card with the correct settings. The message looked legit, so I accepted, and the issues went away immediately.
 
Unfortunately, I never received such a carrier message.

I have pulled a logcat to see if the cause of the error can be found in it.
These are the locations I would associate the error with:
Code:
01-22 10:47:03.574  5636 16695 E Bugle   : SendStatusReceiver: failure in sending message part. partId: 0, partCount: 1, resultCode: 104, errorCode: -1, messageUri: content://sms/7379 {x-message-id:0}
01-22 10:47:03.582  5636 16695 E Bugle   : SmsSender: Unexpected sent intent resultCode = 104
 

AnonVendetta

Senior Member
Apr 29, 2016
1,584
577
Unfortunately, I never received such a carrier message.

I have pulled a logcat to see if the cause of the error can be found in it.
These are the locations I would associate the error with:
Code:
01-22 10:47:03.574  5636 16695 E Bugle   : SendStatusReceiver: failure in sending message part. partId: 0, partCount: 1, resultCode: 104, errorCode: -1, messageUri: content://sms/7379 {x-message-id:0}
01-22 10:47:03.582  5636 16695 E Bugle   : SmsSender: Unexpected sent intent resultCode = 104
If it's an issue with GApps (worth testing), install DSU Sideloader. Grab the latest LOS 20 img file that doesn't have GApps. Use the DSU app to install that as a dualboot gsi, then boot into it and test there. You won't lose your current LOS if the results are similar. Just a quick reboot and you're back in. You can install and boot the whole thing in under 10 mins, on a reasonably fast device. But it needs root. Installation via adb is also supported, but I've never tried it that way.
 

AnonVendetta

Senior Member
Apr 29, 2016
1,584
577
Unfortunately, I never received such a carrier message.

I have pulled a logcat to see if the cause of the error can be found in it.
These are the locations I would associate the error with:
Code:
01-22 10:47:03.574  5636 16695 E Bugle   : SendStatusReceiver: failure in sending message part. partId: 0, partCount: 1, resultCode: 104, errorCode: -1, messageUri: content://sms/7379 {x-message-id:0}
01-22 10:47:03.582  5636 16695 E Bugle   : SmsSender: Unexpected sent intent resultCode = 104
Unfortunately, the logcat isn't very useful in this case, all it's saying is that the message failed to send with the Google app, with a result code of 104. But it doesn't give any real hints of the underlying problem.

There are logcat apps out there that can also check the modem logs, as well as Android's logcats. I think a modem log would be more useful, but it will probably be hard to interpret.
 

AnonVendetta

Senior Member
Apr 29, 2016
1,584
577
Here is the full logcat.
I hope more can be seen from this
Not many views on your logcat. I checked it myself, couldnt find anything that stood out. Worst case, reflash stock firmware and test there. If it still happens there, then gsis in general can be ruled out as the culprit. Might also be worth getting a replacement sim from your carrier, available for a small one time fee. Or switch to esim, if your device supports it.
 

AnonVendetta

Senior Member
Apr 29, 2016
1,584
577
Does anybody works Gpay via magisk with safynet fix? when i try to run this only shows for a while and closes.
Not working for me. My local transit authority uses Gpay as a payment option. But it always fails when I try to use it to buy tickets in their app. NFC is enabled, and I've already added a credit card.

I'm rooted with Magisk Delta and have @Displax's modded SN fix installed. All SN checker apps show that I pass. Pokemon go works, my banking app works. But Gpay/Android Wallet apparently doesn't.

Google should stop hating on rooted/unlocked/custom ROMed devices and just let us pay. As long as they get our $, why does it matter? They're greedy, but apparently not greedy enough to not discrimiHATE (intentionally mis-spelled) against us.
 
I checked it myself, couldnt find anything that stood out.
Thank you for your help.

Curiously, I tried sending an SMS to a new recipient over the weekend and it worked flawlessly.

With the messages that could not be sent, it can not actually be the receiver, because I could send SMS from the same cell with the same settings and the same SIM card from my other smartphone.

So SMS sending works, but only with certain recipients, while with other devices SMS sending works with all recipients.

I just can not figure it out.
 

AnonVendetta

Senior Member
Apr 29, 2016
1,584
577
Thank you for your help.

Curiously, I tried sending an SMS to a new recipient over the weekend and it worked flawlessly.

With the messages that could not be sent, it can not actually be the receiver, because I could send SMS from the same cell with the same settings and the same SIM card from my other smartphone.

So SMS sending works, but only with certain recipients, while with other devices SMS sending works with all recipients.

I just can not figure it out.
Have you tested with any other non-LOS gsis? If so, same issue? What about testing on stock firmware?

Nearly all gsis use a lot of @phhusson's AOSP source code, it's a good idea to try them as a baseline for troubleshooting.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Hello i run LOS 20-20230507-UNOFFICIAL-arm64_bvS on a xiaomi redmi note 11, and i can't send any SMS or MMS in 4G, only 3G mode (By changing prefered network) works well...any idea ?
    Set up IMS/VoLTE properly in Treble settings.
    It was at this point the phone display started stuttering whenever I'd touch the screen (and sometimes would do so without). The setup process was stuttering throughout the entire process.

    At the end of the setup, after I pressed on the final button at the end of the Lineage Setup, the screen finally went black and the only sort of response I could do was to hold the power button, which showed me a minimal power menu.
    This sounds like something crashing hard in the background repeatedly - a logcat would perhaps be useful.
    Also is the TD based rom, or the light rom expected to have better compatibility with phones like the Legion Y70 (ignoring the call bug)?
    Neither - right now it's a known issue that Moto/Lenovo QCOM S vendor devices have spotty or no SMS reception, and this can easily break daily driving. I've even bought a device just to look into this, but so far I don't know how to solve it within a GSI environment (device-specific ROMs have more room to work with).
    "Disclaimer:
    No flashing instructions will be offered. If you're here in this forum, you should know what you're doing."

    Keep jealously guarding your secrets and let the rest of the world die stupid, you lousy rats!
    Just because this is a generic image doesn't mean there's a generic enough way of flashing it everywhere. I've handled dozens of devices for GSI purposes so far, and many have curious traits that one would never know until a hands-on. You can blame me for being lazy and not summarizing findings on my devices on PHH's wiki, but I won't take blame for not offering an all-encompassing guide that "just works".
    2
    Yeah - its been one hell of a learning curve :D :D :D

    I also managed to patch lk-verified.img on my device to get rid of the boot wait due to the unlocked bootloader too - so that makes it a much smoother experience.

    The last time I tried to go down the whole GSI / Treble path about 6 months ago, I just didn't have the brainspace to figure it all out and just went back to stock everything due to time pressures. This time, I've been able to play around for a few days to get something much more usable.

    I'm glad I did - because for a cheapish tablet, this this is pretty damn decent.
    When I first tried gsis on the 2 devices I own now, I knew I could never go back to using Samsung's bloated stock ROMs as my daily driver. Overall, the gsi experience has been very good. And even though there are issues, it doesn't bother me, since they're mostly minor. Either way, it's been a learning experience, I'm always down for that. When problems come my way, I hammer away until I find answers. They may not come quickly, but I will find them. I'm a stubborn, persistent old dog that doesn't give up. Learning is an important part of life. But you don't learn if you don't try. Trial and error is all part of the process.
    2
    说得很明白,给你点赞👍🏻Very clear, give you a like
    And stop calling this gsi useless, or any other custom ROM. Gsis by their nature are buggy, they aren't perfect. Sometimes things will not work the way you think it should. You chose to unlock your bootloader, you chose to install a gsi. Noone held a gun to your head. So take responsibility and accept that you're playing a role in your outcomes.

    Gsis are built for free, with someone else's time, and you're not paying a salary to the devs or anyone that offers help.

    XDA has alot of whiny, complaining, unthankful, demanding users, that forget that what they are using was free to them. You aren't owed anything. Just because something doesn't always work 100%, doesn't make it useless.

    If you need the highest level of stability, go back to stock firmware and relock your bootloader. But stock also isn't perfect, it has issues too, just less overall. Or maybe you would be better off with an iPhone, as long as you don't jailbreak it your apps will work great.
    1
    Finally LOS 20 started (it got stuck on the LOS logo (ball tracing a the curve, again and again)
    Finally I I added the commands marked with a star:
    with vol+ and on/off I selected fastboot mode
    1. fastboot devices
    2. ***fastboot flashing unlock (???, shoudn't change anything now, because I never executed fastboot flashing lock)
    3. fastboot flash system SYSTEM.img
    4. *** fastboot reboot bootloader
    5. ***fastboot reboot
    Andy Yan's ROM seems to be very responsive, the screenshot function works (did not work on the A12 rom from phhusson, which might bes a restriction of A12 as well, I think).
    Thanks a million, @AndyYan for all that work!
    Why did the apps and the personal data (content of the download folder e.g.) dissapear? I haven't cleared anything apart from cache)? Expected that a flash over Phh wouldn't delete my personal data. However I had flashed consequently the two versions of LOS 20,
    1.) lineage-20.0-20230507-UNOFFICIAL-a64_bvS and then
    2.) lineage-20.0-20230507-UNOFFICIAL-a64_bvS-vndklite and then
    3.) lineage-20.0-20230507-UNOFFICIAL-a64_bvS again with the star marked steps (which worked finally).
    Of course my mistake not to create a backup. Not very valuable data, but time consuming data (like the configuration of Osmand).
    At he present I haven't installed anything. Would you recommend another clean install (before installing apps and configuration). Is it sufficient to wipe cache, data and system?
    If you're coming from the Phh gsi to LOS, you should always wipe data. They're similar and share alot of the same code, but still different ROMs regardless, you can't just switch between them without clean installing. However, you can upgrade from one LOS release to the next without data wipes. Not wiping is probably why it got stuck like you mentioned.

    No need to wipe system, just flash the gsi file. It will automatically overwrite the Phh gsi.
    1
    Unfortunately I think the society of the future will be primarily controlled by these megacorporations and the wealthy, whose main focus is to do anything to make money and stay in power, regardless of the consequences or how they affect everything else

    It's actually been like this since the 70s when globalization first became a thing. The future you speak of has already been here for a few decades
  • 25
    640px-Lineage_OS_Logo.png

    LineageOS is a free, community built, aftermarket firmware distribution of Android, 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. 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 Gerrit Code Review.

    MUST-READ BACKGROUND - Android 13 and the two approaches:
    As some of you already know, due to various reasons, @phhusson , who kickstarted the GSI trend and committed to it over the years, is backing out from future development
    - there won't be any AOSP 13+ builds or patches directly from him. He did most of the heavylifting for fixing bugs and implementing features, and selflessly supported more than his AOSP GSIs and more than devices he own. For the situation of GSIs today, we owe him a big thank-you.
    Earlier, inspired by @PeterCxy , I took the "light" approach, which starts over from AOSP's generic gsi_* target and adds the minimum amount of fixes needed for my own devices, intentionally leaving many legacy devices behind. For more details about it, visit its own thread.
    Meanwhile, a number of existing builders incl. myself have formed the TrebleDroid organization, with PHH himself helping us in technical issues. TD will forward-port PHH's final patches (v415) onto Android 13 and attempt to fix new issues. This is still a new and ongoing process, but if done right, will have compatibility and feature-completion on par with past PHH-based GSIs. This thread contains LOS builds based on TrebleDroid's collective work, which supposedly suits legacy devices, Samsung, etc. better than "light".

    Disclaimer:
    No flashing instructions will be offered. If you're here in this forum, you should know what you're doing.
    No guarantees that everything would work. This is a GSI, bugs are bound to happen.

    MUST-READ - reporting bugs:
    If you want to report a bug, then you MUST try reproducing on an AOSP reference build of around the same date from TrebleDroid, and ONLY proceed to report here when it's specific to this GSI. This filters out bugs common to all TD-based GSIs, which you should still let me know, but it might not be mine to fix. I might silently ignore your report if you skip this.

    Download:
    https://sourceforge.net/projects/andyyan-gsi/files/
    Scroll down for the naming rules of variants.
    Compressed as .xz archives - extract first.

    Stuff on GitHub (builders-only):
    Most things should be self-explanatory. Not the cleanest code, but should help if you need some clues.
    Thanks to:
    • The LineageOS team
    • @phhusson - shaped the treble community, and still takes care of TrebleDroid at a higher level
    • @PeterCxy - coded critical fixes such as sysbta
    • The TrebleDroid builders
    • ...and more
    Donate?
    https://paypal.me/AndyCGYan
    7
    Updated all variants with April security patches and in sync with TD 20230417. [Insert obligatory backup-and-test warning here]

    All modern Xiaomi/Redmi devices should be able to see high refresh rates now (if supported), without having to spoof properties globally.
    6
    Notes:
    • I now have a rather taxing day job, and can't devote nearly as much time/effort into this as I did as a student, or even a year ago.
    • I now daily-drive "light", so I can't test TD-based builds as extensively as before. For the same reason, I likely won't build/upload any TD-based "personal" build either.
    • While most >=A13 GSIs out there are going to be TD-based, some perform better than others - some devs have their own patches that haven't been merged into TD yet. I myself will stay close to TD's raw patchset as much as possible, without picking patches from others left and right. If you find another GSI working better, don't just complain - try to narrow down which ones, and the intersection of them might be an unmerged patch that, if approved, would be merged into TD and benefit all.
    • GAPPS builds are offered as-is without guarantees. As a Chinese I can't/won't help with GAPPS/SN issues - please help each other out.
    • ADB is intentionally insecure, even on first boot (turned on by default and no authentication needed). GSIs are more fragile compared to device-specific custom ROMs, both on first boot (no-boot issues) and on subsequent boots (after tuning certain Treble settings), and I insist that no-auth ADB is a must-have for debugging and general fail-safe.
    • Signature spoofing (MicroG) is supported, but only for priv-apps. This is a security consideration from PHH.
    • On *S variants, install PHH-SU and you'll get basic root for apps, good for devices that don't play well with Magisk or when you don't need modules.
    • Refer to this post for explanation/workaround of an MediaTek-specific kernel bug that causes no internet.
    6
    Updated all variants with Android 13 QPR2 and March security patches. [Insert obligatory backup-and-test warning here]

    As usual with "feature drops", things can change or break majorly.

    Fixed in-call audio on Snapdragon 8 Gen 2 (SM8550), tested on OnePlus 11, should pave the way for future QCOM SoCs as well. Users of other SM8550 devices like Xiaomi 13 and RedMagic 8 Pro/+ might want to try this out too. Also pushed to TD upstream, so in case you don't like LOS, it's still coming to your favorite TD/-based GSI later.

    Imported some SN fixes from HentaiOS - GAPPS users should now get CTS profile match as well.

    Fixed videos sometimes getting stuck after pausing and resuming, thanks @Cozzmy13 for working it.

    Fixed two-pane layout in Settings for tablets - set an appropriate density then force stop Settings for it to take effect.

    And finally for builders, starting this month LOS has moved to Git LFS for hosting their Chromium webviews. Please re-init the repo with "--git-lfs" flag BEFORE syncing again or you will hit errors. If you already have a bad sync, clear the residue and re-init:
    Code:
    rm -rf external/chromium-webview/prebuilt/*
    rm -rf .repo/projects/external/chromium-webview/prebuilt/*
    rm -rf .repo/project-objects/LineageOS/android_external_chromium-webview_prebuilt_*
    5
    Updated all variants with January security patches and in sync with TD 20230104. [Insert obligatory backup-and-test warning here]

    During my CoV downtime, A13 QPR1 happened and TD-based had a lot of changes as well, which accumulated to this month and I had to update more patches than expected (way more than "Light" - lower maintenance is why I made that in the first place). I might've made oopsies along the way, so I don't feel quite confident about this batch, and you should exercise extra caution.

    Some users have reported that securize bootloops their device, and the current "integrally securize" approach means they can't boot up even once. This month I've changed it yet again to "securize on-demand", which is similar to how you securize on PHH/TD-based (a toggle in Treble Settings), but reversible and doesn't require SU.
    For new users who are unsure about whether securize might bootloop your device, please turn on USB Debugging and Rooted Debugging below it, and if/when you do hit a bootloop on the next boot, you'll have a rooted ADB shell available to you, from where you can toggle off manually:
    Code:
    adb root
    adb shell setprop persist.sys.phh.securize false
    adb reboot
    For users who are already on a gN build, be sure to toggle it on and reboot right after you update!

    Properly fixed exfat for Samsung/Sony, tested on the one Sammy I still own.