[solved] lost build.prop -> no more booting - OnePlus 7T Questions & Answers

Hello kind saviour,
I accidentally deleted my build.prop file and now my phone is stuck on "the boot loader is unlocked and software integrity cannot be guaranteed..." screen at boot.
I use the AOSIP rom for OnePlus 7t,if that helps.
I do NOT want to lose any data and preferably not lose any system settings either.
Updating the ROM is OK for me. Please let me know if that is a good idea however.
The good part:
fastboot boot TWRP.img works, sdcard data de-cryption works, i can access files with MTP. Already made a backup of most important data.
I do not know which AOSIP version I have, but it's not the latest.
Doesn't work: fastboot boot magisk-patched.img (image might be too old?)
Doesn't work: fastboot reboot fastboot + fastboot boot boot.img -> Error:
*FAILED (remote: 'Download is not allowed on locked devices')
Booting from A instead of B goes into infinite booting animation.
adb commands during twrp don't work
No adb access anywhere else
I have no backup of build.prop
I have a builT.prop file and i suspect i saved it with wrong name (but I still can't access /system partition)
I had access to /system partition during first twrp boot, but accidentally mounted it as read only the first time.
After following reboots to twrp, system is always unmountable (both from slot a as well as slot b).
Even after deleting twrp folder from pc, the system partition remains unmountable:
*Failed to mount '/system_root' (Permission denied)
*Failed to mount '/vendor' (Permission denied)
bootloader is unlocked & phone is rooted with magisk.
If you could help me with a solution where i can keep my data you would make me soo happy. Having a rough time with life lately and you could be my second coming of Jesus
Thanks in advance.

Dirty flash latest aosip with TWRP or with fastboot

HueyT said:
Dirty flash latest aosip with TWRP or with fastboot
Click to expand...
Click to collapse
Thank you! I will try that later today and report back.

I tried dirty flashing the latest AOSIP update, and it made everything worse. (Maybe I was on the wrong slot??)
Now there is no fastbootD, no recovery, and neither possible to fastboot boot twrp.img!
Only thing that worked was the bootloader (fastboot).
I didn't even get the usual "the boot loader is unlocked and software integrity cannot be guaranteed..." screen.
However, i changed slot with fastboot and now I have recovery and fastbootD and can boot twrp again.
Now I'm really worried about messing up my next steps, so would be super grateful for any help you can give me. I believe we are near a solution here.
Big Questions:
Should I dirty update the rom from fastbootD or from TWRP?
Which *SLOT* do I update from?
History of how everything went wrong:
Spoiler: command line messages and responses
fastboot update OSiP-10-Gapps-hotdogb-20210621-img.zip
Code:
--------------------------------------------
Bootloader Version...: unknown
Baseband Version.....:
Serial Number........: 9de0f5c0
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
android-info.txt syntax error:
Setting current slot to 'b'
FAILED (remote: 'set_active command is not allowed on locked devices')
fastboot: error: Command failed
fastboot oem device-info
Code:
FAILED (remote: 'Unable to open fastboot HAL')
fastboot: error: Command failed
//I manually rebooted to bootloader (fastboot) here//
fastboot oem device-info
Code:
(bootloader) Verity mode: true
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: false
(bootloader) Charger screen enabled: true
(bootloader) enable_dm_verity: true
(bootloader) have_console: false
(bootloader) selinux_type: SELINUX_TYPE_INVALID
(bootloader) boot_mode: NORMAL_MODE
(bootloader) kmemleak_detect: false
(bootloader) force_training: 0
(bootloader) mount_tempfs: 0
(bootloader) op_abl_version: 0x31
(bootloader) cal_rebootcount: 0x31
OKAY [ 0.050s]
Finished. Total time: 0.053s
fastboot reboot fastboot
Code:
Rebooting into fastboot
OKAY [ 0.004s]
< waiting for any device >
fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable.

Update: i found a solution by updating adb/fastboot .exe files,
flashing twrp-3-5-1_10-hotdog-sdcardfs.img
and dirty flashing the latest aosip image in twrp's fastboot mode
I got a "QUALCOMM CrashDump Mode" message once but it boots to aosip now. We will see if the crashdump messages appear again or not.

Related

Bricked device: Cannot unlock, flash, boot, unable to mount partition, missing table

I had lollipop running without real issues for a while. After a complete battery drain, I put it on the charger. Upon trying to turn the device on, it hung on the Google screen showing an unlocked padlock at the bottom.
I tried to see how far I could go, and can boot into fastboot but no further.
I thought I would start the usual flashing process from the start by bringing it back to stock and then back to root. Initially the device was unlocked. I locked it with "fastboot oem lock" the rebooted to bootloader. Now when I run "fastboot oem unlock", the unit freezes up when I select Yes to confirm unlocking the bootloader.
Code:
C:\Android>fastboot oem unlock
...
(bootloader) Unlocking bootloader...
(bootloader) erasing userdata...
FAILED (status read failed (Too many links))
finished. total time: 898.264s
Previously, before I locked it, when I tried to flash recovery & bootloader, I received "FAILED (remote: flash write failure)" and "fastboot FAILED (remote: Partition table doesn't exist)" errors. Now, I cannot try to reflash because I can't get unlocked ("FAILED (remote: Bootloader is locked.)")
Current status:
Code:
C:\Android>fastboot-toolkit oem device-info
...
(bootloader) Device tampered: false
(bootloader) Device unlocked: false
(bootloader) SB=Y
OKAY [ 0.016s]
finished. total time: 0.016s
integramodder said:
I had lollipop running without real issues for a while. After a complete battery drain, I put it on the charger. Upon trying to turn the device on, it hung on the Google screen showing an unlocked padlock at the bottom.
I tried to see how far I could go, and can boot into fastboot but no further.
I thought I would start the usual flashing process from the start by bringing it back to stock and then back to root. Initially the device was unlocked. I locked it with "fastboot oem lock" the rebooted to bootloader. Now when I run "fastboot oem unlock", the unit freezes up when I select Yes to confirm unlocking the bootloader.
Code:
C:\Android>fastboot oem unlock
...
(bootloader) Unlocking bootloader...
(bootloader) erasing userdata...
FAILED (status read failed (Too many links))
finished. total time: 898.264s
Previously, before I locked it, when I tried to flash recovery & bootloader, I received "FAILED (remote: flash write failure)" and "fastboot FAILED (remote: Partition table doesn't exist)" errors. Now, I cannot try to reflash because I can't get unlocked ("FAILED (remote: Bootloader is locked.)")
Current status:
Code:
C:\Android>fastboot-toolkit oem device-info
...
(bootloader) Device tampered: false
(bootloader) Device unlocked: false
(bootloader) SB=Y
OKAY [ 0.016s]
finished. total time: 0.016s
Click to expand...
Click to collapse
Same exact thing happened to mine last week. I've followed the exact same steps as you with no luck..Maybe some has recovered from this?????
zerocool00 said:
Same exact thing happened to mine last week. I've followed the exact same steps as you with no luck..Maybe some has recovered from this?????
Click to expand...
Click to collapse
So was this a Google OTA update that caused this?
integramodder said:
So was this a Google OTA update that caused this?
Click to expand...
Click to collapse
Anyone else have any suggestions?

OTA nougat update failed - bootloop

Hi
ADB sideload fails at 47%, error in package.zip
The phone is in bootlop. I can't find signed MM images. The bootloader is locked. Any suggestions????
zaver said:
Hi
ADB sideload fails at 47%, error in package.zip
The phone is in bootlop. I can't find signed MM images. The bootloader is locked. Any suggestions????
Click to expand...
Click to collapse
Is your phone rooted? Because the same thing happened to me, but with the Nougat OTA update, not the ADB. I tried to unroot, but It kept failing, until I flashed from scratch the Marshmallow (with ADB).
Then I went through the OTA update again and it worked!
Maybe if you install the MM again, the Nougat may work =)
The phone is stock. I tried flashing MM with adb sideload, but I get "signature verification failed"
I also tried flashing in fastboot, but I can't without signed firmware files.
Have you extract the MM firmware files? I have successfully downgrade to MM my reteu Z play.
-=MoRpH=- said:
Have you extract the MM firmware files? I have successfully downgrade to MM my reteu Z play.
Click to expand...
Click to collapse
I have downloaded this:
https://mirrors.lolinet.com/firmware/moto/addison/official/RETEU/
if i use fastboot flash:
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash oem oem.img
fastboot erase carrier
fastboot erase DDR
fastboot oem fb_mode_clear
Output:
.....
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote failure)
......
.....
writing 'system'...
(bootloader) Security version downgrade
(bootloader) Image s failed validation
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
.......
....
Invalid signed image is for every partition action.
First flash this commands:
Code:
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
than restart the bootloader!
Now flash:
Code:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash oem oem.img
after that make a wipe in the stock recovery. That works for me yesterday.
{Edit} Is your Bootloader unlocked? And what channel is it? (RETEU?)
Fisrt set of commands goes through OK
For the second set I get "Invalid signed image"
My bootloader is unfortunately locked.
I got the msg that the signature failed also. But the flash finished. Just flash all commands straightforward.
Gesendet von meinem XT1635-02 mit Tapatalk
I did wipe/factory reset in recovery.
Now it starts up MOTO scren, the followed by by an ""Android (like in recovery)" and text "Erasing..."
And it loops.
That's because a broken update. I had the same after trying to root. The only way for me was the downgrade to MM and update till nougat again.
Would you write me a pm with the errors you got at the downgrade process?
Gesendet von meinem XT1635-02 mit Tapatalk
zaver said:
I did wipe/factory reset in recovery.
Now it starts up MOTO scren, the followed by by an ""Android (like in recovery)" and text "Erasing..."
And it loops.
Click to expand...
Click to collapse
is your software status official or modified?
if its modified flash this by fastboot method
https://firmware.center/firmware/Motorola/Moto Z Play/Stock/
check which ur device is and download latest stock firmware... everything will be just fine..
if it fails do report us we all are here to help you
edit: ur bootloader is locked... ur in trouble my son....
unlock it then flash firmware files...it should work out
Sagar_1401 said:
unlock it then flash firmware files...it should work out
Click to expand...
Click to collapse
You are aware that unlocking erases all data and voids warranty?
Without unlocking you may try starting with
fastboot oem lock start
ending with
fastboot oem lock
(Only from memory, don't know what needs to be integrated, should do no harm if it fails, just refuse changes - but have no experience with this)
tag68 said:
You are aware that unlocking erases all data and voids warranty?
Without unlocking you may try starting with
fastboot oem lock start
ending with
fastboot oem lock
(Only from memory, don't know what needs to be integrated, should do no harm if it fails, just refuse changes - but have no experience with this)
Click to expand...
Click to collapse
he anyways need to loose all his data... he has messed up already.. what could he do now?
Maybe the data is lost, but the warranty isn't. At least by now.
Edit: I mean, it may be that the action makes sense. But it is not your decision and you should mention the drawbacks. He may not be aware that the data is lost, and there may be actions avoiding the data loss (may be needed to wait weeks or months to get the right nougat firmware). He may not be aware that warranty will be void, and it may also be an option to use the warranty and give it Lenovo. It is not your decision. Giving hints is fine, but always tell the negative part/alternative ways. You do suggestions, not a guide. The user has to decide himself, otherwise he has some right to get angry if something does not work fine.
Just my 2 cents: He needs a open bootloader to downgrade. If not, he have to wait for an full Android 7 Firmware File what is newer or exact Version of the flashed bootloader; what he flashed already i think. The big Question is: why the update stops. Where do you get the file?
Gesendet von meinem Lenovo TAB 2 A10-70F mit Tapatalk
I cannot unlock bootloader, you need to modify a setting when the phone is running in developer options.
I don't care about the data and I already have the bootloader unlock key. I need to get official signed firmware files so I can flash MM from fastboot. At least that is what I think.
Try other firmware than retail.us. You have already done
Enviado desde mi XT1635-02 mediante Tapatalk
joshua764 said:
Try other firmware than retail.us. You have already done
Enviado desde mi XT1635-02 mediante Tapatalk
Click to expand...
Click to collapse
I tried reteu, retbr 6.01. I cannot flash from fastboot. I get "Invalid signed image", which to my knowledge means, that the image was not signed by motorola/google/lenovo. And I can't find official, signed images anywhere.
For me, the OTA update succeeded, worked a for a while, then at some point it rebooted, whereupon I received the same message as OP.
Using: https://mirrors.lolinet.com/firmware/moto/addison/official/RETEU/
Running
Code:
fastboot flash partition gpt.bin
results in
Code:
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:partition: not found
target reported max download size of 536870912 bytes
sending 'partition' (45 KB)...
OKAY [ 0.003s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote failure)
finished. total time: 0.072s
I assume this is because the update flashed newer firmware than what has been released by Motorola...
Attempting to sideload the .zip results in:
Code:
E: footer is wrong
EL signature verification failed
Installation aborted
So I'm left with the following choices:
1. Send the device back to Motorola for repair - won't have a phone in the meanwhile
2. Wait for Motorola to get a move on with releasing their firmware - phone unusable in the meanwhile
3. Unlock bootloader, void warranty, install LineageOS or similar, no camera until Motorola release the firmware blobs
Unless there are any other options I've missed, this is why you just cough up and go Google Nexus/Pixel gents...
Like I have said numerous times , DON'T ATTEMPT TO FLASH BACK TO MM unless you have a back up plan.
That back up plan would of course be, make sure you have the Nougat firmware for your specific device.

Can't boot TWRP via "fastboot boot" after upgrade (OOS boots fine)

Hi,
TL;DR: Bootloader unlocked. "fastboot boot twrp.img" worked fine until I upgraded to OxygenOS 5.1.4 (from 5.0.4). Now "fastboot boot twrp.img" just does nothing.
I had a OxygenOS system (Android 8.0, I believe it was OOS 5.0.4), rooted with Magisk. Everything was fine. Stock recovery, I wanted to change it as little as possible. I could use twrp-3.2.1-x_blu_spark_v8.70-op5_op5t.img perfectly, via "flashboot boot /path/to/img".
Today I decided to upgrade. I had an OTA notification for months, for OOS 5.1.4 (Android 8.1). I made a full backup with TWRP. Read about latest ROMs, seems 5.1.6 has some Bluetooth issues.
I opened the 5.1.4 OTA notification, curious to read the Changelog. A message said I had a rooted phone, and the update would install a full version instead of the OTA. Also, I'd lose root. Nothing I didn't expect, but I still wanted to flash with TWRP. Unfortunately, the updater had already downloaded the ROM and suddenly restarted. I did not want to interrupt the update, so let it go through.
Phone booted on OOS 5.1.4 without problems. Unrooted, of course. I went into fastboot mode, and tried loading TWRP with "flashboot boot /path/to/twrp-3.2.1-x_blu_spark_v8.70-op5_op5t.img". The image gets downloaded, and boot takes about 10s (most of which is a warning message that my bootloader is unlocked). After that, I just drop back to the 1+ bootloader screen. If I then try repeating the same "flashboot boot ..." command, I get the error "FAILED (remote: 'Failed to load/authenticate boot image: 00000050')".
I tried:
Several TWRP versions, from Blu_Spark, Codeworkx and siankatabg. Don't remember all of them, but at least the latest ones, i.e. twrp-3.2.3-x_blu_spark_v9.85_treble-op5_op5t.img, twrp-3.2.3-0-20180822-codeworkx-dumpling.img and TWRP_3.2.3-Pie_siankatabg_OP5.img.
Removing the screen pattern, lock screen None.
Upgrading to OOS 5.1.6 via stock recovery.
Different USB cable.
I can boot the phone to the OS just fine. But without TWRP I cannot flash Magisk, to root the phone. I have not tried flashing TWRP to recovery, because at least I know stock recovery works and don't want to lose that.
This is what I have from device-info (did not change from before the upgrade, when TWRP was working):
Code:
$ ./fastboot oem device-info
(bootloader) Verity mode: enforcing
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: false
(bootloader) Charger screen enabled: true
(bootloader) enable_dm_verity: true
(bootloader) have_console: false
(bootloader) selinux_type: SELINUX_TYPE_INVALID
(bootloader) boot_mode: NORMAL_MODE
(bootloader) kmemleak_detect: false
(bootloader) force_training: 0
(bootloader) mount_tempfs: 0
OKAY [ 0.001s]
Finished. Total time: 0.001s
This is how I'm trying to boot TWRP. From the OS, I hold the power button, press Reboot, then choose Bootloader (I have advanced reboot enabled). That takes me to a pretty screen with a menu and options to start the OS, boot to recovery, or restart bootloader. I can select using the volume up and volume down keys, but I just ignore the options and type the fastboot commands:
Code:
$ ./fastboot devices
<redacted> fastboot
$ ./fastboot boot ~/Android/OnePlus5t/TWRP/twrp-3.2.3-x_blu_spark_v9.85_treble-op5_op5t.img
Downloading 'boot.img' OKAY [ 0.819s]
booting OKAY [ 10.106s]
Finished. Total time: 10.936s
The 10s is basically the Android warning message saying the boot loader is unlocked and the data cannot be trusted. I get that when booting to normal OS as well. After that warning goes away, instead of getting TWRP, I just get a black screen with "1+ Bootloader".
In that screen, I can still type fastboot commands, but now I have a different error:
Code:
$ ./fastboot boot ~/Android/OnePlus5t/TWRP/twrp-3.2.3-x_blu_spark_v9.85_treble-op5_op5t.img
Downloading 'boot.img' OKAY [ 0.822s]
booting FAILED (remote: 'Failed to load/authenticate boot image: 00000050')
Finished. Total time: 0.835s
I'm at a loss here. Can someone help? I've considered trying out the RedWolf alternative thing, but am worried it might mess with encryption or something. I could flash TWRP, but really worry that 1) if it doesn't work, I won't have any recovery at all, and 2) I'd like to keep the stock recovery as a fallback.
This could perhaps be more of a question for the developers? I posted here because I was not allowed to post in the "OnePlus 5T ROMs, Kernels, Recoveries, & Other Development" section.

