-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install on Sony Xperia XZ2 Compact running LineageOS 21 fails #569
Comments
Thanks for all the info! Can you try flashing it again and then while you're still in recovery mode, grab the log file with I downloaded the OS (
It is an ext2/3/4 filesystem, not erofs:
and it does not use the
The good news is that the system partition is not read-only. The issue is likely something else, which the log file should hopefully help identify. |
Hi, I'm having problems pulling the log:
(Device ID masked with XXXXXXXXXX.) I'm not too familiar with Android debugging, adb, and LineageOS. I've tried a few steps to get past the "unauthorized" thing, but failed. I've deleted the (I tried replying via mail first but couldn't get the formatting correct so I deleted that comment and wrote this through github's web interface instead.) |
Hmm, looking at some discussions about LineageOS, it seems like LineageOS's recovery mode has an |
Thanks, there was an option under Advanced to enable ADB (weird, as I'm using to adb to sideload, but oh well...). After that I managed to pull the log. Attaching it to this message (device ID replaced with XXXXXXXXXX): recovery.log.20240727.txt It seems this is the error which makes the install fail:
Strange, since (as far as I understand the earlier log lines) |
There are devices using static partitions, only have a single slot, but still have an A/B slot suffix. Fortunately, `ro.boot.slot_suffix` is set appropriately on these devices, so we can just always append that to the name. Fixes: #569 Signed-off-by: Andrew Gunnerson <[email protected]>
Thanks for the log. So this is a unique setup I haven't seen before. On devices with A/B partitions, the system block device is On your device though, it looks like it uses the A/B naming style, but still lives in I think #570 should make this setup work. Can you give it a try? Test build: BCR-1.66.r7.ga19a8d2-release.zip
Ahh, yeah, sideload is a special mode. It actually shuts down the normal |
Thanks, that worked, I could install that version of BCR. I'm roughly 99.7% sure I've seen slot b mentioned during some step when installing LineageOS (seen it on the phone, not in instructions). But perhaps it's still a single slot phone, and it was just a quirk in the installation. Shouldn't the XZ2 Compact be recent enough to use a/b partitions? One last(?) thing: I can't get the
|
Great!
I'm an idiot. It didn't occur to me that there could be just 2 static system partitions. Yeah, I bet both For |
There are devices using A/B with static partitions. Since the `ro.boot.slot_suffix` property is unset on non-A/B devices, we can just always append it to the block device name. Fixes: #569 Signed-off-by: Andrew Gunnerson <[email protected]>
Booting into Android fixed the Thanks a lot for all help. Time to play around with the new functionality... |
…ndroid Issue: #569 Signed-off-by: Andrew Gunnerson <[email protected]>
I've got a fresh install of LineageOS 21 (21-20240712-NIGHTLY-xz2c) on a Sony Xperia XZ2 Compact, and I'm unable to install BCR on it.
I've tried installing 1.66, 1.65, 1.64, 1.63, 1.58, and 1.57. They all fail in the exact same way.
I'm trying to follow the instructions "For unrooted custom firmware".
I reboot the phone with the power and volume down buttons pressed. It boots into recovery. When I connect the USB cable, and run
adb devices
, the phone is listed but its status isunauthorized
. I selectApply update
and thenApply from ADB
on the phone, and the screen tells me toNow send the package you want to apply to the device with "adb sideload <filename"...
. Runningadb devices
from my Linux terminal window now says the phone has statussideload
.Next I run
adb -d sideload BCR-1.66-release.zip
. The output in the Linux terminal stops at 1%, and on the phone screen I have an error message sayingSignature verification failed Install anyway?
. I selectYes
but the install fails with another error:ERROR: recovery: Error in /sideload/package.zip (status 1)
. Meanwhile, the adb command in the terminal window goes up to 4% and then aborts and saysTotal xfer: 0.09x
.This is the full output on the phone, [with my comments in square brackets]:
Any hints on how to troubleshoot this? Does LineageOS 21 use erofs for the system partiotion (how do I check this?)? Is there a recommended way to install BCR on Lineageos (21)? I really need automatic call recording which is why I've installed LineageOS, and from what I've read it seems BCR is the best solution.
The text was updated successfully, but these errors were encountered: