Hi guys,
I have a OnePlus 9 5G that was running LineageOS 19. Due to some water damage on the screen, the phone was not used for 6 months. When finally getting the replacement screen I found out that I forgot the pattern (5 x 5 grid). I'm apparently no longer logged into the device via Google, so I can't unlock from there, though it does show up on the activity history.
I tried following a couple of guides online but it seems my device is encrypted and the files are not accessible (like over-writing LineageOS Recovery with TWPR)
I do have adb access and fastboot, USD-Debugging and can still enter fastboot. But I "bricked" the phone (trying to install TWPR and other things to try to get into su mode or find some other way of extracting the media on the device) to the point where I can now only access fastboot reliably and not boot normally anymore.
In fastboot I get
Code:
Product Name - lahaina
Secure Boot - yes
Device State - unlocked
Can anyone tell me:
1. How can I fix the boot partion to boot into the OS again (and keep trying my lock pattern until I find it)
2. Fix the TWPR (is that possible?) and see if I can access the photos that way
3. Best of all: Remove the lock pattern with su via adb?!
Let me know if I missed any information that's critical to help
RobSteward said:
Hi guys,
I have a OnePlus 9 5G that was running LineageOS 19. Due to some water damage on the screen, the phone was not used for 6 months. When finally getting the replacement screen I found out that I forgot the pattern (5 x 5 grid). I'm apparently no longer logged into the device via Google, so I can't unlock from there, though it does show up on the activity history.
I tried following a couple of guides online but it seems my device is encrypted and the files are not accessible (like over-writing LineageOS Recovery with TWPR)
I do have adb access and fastboot, USD-Debugging and can still enter fastboot. But I "bricked" the phone (trying to install TWPR and other things to try to get into su mode or find some other way of extracting the media on the device) to the point where I can now only access fastboot reliably and not boot normally anymore.
In fastboot I get
Code:
Product Name - lahaina
Secure Boot - yes
Device State - unlocked
Can anyone tell me:
1. How can I fix the boot partion to boot into the OS again (and keep trying my lock pattern until I find it)
2. Fix the TWPR (is that possible?) and see if I can access the photos that way
3. Best of all: Remove the lock pattern with su via adb?!
Let me know if I missed any information that's critical to help
Click to expand...
Click to collapse
I followed the MSM tool guide pinned at the top of the op9 thread. Works great, But it means you lose everything .. hope you find a fix. But last resort is always MSM tool.
Vmo x said:
I followed the MSM tool guide pinned at the top of the op9 thread. Works great, But it means you lose everything .. hope you find a fix. But last resort is always MSM tool.
Click to expand...
Click to collapse
Thanks for chipping in @Vmo x, but that's against the point of my post I know how to hard reset the device, if I'm okay losing the data. I was wondering if, given that I have all the other access (Fastboot, fastootd, adb and root), I would be able to find a way to break the pattern lock
No actually. There's no way you can bypass the pattern lock/PIN/password without having to reset the data (userdata) if you have forgotten pattern/PIN/password. It is encrypted, and no TWRP (or anything) can help you decrypt it if you don't know the password. That's the reason phones data partition is encrypted in the first place. You can however format the data partition from TWRP and get your system back up like factory reset; but given your current situation, I don't know if that would even be possible now. Looks to me you would need to go the MSM route.
Have you tried flashing LOS back on to your phone? I have not dived into Custom ROMs yet on the OP 9 but with previous phones I have, I could flash the Custom ROM back on to restore all of the imgs allowing it to boot.
I am just throwing ideas without really knowing if it would help.
Z-Blade said:
Have you tried flashing LOS back on to your phone? I have not dived into Custom ROMs yet on the OP 9 but with previous phones I have, I could flash the Custom ROM back on to restore all of the imgs allowing it to boot.
I am just throwing ideas without really knowing if it would help.
Click to expand...
Click to collapse
I have managed to overwrite this and get the LineageOS recovery and most recent LineageOS working again. I had to basically "update" the phone. I can input patterns but it locks for 1 minute after every attempt.
Are there any people/services I can contact that can brute force this? Even just getting a copy of the encrypted storage would work for me, then I can run this brute force for some years somewhere and hope I find it. Just goes a bit beyond what I'm able to do with my limited knowledge.
So you have flashed LineageOS without wiping data? And now it boots up successfully to the lockscreen? I don't think that can work.
Well,
I followed the LineageOS install instructions to the letter. See below for proof. I'm obviously not sure if it completely reset and added a random pattern . But if it would have reset the phone I would have expected a set up wizard instead of a lock screen. Additionally, the phone does accept my fingerprint (which would also have been wiped). The problem is just that the lock screen triggers on reboot.
I'm guessing the fixing update worked because I already had a working LineageOS installed without breaking changes (I think the original install was 19.X). Fixing recovery seems to be something that's independent from the OS, so that should not be a surprise to be fixed.
Here's the full sequence that worked:
Code:
PS C:\Users\XXX\downloads\mobilerecovery\20230312\oneplus9> ls
Directory: C:\Users\XXX\downloads\mobilerecovery\20230312\oneplus9
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2/4/2023 4:47 AM 201326592 boot-oos12-firmware.img
-a---- 3/12/2023 7:06 PM 1395646798 lineage-20.0-20230312-nightly-lemonade-signed.zip
-a---- 3/12/2023 7:02 PM 25165824 lineage-20.0-20230312-nightly-lemonade-signed_dtbo.img
-a---- 3/12/2023 7:02 PM 201326592 lineage-20.0-20230312-nightly-lemonade-signed_vendor_boot.img
-a---- 3/12/2023 6:43 PM 201326592 magisk_patched-lineage-20.0-20230312-nightly-lemonade-signed_boot.img
-a---- 2/4/2023 4:50 AM 37719266 ramdisk-recovery.img
-a---- 2/4/2023 4:52 AM 33714989 twrp-installer-3.7.0-12.1-4-lemonadep.zip
PS C:\Users\XXX\downloads\mobilerecovery\20230312\oneplus9> fastboot oem unlock
FAILED (remote: ' Device already : unlocked!')
fastboot: error: Command failed
PS C:\Users\XXX\downloads\mobilerecovery\20230312\oneplus9> fastboot flash dtbo lineage-20.0-20230312-nightly-lemonade-signed_dtbo.img
Sending 'dtbo' (24576 KB) OKAY [ 0.617s]
Writing 'dtbo' OKAY [ 0.066s]
Finished. Total time: 0.713s
PS C:\Users\XXX\downloads\mobilerecovery\20230312\oneplus9> fastboot flash vendor_boot lineage-20.0-20230312-nightly-lemonade-signed_vendor_boot.img
Sending 'vendor_boot' (196608 KB) OKAY [ 4.911s]
Writing 'vendor_boot' OKAY [ 0.594s]
Finished. Total time: 5.540s
PS C:\Users\XXX\downloads\mobilerecovery\20230312\oneplus9> fastboot getvar all
(bootloader) parallel-download-flash:yes
(bootloader) hw-revision:20001
(bootloader) unlocked:yes
(bootloader) off-mode-charge:1
(bootloader) charger-screen-enabled:1
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:8806
(bootloader) version-baseband:
(bootloader) version-bootloader:
(bootloader) erase-block-size: 0x1000
(bootloader) logical-block-size: 0x1000
(bootloader) variant:SM_ UFS
(bootloader) partition-type:oplusreserve1:raw
(bootloader) partition-size:oplusreserve1: 0x800000
(bootloader) partition-type:fsc:raw
(bootloader) partition-size:fsc: 0x20000
(bootloader) partition-type:fsg:raw
(bootloader) partition-size:fsg: 0x300000
(bootloader) partition-type:modemst2:raw
(bootloader) partition-size:modemst2: 0x300000
(bootloader) partition-type:modemst1:raw
(bootloader) partition-size:modemst1: 0x300000
(bootloader) partition-type:ALIGN_TO_128K_2:raw
(bootloader) partition-size:ALIGN_TO_128K_2: 0x1A000
(bootloader) partition-type:hyp_log:raw
(bootloader) partition-size:hyp_log: 0xFD0000
(bootloader) partition-type:qsee_log:raw
(bootloader) partition-size:qsee_log: 0xFD0000
(bootloader) partition-type:android_log:raw
(bootloader) partition-size:android_log: 0xFD0000
(bootloader) partition-type:kernel_log:raw
(bootloader) partition-size:kernel_log: 0xFD0000
(bootloader) partition-type:abl_log:raw
(bootloader) partition-size:abl_log: 0xFD0000
(bootloader) partition-type:apdp_full:raw
(bootloader) partition-size:apdp_full: 0x40000
(bootloader) partition-type:rtice:raw
(bootloader) partition-size:rtice: 0x80000
(bootloader) partition-type:spunvm:raw
(bootloader) partition-size:spunvm: 0x2000000
(bootloader) partition-type:tzsc:raw
(bootloader) partition-size:tzsc: 0x20000
(bootloader) partition-type:connsec:raw
(bootloader) partition-size:connsec: 0x20000
(bootloader) partition-type:mdcompress:raw
(bootloader) partition-size:mdcompress: 0x1400000
(bootloader) partition-type:vm-data:raw
(bootloader) partition-size:vm-data: 0x20A4000
(bootloader) partition-type:secdata:raw
(bootloader) partition-size:secdata: 0x7000
(bootloader) partition-type:uefivarstore:raw
(bootloader) partition-size:uefivarstore: 0x80000
(bootloader) partition-type:storsec:raw
(bootloader) partition-size:storsec: 0x20000
(bootloader) partition-type:modemdump:raw
(bootloader) partition-size:modemdump: 0x12C00000
(bootloader) partition-type:logdump:raw
(bootloader) partition-size:logdump: 0x4000000
(bootloader) partition-type:logfs:raw
(bootloader) partition-size:logfs: 0x800000
(bootloader) partition-type:limits-cdsp:raw
(bootloader) partition-size:limits-cdsp: 0x1000
(bootloader) partition-type:limits:raw
(bootloader) partition-size:limits: 0x1000
(bootloader) partition-type:apdp:raw
(bootloader) partition-size:apdp: 0x40000
(bootloader) partition-type:dip:raw
(bootloader) partition-size:dip: 0x100000
(bootloader) partition-type:devinfo:raw
(bootloader) partition-size:devinfo: 0x1000
(bootloader) partition-type:oplus_sec_b:raw
(bootloader) partition-size:oplus_sec_b: 0xA00000
(bootloader) partition-type:splash_b:raw
(bootloader) partition-size:splash_b: 0x20A4000
(bootloader) partition-type:qweslicstore_b:raw
(bootloader) partition-size:qweslicstore_b: 0x40000
(bootloader) partition-type:vendor_boot_b:raw
(bootloader) partition-size:vendor_boot_b: 0xC000000
(bootloader) partition-type:featenabler_b:raw
(bootloader) partition-size:featenabler_b: 0x20000
(bootloader) partition-type:cpucp_b:raw
(bootloader) partition-size:cpucp_b: 0x100000
(bootloader) partition-type:multiimgoem_b:raw
(bootloader) partition-size:multiimgoem_b: 0x8000
(bootloader) partition-type:vm-bootsys_b:raw
(bootloader) partition-size:vm-bootsys_b: 0x10625000
(bootloader) partition-type:shrm_b:raw
(bootloader) partition-size:shrm_b: 0x20000
(bootloader) partition-type:imagefv_b:raw
(bootloader) partition-size:imagefv_b: 0x200000
(bootloader) partition-type:uefisecapp_b:raw
(bootloader) partition-size:uefisecapp_b: 0x200000
(bootloader) partition-type:dtbo_b:raw
(bootloader) partition-size:dtbo_b: 0x1800000
(bootloader) partition-type:vbmeta_b:raw
(bootloader) partition-size:vbmeta_b: 0x10000
(bootloader) partition-type:qupfw_b:raw
(bootloader) partition-size:qupfw_b: 0x14000
(bootloader) partition-type:devcfg_b:raw
(bootloader) partition-size:devcfg_b: 0x20000
(bootloader) partition-type:boot_b:raw
(bootloader) partition-size:boot_b: 0xC000000
(bootloader) partition-type:keymaster_b:raw
(bootloader) partition-size:keymaster_b: 0x80000
(bootloader) partition-type:dsp_b:raw
(bootloader) partition-size:dsp_b: 0x4000000
(bootloader) partition-type:abl_b:raw
(bootloader) partition-size:abl_b: 0x800000
(bootloader) partition-type:mdtp_b:raw
(bootloader) partition-size:mdtp_b: 0x2000000
(bootloader) partition-type:mdtpsecapp_b:raw
(bootloader) partition-size:mdtpsecapp_b: 0x400000
(bootloader) partition-type:bluetooth_b:raw
(bootloader) partition-size:bluetooth_b: 0x200000
(bootloader) partition-type:modem_b:raw
(bootloader) partition-size:modem_b: 0x14A00000
(bootloader) partition-type:hyp_b:raw
(bootloader) partition-size:hyp_b: 0x800000
(bootloader) partition-type:tz_b:raw
(bootloader) partition-size:tz_b: 0x400000
(bootloader) partition-type:aop_b:raw
(bootloader) partition-size:aop_b: 0x80000
(bootloader) partition-type:oplus_sec_a:raw
(bootloader) partition-size:oplus_sec_a: 0xA00000
(bootloader) partition-type:splash_a:raw
(bootloader) partition-size:splash_a: 0x20A4000
(bootloader) partition-type:qweslicstore_a:raw
(bootloader) partition-size:qweslicstore_a: 0x40000
(bootloader) partition-type:qmcs:raw
(bootloader) partition-size:qmcs: 0x1E00000
(bootloader) partition-type:vendor_boot_a:raw
(bootloader) partition-size:vendor_boot_a: 0xC000000
(bootloader) partition-type:featenabler_a:raw
(bootloader) partition-size:featenabler_a: 0x20000
(bootloader) partition-type:cpucp_a:raw
(bootloader) partition-size:cpucp_a: 0x100000
(bootloader) partition-type:multiimgoem_a:raw
(bootloader) partition-size:multiimgoem_a: 0x8000
(bootloader) partition-type:vm-bootsys_a:raw
(bootloader) partition-size:vm-bootsys_a: 0x10625000
(bootloader) partition-type:shrm_a:raw
(bootloader) partition-size:shrm_a: 0x20000
(bootloader) partition-type:imagefv_a:raw
(bootloader) partition-size:imagefv_a: 0x200000
(bootloader) partition-type:uefisecapp_a:raw
(bootloader) partition-size:uefisecapp_a: 0x200000
(bootloader) partition-type:dtbo_a:raw
(bootloader) partition-size:dtbo_a: 0x1800000
(bootloader) partition-type:vbmeta_a:raw
(bootloader) partition-size:vbmeta_a: 0x10000
(bootloader) partition-type:qupfw_a:raw
(bootloader) partition-size:qupfw_a: 0x14000
(bootloader) partition-type:devcfg_a:raw
(bootloader) partition-size:devcfg_a: 0x20000
(bootloader) partition-type:boot_a:raw
(bootloader) partition-size:boot_a: 0xC000000
(bootloader) partition-type:keymaster_a:raw
(bootloader) partition-size:keymaster_a: 0x80000
(bootloader) partition-type:dsp_a:raw
(bootloader) partition-size:dsp_a: 0x4000000
(bootloader) partition-type:abl_a:raw
(bootloader) partition-size:abl_a: 0x800000
(bootloader) partition-type:mdtp_a:raw
(bootloader) partition-size:mdtp_a: 0x2000000
(bootloader) partition-type:mdtpsecapp_a:raw
(bootloader) partition-size:mdtpsecapp_a: 0x400000
(bootloader) partition-type:bluetooth_a:raw
(bootloader) partition-size:bluetooth_a: 0x200000
(bootloader) partition-type:modem_a:raw
(bootloader) partition-size:modem_a: 0x14A00000
(bootloader) partition-type:hyp_a:raw
(bootloader) partition-size:hyp_a: 0x800000
(bootloader) partition-type:tz_a:raw
(bootloader) partition-size:tz_a: 0x400000
(bootloader) partition-type:aop_a:raw
(bootloader) partition-size:aop_a: 0x80000
(bootloader) partition-type:DRIVER:raw
(bootloader) partition-size:DRIVER: 0x2000000
(bootloader) partition-type:oplusreserve5:raw
(bootloader) partition-size:oplusreserve5: 0x4000000
(bootloader) partition-type:oplusreserve4:raw
(bootloader) partition-size:oplusreserve4: 0x2000000
(bootloader) partition-type:oplusreserve3:raw
(bootloader) partition-size:oplusreserve3: 0x4000000
(bootloader) partition-type:oplusreserve2:raw
(bootloader) partition-size:oplusreserve2: 0x10000000
(bootloader) partition-type:engineering_cdt_b:raw
(bootloader) partition-size:engineering_cdt_b: 0x100000
(bootloader) partition-type:dinfo:raw
(bootloader) partition-size:dinfo: 0x4000
(bootloader) partition-type:ocdt:raw
(bootloader) partition-size:ocdt: 0x20000
(bootloader) partition-type:engineering_cdt_a:raw
(bootloader) partition-size:engineering_cdt_a: 0x100000
(bootloader) partition-type:ddr:raw
(bootloader) partition-size:ddr: 0x100000
(bootloader) partition-type:cdt:raw
(bootloader) partition-size:cdt: 0x20000
(bootloader) partition-type:ALIGN_TO_128K_1:raw
(bootloader) partition-size:ALIGN_TO_128K_1: 0x1A000
(bootloader) partition-type:xbl_config_b:raw
(bootloader) partition-size:xbl_config_b: 0x80000
(bootloader) partition-type:xbl_b:raw
(bootloader) partition-size:xbl_b: 0x600000
(bootloader) partition-type:xbl_config_a:raw
(bootloader) partition-size:xbl_config_a: 0x80000
(bootloader) partition-type:xbl_a:raw
(bootloader) partition-size:xbl_a: 0x600000
(bootloader) partition-type:userdata:f2fs
(bootloader) partition-size:userdata: 0x1986FB3000
(bootloader) partition-type:super:raw
(bootloader) partition-size:super: 0x29B000000
(bootloader) partition-type:rawdump:raw
(bootloader) partition-size:rawdump: 0x8000000
(bootloader) partition-type:metadata:ext4
(bootloader) partition-size:metadata: 0x1000000
(bootloader) partition-type:vbmeta_vendor_b:raw
(bootloader) partition-size:vbmeta_vendor_b: 0x10000
(bootloader) partition-type:vbmeta_vendor_a:raw
(bootloader) partition-size:vbmeta_vendor_a: 0x10000
(bootloader) partition-type:vbmeta_system_b:raw
(bootloader) partition-size:vbmeta_system_b: 0x10000
(bootloader) partition-type:vbmeta_system_a:raw
(bootloader) partition-size:vbmeta_system_a: 0x10000
(bootloader) partition-type:persist_bkp:raw
(bootloader) partition-size:persist_bkp: 0x2000000
(bootloader) partition-type:opluslog:raw
(bootloader) partition-size:opluslog: 0x10000000
(bootloader) partition-type:carrier:raw
(bootloader) partition-size:carrier: 0x4000000
(bootloader) partition-type:oplusstanvbk_b:raw
(bootloader) partition-size:oplusstanvbk_b: 0xA00000
(bootloader) partition-type:oplusstanvbk_a:raw
(bootloader) partition-size:oplusstanvbk_a: 0xA00000
(bootloader) partition-type:oplusdycnvbk:raw
(bootloader) partition-size:oplusdycnvbk: 0xA00000
(bootloader) partition-type:frp:raw
(bootloader) partition-size:frp: 0x80000
(bootloader) partition-type:keystore:raw
(bootloader) partition-type:misc:raw
(bootloader) partition-size:misc: 0x100000
(bootloader) partition-type:persist:raw
(bootloader) partition-size:persist: 0x2000000
(bootloader) partition-type:param:raw
(bootloader) partition-size:param: 0x800000
(bootloader) partition-type:ssd:raw
(bootloader) partition-size:ssd: 0x2000
(bootloader) has-slot:modem:yes
(bootloader) has-slot:system:no
(bootloader) current-slot:a
(bootloader) has-slot:boot:yes
(bootloader) slot-retry-count:b:0
(bootloader) slot-unbootable:b:yes
(bootloader) slot-successful:b:no
(bootloader) slot-retry-count:a:7
(bootloader) slot-unbootable:a:no
(bootloader) slot-successful:a:no
(bootloader) serialno:8ac546c0
(bootloader) product:lahaina
(bootloader) snapshot-update-status:snapshotted
(bootloader) is-userspace:no
(bootloader) max-download-size:805306368
(bootloader) kernel:uefi
all:
Finished. Total time: 0.507s
PS C:\Users\XXX\downloads\mobilerecovery\20230312\oneplus9> fastboot flash boot_a magisk_patched-lineage-20.0-20230312-nightly-lemonade-signed_boot.img
Sending 'boot_a' (196608 KB) OKAY [ 4.911s]
Writing 'boot_a' OKAY [ 0.581s]
Finished. Total time: 5.526s
## Rebooted phone to recovery
## In LineageOS Recovery (now showing Version 20.0 (20230312)) click "Apply Update"
PS C:\Users\XXX\downloads\mobilerecovery\20230312\oneplus9> adb sideload lineage-20.0-20230312-nightly-lemonade-signed.zip
Total xfer: 1.00x
## Rebooted phone to recovery
## In LineageOS Recovery (now showing Version 20.0 (20230312)) click "Apply Update"
PS C:\Users\XXX\downloads\mobilerecovery\20230312\oneplus9> cd .../..
PS C:\Users\XXX\downloads\mobilerecovery\20230312\oneplus9> adb sideload NikGapps-XXX-arm64-13-20230220.zip
PS C:\Users\XXX\downloads\mobilerecovery> adb sideload NikGapps-XXX-arm64-13-20230220.zip
Total xfer: 1.00x
## Rebooted phone to system
Your browser is not able to display this video.
shadabkiani said:
So you have flashed LineageOS without wiping data? And now it boots up successfully to the lockscreen? I don't think that can work.
Click to expand...
Click to collapse
Given the above post - Any tips on things I can try now?
Well, it is not accepting your fingerprint. When you tap on fingrprint scanner after reboot, it would automatically take you to pattern/PIN/password. So don't think that it's accepting your fingerprint.
With a 5x5 grid, the possibilities are 2^25 (source here), so consider it almost impossible in a lifetime that you would crack it by hit-and-trial.
Also, I noticed that you ran fastboot flashing unlock which means unlocking bootloader, and that in turn means the consent to format data. I don't if you are trying to save data, or just trying to get the phone working at the cost of data loss.
shadabkiani said:
Well, it is not accepting your fingerprint. When you tap on fingrprint scanner after reboot, it would automatically take you to pattern/PIN/password. So don't think that it's accepting your fingerprint.
With a 5x5 grid, the possibilities are 2^25 (source here), so consider it almost impossible in a lifetime that you would crack it by hit-and-trial.
Also, I noticed that you ran fastboot flashing unlock which means unlocking bootloader, and that in turn means the consent to format data. I don't if you are trying to save data, or just trying to get the phone working at the cost of data loss.
Click to expand...
Click to collapse
I'm trying to save the data. But even if the fingerprint is not detected and it's the default action on reboot, the pattern should not longer exist, if the phone was wiped?! I can also see the little contact logo on the top right, which I believe is the account indicator? All hints telling me that the pattern is still set and data persisted so far.
Or am I missing something?
RobSteward said:
I'm trying to save the data. But even if the fingerprint is not detected and it's the default action on reboot, the pattern should not longer exist, if the phone was wiped?! I can also see the little contact logo on the top right, which I believe is the account indicator? All hints telling me that the pattern is still set and data persisted so far.
Or am I missing something?
Click to expand...
Click to collapse
So you came from LOS 19.1 to 20 by dirty flashing. In that case, yes, you are right data is still intact I think, otherwise pattern would go away since lock settings are stored in data. Ok, so how about you try adb shell and running as root (provided you had given root access to adb before)? Are you familiar with that method?
shadabkiani said:
So you came from LOS 19.1 to 20 by dirty flashing. In that case, yes, you are right data is still intact I think, otherwise pattern would go away since lock settings are stored in data. Ok, so how about you try adb shell and running as root (provided you had given root access to adb before)? Are you familiar with that method?
Click to expand...
Click to collapse
I know adb and I have shell access. I believe I should have root, but haven't been able to figure this part out in the past. Do you have specific commands I can run or a guide I can follow to understand the access right situation on the device?
What I've done in the past is booting into recovery. From there
Advanced
Enable ADB
JavaScript:
adb devices
adb shell
And then? What should I test?
Just tried this following the first google result and.. it.....looks good?
Code:
PS C:\Users\XXX> adb devices
List of devices attached
8ac546c0 recovery
PS C:\Users\XXX> adb root
adbd is already running as root
PS C:\Users\XXX> adb shell
OnePlus9:/ #
OnePlus9:/ # exit
PS C:\Users\XXX> adb shell id
uid=0(root) gid=0(root) groups=0(root),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),1078(ext_data_rw),1079(ext_obb_rw),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc),3011(uhid),3012(readtracefs) context=u:r:su:s0
When you are in recovery, does it ask for decryption at the start?
How about you go to File Manager in TWRP and then navigate to /data/ or even /sdcard/? Or try connecting to PC through cable and see if you can access your data from there?
In TWRP, check the log (tap on recents button). Does it say /data/ decrypted, or does it show some red warning?
shadabkiani said:
When you are in recovery, does it ask for decryption at the start?
How about you go to File Manager in TWRP and then navigate to /data/ or even /sdcard/? Or try connecting to PC through cable and see if you can access your data from there?
Click to expand...
Click to collapse
It does not ask for decryption.
I'm on LineageOS Recovery. I can access the sdcard folder but it does not show any data. Since it's a OP9, it does not have an external sdcard. Not sure where images would be stored.
shadabkiani said:
In TWRP, check the log (tap on recents button). Does it say /data/ decrypted, or does it show some red warning?
Click to expand...
Click to collapse
I'm on LineageOS Recovery. I've tried changing customer recovery to TWRP by booting into twrp-3.7.0_11-0-lemonadep.img (could not find a "lemonade" version) via fastboot and I'm not sure if I'm doing something wrong, but I just get stuck in Fastboot Mode. When hard resetting I get a normal system/recovery again (which makes sense, as the first step is to just temp boot into TWRP). Any suggestions?
The official recovery is only compatible with Android 11 firmware. For Android 12/13, you have to use this unofficial one. It's unified for OP9 and OP9 Pro, so don't worry. Make sure you fastboot boot it, NOT fastboot flash boot....
That worked! I now do get the decrypt question. I'm guessing I'll cancel this and move to permanently replacing LineageOS Recovery with TWRP by going
Advanced
Flash Current TWRP
Adb push twrp-installer-3.7.0-12.1-6-lemonadep.zip to phone
Select twrp-installer-3.7.0-12.1-6-lemonadep.zip (donwloaded from the GDrive folder you linked)
Flash
Correct?
RobSteward said:
That worked! I now do get the decrypt question. I'm guessing I'll cancel this and move to permanently replacing LineageOS Recovery with TWRP by going
Advanced
Flash Current TWRP
Adb push twrp-installer-3.7.0-12.1-6-lemonadep.zip to phone
Select twrp-installer-3.7.0-12.1-6-lemonadep.zip (donwloaded from the GDrive folder you linked)
Flash
Correct?
Click to expand...
Click to collapse
I won't recommend having TWRP permanent. It's not needed for OnePlus 9 as we can flash ROMs through sideload from LOS recovery, which is recommended. OnePlus 9 doesn't have dedicated recovery partition (as is the case with modern phones), so to have TWRP permanent, it would need to patch boot, which might cause problems. You can do this from TWRP. Just boot the TWRP temporarily as you just did, go to Advanced and select Flash Current Recovery.
But there are no huge benefits to have TWRP permanent, LOS recovery is good for all intents a d purposes. If you ever need to do some stuff from TWRP (which I don't think so), just boot temporarily as you just did.
Related
Alright everyone, I need XDAs collective wisdom to help me out on this one. I have a 128gb Verizon Google Pixel. I unlocked the bootloader early on, but I only ever installed Google official builds. I recently clean installed Oreo and it had been working great for the most part. The other morning I wake up with my phone on a distorted version of the bootloader screen, with half of the image and text going past the edge of the screen and onto the opposite side. It will not boot into android, will sometimes show Google logo before showing distorted bootloader screen again. I can load it into the normal bootloader but I have gone through every troubleshooting step I can find. I cannot flash ANYTHING, cannot relock bootloader (gives me data wipe message then reboots and goes to distorted image again. still shows unlocked in bootloader mode).
When I type in "fastboot getvar all" I get this:
fastboot getvar all
(bootloader) version:0.5
(bootloader) hw-revisionVT
(bootloader) vzwisLTE:
(bootloader) vzwmid:AOSP on msm8996
(bootloader) mid:G-2PW4100
(bootloader) version-main:1.0.0.33
(bootloader) imei:352531083644268
(bootloader) ramdump-mode:false
(bootloader) boot-mode:FASTBOOT
(bootloader) has-slot:radio:yes
(bootloader) has-slot:bootloader:yes
(bootloader) has-slot:reserve5:no
(bootloader) has-slot:devinfo:no
(bootloader) has-slot:fsg:no
(bootloader) has-slot:mfg:no
(bootloader) has-slot:board_info:no
(bootloader) has-slot:reserve4:no
(bootloader) has-slot:metadata:no
(bootloader) has-slotg2fs:no
(bootloader) has-slotg1fs:no
(bootloader) has-slot:ramdump:no
(bootloader) has-slot:frp:no
(bootloader) has-slot:reserve3:no
(bootloader) has-slot:cdt:no
(bootloader) has-slot:ddr:no
(bootloader) has-slot:modemst2:no
(bootloader) has-slot:modemst1:no
(bootloader) has-slot:fsc:no
(bootloader) has-slot:dip:no
(bootloader) has-slot:dpo:no
(bootloader) has-slot:devinfobak:no
(bootloader) has-slot:sec:no
(bootloader) has-slotersist:no
(bootloader) has-slot:ssd:no
(bootloader) has-slot:misc:no
(bootloader) has-slot:xbl:yes
(bootloader) has-slot:reserve0:no
(bootloader) has-slot:userdata:no
(bootloader) has-slot:system:yes
(bootloader) has-slot:vendor:yes
(bootloader) has-slot:apdp:yes
(bootloader) has-slot:msadp:yes
(bootloader) has-slot:modem:yes
(bootloader) has-slot:devcfg:yes
(bootloader) has-slot:hosd:yes
(bootloader) has-slot:boot:yes
(bootloader) has-slot:aboot:yes
(bootloader) has-slot:cmnlib64:yes
(bootloader) has-slot:cmnlib32:yes
(bootloader) has-slot:hyp:yes
(bootloader) has-slotmic:yes
(bootloader) has-slot:rpm:yes
(bootloader) has-slot:tz:yes
(bootloader) has-slot:keymaster:yes
(bootloader) has-slot:bootlocker:yes
(bootloader) slot-count:2
(bootloader) current-slot:b
(bootloader) slot-retry-count:b:2
(bootloader) slot-unbootable:b:no
(bootloader) slot-successful:b:yes
(bootloader) slot-retry-count:a:2
(bootloader) slot-unbootable:a:no
(bootloader) slot-successful:a:yes
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:3595000
(bootloader) variant:US
(bootloader) secure:no
(bootloader) unlocked:yes
(bootloader) version-baseband:N/A
(bootloader) version-bootloader:N/A
(bootloader) off-mode-charge:1
(bootloader) charger-screen-enabled:1
(bootloader) max-download-size: 0x20000000
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0x1c8d800000
(bootloader) partition-type:system_b:ext4
(bootloader) partition-size:system_b: 0x80000000
(bootloader) partition-type:system_a:ext4
(bootloader) partition-size:system_a: 0x80000000
(bootloader) partition-type:vendor_b:ext4
(bootloader) partition-size:vendor_b: 0x12c00000
(bootloader) partition-type:vendor_a:ext4
(bootloader) partition-size:vendor_a: 0x12c00000
(bootloader) partition-type:boot_b:raw
(bootloader) partition-size:boot_b: 0x2000000
(bootloader) partition-type:boot_a:raw
(bootloader) partition-size:boot_a: 0x2000000
(bootloader) serialno:FA6C90302723
(bootloader) kernel:lk
(bootloader) product:sailfish
all:
finished. total time: 2.301s
Any help would be appreciated. If you have things for me to try, I'd be happy to try them
tychastain said:
Alright everyone, I need XDAs collective wisdom to help me out on this one. I have a 128gb Verizon Google Pixel. I unlocked the bootloader early on, but I only ever installed Google official builds. I recently clean installed Oreo and it had been working great for the most part. The other morning I wake up with my phone on a distorted version of the bootloader screen, with half of the image and text going past the edge of the screen and onto the opposite side. It will not boot into android, will sometimes show Google logo before showing distorted bootloader screen again. I can load it into the normal bootloader but I have gone through every troubleshooting step I can find. I cannot flash ANYTHING, cannot relock bootloader (gives me data wipe message then reboots and goes to distorted image again. still shows unlocked in bootloader mode).
When I type in "fastboot getvar all" I get this:
fastboot getvar all
(bootloader) version:0.5
(bootloader) hw-revisionVT
(bootloader) vzwisLTE:
(bootloader) vzwmid:AOSP on msm8996
(bootloader) mid:G-2PW4100
(bootloader) version-main:1.0.0.33
(bootloader) imei:352531083644268
(bootloader) ramdump-mode:false
(bootloader) boot-mode:FASTBOOT
(bootloader) has-slot:radio:yes
(bootloader) has-slot:bootloader:yes
(bootloader) has-slot:reserve5:no
(bootloader) has-slot:devinfo:no
(bootloader) has-slot:fsg:no
(bootloader) has-slot:mfg:no
(bootloader) has-slot:board_info:no
(bootloader) has-slot:reserve4:no
(bootloader) has-slot:metadata:no
(bootloader) has-slotg2fs:no
(bootloader) has-slotg1fs:no
(bootloader) has-slot:ramdump:no
(bootloader) has-slot:frp:no
(bootloader) has-slot:reserve3:no
(bootloader) has-slot:cdt:no
(bootloader) has-slot:ddr:no
(bootloader) has-slot:modemst2:no
(bootloader) has-slot:modemst1:no
(bootloader) has-slot:fsc:no
(bootloader) has-slot:dip:no
(bootloader) has-slot:dpo:no
(bootloader) has-slot:devinfobak:no
(bootloader) has-slot:sec:no
(bootloader) has-slotersist:no
(bootloader) has-slot:ssd:no
(bootloader) has-slot:misc:no
(bootloader) has-slot:xbl:yes
(bootloader) has-slot:reserve0:no
(bootloader) has-slot:userdata:no
(bootloader) has-slot:system:yes
(bootloader) has-slot:vendor:yes
(bootloader) has-slot:apdp:yes
(bootloader) has-slot:msadp:yes
(bootloader) has-slot:modem:yes
(bootloader) has-slot:devcfg:yes
(bootloader) has-slot:hosd:yes
(bootloader) has-slot:boot:yes
(bootloader) has-slot:aboot:yes
(bootloader) has-slot:cmnlib64:yes
(bootloader) has-slot:cmnlib32:yes
(bootloader) has-slot:hyp:yes
(bootloader) has-slotmic:yes
(bootloader) has-slot:rpm:yes
(bootloader) has-slot:tz:yes
(bootloader) has-slot:keymaster:yes
(bootloader) has-slot:bootlocker:yes
(bootloader) slot-count:2
(bootloader) current-slot:b
(bootloader) slot-retry-count:b:2
(bootloader) slot-unbootable:b:no
(bootloader) slot-successful:b:yes
(bootloader) slot-retry-count:a:2
(bootloader) slot-unbootable:a:no
(bootloader) slot-successful:a:yes
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:3595000
(bootloader) variant:US
(bootloader) secure:no
(bootloader) unlocked:yes
(bootloader) version-baseband:N/A
(bootloader) version-bootloader:N/A
(bootloader) off-mode-charge:1
(bootloader) charger-screen-enabled:1
(bootloader) max-download-size: 0x20000000
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0x1c8d800000
(bootloader) partition-type:system_b:ext4
(bootloader) partition-size:system_b: 0x80000000
(bootloader) partition-type:system_a:ext4
(bootloader) partition-size:system_a: 0x80000000
(bootloader) partition-type:vendor_b:ext4
(bootloader) partition-size:vendor_b: 0x12c00000
(bootloader) partition-type:vendor_a:ext4
(bootloader) partition-size:vendor_a: 0x12c00000
(bootloader) partition-type:boot_b:raw
(bootloader) partition-size:boot_b: 0x2000000
(bootloader) partition-type:boot_a:raw
(bootloader) partition-size:boot_a: 0x2000000
(bootloader) serialno:FA6C90302723
(bootloader) kernel:lk
(bootloader) product:sailfish
all:
finished. total time: 2.301s
Any help would be appreciated. If you have things for me to try, I'd be happy to try them
Click to expand...
Click to collapse
Will it let you fastboot reformat. Not sure what the exact Command is. Or maybe try fastboot continue. And do you have the most updated platform tools?
tychastain said:
Alright everyone, I need XDAs collective wisdom to help me out on this one. I have a 128gb Verizon Google Pixel. I unlocked the bootloader early on, but I only ever installed Google official builds. I recently clean installed Oreo and it had been working great for the most part. The other morning I wake up with my phone on a distorted version of the bootloader screen, with half of the image and text going past the edge of the screen and onto the opposite side. It will not boot into android, will sometimes show Google logo before showing distorted bootloader screen again. I can load it into the normal bootloader but I have gone through every troubleshooting step I can find. I cannot flash ANYTHING, cannot relock bootloader (gives me data wipe message then reboots and goes to distorted image again. still shows unlocked in bootloader mode).
When I type in "fastboot getvar all" I get this:
fastboot getvar all
(bootloader) version:0.5
(bootloader) hw-revisionVT
(bootloader) vzwisLTE:
(bootloader) vzwmid:AOSP on msm8996
(bootloader) mid:G-2PW4100
(bootloader) version-main:1.0.0.33
(bootloader) imei:352531083644268
(bootloader) ramdump-mode:false
(bootloader) boot-mode:FASTBOOT
(bootloader) has-slot:radio:yes
(bootloader) has-slot:bootloader:yes
(bootloader) has-slot:reserve5:no
(bootloader) has-slot:devinfo:no
(bootloader) has-slot:fsg:no
(bootloader) has-slot:mfg:no
(bootloader) has-slot:board_info:no
(bootloader) has-slot:reserve4:no
(bootloader) has-slot:metadata:no
(bootloader) has-slotg2fs:no
(bootloader) has-slotg1fs:no
(bootloader) has-slot:ramdump:no
(bootloader) has-slot:frp:no
(bootloader) has-slot:reserve3:no
(bootloader) has-slot:cdt:no
(bootloader) has-slot:ddr:no
(bootloader) has-slot:modemst2:no
(bootloader) has-slot:modemst1:no
(bootloader) has-slot:fsc:no
(bootloader) has-slot:dip:no
(bootloader) has-slot:dpo:no
(bootloader) has-slot:devinfobak:no
(bootloader) has-slot:sec:no
(bootloader) has-slotersist:no
(bootloader) has-slot:ssd:no
(bootloader) has-slot:misc:no
(bootloader) has-slot:xbl:yes
(bootloader) has-slot:reserve0:no
(bootloader) has-slot:userdata:no
(bootloader) has-slot:system:yes
(bootloader) has-slot:vendor:yes
(bootloader) has-slot:apdp:yes
(bootloader) has-slot:msadp:yes
(bootloader) has-slot:modem:yes
(bootloader) has-slot:devcfg:yes
(bootloader) has-slot:hosd:yes
(bootloader) has-slot:boot:yes
(bootloader) has-slot:aboot:yes
(bootloader) has-slot:cmnlib64:yes
(bootloader) has-slot:cmnlib32:yes
(bootloader) has-slot:hyp:yes
(bootloader) has-slotmic:yes
(bootloader) has-slot:rpm:yes
(bootloader) has-slot:tz:yes
(bootloader) has-slot:keymaster:yes
(bootloader) has-slot:bootlocker:yes
(bootloader) slot-count:2
(bootloader) current-slot:b
(bootloader) slot-retry-count:b:2
(bootloader) slot-unbootable:b:no
(bootloader) slot-successful:b:yes
(bootloader) slot-retry-count:a:2
(bootloader) slot-unbootable:a:no
(bootloader) slot-successful:a:yes
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:3595000
(bootloader) variant:US
(bootloader) secure:no
(bootloader) unlocked:yes
(bootloader) version-baseband:N/A
(bootloader) version-bootloader:N/A
(bootloader) off-mode-charge:1
(bootloader) charger-screen-enabled:1
(bootloader) max-download-size: 0x20000000
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0x1c8d800000
(bootloader) partition-type:system_b:ext4
(bootloader) partition-size:system_b: 0x80000000
(bootloader) partition-type:system_a:ext4
(bootloader) partition-size:system_a: 0x80000000
(bootloader) partition-type:vendor_b:ext4
(bootloader) partition-size:vendor_b: 0x12c00000
(bootloader) partition-type:vendor_a:ext4
(bootloader) partition-size:vendor_a: 0x12c00000
(bootloader) partition-type:boot_b:raw
(bootloader) partition-size:boot_b: 0x2000000
(bootloader) partition-type:boot_a:raw
(bootloader) partition-size:boot_a: 0x2000000
(bootloader) serialno:FA6C90302723
(bootloader) kernel:lk
(bootloader) product:sailfish
all:
finished. total time: 2.301s
Any help would be appreciated. If you have things for me to try, I'd be happy to try them
Click to expand...
Click to collapse
YES THIS HAPPENED TO ME TOO!! JUST YESTERDAY!!! I already applied for a replacement phone and paid the 78$ since mine has some small amounts of cosmetic scars here and there so i've already paid for the replacement. But yes i had the EXACT same issue.
i love how this is an issue multiple people are now reporting and no one wants to continue the conversation to find a solution.
Happened to me twice in a span of a week. All within a few days of updating to Oreo. Details in another thread. Only choice was to RMA to Google.
https://forum.xda-developers.com/pixel/help/google-pixel-bricked-oreo-twice-ideas-t3671302
any solution to this issue yet? i think i have my pixel with USB debugging enabled because I tend to enable that by default any time i start fresh with a device, so i should have USB debugging enabled already. But would flashing stock image really work in this case? all I have access to is the bootloader menu and nothing else. any attempt to boot into recovery is met with a failed to boot into recovery message. I have no clue what to do, I've already requested a standard exchange with Google for a brand new device but that means sending in my device first before receiving my new device and blarg that's just frustrating to do at this point. However if others are saying flashing lead to it bricking AGAIN either way it just seems a lost cause to try and fix my phone myself right?
silvernirvash said:
any solution to this issue yet? i think i have my pixel with USB debugging enabled because I tend to enable that by default any time i start fresh with a device, so i should have USB debugging enabled already. But would flashing stock image really work in this case? all I have access to is the bootloader menu and nothing else. any attempt to boot into recovery is met with a failed to boot into recovery message. I have no clue what to do, I've already requested a standard exchange with Google for a brand new device but that means sending in my device first before receiving my new device and blarg that's just frustrating to do at this point. However if others are saying flashing lead to it bricking AGAIN either way it just seems a lost cause to try and fix my phone myself right?
Click to expand...
Click to collapse
Well if it's not working and you are actually able to flash it via fastboot then I'd give that a go before sending it back. It cant hurt anything since it's already not functioning. Try flashing Stock Oreo and try flashing Latest Nougat too if needed.
Is there anything that you guys have done to your phones recently other than update to Oreo? Unlock Bootloader? Flash Twrp? Flash any other rom? Custom Kernel? Flash custom mod?...I think there's lack of discussion here because there's really not enough info to determine anything. What type of phone is it (which variant)? How old it is? How you acquired it? Any bit of info because you never know what the common factor may be in these freak scenarios.
My Pixel XL (128gb) had never been unlocked or rooted; completely stock. Rarely had a random reboot until updating to Android 8. Then it was reboot-city from there. I performed a factory reset & that helped for about 3 days or so, then back to rebooting 3-4 times a day up until about a week and half in, when it finally shut off for good. Was just streaming youtube to my tv via chromecast when I noticed the screen was still on & had frozen up. Did a hard reboot but it wouldn't come back on. Tried to boot up into fastboot mode but no dice. Ended up calling Google tech support. They said it was a software issue & started the RMA process.
Received my replacement (a stinking refurb...) a couple days later & immediately disabled the system update notifications. Gonna stay on 7 for awhile & monitor the message boards & Google Issue Tracker forum until I see it's fixed, then I'll update. But at the moment, the October monthly security update has pushed out recently and was supposed to fix things but hasn't, from what I'm seeing. Maybe next month's update?? (Sigh...)
Weird. Something like this just happened to me this morning. I've never unlocked the bootloader on my Google Store purchased 128 GB XL. I plugged it in to charge last night as I always do, and when I woke up this morning, it was dead.
BL and Baseband show up as N/A. Others have reported this same issue. Since my bootloader is locked, I can't do anything with fastboot. Entering recovery gives an error. I contacted Google and was set up with a replacement.
it seems everyone is having the exact same issue at this point. thanks google for ****ing it up.
silvernirvash said:
it seems everyone is having the exact same issue at this point. thanks google for ****ing it up.
Click to expand...
Click to collapse
There's another thread from January of this year when this happened. Whatever the issue is, it's not new.
https://forum.xda-developers.com/pixel-xl/help/pixel-xl-bricked-bootloader-n-baseband-n-t3537379
I did a clean install of Android and no issues so far. Again I'm stock and locked bootloader
hp13 said:
I did a clean install of Android and no issues so far. Again I'm stock and locked bootloader
Click to expand...
Click to collapse
Was your Pixel bricked and you were able to recover it?
I had the same problem. It was working, now it is not.
This has happened to me 3 times now. Hoping this time I don't have issues as they finally sent me a brand new pixel as opposed to refurb.
I'm trying to keep my problem short. I had unlocked my bootloader for years now and I know the whole subject quite well. I decided to lock my bootloader and put everything back.
Because I was at the official beta of android 9 I decided to flash a factory image of the latest version.
Also the start in the new environment worked out. Therefore I locked the bootloader in the OS and did the same in the bootloader via fastboot.
Now I have a locked bootloader which I cannot unlock due to the os settings.
At boot I get the error: Slot Unbootable: Load Error.
fastboot continue ends in the same error
I don't recover from the same error either.
I cannot change boot slot because of the locked recovery.
fastboot works.
adb sideload not because I only hang in the bootloader.
Do I only have some chance to lock the bootloader or to cause some kind of factory reset?
fastboot getvar all tells me that slot a is unbootable...yeah i know. however b is not. So how can i tell my bootloader to start from B????
I've read a lot now but I'm at a loss. I am grateful for any help or advice.
I hope I don't have to take care of an RMA =(
I hope i missed some way to bypass this locked bootloader. im going crazy
Pleaaaaaase need help =( i spend paypal-beer for help
Here some more infos:
Code:
fastboot getvar all
(bootloader) avb_err:0(0)
(bootloader) is_avb_critical_error:no
(bootloader) have_oem_lock_id:yes
(bootloader) avb_stored_rollback_indexes:
(bootloader) avb_user_settable_key_set:no
(bootloader) avb_version:1.0.0
(bootloader) mid:G011A
(bootloader) version-main:
(bootloader) imei:***censored***
(bootloader) boot-mode:FASTBOOT
(bootloader) logical-block-size:0x1000
(bootloader) erase-block-size:0x1000000
(bootloader) unlocked:no
(bootloader) off-mode-charge:1
(bootloader) charger-screen-enabled:1
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:4111
(bootloader) version-baseband:g8998-00253-1809191716
(bootloader) version-bootloader:mw8998-002.0073.02
(bootloader) variant:
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0xD49BFB000
(bootloader) partition-type:vendor_b:ext4
(bootloader) partition-size:vendor_b: 0x1F400000
(bootloader) partition-type:vendor_a:ext4
(bootloader) partition-size:vendor_a: 0x1F400000
(bootloader) partition-type:system_b:ext4
(bootloader) partition-size:system_b: 0xA0000000
(bootloader) partition-type:system_a:ext4
(bootloader) partition-size:system_a: 0xA0000000
(bootloader) partition-type:boot_b:raw
(bootloader) partition-size:boot_b: 0x2000000
(bootloader) partition-type:boot_a:raw
(bootloader) partition-size:boot_a: 0x2000000
(bootloader) has-slot:radio:yes
(bootloader) has-slot:bootloader:yes
(bootloader) has-slot:vendor:yes
(bootloader) has-slot:modem:yes
(bootloader) has-slot:system:yes
(bootloader) has-slot:vbmeta:yes
(bootloader) has-slot:dtbo:yes
(bootloader) current-slot:a
(bootloader) has-slot:boot:yes
(bootloader) slot-retry-count:b:7
(bootloader) slot-unbootable:b:no
(bootloader) slot-successful:b:no
(bootloader) slot-retry-count:a:6
(bootloader) slot-unbootable:a:yes
(bootloader) slot-successful:a:yes
(bootloader) slot-count:2
(bootloader) cid:00000000
(bootloader) secure:yes
(bootloader) serialno:FA7C61A00757
(bootloader) hw-revision:MP1
(bootloader) product:walleye
(bootloader) max-download-size:0x20000000
(bootloader) kernel:uefi
all:
finished. total time: 0.090s
Did you ever resolve this? The December update doesn't play well with bootloader enumeration. This thread here should help. As always, there's never a guarantee of data preservation, so unless you have a Titanium Backup, i'd manually backup the really important stuff. Hope it helps!
D3RP_ said:
Did you ever resolve this? The December update doesn't play well with bootloader enumeration. This thread here should help. As always, there's never a guarantee of data preservation, so unless you have a Titanium Backup, i'd manually backup the really important stuff. Hope it helps!
Click to expand...
Click to collapse
Your post wont work for me because i cannot unlock my bootloader as a result of the bricked boot slot. So i cant flash images or flash ota's . But Thanks!!!
I couldn't solve the problem, but I could at least figure out what it is.
Never ever relock the bootloader in the os again until you are 100% sure. In my case i was sure but i didnt recognized that one boot slot is unable to start. that would have been verifiable with fastboot getvar all (see first post).
In the end i am stucked now with a hard bricked phone. I contacted google and at this moment my mobile phone is at google for an RMA. I hope it doesn't take too long.
And yes in my case the December update in combination with my (wrong) relock hard bricked my phone.
Never ever relock the bootloader in the os
Solved for me
I had the same problem with the bootloader locked but I solved it unlocking it "fastboot flashing unlock" then you have flashing the factory image
Camiloecu said:
I had the same problem with the bootloader locked but I solved it unlocking it "fastboot flashing unlock" then you have flashing the factory image
Click to expand...
Click to collapse
If the bootloader shows 'Device State: locked' this command will return an error: 'Flashing Unlock is not allowed'.
Hello,
I have pixel 3a that does not boot into either a recovery or system.
It can only boot into fastboot. Unfortunately the bootloader is locked.
Google does not want to RMA the device for me since i bought it used.
There are some Fastboot OEM commands that can help me rescue the bootloader.
"FASTBOOT OEM citadel"
Code:
PS C:\Program Files (x86)\Minimal ADB and Fastboot> .\fastboot.exe oem citadel
(bootloader) citadel <command>
(bootloader) Commands:
(bootloader) rescue Try to rescue Citadel
(bootloader) state Print current Citadel state
(bootloader) reset Reset Citadel
(bootloader) reset-locks Reset AVB locks
(bootloader) version Print citadel OS version
(bootloader) reprovision Reprovision device after a RMA unlock
(bootloader) suzyq on|off Enable or disable SuzyQable
FAILED (remote: '')
fastboot: error: Command failed
PS C:\Program Files (x86)\Minimal ADB and Fastboot>
According to the reply back "Citadel" is the bootloader.
In order to use the rescue command, you need to "stage" a file using "Fastboot stage "filename.xxx".
I have try to stage *.img files in the OTA image and none of them seems to match the buffer size of the bootloader.
I try also these files {Name: "bootloader-sargo-b4s4-0.2-5736883.img" and "boot.img" inside another archive.}
And this is the error i get.
"PS C:\Program Files (x86)\Minimal ADB and Fastboot> .\fastboot.exe oem citadel rescue
(bootloader) Recovering citadel - it may take a couple of minutes
FAILED (remote: 'failed to rescue citadel Bad Buffer Size')"
Code:
PS C:\Program Files (x86)\Minimal ADB and Fastboot> .\fastboot.exe stage bootloader-sargo-b4s4-0.2-5402313.img
Sending 'bootloader-sargo-b4s4-0.2-5402313.img' (8349 KB) OKAY [ 0.349s]
Finished. Total time: 0.412s
PS C:\Program Files (x86)\Minimal ADB and Fastboot> .\fastboot.exe oem citadel rescue
(bootloader) Recovering citadel - it may take a couple of minutes
FAILED (remote: 'failed to rescue citadel Bad Buffer Size')
fastboot: error: Command failed
PS C:\Program Files (x86)\Minimal ADB and Fastboot>
Does anyone know which files specifically i need to restore the bootloader?
This is probably not very helpful, but let me try to clear things up.
The bootloader mode is basically fastboot mode, you can confirm that by
Code:
fastboot reboot-bootloader
which doesn't reboot the bootloader, but instead reboots into the bootloader.
Then this citadel thing looks like it has something to do with the Titan security chip, not the bootloader itself.
Also, the boot.img files should be kernels, not bootloader images.
Did you enable OEM unlock in the phone settings before, by any chance? Then you should be able to unlock the bootloader and proceed with the flash command and a factory image.
What exactly happens (or doesn't happen) if you try to boot into system or recovery? Either by
Code:
fastboot reboot
or (apparently not always)
fastboot reboot recovery
or selecting the option via Vol+/- and Power.
Did you enable ADB before? If yes and bootlooping, try
Code:
adb devices
and check if anything gets returned at any point.
(You also posted this on Reddit, right? Going from Q beta to stable? Every bit of information could help the more knowledgeable guys here help you.)
Sorry for not being a bigger help. Maybe someone else has a look with the additional information provided.
Good luck.
sysuicrash0511 said:
This is probably not very helpful, but let me try to clear things up.
The bootloader mode is basically fastboot mode, you can confirm that by
Code:
fastboot reboot-bootloader
which doesn't reboot the bootloader, but instead reboots into the bootloader.
Then this citadel thing looks like it has something to do with the Titan security chip, not the bootloader itself.
Also, the boot.img files should be kernels, not bootloader images.
Did you enable OEM unlock in the phone settings before, by any chance? Then you should be able to unlock the bootloader and proceed with the flash command and a factory image.
What exactly happens (or doesn't happen) if you try to boot into system or recovery? Either by
Code:
fastboot reboot
or (apparently not always)
fastboot reboot recovery
or selecting the option via Vol+/- and Power.
Did you enable ADB before? If yes and bootlooping, try
Code:
adb devices
and check if anything gets returned at any point.
(You also posted this on Reddit, right? Going from Q beta to stable? Every bit of information could help the more knowledgeable guys here help you.)
Sorry for not being a bigger help. Maybe someone else has a look with the additional information provided.
Good luck.
Click to expand...
Click to collapse
This was super helpful it gave me a good idea how the boot system is structured in Android.
It seems like "Citadel" is a code name used for the bootloader in the "OEM" Command settings.
There might me other code names under "OEM" command which is hidden deep in the code.
Already tried searching the Source.
"Fastboot reboot-bootloader" = reboots back in Fastboot mode.
"fastboot reboot-recovery" =
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot recovery
Rebooting into recovery FAILED (remote: 'Unsupported reboot option reboot-recovery')
fastboot: error: Command failed
"fastboot reboot recovery" =
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot recovery
Rebooting into recovery FAILED (remote: 'Unsupported reboot option reboot-recovery')
fastboot: error: Command failed
^ Now that interesting seems the recovery "kernel" is not available.
"fastboot reboot" = Cant find Valid operating system
Unfortunetly ADB was not enabled. I was too eager to flash a final version of 10 before doing any setup on the phone. The phone came with beta 10.
"fastboot getvar all" =
Code:
(bootloader) product:sargo
(bootloader) serialno:xxxxxxxxxx
(bootloader) variant:SDM eMMC
(bootloader) max-download-size:0x10000000
(bootloader) slot-suffixes:_a,_b
(bootloader) version-bootloader:b4s4-0.2-5402313
(bootloader) version-baseband:g670-00019-190426-B-5509456
(bootloader) secure-boot:PRODUCTION
(bootloader) secure:yes
(bootloader) hw-revision:MP1.0
(bootloader) is-userspace:no
(bootloader) slot-count:2
(bootloader) current-slot:a
(bootloader) unlocked:no
(bootloader) nos-production:yes
(bootloader) off-mode-charge:1
(bootloader) slot-retry-count:a:7
(bootloader) slot-unbootable:a:no
(bootloader) slot-successful:a:no
(bootloader) slot-retry-count:b:6
(bootloader) slot-unbootable:b:no
(bootloader) slot-successful:b:yes
(bootloader) battery-voltage:4241
(bootloader) battery-soc-ok:yes
(bootloader) partition-type:cdt:raw
(bootloader) partition-size:cdt:0x20C00
(bootloader) partition-type:xbl_a:raw
(bootloader) partition-size:xbl_a:0x380000
(bootloader) partition-type:xbl_b:raw
(bootloader) partition-size:xbl_b:0x380000
(bootloader) partition-type:xbl_config_a:raw
(bootloader) partition-size:xbl_config_a:0x20000
(bootloader) partition-type:xbl_config_b:raw
(bootloader) partition-size:xbl_config_b:0x20000
(bootloader) partition-type:tz_a:raw
(bootloader) partition-size:tz_a:0x200000
(bootloader) partition-type:tz_b:raw
(bootloader) partition-size:tz_b:0x200000
(bootloader) partition-type:aop_a:raw
(bootloader) partition-size:aop_a:0x80000
(bootloader) partition-type:aop_b:raw
(bootloader) partition-size:aop_b:0x80000
(bootloader) partition-type:hyp_a:raw
(bootloader) partition-size:hyp_a:0x80000
(bootloader) partition-type:hyp_b:raw
(bootloader) partition-size:hyp_b:0x80000
(bootloader) partition-type:fsg:raw
(bootloader) partition-size:fsg:0x200000
(bootloader) partition-type:boot_a:raw
(bootloader) partition-size:boot_a:0x4000000
(bootloader) partition-type:boot_b:raw
(bootloader) partition-size:boot_b:0x4000000
(bootloader) partition-type:keymaster_a:raw
(bootloader) partition-size:keymaster_a:0x80000
(bootloader) partition-type:keymaster_b:raw
(bootloader) partition-size:keymaster_b:0x80000
(bootloader) partition-type:cmnlib_a:raw
(bootloader) partition-size:cmnlib_a:0x80000
(bootloader) partition-type:cmnlib64_a:raw
(bootloader) partition-size:cmnlib64_a:0x80000
(bootloader) partition-type:cmnlib_b:raw
(bootloader) partition-size:cmnlib_b:0x80000
(bootloader) partition-type:cmnlib64_b:raw
(bootloader) partition-size:cmnlib64_b:0x80000
(bootloader) partition-type:modem_a:raw
(bootloader) partition-size:modem_a:0x6E00000
(bootloader) partition-type:modem_b:raw
(bootloader) partition-size:modem_b:0x6E00000
(bootloader) partition-type:msadp_a:raw
(bootloader) partition-size:msadp_a:0x40000
(bootloader) partition-type:msadp_b:raw
(bootloader) partition-size:msadp_b:0x40000
(bootloader) partition-type:reserved:raw
(bootloader) partition-size:reserved:0x3D80000
(bootloader) partition-type:abl_a:raw
(bootloader) partition-size:abl_a:0x200000
(bootloader) partition-type:abl_b:raw
(bootloader) partition-size:abl_b:0x200000
(bootloader) partition-type:dip:raw
(bootloader) partition-size:dip:0x100000
(bootloader) partition-type:devinfo:raw
(bootloader) partition-size:devinfo:0x1000
(bootloader) partition-type:apdp_a:raw
(bootloader) partition-size:apdp_a:0x40000
(bootloader) partition-type:apdp_b:raw
(bootloader) partition-size:apdp_b:0x40000
(bootloader) partition-type:spunvm:raw
(bootloader) partition-size:spunvm:0x800000
(bootloader) partition-type:dpo:raw
(bootloader) partition-size:dpo:0x1000
(bootloader) partition-type:splash:raw
(bootloader) partition-size:splash:0x20A4000
(bootloader) partition-type:limits:raw
(bootloader) partition-size:limits:0x1000
(bootloader) partition-type:toolsfv:raw
(bootloader) partition-size:toolsfv:0x100000
(bootloader) partition-type:logfs:raw
(bootloader) partition-size:logfs:0x800000
(bootloader) partition-type:ddr:raw
(bootloader) partition-size:ddr:0x100000
(bootloader) partition-type:sec:raw
(bootloader) partition-size:sec:0x4000
(bootloader) partition-type:bluetooth_a:raw
(bootloader) partition-size:bluetooth_a:0x100000
(bootloader) partition-type:bluetooth_b:raw
(bootloader) partition-size:bluetooth_b:0x100000
(bootloader) partition-type:fsc:raw
(bootloader) partition-size:fsc:0x20000
(bootloader) partition-type:ssd:raw
(bootloader) partition-size:ssd:0x2000
(bootloader) partition-type:dtbo_a:raw
(bootloader) partition-size:dtbo_a:0x807000
(bootloader) partition-type:dtbo_b:raw
(bootloader) partition-size:dtbo_b:0x807000
(bootloader) partition-type:modemst1:raw
(bootloader) partition-size:modemst1:0x200000
(bootloader) partition-type:modemst2:raw
(bootloader) partition-size:modemst2:0x200000
(bootloader) partition-type:persist:raw
(bootloader) partition-size:persist:0x2800000
(bootloader) partition-type:misc:raw
(bootloader) partition-size:misc:0x100000
(bootloader) partition-type:keystore:raw
(bootloader) partition-size:keystore:0x80000
(bootloader) partition-type:devcfg_a:raw
(bootloader) partition-size:devcfg_a:0x20000
(bootloader) partition-type:devcfg_b:raw
(bootloader) partition-size:devcfg_b:0x20000
(bootloader) partition-type:qupfw_a:raw
(bootloader) partition-size:qupfw_a:0x10000
(bootloader) partition-type:qupfw_b:raw
(bootloader) partition-size:qupfw_b:0x10000
(bootloader) partition-type:modemcal:raw
(bootloader) partition-size:modemcal:0x200000
(bootloader) partition-type:uefivar:raw
(bootloader) partition-size:uefivar:0x100000
(bootloader) partition-type:ImageFv:raw
(bootloader) partition-size:ImageFv:0x200000
(bootloader) partition-type:frp:raw
(bootloader) partition-size:frp:0x80000
(bootloader) partition-type:sti:raw
(bootloader) partition-size:sti:0x200000
(bootloader) partition-type:storsec_a:raw
(bootloader) partition-size:storsec_a:0x20000
(bootloader) partition-type:storsec_b:raw
(bootloader) partition-size:storsec_b:0x20000
(bootloader) partition-type:rawdump:raw
(bootloader) partition-size:rawdump:0x8000000
(bootloader) partition-type:vbmeta_a:raw
(bootloader) partition-size:vbmeta_a:0x10000
(bootloader) partition-type:vbmeta_b:raw
(bootloader) partition-size:vbmeta_b:0x10000
(bootloader) partition-type:klog:raw
(bootloader) partition-size:klog:0x400000
(bootloader) partition-type:metadata:raw
(bootloader) partition-size:metadata:0x1000000
(bootloader) partition-type:ffufw:raw
(bootloader) partition-size:ffufw:0x400000
(bootloader) partition-type:system_a:raw
(bootloader) partition-size:system_a:0xC2C00000
(bootloader) partition-type:system_b:raw
(bootloader) partition-size:system_b:0xC2C00000
(bootloader) partition-type:vendor_a:raw
(bootloader) partition-size:vendor_a:0x30000000
(bootloader) partition-type:vendor_b:raw
(bootloader) partition-size:vendor_b:0x30000000
(bootloader) partition-type:userdata:raw
(bootloader) partition-size:userdata:0xC7DB7BE00
all:
Finished. Total time: 0.634s
Thanks for the help.
edit*
zimmie said:
"fastboot reboot-recovery" =
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot recovery
Rebooting into recovery FAILED (remote: 'Unsupported reboot option reboot-recovery')
fastboot: error: Command failed
Click to expand...
Click to collapse
This doesn't necessarily mean that there is no recovery to boot into. The fastboot reboot command doesn't have a recovery parameter by default afaik (this error suggests the 3a's doesn't as well). But some phones seem to have it implemented, so always worth a shot.
Did you try to reboot into recovery by selecting the option by Vol-/+ and the Power button from the bootloader menu?
Since you didn't enable ADB, you didn't enable OEM unlocking in the settings, did you? This option is basically the system level switch to allow the bootloader to be unlocked by:
Code:
fastboot flashing unlock
or
fastboot oem unlock
If this was indeed enabled, you're able to unlock the bootloader, which factory resets by default and allows the flash command to succeed, therefore allowing you to flash a recovery or a whole factory image.
Otherwise, my knowledge possibly ends here. I'm new to the somewhat recent partition layouts and commands.
zimmie said:
This was super helpful it gave me a good idea how the boot system is structured in Android.
It seems like "Citadel" is a code name used for the bootloader in the "OEM" Command settings.
There might me other code names under "OEM" command which is hidden deep in the code.
Already tried searching the Source.
"Fastboot reboot-bootloader" = reboots back in Fastboot mode.
"fastboot reboot-recovery" =
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot recovery
Rebooting into recovery FAILED (remote: 'Unsupported reboot option reboot-recovery')
fastboot: error: Command failed
"fastboot reboot recovery" =
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot recovery
Rebooting into recovery FAILED (remote: 'Unsupported reboot option reboot-recovery')
fastboot: error: Command failed
^ Now that interesting seems the recovery "kernel" is not available.
"fastboot reboot" = Cant find Valid operating system
Unfortunetly ADB was not enabled. I was too eager to flash a final version of 10 before doing any setup on the phone. The phone came with beta 10.
"fastboot getvar all" =
Code:
(bootloader) product:sargo
(bootloader) serialno:xxxxxxxxxx
(bootloader) variant:SDM eMMC
(bootloader) max-download-size:0x10000000
(bootloader) slot-suffixes:_a,_b
(bootloader) version-bootloader:b4s4-0.2-5402313
(bootloader) version-baseband:g670-00019-190426-B-5509456
(bootloader) secure-boot:PRODUCTION
(bootloader) secure:yes
(bootloader) hw-revision:MP1.0
(bootloader) is-userspace:no
(bootloader) slot-count:2
(bootloader) current-slot:a
(bootloader) unlocked:no
(bootloader) nos-production:yes
(bootloader) off-mode-charge:1
(bootloader) slot-retry-count:a:7
(bootloader) slot-unbootable:a:no
(bootloader) slot-successful:a:no
(bootloader) slot-retry-count:b:6
(bootloader) slot-unbootable:b:no
(bootloader) slot-successful:b:yes
(bootloader) battery-voltage:4241
(bootloader) battery-soc-ok:yes
(bootloader) partition-type:cdt:raw
(bootloader) partition-size:cdt:0x20C00
(bootloader) partition-type:xbl_a:raw
(bootloader) partition-size:xbl_a:0x380000
(bootloader) partition-type:xbl_b:raw
(bootloader) partition-size:xbl_b:0x380000
(bootloader) partition-type:xbl_config_a:raw
(bootloader) partition-size:xbl_config_a:0x20000
(bootloader) partition-type:xbl_config_b:raw
(bootloader) partition-size:xbl_config_b:0x20000
(bootloader) partition-type:tz_a:raw
(bootloader) partition-size:tz_a:0x200000
(bootloader) partition-type:tz_b:raw
(bootloader) partition-size:tz_b:0x200000
(bootloader) partition-type:aop_a:raw
(bootloader) partition-size:aop_a:0x80000
(bootloader) partition-type:aop_b:raw
(bootloader) partition-size:aop_b:0x80000
(bootloader) partition-type:hyp_a:raw
(bootloader) partition-size:hyp_a:0x80000
(bootloader) partition-type:hyp_b:raw
(bootloader) partition-size:hyp_b:0x80000
(bootloader) partition-type:fsg:raw
(bootloader) partition-size:fsg:0x200000
(bootloader) partition-type:boot_a:raw
(bootloader) partition-size:boot_a:0x4000000
(bootloader) partition-type:boot_b:raw
(bootloader) partition-size:boot_b:0x4000000
(bootloader) partition-type:keymaster_a:raw
(bootloader) partition-size:keymaster_a:0x80000
(bootloader) partition-type:keymaster_b:raw
(bootloader) partition-size:keymaster_b:0x80000
(bootloader) partition-type:cmnlib_a:raw
(bootloader) partition-size:cmnlib_a:0x80000
(bootloader) partition-type:cmnlib64_a:raw
(bootloader) partition-size:cmnlib64_a:0x80000
(bootloader) partition-type:cmnlib_b:raw
(bootloader) partition-size:cmnlib_b:0x80000
(bootloader) partition-type:cmnlib64_b:raw
(bootloader) partition-size:cmnlib64_b:0x80000
(bootloader) partition-type:modem_a:raw
(bootloader) partition-size:modem_a:0x6E00000
(bootloader) partition-type:modem_b:raw
(bootloader) partition-size:modem_b:0x6E00000
(bootloader) partition-type:msadp_a:raw
(bootloader) partition-size:msadp_a:0x40000
(bootloader) partition-type:msadp_b:raw
(bootloader) partition-size:msadp_b:0x40000
(bootloader) partition-type:reserved:raw
(bootloader) partition-size:reserved:0x3D80000
(bootloader) partition-type:abl_a:raw
(bootloader) partition-size:abl_a:0x200000
(bootloader) partition-type:abl_b:raw
(bootloader) partition-size:abl_b:0x200000
(bootloader) partition-type:dip:raw
(bootloader) partition-size:dip:0x100000
(bootloader) partition-type:devinfo:raw
(bootloader) partition-size:devinfo:0x1000
(bootloader) partition-type:apdp_a:raw
(bootloader) partition-size:apdp_a:0x40000
(bootloader) partition-type:apdp_b:raw
(bootloader) partition-size:apdp_b:0x40000
(bootloader) partition-type:spunvm:raw
(bootloader) partition-size:spunvm:0x800000
(bootloader) partition-type:dpo:raw
(bootloader) partition-size:dpo:0x1000
(bootloader) partition-type:splash:raw
(bootloader) partition-size:splash:0x20A4000
(bootloader) partition-type:limits:raw
(bootloader) partition-size:limits:0x1000
(bootloader) partition-type:toolsfv:raw
(bootloader) partition-size:toolsfv:0x100000
(bootloader) partition-type:logfs:raw
(bootloader) partition-size:logfs:0x800000
(bootloader) partition-type:ddr:raw
(bootloader) partition-size:ddr:0x100000
(bootloader) partition-type:sec:raw
(bootloader) partition-size:sec:0x4000
(bootloader) partition-type:bluetooth_a:raw
(bootloader) partition-size:bluetooth_a:0x100000
(bootloader) partition-type:bluetooth_b:raw
(bootloader) partition-size:bluetooth_b:0x100000
(bootloader) partition-type:fsc:raw
(bootloader) partition-size:fsc:0x20000
(bootloader) partition-type:ssd:raw
(bootloader) partition-size:ssd:0x2000
(bootloader) partition-type:dtbo_a:raw
(bootloader) partition-size:dtbo_a:0x807000
(bootloader) partition-type:dtbo_b:raw
(bootloader) partition-size:dtbo_b:0x807000
(bootloader) partition-type:modemst1:raw
(bootloader) partition-size:modemst1:0x200000
(bootloader) partition-type:modemst2:raw
(bootloader) partition-size:modemst2:0x200000
(bootloader) partition-type:persist:raw
(bootloader) partition-size:persist:0x2800000
(bootloader) partition-type:misc:raw
(bootloader) partition-size:misc:0x100000
(bootloader) partition-type:keystore:raw
(bootloader) partition-size:keystore:0x80000
(bootloader) partition-type:devcfg_a:raw
(bootloader) partition-size:devcfg_a:0x20000
(bootloader) partition-type:devcfg_b:raw
(bootloader) partition-size:devcfg_b:0x20000
(bootloader) partition-type:qupfw_a:raw
(bootloader) partition-size:qupfw_a:0x10000
(bootloader) partition-type:qupfw_b:raw
(bootloader) partition-size:qupfw_b:0x10000
(bootloader) partition-type:modemcal:raw
(bootloader) partition-size:modemcal:0x200000
(bootloader) partition-type:uefivar:raw
(bootloader) partition-size:uefivar:0x100000
(bootloader) partition-type:ImageFv:raw
(bootloader) partition-size:ImageFv:0x200000
(bootloader) partition-type:frp:raw
(bootloader) partition-size:frp:0x80000
(bootloader) partition-type:sti:raw
(bootloader) partition-size:sti:0x200000
(bootloader) partition-type:storsec_a:raw
(bootloader) partition-size:storsec_a:0x20000
(bootloader) partition-type:storsec_b:raw
(bootloader) partition-size:storsec_b:0x20000
(bootloader) partition-type:rawdump:raw
(bootloader) partition-size:rawdump:0x8000000
(bootloader) partition-type:vbmeta_a:raw
(bootloader) partition-size:vbmeta_a:0x10000
(bootloader) partition-type:vbmeta_b:raw
(bootloader) partition-size:vbmeta_b:0x10000
(bootloader) partition-type:klog:raw
(bootloader) partition-size:klog:0x400000
(bootloader) partition-type:metadata:raw
(bootloader) partition-size:metadata:0x1000000
(bootloader) partition-type:ffufw:raw
(bootloader) partition-size:ffufw:0x400000
(bootloader) partition-type:system_a:raw
(bootloader) partition-size:system_a:0xC2C00000
(bootloader) partition-type:system_b:raw
(bootloader) partition-size:system_b:0xC2C00000
(bootloader) partition-type:vendor_a:raw
(bootloader) partition-size:vendor_a:0x30000000
(bootloader) partition-type:vendor_b:raw
(bootloader) partition-size:vendor_b:0x30000000
(bootloader) partition-type:userdata:raw
(bootloader) partition-size:userdata:0xC7DB7BE00
all:
Finished. Total time: 0.634s
Thanks for the help.
Click to expand...
Click to collapse
Seems like you have slot b bootable, based on the above output. Did you try to switch to it and reboot?
fastboot --set-active=b
sysuicrash0511 said:
This doesn't necessarily mean that there is no recovery to boot into. The fastboot reboot command doesn't have a recovery parameter by default afaik (this error suggests the 3a's doesn't as well). But some phones seem to have it implemented, so always worth a shot.
Did you try to reboot into recovery by selecting the option by Vol-/+ and the Power button from the bootloader menu?
Since you didn't enable ADB, you didn't enable OEM unlocking in the settings, did you? This option is basically the system level switch to allow the bootloader to be unlocked by:
Code:
fastboot flashing unlock
or
fastboot oem unlock
If this was indeed enabled, you're able to unlock the bootloader, which factory resets by default and allows the flash command to succeed, therefore allowing you to flash a recovery or a whole factory image.
Otherwise, my knowledge possibly ends here. I'm new to the somewhat recent partition layouts and commands.
Click to expand...
Click to collapse
Yes tried that. it goes into "Cant find Valid Operating System. Device will not start".
This what both command return. Locked boot loader. didn't enable ADB)
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flashing unlock
FAILED (remote: 'flashing unlock is not allowed')
fastboot: error: Command failed
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem unlock
FAILED (remote: 'Invalid oem command unlock')
fastboot: error: Command failed
pasha_d said:
Seems like you have slot b bootable, based on the above output. Did you try to switch to it and reboot?
fastboot --set-active=b
Click to expand...
Click to collapse
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot --set-active=b
Setting current slot to 'b' FAILED (remote: 'Fastboot command (set_active:) is not allowed when locked')
fastboot: error: Command failed
sounds like a very bad implementation of SLOTS.
It should automatically try to boot from B slot if A is unavailible.
is there a know key combination to force it to boot from a different slot?
btw. Apples RMA service is top notch compared to google.
Thanks
zimmie said:
sounds like a very bad implementation of SLOTS.
It should automatically try to boot from B slot if A is unavailible.
is there a know key combination to force it to boot from a different slot?
btw. Apples RMA service is top notch compared to google.
Thanks
Click to expand...
Click to collapse
Slots work as intended. Reading your getvar, I see the device tried to boot up slot b 6 times. At this point, your only hope is "fastboot flashing unlock" and hope the unlock bootloader is checked in in developer settings.
This is why you should always make sure the device works before buying second hand. If you can't unlock, just return to the original owner and get your money back.
Uzephi said:
This is why you should always make sure the device works before buying second hand. If you can't unlock, just return to the original owner and get your money back.
Click to expand...
Click to collapse
If I'm following the situation correctly, the phone did work fine from the seller. The OP simply decided to upgrade it from the Android 10 beta version that came on the phone, to the latest version. The phone got messed up during that process somehow and Google support won't help or let the OP return the phone because he is not the original owner. To make matters worse, the OP did not OEM unlock the phone prior to updating, so his options are very limited in trying to correct the problem because the bootloader is locked.
OP - I think your only option at this point is to contact the seller. Not to return the phone, but to try to get the original purchase information - order number, purchase date, buyer's email, etc - basically a copy of the original invoice. Hopefully with that information you can get some support from Google.
sysuicrash0511 said:
Then this citadel thing looks like it has something to do with the Titan security chip, not the bootloader itself.
Also, the boot.img files should be kernels, not bootloader images.
Click to expand...
Click to collapse
So, let's say we have a second, clean device (exact the same), would it work to do citadel recovery with the image from that second device? If yes, how can we export the citadel kernel/image or whatever from the second device?
Or am I misunderstanding the whole operation?
I just bought a Sony Xperia XZ1 G8342 off eBay that was sold saying that it was Google locked. I've been flashing phones for years with the help of XDA and figured I would just get it into recovery and wipe the software or use ADB from my Linux computer. Both methods have proven difficult, though, as there isn't a recovery system that I can get to on this Sony Xperia XZ1. I would like to install a custom ROM on this phone but to do that it has to have the bootloader unlocked and I did find that it is still locked using fastboot, however the phone won't let me get into settings to enable USB debugging which is what Sony developers want u to do in this guide:
Sony Developers Guide-unlock bootloader
Now I can get this phone into fastboot mode by having the phone powered off, pressing volume up and plugging in a usb cable from my computer at the same time. Then the LED turns blue and fastboot devices doesn't return an error.
So, do I need to have USB debugging enabled on the phone (or maybe somebody else already did this) if I don't get a fastboot error?
I was able to get this long output from fastboot getvar all:
(bootloader) hw-revision:20001
(bootloader) unlocked:no
(bootloader) off-mode-charge:0
(bootloader) charger-screen-enabled:0
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:4324
(bootloader) version-baseband:1307-7471_47.2.A.11.228
(bootloader) version-bootloader:1306-5035_X_Boot_MSM8998_LA2.0_P_114
(bootloader) erase-block-size: 0x1000
(bootloader) logical-block-size: 0x1000
(bootloader) variant:MSM UFS
(bootloader) partition-type:xblbak:raw
(bootloader) partition-size:xblbak: 0x3F5000
(bootloader) partition-type:xbl:raw
(bootloader) partition-size:xbl: 0x3F5000
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0xCFA976000
(bootloader) partition-type:system:ext4
(bootloader) partition-size:system: 0x138800000
(bootloader) partition-type:vendor:raw
(bootloader) partition-size:vendor: 0x60000000
(bootloader) partition-type:oem:raw
(bootloader) partition-size:oem: 0x19000000
(bootloader) partition-type:rdimage:raw
(bootloader) partition-size:rdimage: 0x2000000
(bootloader) partition-type:fsmetadata:raw
(bootloader) partition-size:fsmetadata: 0x101000
(bootloader) partition-type:Qnovo:raw
(bootloader) partition-size:Qnovo: 0x1800000
(bootloader) partition-type:diag:raw
(bootloader) partition-size:diag: 0x2000000
(bootloader) partition-type:appslog:raw
(bootloader) partition-size:appslog: 0x1000000
(bootloader) partition-type:vbmeta:raw
(bootloader) partition-size:vbmeta: 0x10000
(bootloader) partition-type:frp:raw
(bootloader) partition-size:frp: 0x80000
(bootloader) partition-type:keystore:raw
(bootloader) partition-size:keystore: 0x80000
(bootloader) partition-type:misc:raw
(bootloader) partition-size:misc: 0x100000
(bootloader) partition-type:cache:ext4
(bootloader) partition-size:cache: 0x17C00000
(bootloader) partition-type:ssd:raw
(bootloader) partition-size:ssd: 0x2000
(bootloader) partition-type:fsc:raw
(bootloader) partition-size:fsc: 0x1000
(bootloader) partition-type:modemst2:raw
(bootloader) partition-size:modemst2: 0x200000
(bootloader) partition-type:modemst1:raw
(bootloader) partition-size:modemst1: 0x200000
(bootloader) partition-type:ddr:raw
(bootloader) partition-size:ddr: 0x100000
(bootloader) partition-type:FOTAKernel:raw
(bootloader) partition-size:FOTAKernel: 0x4000000
(bootloader) partition-type:logfs:raw
(bootloader) partition-size:logfs: 0x800000
(bootloader) partition-type:toolsfv:raw
(bootloader) partition-size:toolsfv: 0x100000
(bootloader) partition-type:limits:raw
(bootloader) partition-size:limits: 0x1000
(bootloader) partition-type:splash:raw
(bootloader) partition-size:splash: 0x20A4000
(bootloader) partition-type:dpo:raw
(bootloader) partition-size:dpo: 0x1000
(bootloader) partition-type:msadp:raw
(bootloader) partition-size:msadp: 0x40000
(bootloader) partition-type:apdp:raw
(bootloader) partition-size:apdp: 0x40000
(bootloader) partition-type:bluetooth:raw
(bootloader) partition-size:bluetooth: 0x100000
(bootloader) partition-type:boot:raw
(bootloader) partition-size:boot: 0x4000000
(bootloader) partition-type:dsp:raw
(bootloader) partition-size:dsp: 0x1000000
(bootloader) partition-type:modem:raw
(bootloader) partition-size:modem: 0x6E00000
(bootloader) partition-type:sec:raw
(bootloader) partition-size:sec: 0x4000
(bootloader) partition-type:fsg:raw
(bootloader) partition-size:fsg: 0x180000
(bootloader) partition-type:persist:raw
(bootloader) partition-size:persist: 0x2000000
(bootloader) partition-type:xflkeystorebak:raw
(bootloader) partition-size:xflkeystorebak: 0x20000
(bootloader) partition-type:xflkeystore:raw
(bootloader) partition-size:xflkeystore: 0x20000
(bootloader) partition-type:tzxflbak:raw
(bootloader) partition-size:tzxflbak: 0x80000
(bootloader) partition-type:tzxfl:raw
(bootloader) partition-size:tzxfl: 0x80000
(bootloader) partition-type:tzxflattestbak:raw
(bootloader) partition-size:tzxflattestbak: 0x80000
(bootloader) partition-type:tzxflattest:raw
(bootloader) partition-size:tzxflattest: 0x80000
(bootloader) partition-type:xflbak:raw
(bootloader) partition-size:xflbak: 0x1E00000
(bootloader) partition-type:xfl:raw
(bootloader) partition-size:xfl: 0x1E00000
(bootloader) partition-type:storsecbak:raw
(bootloader) partition-size:storsecbak: 0x20000
(bootloader) partition-type:storsec:raw
(bootloader) partition-size:storsec: 0x20000
(bootloader) partition-type:devcfgbak:raw
(bootloader) partition-size:devcfgbak: 0x20000
(bootloader) partition-type:devcfg:raw
(bootloader) partition-size:devcfg: 0x20000
(bootloader) partition-type:sti:raw
(bootloader) partition-size:sti: 0x200000
(bootloader) partition-type:cmnlib64bak:raw
(bootloader) partition-size:cmnlib64bak: 0x80000
(bootloader) partition-type:cmnlib64:raw
(bootloader) partition-size:cmnlib64: 0x80000
(bootloader) partition-type:cmnlibbak:raw
(bootloader) partition-size:cmnlibbak: 0x80000
(bootloader) partition-type:cmnlib:raw
(bootloader) partition-size:cmnlib: 0x80000
(bootloader) partition-type:keymasterbak:raw
(bootloader) partition-size:keymasterbak: 0x80000
(bootloader) partition-type:keymaster:raw
(bootloader) partition-size:keymaster: 0x80000
(bootloader) partition-type:devinfo:raw
(bootloader) partition-size:devinfo: 0x1000
(bootloader) partition-type:ablbak:raw
(bootloader) partition-size:ablbak: 0x180000
(bootloader) partition-type:abl:raw
(bootloader) partition-size:abl: 0x180000
(bootloader) partition-type:pmicbak:raw
(bootloader) partition-size:pmicbak: 0x80000
(bootloader) partition-type:pmic:raw
(bootloader) partition-size:pmic: 0x80000
(bootloader) partition-type:hypbak:raw
(bootloader) partition-size:hypbak: 0x80000
(bootloader) partition-type:hyp:raw
(bootloader) partition-size:hyp: 0x80000
(bootloader) partition-type:tzbak:raw
(bootloader) partition-size:tzbak: 0x200000
(bootloader) partition-type:tz:raw
(bootloader) partition-size:tz: 0x200000
(bootloader) partition-type:rpmbak:raw
(bootloader) partition-size:rpmbak: 0x80000
(bootloader) partition-type:rpm:raw
(bootloader) partition-size:rpm: 0x80000
(bootloader) partition-type:LTALabel:raw
(bootloader) partition-size:LTALabel: 0x1000000
(bootloader) partition-type:TA:raw
(bootloader) partition-size:TA: 0x200000
(bootloader) secure:yes
(bootloader) product:G8342
(bootloader) max-download-size:536870912
(bootloader) kernel:uefi
Why is it google locked though? Thrown away phone that was refurbished or stolen? You should attempt google FRP bypass first, there are some guides online (a lot of them being fake and scammy), then you can actually access the phone, then you can modify it in any way you see fit.
I have no idea why the phone is Google locked...maybe the store I bought this from restored the software and locked it in the process and decided they weren't putting any more time into it? I did go through a bunch of FRP guides over the last couple days and the one that seemed like it would work was putting in a phone code to get to a recovery but this phone only lets me get to the emergency dialer which won't take codes. I think the software on this 2017 phone is more recent than the guides I've gone through.
Marty
I think I got my answer by using that fastboot command on 2 other Sony Xperias that have unlocked bootloaders and with debugging disabled...I was still able to get into them with fastboot. I'm just not sure if I can unlock the bootloader on the Xperia XZ1 if I don't know if the settings on the phone still have debugging enabled.
So, this phone seems to be useless when Google has locked it and the settings can't be accessed to enable android debugging so the bootloader can be unlocked? I can't believe I can't boot this into a recovery!
Marty
Maybe flash twrp into the device memory.? I can do that on my other Sony Xperias with fastboot boot .
What I've found out is that Sony's drm keys get deleted when the bootloader gets unlocked, so u want to backup the TA partition first. So would putting twrp into the memory or flashing on an official Sony ROM mess these up?
Marty
Nope-even flashing to memory won't work. Looks like Google can make android phones into paperweights!
Code:
[email protected]:~/Sony Xperia XZ1$ fastboot boot twrp-3.5.2_9-0-poplar.img
downloading 'boot.img'...
OKAY [ 1.996s]
booting...
FAILED (remote: Command not allowed)
finished. total time: 1.997s
Marty
I don't think any software can be flashed on this Google locked phone without unlocking. I went through even more FRP threads and found nothing that can work on the Android 9.0 software. It looks like the things that work were for the original Android 8.0 OS that this phone had.
Hopefully I'm wrong!
Marty
LinuxHippy said:
I don't think any software can be flashed on this Google locked phone without unlocking. I went through even more FRP threads and found nothing that can work on the Android 9.0 software. It looks like the things that work were for the original Android 8.0 OS that this phone had.
Hopefully I'm wrong!
Marty
Click to expand...
Click to collapse
Ever find a solution? I'm in the same boat.
Auto Flash_all script for any xiaomi phone..there are 2 Option first using GUI and Second by Running Individual File, if you use GUI you have to do nothing if you use Individual file you have to specify firmware folder in 'dir.cmd'
Require- unlock bootloader + critical
How to use:
connect phone to computer in fastboot modif you have a phone with Single slot Run FlashA.exeif you have a phone with dual slot run flashab.exeMethod 2:Run GUI fastboot_flasher.exe
How to it works:
first it generate a partition list from your device, once it have a complete list it will start flashing one by one, for devices with AB slot it will add _ab flag to each partition like 'boot_ab' then file name which is 'boot.img' & final code look like 'fastboot flash boot_ab boot.img' once done it will set active slot to 'a'
Note:
make sure you use official firmware package (to fix file not found error)
don't run this script just for test or run on a test device because it will wipe all userdata at the end
you can't make a copy of generated script you have to use flasha.exe or flashab.exe every time
tested and working on redmi note 6 pro, redmi note 11 pro plus, redmi 5a
GUI No Response: because you have click 'Download' before connecting the device (so first connect device then click download button)
mark332 said:
Auto Flash_all script for any xiaomi phone..there are 2 Option first using GUI and Second by Running Individual File, if you use GUI you have to do nothing if you use Individual file you have to specify firmware folder in 'dir.cmd'
Require- unlock bootloader + critical
How to use:
connect phone to computer in fastboot modif you have a phone with Single slot Run FlashA.exeif you have a phone with dual slot run flashab.exeMethod 2:Run GUI fastboot_flasher.exe
How to it works:
first it generate a partition list from your device, once it have a complete list it will start flashing one by one, for devices with AB slot it will add _ab flag to each partition like 'boot_ab' then file name which is 'boot.img' & final code look like 'fastboot flash boot_ab boot.img' once done it will set active slot to 'a'
Note:
make sure you use official firmware package (to fix file not found error)
don't run this script just for test or run on a test device because it will wipe all userdata at the end
you can't make a copy of generated script you have to use flasha.exe or flashab.exe every time
Download Link: https://1drv.ms/u/s!An6n6lvbmltBjykcUxcMdCAIlb0N?e=7YUzxo
tested and working on redmi note 6 pro, redmi note 11 pro plus, redmi 5a
GUI No Response: because you have click 'Download' before connecting the device (so first connect device then click download button)
Click to expand...
Click to collapse
this tool use search & replace trick to get partition from getvarall, if the device does not show any partition in getvarall then it will not work
output look like this=
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0x27f3fbe00
(bootloader) partition-type:cust:
(bootloader) partition-size:cust: 0x20000000
(bootloader) partition-type:dpo:
(bootloader) partition-size:dpo: 0x2000
(bootloader) partition-type:msadp:
(bootloader) partition-size:msadp: 0x40000
(bootloader) partition-type:apdp:
(bootloader) partition-size:apdp: 0x40000
(bootloader) partition-type:keymasterbak:
(bootloader) partition-size:keymasterbak: 0x40000
(bootloader) partition-type:keymaster:
(bootloader) partition-size:keymaster: 0x40000
(bootloader) partition-type:cmnlib64bak:
(bootloader) partition-size:cmnlib64bak: 0x40000
(bootloader) partition-type:cmnlib64:
(bootloader) partition-size:cmnlib64: 0x40000
(bootloader) partition-type:cmnlibbak:
(bootloader) partition-size:cmnlibbak: 0x40000
(bootloader) partition-type:cmnlib:
(bootloader) partition-size:cmnlib: 0x40000
(bootloader) partition-type:lksecappbak:
(bootloader) partition-size:lksecappbak: 0x20000
(bootloader) partition-type:lksecapp:
(bootloader) partition-size:lksecapp: 0x20000
(bootloader) partition-type:mcfg:
(bootloader) partition-size:mcfg: 0x400000
(bootloader) partition-type:syscfg:
(bootloader) partition-size:syscfg: 0x80000
(bootloader) partition-type:mdtp:
(bootloader) partition-size:mdtp: 0x2000000
(bootloader) partition-type:dip:
(bootloader) partition-size:dip: 0x100000
(bootloader) partition-type:mota:
(bootloader) partition-size:mota: 0x80000
(bootloader) partition-type:limits:
(bootloader) partition-size:limits: 0x8000
(bootloader) partition-typeem:
(bootloader) partition-sizeem: 0x4000000
(bootloader) partition-type:config:
(bootloader) partition-size:config: 0x8000
(bootloader) partition-type:keystore:
(bootloader) partition-size:keystore: 0x80000
(bootloader) partition-type:misc:
(bootloader) partition-size:misc: 0x100000
(bootloader) partition-typeersist:
(bootloader) partition-sizeersist: 0x2000000
(bootloader) partition-type:cache:ext4
(bootloader) partition-size:cache: 0x10000000
(bootloader) partition-type:system:ext4
(bootloader) partition-size:system: 0xc0000000
(bootloader) partition-type:devinfo:
(bootloader) partition-size:devinfo: 0x100000
(bootloader) partition-type:recovery:
(bootloader) partition-size:recovery: 0x4000000
(bootloader) partition-type:boot:
(bootloader) partition-size:boot: 0x4000000
(bootloader) partition-type:abootbak:
(bootloader) partition-size:abootbak: 0x100000
(bootloader) partition-type:aboot:
(bootloader) partition-size:aboot: 0x100000
(bootloader) partition-type:splash:
(bootloader) partition-size:splash: 0x1400000
(bootloader) partition-type:sec:
(bootloader) partition-size:sec: 0x4000
(bootloader) partition-type:fsg:
(bootloader) partition-size:fsg: 0x400000
(bootloader) partition-typeDR:
(bootloader) partition-sizeDR: 0x8000
(bootloader) partition-type:modemst2:
(bootloader) partition-size:modemst2: 0x400000
(bootloader) partition-type:modemst1:
(bootloader) partition-size:modemst1: 0x400000
(bootloader) partition-type:dsp:
(bootloader) partition-size:dsp: 0x1000000
(bootloader) partition-type:devcfgbak:
(bootloader) partition-size:devcfgbak: 0x40000
(bootloader) partition-type:devcfg:
(bootloader) partition-size:devcfg: 0x40000
(bootloader) partition-type:tzbak:
(bootloader) partition-size:tzbak: 0x200000
(bootloader) partition-type:tz:
(bootloader) partition-size:tz: 0x200000
(bootloader) partition-type:rpmbak:
(bootloader) partition-size:rpmbak: 0x80000
(bootloader) partition-type:rpm:
(bootloader) partition-size:rpm: 0x80000
(bootloader) partition-type:sbl1bak:
(bootloader) partition-size:sbl1bak: 0x80000
(bootloader) partition-type:sbl1:
(bootloader) partition-size:sbl1: 0x80000
(bootloader) partition-type:ssd:
(bootloader) partition-size:ssd: 0x2000
(bootloader) partition-type:fsc:
(bootloader) partition-size:fsc: 0x400
(bootloader) partition-type:modem:
(bootloader) partition-size:modem: 0x5400000
mark332 said:
Auto Flash_all script for any xiaomi phone..there are 2 Option first using GUI and Second by Running Individual File, if you use GUI you have to do nothing if you use Individual file you have to specify firmware folder in 'dir.cmd'
Require- unlock bootloader + critical
How to use:
connect phone to computer in fastboot modif you have a phone with Single slot Run FlashA.exeif you have a phone with dual slot run flashab.exeMethod 2:Run GUI fastboot_flasher.exe
How to it works:
first it generate a partition list from your device, once it have a complete list it will start flashing one by one, for devices with AB slot it will add _ab flag to each partition like 'boot_ab' then file name which is 'boot.img' & final code look like 'fastboot flash boot_ab boot.img' once done it will set active slot to 'a'
Note:
make sure you use official firmware package (to fix file not found error)
don't run this script just for test or run on a test device because it will wipe all userdata at the end
you can't make a copy of generated script you have to use flasha.exe or flashab.exe every time
tested and working on redmi note 6 pro, redmi note 11 pro plus, redmi 5a
GUI No Response: because you have click 'Download' before connecting the device (so first connect device then click download button)
Click to expand...
Click to collapse
where is the file
Run GUI fastboot_flasher.exe?