lineageos4microg / docker-lineage-cicd

Docker microservice for LineageOS Continuous Integration and Continous Deployment
https://hub.docker.com/r/lineageos4microg/docker-lineage-cicd
GNU General Public License v3.0
480 stars 189 forks source link

Oneplus 6 latest build broken #651

Open IGNNE opened 1 week ago

IGNNE commented 1 week ago

Oneplus 6 / enchilada, clean LOS Microg 21 install.

Installed the July update, neither wifi nor mobile radio worked. Tiles either greyed out or not doing anything.

I cannot get you any logs, since I've sadly tried to install the June version over it, which (without warning) wiped my flash drive :(

petefoth commented 1 week ago

Sorry about that - no idea what is causing it.

I have moved the latest build to https://download.lineage.microg.org/enchilada/not_working/

Have you tried installing the latest official LineageOS build (from https://download.lineageos.org/devices/enchilada/builds) to see whether the problem is specific to los4microG?

IGNNE commented 1 week ago

Weirdly enough, on the latest Lineage nightly, wifi and mobile radio work just fine. Thanks for the quick answer, by the way!

petefoth commented 1 week ago

Strange! I guess we'll have to wait for next month's build and see how that goes. Or if I have time when the build run is done I could try another build them.

jberggg commented 1 week ago

Same issue with the fajita build (Oneplus 6T). I haven't downgraded yet so I could get you some logs. Where can I find it?

petefoth commented 1 week ago

Same issue with the fajita build (Oneplus 6T). I haven't downgraded yet so I could get you some logs. Where can I find it?

Thanks: This page describes how to go about getting logs https://forum.xda-developers.com/t/guide-providing-a-good-logcat.3814517/

I'll take down the fajita build now

jberggg commented 1 week ago

Perfect. And you would need a boot log?

What is the recommended downgrade strategy without loosing data, downgrade by adb to previous version or copying the release to the phone and using the lineageos updater app?

petefoth commented 1 week ago

And you would need a boot log?

I don't think a boot log will help (I'm not even sure that I will be able to get much from a logcat, but I'm prepared to try)

What is the recommended downgrade strategy without loosing data, downgrade by adb to previous version or copying the release to the phone and using the lineageos updater app?

I don't know of any way to downgrade without formatting / factory resetting and losing your data. I suggest the following:

  1. Use either (or both) of the following to backup your user-installed apps and (some) data
    1. https://github.com/AndDiSa/android_backup_project/ - requires rooted debugging and a LInux machine, real or virtual. Will backup and restore all of your apps, and some data: See this post for guidance on how to use the tool and here for some info on what will and will not get restored
    2. https://github.com/mrrfv/open-android-backup will only backup apps, not their data, but that's the biggest hassle when setting up after a format. Doesn't need root or rooted debugging. Works on Linux, MacOS & Windows (though you may need an 'unstable' bundle on MacOS - see this issue
  2. Use any in-app backup / export / sync functionality provided by the apps you use. e.g.
    1. K-9 has 'export settings,
    2. QKSMS has in-app backup functionality, or you can use SMS Import Export from F-droid for messages, call logs & contacts
    3. Lawnchair launcher has in-app
    4. DAVx5 / ICSx5 /NextCloud NOtes & Sync Client allow synching COntacts, Calendar, Notes, Tasks, and files / documents / photos

Then flash the ~old~ new ROM using adb sideload without formatting your data partition: if you are lucky, the older version may work, but probably you will have to format, reboot and complete first time setup, then restore whatever you need from the backups, exports & syncs you made.

Good luck!

jberggg commented 1 week ago

I don't think a boot log will help (I'm not even sure that I will be able to get much from a logcat, but I'm prepared to try)

Ah ok, so just a full dump or however you call it. Where would I provide you that log. Here? Not sure if there is sensitive information in it...

I don't know of any way to downgrade without formatting / factory resetting and losing your data. I suggest the following

Hmm I think I remember that I successfully downgraded in the past. But of course there is a risk of loosing data. I have app backups through the lineageos built-in backup-mechanism.

I think I can live without data connection for a day but not for days. Would it be an option to re-run the cicd to perform new builds as the latest nightly seems to fix it?

petefoth commented 1 week ago

Ah ok, so just a full dump or however you call it. Where would I provide you that log. Here? Not sure if there is sensitive information in it..

Upload it to this 'file drop' directory on my NextCloud account: https://murena.io/s/YGsdPQ5pRwmHosf I promise to delete it after I've tried to work out what's going on.

I think I can live without data connection for a day but not for days. Would it be an option to re-run the cicd to perform new builds as the latest nightly seems to fix it?

At the moment, there is a build run in progress which is going to take another couple of weeks to complete (building for around 250 devices in all). I don't think it is possible to run another build alongside without risking both build failing. I'll have a think, and see if I can find a way, but I'm not promising

petefoth commented 1 week ago

OK, I've started a build for both devices on a new cloud server. When It's done I'll let you kniw where to download from. The builds will be sined with my personal keys, not the los4microg keys, and you will have to install manually, ignoring the signature verification error. Also, the build won't pick up the next official OTA update: when that arrives (I'll report here) you'll need to download that, and install it manually

jberggg commented 1 week ago

Do the same data-loss risks apply when manual updating to the new "custom" build and later on back to the official build or is this more a problem when downgrading to an older version? There is always a risk that something can go wrong of course - I'm not talking about that.

petefoth commented 1 week ago

Do the same data-loss risks apply when manual updating to the new "custom" build and later on back to the official build or is this more a problem when downgrading to an older version?

No. Manually installing a newer version is usually just the same as installing a newer version via the Updater app. So you should be able to install it over your current build. Problems are with trying to install an older version

petefoth commented 1 week ago

Also, see this issue on the official LOS Reddit: https://old.reddit.com/r/LineageOS/comments/1dxer97/please_help_oneplus_6t_fajita/

petefoth commented 1 week ago

I've had to go out before the build completed. It should be done by the time I get home this evening - I'll publish the build then

jberggg commented 1 week ago

That would be awesome. Thank you!

I will upload the logs if this build doesn't fix the issue.

petefoth commented 1 week ago

Please note what I wrote earlier

The builds will be signed with my personal keys, not the los4microg keys, and you will have to install manually, ignoring the signature verification error. Also, the build won't pick up the next official OTA update: when that arrives (I'll report here) you'll need to download that, and install it manually

petefoth commented 1 week ago

Looks like this is a problem with upstream, official LineageOS too: see https://gitlab.com/LineageOS/issues/android/-/issues/7380.

So it may be the new builds wont work ether 😢

jberggg commented 1 week ago

hmmm @IGNNE said that the latest Nightly fixed the issue. But maybe this is only true for enchilada...

I will give it a go and report back. Thank you for the build!

petefoth commented 1 week ago

See also this issue about a WiFi issue with enchilada: https://gitlab.com/LineageOS/issues/android/-/issues/7381

jberggg commented 1 week ago

Your build fixes my fajita 🥳 Thank you very much Pete!

IGNNE commented 3 days ago

That is indeed weird, my enchilada has been running on 21-20240704-NIGHTLY-enchilada (nightly "pure" LOS at the time of this issue) since this issue started, and everything works. I haven't done any further experiments or upgrades, because I have been travelling, but I hope I have some more time this week.

Thanks to you all for looking into this! Very much appreciated!