[Q][UNOFFICIAL][LineageOS 19.1][MicroG] - OnePlus 7 Pro Questions & Answers

Hello Forum,
Yesterday I was building lineage-18.1-20220427-UNOFFICIAL-guacamole.zip for my OP7Pro and I usually include the 19.1 branch as well, to have an idea that there is something ready to build; usually, it would complain and drop out when it gets to that point, however yesterday it built lineage-19.1-20220427-UNOFFICIAL-guacamole.zip.
I have seen a Lineage 19.1 build under the development forum and the LineageOS Github defaults to 19.1 when I checked. I build my images from the lineageos4microg/docker-lineage-cicd and it includes the kernel and whatnot.
Would the lineage-19.1-20220427-UNOFFICIAL-guacamole.zip actually work or would it break something?

So I went ahead and flashed lineage-19.1-20220427-UNOFFICIAL-guacamole.zip over lineage-18.1-20220427-UNOFFICIAL-guacamole.zip.
I flashed the recovery first lineage-19.1-20220427-UNOFFICIAL-guacamole-recovery.img
So fastboot flash boot lineage-19.1-20220427-UNOFFICIAL-guacamole-recovery.img
Then I powered off and went back into the recovery with VOL_Down + PWR.
Ran adb sideload copy-partitions-20210323_1922.zip (I didn't think I had to since I updated the base to 11.0.7.1 GM21AA for both A/B but did anyway so that the recovery would at least apply to both sides)
Advanced - Reboot to recovery.
Ran adb sideload lineage-19.1-20220427-UNOFFICIAL-guacamole.zip
Reboot system now.
And it worked; a dirty flash from 18.1 to 19.1, built on the same day.
I went back into the recovery and installed Magisk-v24-1.zip, rebooted and no complaints.
MicroG still has all ticks applied and no crashing of apps as far as I can see.

Related

OP6 won't get past bootloader after upgrading from 16 to 17.1

I decided it was finally time to upgrade to the newer LineageOS 17.1 branch nightlies from my previous installation of 16, rebooted to recovery and sideloaded lineage-17.1-20201013-nightly-enchilada-signed.zip onto it from https://download.lineageos.org/enchilada .
After doing so it appears the recovery successfully updated, it has a new purple skin it didn't have before, however the actual ROM won't start. Instead it goes to fastboot mode and asks whether I want to Start/Restart/Recovery/etc, but I can only get into fastboot or recovery mode.
I've tried flashing older nightlies, but even with 20200922 the issue was still there. I did notice there was a ton of updates in that specific release so I wonder if anything is broken in there.. unfortunately that's also the oldest available nightly so without compiling my own there's no way I can test whether older ones are functional, unless someone here has an older version available perhaps.
I did notice doing adb sideload only makes it go to 47% before the phone goes to installing it, however maybe that's normal, I haven't used it in a while so I don't know for sure. I tried using ADB to push an image onto /tmp, however the new recovery only seems to have 'Apply from ADB' as option so I can't actually install it from there.
Does anyone have any ideas I could try, or perhaps an older LineageOS nightly from before 09-22 laying around somewhere? Any help or suggestions much appreciated!
PPS: Of course I forgot to mention but I also did a factory reset, but that did not help. unsure what else to try besides compiling a rom myself or trying other roms from the forums here, though I'd very much prefer having LineageOS..
I found the reason. I had to install the official Oneplus 6 ROM first, probably to get the right vendor binaries/kernel modules/drivers.
This is what I did:
- fastboot boot TWRP ( TWRP can be found here https://twrp.me/oneplus/oneplus6.html )
- wipe -> advanced wipe -> all the things (technically optional but if you want to get rid of GApps etc this is needed)
- adb sideload official OnePlus 6 'Oxygen' ROM ( https://www.oneplus.com/global/support/softwareupgrade/details?code=PM1574156173727 )
- reboot, fastboot boot TWRP
- run the 'copy partitions' zip from https://androidfilehost.com/?fid=8889791610682929240 to copy Oxygen to the other A/B partition
- Install latest build from https://download.lineageos.org/enchilada
- reboot, optionally boot TWRP again and install GApps, also optionally install TWRP, reboot, enjoy.
PS: Please note that after this you shouldn't switch A/B partition without first flashing another nightly or something over it, i.e fastboot boot twrp and install latest lineageos again, otherwise you'll end up booting the vanilla Oxygen rom

OnePlus 6 - LineageOS install trouble

SOLVED: The solution was simply to use LineageOS recovery instead of TWRP.
Followed the install directions on the lineageOS website as I had beforehand, except I didn't substitute LineageOS Recovery for TWRP this time.
---------------------------------------------------------------------------------------------------------
Hello everyone. New member, first-time poster, long-time lurker.
I've been trying to install LineageOS 17.1 onto my (new-to-me) OnePlus 6 (A6003) but for some reason, once I finish the install process, the phone will not boot system but instead falls back to recovery mode.
*Edit:
Files used-
OOS 10.3.12 (OnePlus6Oxygen_22.J.55_OTA_055_all_2107132218_71d1c06b31fc)
LineageOS 17.1 (lineage-17.1-20210420-nightly-enchilada-signed)
TWRP (twrp-3.5.2_9-0-enchilada)
*
Here's what I've done:
- Unlocked the bootloader and enabled USB debugging
- ran adb reboot bootloader, then flashed TWRP.img and sideloaded the TWRP.zip and rebooted to recovery to make sure TWRP was installed (idk why)
**I was under the impression I needed to flash OOS.zip to both slots (along with TWRP) before I tried to sideload LineageOS, so I attempted that but OOS wouldnt sideload, so i thought my sideload was messed up. I later realized OOS.zip was too big to be sideloaded (tried to make adb.exe large address aware to no avail)**
- I then pushed OOS and TWRP zips to /sdcard/ on the device
- Clicked install, navigated to OOS.zip, installed, hit the back arrow, installed TWRP, rebooted to recovery to change slots
- Clicked install, navigated to OOS.zip, installed, hit the back arrow, installed TWRP, rebooted to system to check things out. Both slots are now 10.3.12
- booted back into twrp
- Clicked install, navigated to LineageOS 17.1, installed, hit the back arrow, installed TWRP, rebooted to recovery to change to slot B.
- For some reason, slots didnt change, so I manually changed to slot B.
- Clicked install, files now looked different in slot B (encrypted I guess?) and the files I had placed on the phone were gone.
- Instead of installing the same way, I ADB sideloaded LineageOS, hit the back arrow, then sideloaded twrp.
- Attempted to boot system, phone tries to boot into system, but instead boots into recovery mode.
Swapped slots, same problem.
I'm not sure what I'm doing wrong, but if someone could give me some guidance, it would be much appreciated.
Thank you!
TreasureSeeker said:
Hello everyone. New member, first-time poster, long-time lurker.
I've been trying to install LineageOS 17.1 onto my (new-to-me) OnePlus 6 (A6003) but for some reason, once I finish the install process, the phone will not boot system but instead falls back to recovery mode.
Here's what I've done:
- Unlocked the bootloader and enabled USB debugging
- ran adb reboot bootloader, then flashed TWRP.img and sideloaded the TWRP.zip and rebooted to recovery to make sure TWRP was installed (idk why)
**I was under the impression I needed to flash OOS.zip to both slots (along with TWRP) before I tried to sideload LineageOS, so I attempted that but OOS wouldnt sideload, so i thought my sideload was messed up. I later realized OOS.zip was too big to be sideloaded (tried to make adb.exe large address aware to no avail)**
- I then pushed OOS and TWRP zips to /sdcard/ on the device
- Clicked install, navigated to OOS.zip, installed, hit the back arrow, installed TWRP, rebooted to recovery to change slots
- Clicked install, navigated to OOS.zip, installed, hit the back arrow, installed TWRP, rebooted to system to check things out. Both slots are now 10.3.12
- booted back into twrp
- Clicked install, navigated to LineageOS 17.1, installed, hit the back arrow, installed TWRP, rebooted to recovery to change to slot B.
- For some reason, slots didnt change, so I manually changed to slot B.
- Clicked install, files now looked different in slot B (encrypted I guess?) and the files I had placed on the phone were gone.
- Instead of installing the same way, I ADB sideloaded LineageOS, hit the back arrow, then sideloaded twrp.
- Attempted to boot system, phone tries to boot into system, but instead boots into recovery mode.
Swapped slots, same problem.
I'm not sure what I'm doing wrong, but if someone could give me some guidance, it would be much appreciated.
Thank you!
Click to expand...
Click to collapse
Hello!
LineageOS 18.1 is the latest stable official version. If that suits you, you should repost in the dedicated thread for help
duttyend said:
Hello!
LineageOS 18.1 is the latest stable official version. If that suits you, you should repost in the dedicated thread for help
Click to expand...
Click to collapse
Hey, thanks for replying! I opted for LOS17.1 because I didn't want to upgrade to android 11 but at this point I am willing to do whatever to get this phone running Lineage so I will move this post there like just suggested if I don't receive help here
That sideloading and slot copying stuff sounds intense. Can you try getting it back to the state where you have TWRP installed (the way you did that sounds right, you need to either "install" the zip or flash the img through the advanced menu for it to stick) and 10.3.12 applied to each slot (you can do this in TWRP by dragging the.zips from your computer to phone internal storage, no terminal needed)?
After that it's simply a matter of dragging the ROM zip to internal storage and installing it from TWRP if I'm not mistaken. The LineageOS guide looks weirdly complicated – though you might as well be safe and follow the slot copying steps before flashing the ROM as well. Though for convenience I'd still do it by dragging it from the computer not by adb.
(BTW disclaimer I haven't messed with roms a lot on OP6. If you need LineageOS specific advice best place would prolly be where other poster suggested.)

Can't boot to recovery, want custom ROM

Hi everyone,
Currently I can only boot to fastboot mode - i.e. not recovery or the system. I don't want to go back to OOS. When I try to flash or boot to recovery, nothing happens and the boot does not work. I'm not sure where to go to from here - do I need to flash stock ROM? I don't even know what version of Android the phone was on...
Edit: Partly fixed, as per below.
I ended up flashing the stock ROM using the MSMDownloadTool:
How To Unbrick OnePlus 6/6T
Download %
networktips.in
At some point I'm going to try using Magisk to flash LineageOS.
OK, got onto LineageOS using this:
Install LineageOS on enchilada | LineageOS Wiki
wiki.lineageos.org
I used this the first time around, so I'm not sure what went wrong. I suspect it was either the fact that it was on Android 11 or that I might have somehow messed up flashing the recovery file.
Anyone doing the sideload with ADB should be aware that it reports a 47% completion rate with success. The flashing has still completed successfully, read the last comment here:
https://www.reddit.com/r/LineageOS/comments/af12lu

TWRP boot timeout, ROM LineageOS

Hello, I'm not usually a poster to any forum as my questions can be found with enough digging but I can't find my answer, so here goes.
BACKGROUND:
Stock: Motorola 5G Ace (kiev). Android 10. I think it was Snapdragon 690.
Unlocked bootloader
Installed to TWRP 3.5.2 for the 5g ace to both partions _a, _b
Used TWRP to flash lineage-18.1-20210701-UNOFFICIAL-kiev
All commands sent through BASH
DISCUSSION:
Tried to install Gapps after LineageOS, recieved errors that said something like no room or storage and went through each line with a fail. Verified cache was wiped, tried again. Failed again then moved to reboot with just OS.
Lineage OS installed with success.
Boot back to recovery, TWRP is gone and now it's LineageOS recovery. Could not figure out how to flash Gapps to with LineageOS, but learned that if reducing Gapps size it should work in TWRP, so re flashed TWRP, no problems.
PROBLEM:
TWRP will not load. At load screen it shows the TEAMWIN logo and lasts for a min or so then times out, reboots and loads OS.
Will adb to bootloader.
Will adb to fastboot, BUT enters TWRP, no screen touch will accept commands then lock screen initates at about 30-60s and hard reset to get out.
Can fastboot to recovery. but enters orginal TWRP boot time out.
-----------------------------------
REQUEST:
Please assist in troubleshooting why recovery will not boot so I can get Gapps flashed.
-----------------------------------
ADDITIONAL NOTES:
If plugged into charger/power it wont stay turned off and boots. Will only turn off from LineageOS.
Can not boot into fastbootd but I'm guessing that was something related to the original recovery that I wiped.
Comments:
Would this have something to do with LineageOS at Android 11 and my original TWRP was set for android 10?
All I was trying to do was get Gapps to load, super bummed that I was so close. At least my phone is still a phone.
Your TWRP is old. You can flash gapps from the linage recovery. If it was me, I would reflash the ROM and use the lineage recovery to flash the gapps. Once you know that the system is working, worry about the TWRP. The best place to look is the Telegram channel.
Your TWRP is old.
That's what I figured, what version would be better? Reading the TWRP pages make me believe I can't just pick anything that has a newer release date.
You can flash gapps from the linage recovery.
Lineage recovery appears gone. Do you know how to get it back, or if i'm wrong and then how do I get back into it?
If it was me, I would reflash the ROM and use the lineage recovery to flash the gapps.
Once you know that the system is working, worry about the TWRP. The best place to look is the Telegram channel.
I agree this would be a good path, but I have no access to any recovery SW. From what I understand I can't do this from inside the LineageOS either. Silver lining; Lineage is working fine.
Are you rooted with Magisk?
I am using TWRP 3.6.0_11.0 RC1.4. There is an installer that you can use Magisk to flash. It downloaded it from the Telegram channel. There is also a .img file in the Telegram channel.
https://t.me/MotoG5GOfficial is the correct channel.
That was it. Old TWRP. Thank you very much.
You are welcome.

Flashing LineageOS 18.1 after using LOS 19.1 results in fastboot loop

Hello there,
I have some sort of a problem (although my phone is still working.. yet)
I recently flashed my OnePlus 6 with LineageOS 19.1 (coming from OxygenOS 11.1.2.2).
I flashed "copy_partitions.zip" first and then the official LineageOS 19.1 ROM without GApps,
but because I wanted to use some features, which needed at least the presence of Google Services, I flashed the "LineageOS for microG" (19.1) ROM.
Which worked like a charm.. besides I was very unhappy because of the lack of customization regarding color-theming and the changes made to the QuickSettings of Android 12 in general..
So I thought I could clean flash LineageOS 18.1 / ("Lineage for microG") to get the old theming back..
So what I did was installing the official custom LineageOS recovery from 18.1 (because microG had none for 18.1),
hit "Factory Reset" and afterwards applied the Lineage 18.1 zip over adb.
A message "Update package is older than the current build, expected a build newer than timestamp [...] but package has timestamp [...] and downgrade not allowed" along with the Question to install anyway appeared right after sideloading it to the phone.
I decided to hit "Yes" because I don't needed to backup any data from the phone and wanted to wipe clean anyways... (which I thought I did with "Factory Reset)
So I installed and afterwards rebooted to recovery to flash Magisk aswell..
After rebooting to system then, the phone entered the fastboot loop.
No matter what I do, it still doesn't boot to system after installing 18.1 from LineageOS recovery (also tried with the newest microG recovery from 19.1).
I also known you would wipe system, cache and data (and maybe vendor aswell) prior to a clean custom ROM flash (via TWRP)..
So flashed TWRP 3.6.2 (latest) for enchilada and tried to wipe my system, vendor and cache, but didn't manage to find "system" or "cache" on the advanced wipe menu, so I formatted and wiped data and wiped vendor.
Then installed LOS 18.1 via TWRP also..
But same problem - fastboot only.
also after my TWRP journey, sometimes when flashing the LOS recovery and booting it, a message appears on screen:
Failed to bind mount /mnt/staging/emulated/media/0 [...]
The thing is, I can install LOS 19.1 (microG) without any problems and it would boot,
but I just want to downgrade and I found no guide for my device (or any with ramdisk and A/B slots)..
And there is also no link to MSMDownloadTools for Android 10 (because onepluscommunityserver.com is offline)..
The links from this post and some other posts I found aren't working anymore..
- Is there a way to go back to LineageOS 18.1? What would be the intended way (not doing a downgrade but flashing clean)?
- Is my phone softbricked somehow? (partitions broken or corrupt?)
- Is it a firmware problem?
(I am on security patch from November 2021)
But I don't know what exactly happened to my firmware when flashing Lineage 19.1 over OOS 11.1.2.2
This is my first post as it is my first Android phone/flashing experience in general.. so I hope I got everything right from all I found out until now..
I really appreciate any help / even if it is just saying I messed up and need to go EDL mode... (if it truly is the case)
Thanks in advance.
You people are great!
o/

Categories

Resources