(remote: 'Error getting device locked state No Response')

So I was flashing my device to the December update on my unlocked bootloader Pixel 3. Everything seemed to work fine and it loaded after the flash. Went through the startup options and reset the phone. Now I can only turn it on by holding down power and Volume Down to load in Fastboot Mode. When I do it gives me "Device state: error!" (error is in red).
When I open command prompt and type fastboot flashing unlock it tells me:
FAILED (remote: 'Error getting device locked state No Response') after 9 seconds.
Any advice on how to get this back up and running? I've done some google searches but haven't found this error message. Thanks in advance!!
First thing to try is flash factory image with flash-all, and then start over. You could try and remove -w from flash-all script to try first, so it doesn't wipe the phone.
Getting to bootloader is always a good sign at least.
I am having the same problem. Except when i go to flash the recovery or even the boot image i keep getting error not allowed. I too can only boot to the bootloader.
I've tried this.
Sending 'bootloader_b' (8489 KB) OKAY [ 0.437s]
Writing 'bootloader_b' FAILED (remote: 'error getting device locked state No Response')
Finished. Total time: 9.809s
rebooting into bootloader OKAY [ 0.062s]
Finished. Total time: 0.062s
< waiting for any device >
Sending 'radio_b' (71148 KB) OKAY [ 2.598s]
Writing 'radio_b' FAILED (remote: 'error getting device locked state No Response')
Finished. Total time: 11.955s
rebooting into bootloader OKAY [ 0.050s]
Finished. Total time: 0.058s
< waiting for any device >
extracting android-info.txt (0 MB) to RAM...
--------------------------------------------
Bootloader Version...: b1c1-0.1-5034669
Baseband Version.....: values given
Serial Number........: values given
--------------------------------------------
Checking product OKAY [ 0.052s]
Checking version-bootloader OKAY [ 0.054s]
Checking version-baseband OKAY [ 0.059s]
extracting boot.img (64 MB) to disk... took 0.627s
archive does not contain 'boot.sig'
archive does not contain 'boot_other.img'
extracting dtbo.img (8 MB) to disk... took 0.062s
archive does not contain 'dtbo.sig'
archive does not contain 'dt.img'
archive does not contain 'odm.img'
extracting product.img (194 MB) to disk... took 5.967s
archive does not contain 'product.sig'
archive does not contain 'product-services.img'
archive does not contain 'recovery.img'
archive does not contain 'super.img'
extracting system.img (2158 MB) to disk... took 71.632s
archive does not contain 'system.sig'
extracting system_other.img (418 MB) to disk... took 12.458s
archive does not contain 'system.sig'
extracting vbmeta.img (0 MB) to disk... took 0.004s
archive does not contain 'vbmeta.sig'
extracting vendor.img (445 MB) to disk... took 12.275s
archive does not contain 'vendor.sig'
archive does not contain 'vendor_other.img'
Erase successful, but not automatically formatting.
File system type raw not supported.
Erase successful, but not automatically formatting.
File system type raw not supported.
Sending 'boot_b' (65536 KB) OKAY [ 2.457s]
Writing 'boot_b' FAILED (remote: 'error getting device locked state No Response')
Finished. Total time: 185.977s
Press any key to exit...
boostedduece said:
First thing to try is flash factory image with flash-all, and then start over. You could try and remove -w from flash-all script to try first, so it doesn't wipe the phone.
Getting to bootloader is always a good sign at least.
Click to expand...
Click to collapse
Ofuroski said:
So I was flashing my device to the December update on my unlocked bootloader Pixel 3. Everything seemed to work fine and it loaded after the flash. Went through the startup options and reset the phone. Now I can only turn it on by holding down power and Volume Down to load in Fastboot Mode. When I do it gives me "Device state: error!" (error is in red).
When I open command prompt and type fastboot flashing unlock it tells me:
FAILED (remote: 'Error getting device locked state No Response') after 9 seconds.
Any advice on how to get this back up and running? I've done some google searches but haven't found this error message. Thanks in advance!!
Click to expand...
Click to collapse
When you load fastboot mode what is the 'device state'?
what version of SDK Platform-tools is on your computer?
It should be r28.0.1
Did you open the Command Prompt in the Platform-tools folder?
[Guide] Pixel 3 XL Android 9.0 (Pie) Unlock/Root/Install Images/Kernels/Recovery + December 2018 Security Patch
Make sure you all have the latest sdk platform tools, r28. Looking at your posts here it looks like that is the problem. And to op, once the bootloader is unlocked it'll stay that way unless you specifically lock it so there's no need to try again. But, once you're in the bootloader use the command fastboot devices. Does it return a serial number or just hang like when you tried to unlock again. If it just hangs there's either a problem with your fastboot drivers or try different cables and USB ports.
Sent from my [device_name] using XDA-Developers Legacy app
Yes, I'm in the powershell in the folder and have the latest SDK. As stated, when I boot up into Fastboot mode, it gives device state as "error!" in red lettering like it's unable to determine if it's locked or not. It does not say locked or unlocked.
Homeboy76 said:
When you load fastboot mode what is the 'device state'?
what version of SDK Platform-tools is on your computer?
It should be r28.0.1
Did you open the Command Prompt in the Platform-tools folder?
[Guide] Pixel 3 XL Android 9.0 (Pie) Unlock/Root/Install Images/Kernels/Recovery + December 2018 Security Patch
Click to expand...
Click to collapse
When I type adb devices it says list of devices and is blank. However if I type commands such as flash-all it will recognize the device and attempt to flash (although it fails as seen above) since it gets hung up on not being able to determine the locked state. When doing this, it does show a serial number. Any other ideas?
jd1639 said:
Make sure you all have the latest sdk platform tools, r28. Looking at your posts here it looks like that is the problem. And to op, once the bootloader is unlocked it'll stay that way unless you specifically lock it so there's no need to try again. But, once you're in the bootloader use the command fastboot devices. Does it return a serial number or just hang like when you tried to unlock again. If it just hangs there's either a problem with your fastboot drivers or try different cables and USB ports.
Sent from my [device_name] using XDA-Developers Legacy app
Click to expand...
Click to collapse
Ofuroski said:
When I type adb devices it says list of devices and is blank. However if I type commands such as flash-all it will recognize the device and attempt to flash (although it fails as seen above) since it gets hung up on not being able to determine the locked state. When doing this, it does show a serial number. Any other ideas?
Click to expand...
Click to collapse
If you're booted into the bootloader adb doesn't work. It's only for when you're in system or recovery. Fastboot is what you need when booted into the bootloader. I'm sure, based on the flash-all working, that if you type fastboot devices when booted into the bootloader you'll get yet serial number returned.
Have you tried to flash only the bootloader image to both slots?
Sent from my [device_name] using XDA-Developers Legacy app
jd1639 said:
If you're booted into the bootloader adb doesn't work. It's only for when you're in system or recovery. Fastboot is what you need when booted into the bootloader. I'm sure, based on the flash-all working, that if you type fastboot devices when booted into the bootloader you'll get yet serial number returned.
Have you tried to flash only the bootloader image to both slots?
Sent from my [device_name] using XDA-Developers Legacy app
Click to expand...
Click to collapse
Yes, you are 100% correct. When I type fastboot devices the serial does appear. However, this still does not help me with the "device state: error!" message. The only thing I've flashed was the December update, so I'm not sure what you mean by flashing only the bootloader image to both slots.
Ofuroski said:
Yes, you are 100% correct. When I type fastboot devices the serial does appear. However, this still does not help me with the "device state: error!" message. The only thing I've flashed was the December update, so I'm not sure what you mean by flashing only the bootloader image to both slots.
Click to expand...
Click to collapse
If you extract the factory image you'll find a bootloader-blueline- image file. You would use
fastboot flash bootloader --slot all bootloader.img (where bootloader is the full name of the file)
Edit, sorry you have the XL so it would be bootloader-crosshatch-
Sent from my [device_name] using XDA-Developers Legacy app
jd1639 said:
If you extract the factory image you'll find a bootloader-blueline- image file. You would use
fastboot flash bootloader --slot all bootloader.img (where bootloader is the full name of the file)
Edit, sorry you have the XL so it would be bootloader-crosshatch-
Sent from my [device_name] using XDA-Developers Legacy app
Click to expand...
Click to collapse
Right. I tried that now and it gives me the same.
Sending 'bootloader_a' (8489 KB) OKAY
Writing 'bootloader_a' FAILED (remote: 'error getting device locked state No Response')
Finished.
Ofuroski said:
Right. I tried that now and it gives me the same.
Sending 'bootloader_a' (8489 KB) OKAY
Writing 'bootloader_a' FAILED (remote: 'error getting device locked state No Response')
Finished.
Click to expand...
Click to collapse
Then something is probably wrong with your device. But try one last thing, booted into the bootloader try
fastboot flashing unlock_critical
This shouldn't make any difference but who knows. It'll wipe the device too so plan for that.
Sent from my [device_name] using XDA-Developers Legacy app
jd1639 said:
Then something is probably wrong with your device. But try one last thing, booted into the bootloader try
fastboot flashing unlock_critical
This shouldn't make any difference but who knows. It'll wipe the device too so plan for that.
Sent from my [device_name] using XDA-Developers Legacy app
Click to expand...
Click to collapse
Wiping doesn't matter since I already wiped when flashing the December update right before the error occurred, but I think that command was for Pixel 2? It tells me
FAILED (remote: 'invalid argument unlock_critical') when I try that command.
I'm trying to figure out why the phone gives no response when trying to determine the locked state. Seems odd that I haven't seen this error message brought up anywhere on these forums before.
Ofuroski said:
Wiping doesn't matter since I already wiped when flashing the December update right before the error occurred, but I think that command was for Pixel 2? It tells me
FAILED (remote: 'invalid argument unlock_critical') when I try that command.
I'm trying to figure out why the phone gives no response when trying to determine the locked state. Seems odd that I haven't seen this error message brought up anywhere on these forums before.
Click to expand...
Click to collapse
I'm betting your eMMC is bad since nothing seems to be able to determine the lock state. When you boot to the bootloader the device state should say locked or unlocked and yours says error. So it's not being read correctly or at all. I haven't seen this problem either with this device but there's always a first. You should be able to RMA the device and that's where I would go from here.
Sent from my [device_name] using XDA-Developers Legacy app
Ofuroski said:
Wiping doesn't matter since I already wiped when flashing the December update right before the error occurred, but I think that command was for Pixel 2? It tells me
FAILED (remote: 'invalid argument unlock_critical') when I try that command. I'm trying to figure out why the phone gives no response when trying to determine the locked state. Seems odd that I haven't seen this error message brought up anywhere on these forums before.
Click to expand...
Click to collapse
Yes, unlock_critical was only needed for the Pixel 2. Run "fastboot getvar all" and post the result. At least the first 30 lines or so. Sounds like you ran factory reset from within system and that is when the trouble started, but how about when you run it (FDR) from recovery mode? ADB commands will only work in recovery mode.
v12xke said:
Yes, unlock_critical was only needed for the Pixel 2. Run "fastboot getvar all" and post the result. At least the first 30 lines or so. Sounds like you ran factory reset from within system and that is when the trouble started, but how about when you run it (FDR) from recovery mode? ADB commands will only work in recovery mode.
Click to expand...
Click to collapse
Thanks for your help and info. Here's what getvar posts.
(bootloader) product:crosshatch
(bootloader) serialno:85HY008F7
(bootloader) variant:MSM USF
(bootloader) max-download-size:0x10000000
(bootloader) slot-suffixes:_a,_b
(bootloader) version-bootloader:b1c1-0.1-5034669
(bootloader) version-baseband:g845-00023-180917-B-5014671
(bootloader) secure-boot:NONE
(bootloader) secure:no
(bootloader) hw-revision:EVT1.1
(bootloader) slot-count:2
(bootloader) current-slot:b
(bootloader) unlocked:error
(bootloader) nos-production:error
(bootloader) off-mode-charge:1
(bootloader) slot-retry-count:a:3
(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:3790
(bootloader) battery-soc-ok:yes
(bootloader) partition-type:ssd:raw
(bootloader) partition-size:ssd:0x2000
(bootloader) partition-type:misc:raw
(bootloader) partition-size:misc:0x100000
(bootloader) partition-type:keystore:raw
(bootloader) partition-size:keystore:0x80000
(bootloader) partition-type:frp:raw
(bootloader) partition-size:frp:0x80000
Ofuroski said:
Thanks for your help and info. Here's what getvar posts....
Click to expand...
Click to collapse
The notable ones I see are different from mine. Everything else is the same except for the differences between blueline and crosshatch. I'm not a dev and don't know exactly what they mean but there is something wrong with secure-boot. Since you were stock there should be little risk in running the flashing command and try lock and then unlock the bootloader. Generally the rule is once the bl is unlocked you never go back for any reason, but you are dead in the water right now anyway. Hopefully you are in good shape warranty-wise in case you can't recover.
(bootloader) secure-bootRODUCTION
(bootloader) secure:yes
(bootloader) unlocked:yes
(bootloader) nos-production:yes
I have exactly same issue on Pixel5.
Did you find any solution?
Not sure if this helps anyone else, I had my Pixel 3 XL just break.
Bootloader failed to verify/load image. Going into rescue mode didnt work. Fastboot was giving the same No response error
Fastboot command (flash:bootloader_b) failed: 'error getting device locked state No Response'
I tried to flash the bootloader
(env) ➜ platform-tools fastboot flash bootloader bootloader-crosshatch-b1c1-0.3-7065185.img
Sending 'bootloader_b' (8517 KB) OKAY [ 0.310s]
Writing 'bootloader_b' FAILED (remote: 'error getting device locked state No Response')
and i tried to unlock the bootloader
(env) ➜ platform-tools fastboot flashing unlock
FAILED (remote: 'Error getting device locked state No Response')
fastboot: error: Command failed
So i figured this thing was bricked so i started play around with every command to see if anything would work
(env) ➜ platform-tools fastboot update ~/Downloads/crosshatch-rq2a.210405.006/image-crosshatch-rq2a.210405.006.zip
--------------------------------------------
Bootloader Version...: b1c1-0.3-7241706
Baseband Version.....: g845-00173-210331-B-7249945
Serial Number........: 8BLY10DMG
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product' OKAY [ 0.058s]
Checking 'version-bootloader' FAILED
Device version-bootloader is 'b1c1-0.3-7241706'.
Update requires 'b1c1-0.3-7065185'.
fastboot: error: requirements not met!
(env) ➜ platform-tools fastboot flashing unlock
FAILED (remote: 'Error getting device locked state No Response')
fastboot: error: Command failed
(env) ➜ platform-tools fastboot oem fastboot oem
FAILED (remote: 'Invalid oem command fastboot')
fastboot: error: Command failed
(env) ➜ platform-tools fastboot oem ddrtest
FAILED (remote: 'error getting device locked state No Response')
fastboot: error: Command failed
(env) ➜ platform-tools fastboot oem
fastboot: usage: empty oem command
(env) ➜ platform-tools fastboot oem citadel state
FAILED (remote: 'failed to get citadel state No Response')
fastboot: error: Command failed
(env) ➜ platform-tools fastboot oem citadel reset
OKAY [ 0.190s]
Finished. Total time: 0.190s
(env) ➜ platform-tools fastboot oem citadel state
(bootloader) Citadel state:
(bootloader) Version : 1
(bootloader) Bootloader state: 0
(bootloader) Production state: 1
(bootloader) Number of locks : 4
(bootloader) Lock[0]: 1
(bootloader) Lock[1]: 1
(bootloader) Lock[2]: 1
(bootloader) Lock[3]: 0
OKAY [ 0.151s]
Finished. Total time: 0.151s
(env) ➜ platform-tools fastboot flashing unlock
FAILED (remote: 'flashing unlock is not allowed')
fastboot: error: Command failed
(env) ➜ platform-tools fastboot oem citadel reset-locks
FAILED (remote: 'failed to reset citadel AVB locks Device Error')
fastboot: error: Command failed
(env) ➜ platform-tools fastboot oem citadel reset-locks
(env) ➜ platform-tools fastboot reboot
Rebooting OKAY [ 0.080s]
Finished. Total time: 0.080s
I finally got a different screen after
fastboot oem citadel reset
fastboot oem citadel state
fastboot oem citadel reset-locks
fastboot reboot
This gave me an android with a No connection error message and fastboot was no longer showing the device. I then hit power+up vol until it rebooted, hit power+down vol until it rebooted.. and it booted into Android!
hope something here helps someone else, I have no idea what i actually did but

Issues with Twrp, gapps, magisk

What I do with that mess ?
fastboot -w
fastboot flash dtbo dtbo.img
fastboot boot twrp.img
TWRP work
fastboot -w
fastboot flash dtbo dtbo.img
fastboot flash rom.img
fastboot boot twrp.img
TWRP work
fastboot -w
fastboot flash dtbo dtbo.img
fastboot flash rom.img
Start rom to enable usb debugging for twrp adb push
fastboot boot twrp.img
TWRP don't work
No sd card around so I aim to use Twrp to add Gapps and Magisk mostly
Google play store won't download even if in custom rom
Magisk manager worked but Magisk can't be added
Various little errors :
(bootloader) is-logical:logo_b: not found
(bootloader) is-logical:boot_b: not found
(bootloader) Image signed with key bad key
(bootloader) is-logical:recovery: not found
(bootloader) Invalid partition name recovery
FAILED (remote: '')
fastboot: error: Command failed
Erase successful, but not automatically formatting.
File system type raw not supported.
(bootloader) Permission denied
FAILED (remote: '')
fastboot: error: Command failed
(bootloader) is-logical:dtbo_b: not found
...

Categories

Resources