Question Can't unlock the bootloader again :( - Moto G30

Hi,
I rooted, downgraded my Motorola G30 and now is not starting and it's hanging on warning screen. Did I bricked it?
Is there any possibility to rescue it.
What I did:
Unlock
1.adb reboot bootloader
2.fastboot devices
1.fastboot oem get_unlock_data
2.fastboot oem unlock UNLOCK_KEY (with the key from Mortorola)
3.fastboot reboot
Downgrade from Android 12 to 11
1.adb reboot bootloader
2.fastboot devices
3.fastboot flash partition gpt.bin
4.fastboot flash bootloader bootloader.img
5.fastboot flash vbmeta vbmeta.img
6.fastboot flash vbmeta_system vbmeta_system.img
7.fastboot flash radio radio.img
8.fastboot flash bluetooth BTFM.bin
9.fastboot flash dsp dspso.bin
10.fastboot flash logo logo.bin
11.fastboot flash boot boot.img
12.fastboot flash vendor_boot vendor_boot.img
13.fastboot flash dtbo dtbo.img
14.fastboot flash super super.img_sparsechunk.0
15.fastboot flash super super.img_sparsechunk.1
16.fastboot flash super super.img_sparsechunk.2
17.fastboot flash super super.img_sparsechunk.3
18.fastboot flash super super.img_sparsechunk.4
19.fastboot flash super super.img_sparsechunk.5
20.fastboot flash super super.img_sparsechunk.6
21.fastboot flash super super.img_sparsechunk.7
22.fastboot flash super super.img_sparsechunk.8
23.fastboot flash super super.img_sparsechunk.9
24.fastboot erase carrier
25.fastboot erase userdata
26.fastboot erase metadata
27.fastboot erase ddr
28.fastboot reboot
After reboot Android 11 was installed and run correctly.
As next step I wanted to lock bootloader again.
1.I disabled USB Debugging and OEM Unlocking in Developer options in the menu and restarted.
2.adb reboot bootloader
3.fastboot devices
4.fastboot flashing lock
Now, after reboot I see a warning:
No valid operating system could be found.
The device will not boot
For more information, visit our support forums:
support.motorola.com
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I know, I shouldn't properly disable the "USB Debugging and OEM Unlocking"
fastboot oem unlock UNLOCK_KEY (with the key from Mortorola) is not working because the "USB Debugging and OEM Unlocking" in Developer options is enabled
PS Is also not possible to enter Recovery Mode
Thx for any help
Seb

merlin200 said:
Thx for any help
Click to expand...
Click to collapse
Hello and good evening, @merlin200
Welcome to XDA! I hope you'll always get the support you require.
However, prior to your next posting please read the guidances that are stuck on top of every forum like
Note: Questions go in Q&A Forum
If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...
forum.xda-developers.com
and the others. I've moved your thread to
Moto G30
The Moto G30 is a 6.5" phone with a 720x1600p resolution display. The Qualcomm SM6115 Snapdragon 662 chipset is paired with 4/6GB of RAM and 128GB of storage. The main camera is 64+8+2+2MP and the selfie camera is 13MP. The battery has a 5000mAh capacity.
forum.xda-developers.com
Thanks for your cooperation!
Regards
Oswald Boelcke
Senior Moderator

merlin200 said:
Hi,
I rooted, downgraded my Motorola G30 and now is not starting and it's hanging on warning screen. Did I bricked it?
Is there any possibility to rescue it.
What I did:
Unlock
1.adb reboot bootloader
2.fastboot devices
1.fastboot oem get_unlock_data
2.fastboot oem unlock UNLOCK_KEY (with the key from Mortorola)
3.fastboot reboot
Downgrade from Android 12 to 11
1.adb reboot bootloader
2.fastboot devices
3.fastboot flash partition gpt.bin
4.fastboot flash bootloader bootloader.img
5.fastboot flash vbmeta vbmeta.img
6.fastboot flash vbmeta_system vbmeta_system.img
7.fastboot flash radio radio.img
8.fastboot flash bluetooth BTFM.bin
9.fastboot flash dsp dspso.bin
10.fastboot flash logo logo.bin
11.fastboot flash boot boot.img
12.fastboot flash vendor_boot vendor_boot.img
13.fastboot flash dtbo dtbo.img
14.fastboot flash super super.img_sparsechunk.0
15.fastboot flash super super.img_sparsechunk.1
16.fastboot flash super super.img_sparsechunk.2
17.fastboot flash super super.img_sparsechunk.3
18.fastboot flash super super.img_sparsechunk.4
19.fastboot flash super super.img_sparsechunk.5
20.fastboot flash super super.img_sparsechunk.6
21.fastboot flash super super.img_sparsechunk.7
22.fastboot flash super super.img_sparsechunk.8
23.fastboot flash super super.img_sparsechunk.9
24.fastboot erase carrier
25.fastboot erase userdata
26.fastboot erase metadata
27.fastboot erase ddr
28.fastboot reboot
After reboot Android 11 was installed and run correctly.
As next step I wanted to lock bootloader again.
1.I disabled USB Debugging and OEM Unlocking in Developer options in the menu and restarted.
2.adb reboot bootloader
3.fastboot devices
4.fastboot flashing lock
Now, after reboot I see a warning:
No valid operating system could be found.
The device will not boot
For more information, visit our support forums:
support.motorola.com
View attachment 5826227
I know, I shouldn't properly disable the "USB Debugging and OEM Unlocking"
fastboot oem unlock UNLOCK_KEY (with the key from Mortorola) is not working because the "USB Debugging and OEM Unlocking" in Developer options is enabled
PS Is also not possible to enter Recovery Mode
Thx for any help
Seb
Click to expand...
Click to collapse
Hello, good morning, afternoon or evening.
In this case, if you go to "bootloader mode" and look a little at what it says, there is a part where you can identify if the cell phone is UNLOCKED or LOCKED.
• If the bootloader says "oem_lock" the cell phone is LOCKED and in this case it is totally dead (it is most likely), the only solution is to change the board.
• If the bootloader says "oem_unlock" the phone is unlocked, so you can flash safely.

merlin200 said:
Hi,
I rooted, downgraded my Motorola G30 and now is not starting and it's hanging on warning screen. Did I bricked it?
Is there any possibility to rescue it.
What I did:
Unlock
1.adb reboot bootloader
2.fastboot devices
1.fastboot oem get_unlock_data
2.fastboot oem unlock UNLOCK_KEY (with the key from Mortorola)
3.fastboot reboot
Downgrade from Android 12 to 11
1.adb reboot bootloader
2.fastboot devices
3.fastboot flash partition gpt.bin
4.fastboot flash bootloader bootloader.img
5.fastboot flash vbmeta vbmeta.img
6.fastboot flash vbmeta_system vbmeta_system.img
7.fastboot flash radio radio.img
8.fastboot flash bluetooth BTFM.bin
9.fastboot flash dsp dspso.bin
10.fastboot flash logo logo.bin
11.fastboot flash boot boot.img
12.fastboot flash vendor_boot vendor_boot.img
13.fastboot flash dtbo dtbo.img
14.fastboot flash super super.img_sparsechunk.0
15.fastboot flash super super.img_sparsechunk.1
16.fastboot flash super super.img_sparsechunk.2
17.fastboot flash super super.img_sparsechunk.3
18.fastboot flash super super.img_sparsechunk.4
19.fastboot flash super super.img_sparsechunk.5
20.fastboot flash super super.img_sparsechunk.6
21.fastboot flash super super.img_sparsechunk.7
22.fastboot flash super super.img_sparsechunk.8
23.fastboot flash super super.img_sparsechunk.9
24.fastboot erase carrier
25.fastboot erase userdata
26.fastboot erase metadata
27.fastboot erase ddr
28.fastboot reboot
After reboot Android 11 was installed and run correctly.
As next step I wanted to lock bootloader again.
1.I disabled USB Debugging and OEM Unlocking in Developer options in the menu and restarted.
2.adb reboot bootloader
3.fastboot devices
4.fastboot flashing lock
Now, after reboot I see a warning:
No valid operating system could be found.
The device will not boot
For more information, visit our support forums:
support.motorola.com
View attachment 5826227
I know, I shouldn't properly disable the "USB Debugging and OEM Unlocking"
fastboot oem unlock UNLOCK_KEY (with the key from Mortorola) is not working because the "USB Debugging and OEM Unlocking" in Developer options is enabled
PS Is also not possible to enter Recovery Mode
Thx for any help
Seb
Click to expand...
Click to collapse
plug it to a pc and tell us how its getting detected in device manager

merlin200 said:
Hi,
I rooted, downgraded my Motorola G30 and now is not starting and it's hanging on warning screen. Did I bricked it?
Is there any possibility to rescue it.
What I did:
Unlock
1.adb reboot bootloader
2.fastboot devices
1.fastboot oem get_unlock_data
2.fastboot oem unlock UNLOCK_KEY (with the key from Mortorola)
3.fastboot reboot
Downgrade from Android 12 to 11
1.adb reboot bootloader
2.fastboot devices
3.fastboot flash partition gpt.bin
4.fastboot flash bootloader bootloader.img
5.fastboot flash vbmeta vbmeta.img
6.fastboot flash vbmeta_system vbmeta_system.img
7.fastboot flash radio radio.img
8.fastboot flash bluetooth BTFM.bin
9.fastboot flash dsp dspso.bin
10.fastboot flash logo logo.bin
11.fastboot flash boot boot.img
12.fastboot flash vendor_boot vendor_boot.img
13.fastboot flash dtbo dtbo.img
14.fastboot flash super super.img_sparsechunk.0
15.fastboot flash super super.img_sparsechunk.1
16.fastboot flash super super.img_sparsechunk.2
17.fastboot flash super super.img_sparsechunk.3
18.fastboot flash super super.img_sparsechunk.4
19.fastboot flash super super.img_sparsechunk.5
20.fastboot flash super super.img_sparsechunk.6
21.fastboot flash super super.img_sparsechunk.7
22.fastboot flash super super.img_sparsechunk.8
23.fastboot flash super super.img_sparsechunk.9
24.fastboot erase carrier
25.fastboot erase userdata
26.fastboot erase metadata
27.fastboot erase ddr
28.fastboot reboot
After reboot Android 11 was installed and run correctly.
As next step I wanted to lock bootloader again.
1.I disabled USB Debugging and OEM Unlocking in Developer options in the menu and restarted.
2.adb reboot bootloader
3.fastboot devices
4.fastboot flashing lock
Now, after reboot I see a warning:
No valid operating system could be found.
The device will not boot
For more information, visit our support forums:
support.motorola.com
View attachment 5826227
I know, I shouldn't properly disable the "USB Debugging and OEM Unlocking"
fastboot oem unlock UNLOCK_KEY (with the key from Mortorola) is not working because the "USB Debugging and OEM Unlocking" in Developer options is enabled
PS Is also not possible to enter Recovery Mode
Thx for any help
Seb
Click to expand...
Click to collapse
That's a brick if i've ever seen one.

Mirak97 said:
plug it to a pc and tell us how its getting detected in device manager
Click to expand...
Click to collapse

merlin200 said:
View attachment 5826283
Click to expand...
Click to collapse
well looks like its in fatboot mode so its not like edl dead so have you tried to flash with fastboot?

Mirak97 said:
well looks like its in fatboot mode so its not like edl dead so have you tried to flash with fastboot?
Click to expand...
Click to collapse

merlin200 said:
View attachment 5826297
Click to expand...
Click to collapse
thats unfortunate but you might be lucky
you have to get your phone in edl

merlin200 said:
View attachment 5826283
Click to expand...
Click to collapse
You will need to find the "short pin method" to get it into EDL so that you can use a Blankflash.

sd_shadow said:
You will need to find the "short pin method" to get it into EDL so that you can use a Blankflash.
Click to expand...
Click to collapse
no need for that theres a tool that comes with it that reboots thr phone to edl from fastboot

merlin200 said:
Hi,
I rooted, downgraded my Motorola G30 and now is not starting and it's hanging on warning screen. Did I bricked it?
Is there any possibility to rescue it.
What I did:
Unlock
1.adb reboot bootloader
2.fastboot devices
1.fastboot oem get_unlock_data
2.fastboot oem unlock UNLOCK_KEY (with the key from Mortorola)
3.fastboot reboot
Downgrade from Android 12 to 11
1.adb reboot bootloader
2.fastboot devices
3.fastboot flash partition gpt.bin
4.fastboot flash bootloader bootloader.img
5.fastboot flash vbmeta vbmeta.img
6.fastboot flash vbmeta_system vbmeta_system.img
7.fastboot flash radio radio.img
8.fastboot flash bluetooth BTFM.bin
9.fastboot flash dsp dspso.bin
10.fastboot flash logo logo.bin
11.fastboot flash boot boot.img
12.fastboot flash vendor_boot vendor_boot.img
13.fastboot flash dtbo dtbo.img
14.fastboot flash super super.img_sparsechunk.0
15.fastboot flash super super.img_sparsechunk.1
16.fastboot flash super super.img_sparsechunk.2
17.fastboot flash super super.img_sparsechunk.3
18.fastboot flash super super.img_sparsechunk.4
19.fastboot flash super super.img_sparsechunk.5
20.fastboot flash super super.img_sparsechunk.6
21.fastboot flash super super.img_sparsechunk.7
22.fastboot flash super super.img_sparsechunk.8
23.fastboot flash super super.img_sparsechunk.9
24.fastboot erase carrier
25.fastboot erase userdata
26.fastboot erase metadata
27.fastboot erase ddr
28.fastboot reboot
After reboot Android 11 was installed and run correctly.
As next step I wanted to lock bootloader again.
1.I disabled USB Debugging and OEM Unlocking in Developer options in the menu and restarted.
2.adb reboot bootloader
3.fastboot devices
4.fastboot flashing lock
Now, after reboot I see a warning:
No valid operating system could be found.
The device will not boot
For more information, visit our support forums:
support.motorola.com
View attachment 5826227
I know, I shouldn't properly disable the "USB Debugging and OEM Unlocking"
fastboot oem unlock UNLOCK_KEY (with the key from Mortorola) is not working because the "USB Debugging and OEM Unlocking" in Developer options is enabled
PS Is also not possible to enter Recovery Mode
Thx for any help
Seb
Click to expand...
Click to collapse
This Telegram channel has the solution: @flashing_locked

Related

Lost biometric sensor

I lost my biometric sensor after leaving the test soak and go to a custom rom, how can I recover before leaving the final oreo stock?
eduh9 said:
I lost my biometric sensor after leaving the test soak and go to a custom rom, how can I recover before leaving the final oreo stock?
Click to expand...
Click to collapse
Hi, this happened to me, back to the stock rom (Android 7.0) of the device and do the whole procedure. And your sensor will work
Be careful to do not downgrade your bootloader though.
This tutorial helped me to recover biometrics in my phone (XT1676, reteu, 3/16, DualSIM).
I am not responsible for any damage! If you proceed to follow this, you're doing it at your own risk.
1. Make sure, your adb and fastboot is working.
I recommend using this one https://forum.xda-developers.com/showthread.php?t=2588979 . For me, it's fully working on Win8.1 x64. If you install it (press "Y" for all of 3 questions), but after connecting phone you see "Fastboot cedric S" with yellow exclamation mark in device manager, there's problem with driver: right click on it --> "Update driver software" --> "Browse my computer for driver software" --> "Let me pick from a list of device drivers on my computer" --> "Android devices" --> "Android Bootloader Interface" --> "Next" --> "OK" --> "Close"
(Open cmd and use "cd" command to get to directory, where's adb installed (in this case "cd C:\adb"). Then, press Enter and type "Fastboot devices". If fastboot is properly installed with corresponding drivers, you will see your device listed.)
2. Download this firmware https://drive.google.com/file/d/1hlNzlFhLCEj6xigfKrYcvnwH9jy3f5j3/view and extract it to the same directory as adb is installed.
3. Boot your phone into fastboot mode by pressing and holding power and vol- buttons for few seconds.
4. NOW, THE MOST IMPORTANT PART! Check your bootloader version.
4a. If your bootloader version is B8.25, use these commands to flash:
Code:
fastboot oem fb_mode_set
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.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 modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot
4b. If your bootloader is B8.24 and lower, use these commands:
Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.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 modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot
5. Your phone should reboot and sucessfully boot into OS in few minutes with fingerprint working.
DON'T EVEN TRY TO TAKE OTA UPDATES.
6. (optional) However, if you want to update your phone, update it manually with correct files from this site https://forum.xda-developers.com/g5/how-to/cedric-ota-archive-t3795275
Moto g5, has a biometric sensor?
666km666 said:
Moto g5, has a biometric sensor?
Click to expand...
Click to collapse
Of course, it has (fingerprint sensor at the front, under the display).
johnnywilly16 said:
Hi, this happened to me, back to the stock rom (Android 7.0) of the device and do the whole procedure. And your sensor will work
Click to expand...
Click to collapse
Sorry I'm just confirming that I need to go to stock 7.0 first? Will the debloated stock 7.0 be good enough?
eduh9 said:
I lost my biometric sensor after leaving the test soak and go to a custom rom, how can I recover before leaving the final oreo stock?
Click to expand...
Click to collapse
For anyone who finds this there is a flastable Nougat zip for Cedric which fixes finger print scanner, it is in the same thread as the soak 8.1 zip. I hope this saves others trouble as it did me. Find direct answers in telegram:
@cedricNOOBchat

[GUIDE] relock bootloader and get it back to its OOB state & get your imei back

WARNING: DO NOT FLASH THE GPT.BIN OR THE BOOTLOADER.IMG/MOTOBOOT.IMG ON A NEWER FIRMWARE WHEN DOWNGRADING, BECAUSE IT CAN HARD BRICK YOUR DEVICE E.G. DO NOT FLASH THE GPT.BIN OR THE BOOTLOADER.IMG/MOTOBOOT.IMG MADE FOR 7.0 ON 8.1.0 EVEN IF THE FILES IN THE FOLDER BUT ITS FINE IF YOU FLASH THE SAME FILES MADE FOR ANDROID 8.1.0 AVOID FLASHING THESE FILES AT ALL TIMES
I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED TO YOUR DEVICE, DO THIS AT YOUR OWN RISK
so a little backstory,
i unlocked my bootloader because i wanted to downgrade back to android 7.0, and then my imei broke on me, so i attempted to upgrade back to android 8.1.0 but then everytime i rebooted my phone i see;
"your device is unlocked and cant be trusted
ID: bad key
your device will reboot in 5 seconds"
then would just loop into the bootloader
and when flashing the logo back it will just say "bad key" when editing logo.bin (changing the logo_unlocked to logo_boot)
with this guide i will tell you how to revert your device back to OOB state (OOB means out of box for all those idiots out there )
THIS WAS TESTED ON MY XT1675 IT WILL BE DIFFERENT FOR EACH DEVICE
1) grab your stock firmware, for me its "XT1675_CEDRIC_RETGB_SS_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml"
2) install minimal ADB and fastboot
3) then once you installed the adb and fastboot drivers we are really just focusing on the fastboot.exe, i will be linking the platform-tools at the bottom of this post
4) extract the firmware to a place and make sure there are no spaces (e.g. C:/Users/Example/Desktop/moto g5 downgrade otherwise cmd will assume its another path to another folder)
5) the most important file is oem.img because this is the signed file by motorola that we will need to relock the bootloader but it should come in the firmware folder, if not PM me and will try my best to find the matching oem.img
6) once you get all your files type these commands to reload the firmware onto the device
fastboot flash gpt gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
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 erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
what you will find now is it will at least boot into the setup screen
we are not done yet!
7) now if you reboot into the bootloader screen the options will be seriously messed up (they will overlap if you press up and down on the volume keys, i think this tells motorola that you tampered with your device)
8) now still on the bootloader screen connect up your device with cmd still open, then type these commands
fastboot oem lock
fastboot oem lock (you have to type it twice)
fastboot flash oem oem.img (you need this to relock the bootloader)
fastboot flash gpt gpt.bin
fastboot flash bootloader bootloader.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 boot boot.img
fastboot oem lock
now it will say (lock complete! flash signed images after reboot if needed)
type in
fastboot reboot
now when you reboot your device you will get a black screen then it will show the motorola logo, to fix this go into the bootloader mode and reflash your original bootlogo
you got your device up and running like it did OOB!
LINKS:
Minimal adb and fastboot: https://forum.xda-developers.com/showthread.php?t=2317790
platform tools: https://developer.android.com/studio/releases/platform-tools
if your getting "image signed with key bad key when flashing the boot.img and the recovery.img, i found this really helpful tutorial, just do not flash the files on the G5, this is made for the G5 plus but the bootloader commands works for the G5 as well as the G5 plus
Link: https://forum.xda-developers.com/g5-plus/how-to/solution-to-flash-stock-romfactory-t3691396
also if you get "still requires signed system.img and/or boot.img flash all the system sparsechunk files
I can't re-lock bootloader, getting "(bootloader) Check 'Allow OEM Unlock' in Android Settings > Developer" when I run "fastboot oem lock" second time. Please, help!
gkornaks said:
I can't re-lock bootloader, getting "(bootloader) Check 'Allow OEM Unlock' in Android Settings > Developer" when I run "fastboot oem lock" second time. Please, help!
Click to expand...
Click to collapse
You need to enable oem unlock in developer settings
mattwhite7102 said:
You need to enable oem unlock in developer settings
Click to expand...
Click to collapse
I am having the same error of "Allow OEM unlock" in the android setting, and the option in the developer setting of android is grayed out. I can't switch it.

Fix for "bad key" on G7 Play

Hi Everyone,
Those of you who have unlocked the OEM with a key, realize the 'bad key' error that shows up afterwards.
If you are trying to restore your phone back to factory image, the default images can be downloaded here:
Link to Factory Images
lexiyuri has a post on restoring the G7 to stock images as described here.
However, for me the bad key error didn't go away and finally ended up with additional steps in between to lock the oem. The commands below in that sequence worked for me. I don't see the 'bad key' error any more. If you're also struggling with the 'bad key' display on your g7 play, and would like to restore to stock properly, here's the code.
Code:
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 oem lock begin
fastboot oem lock begin
fastboot oem lock
fastboot oem lock
fastboot oem lock
fastboot flash boot boot.img
fastboot oem lock
fastboot flash logo logo.bin
fastboot flash dtbo dtbo.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_b system_b.img_sparsechunk.0
fastboot flash system_b system_b.img_sparsechunk.1
fastboot flash system_b system_b.img_sparsechunk.2
fastboot flash vendor vendor.img_sparsechunk.0
fastboot flash vendor vendor.img_sparsechunk.1
fastboot flash oem oem.img
fastboot flash oem_b oem_other.img
fastboot erase DDR
fastboot erase cache
fastboot erase carrier
fastboot erase userdata
fastboot oem fb_mode_clear
fastboot reboot
Hope this helps,
First of all this is a guide to lock your bootloader. You shouldn't provide a link to retail builds for this. Always use the current builds matching to your specific software channel.
Before you run any lock command you must check if your system is running. Finish the installation wizard and do a reboot. After that you should run the oem lock command. The very last step is to deactivate the OEM unlock option.

How To Guide Flash Stock rom via fastboot

I used this script to flash stock rom via fastboot.
Script wipes all data !
Download stock firmware here.
Motorola Defy 2021 XT2083-9 Stock Firmware​
#!/bin/sh
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
sleep 5
fastboot flash radio radio.img
fastboot reboot-bootloader
sleep 5
fastboot flash bluetooth BTFM.bin
fastboot flash dsp dspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dtbo dtbo.img
fastboot flash vbmeta vbmeta.img
fastboot flash super super.img_sparsechunk.0
fastboot flash super super.img_sparsechunk.1
fastboot flash super super.img_sparsechunk.2
fastboot flash super super.img_sparsechunk.3
fastboot flash super super.img_sparsechunk.4
fastboot flash super super.img_sparsechunk.5
fastboot flash super super.img_sparsechunk.6
fastboot flash super super.img_sparsechunk.7
fastboot flash super super.img_sparsechunk.8
fastboot erase userdata
fastboot erase ddr
fastboot oem fb_mode_clear
fastboot reboot
Click to expand...
Click to collapse
Optionally you can add "fastboot oem lock" as the last command before reboot if you want to relock bootloader.

How To Guide Convert ColorOS to OxygenOS (OFP & OTA | Bootloader reLock & PIN working)

Update: 18th March 2023
**** Give Up ****
I got so fedup and decided to goto HK and get my OnePlus 11, a real CPH2449 GLO. Paid and waiting to collect.
I will not be update and maintaining this post from now on.
Why give up?
Minor issue like auto brightness and things is still something i can live along with.
Some othe rmajor issue are just impossible to make this chiniese converted 1+11 to be my daily driver:
- Auto reboot randomly
- Lagging randomly, screen lag, video recording lag.
- OTA update issue, refreshing/reinstall at every update is just anonying
My advice? just get a proper non chinese version or if you own a Chinese version just stick with colorOS.
**** Flash at your own risk ****
**** Flash at your own risk ****
**** Flash at your own risk ****
*** DO NOT OTA UPDATA Your Phone After Convert. It will brick and only Official MSM Tool can save you ***
A Oneplus user since OnePlus one. Give up Oneplus and swtiched to Nothing phone since Oneplus 10. Decided to try out OnePlus 11 and ColorOS is really pain in the a**
This post tested converting from PHB110 to CPH2447 / CPH2449. I did not test CPH2451.
Model:
CPH2447 - Indian
CPH2449_EEA - EU
CPH2449_GLO - International
CPH2451 - North America
PHB110 - China
Credits:
Thanks for their feedback
[email protected]
wtywtykk
mark332
alexander宇
daxiaamu
Following is the steps to flash the OTA updates:​
Step 1:
Download all the usual tools
Download Fastboot Enhance
Android SDK
Get the firmware from this post
Firmware also availble at https://yun.daxiaamu.com/OnePlus_Roms/一加11/
CPH2449 Global A07: eea73728a1b945ea8e3ff6b628495af5.zip
ColorOS: Abandon_PHB110_V13_202301030.zip (only oplusstanvbk.img needed)
Step 2:
To boot into bootloader from Android
Turn On developer mode
Turn on USB Debug
Turn on OEM-unlock
Run $ adb reboot-bootloader
After enter into fastboot (The one with Menu and shows SECURE BOOT/DEVICE STATE)
Run $ fastboot flashing unlock
Reboot back into bootloader, as in step 2 item 4.
Step 3:
Download and unzip eea73728a1b945ea8e3ff6b628495af5.zip
Goto Fastboot Enhance
Check "Ignore Unknown Partition"
Make sure fastbootd is NO (Phone Screen: The one with Menu and shows SECURE BOOT/DEVICE STATE)
Flash payload.bin
Step 4:
Boot into fastbootd (Phone Screen: The one with language selection)
Goto Fastboot Enhance
Check "Ignore Unknown Partition"
Make sure fastbootd is YES
Flash payload.bin
Step 5:
Download and unzip Abandon_PHB110_V13_202301030.zip
Unzip make sure radio/oplusstanvbk.img exits
Boot into fastbootd (Phone Screen: The one with language selection)
Use Fastboot Enhance or command line
fastboot flash --slot=all oplusstanvbk radio/oplusstanvbk.img
Step 6:
Follow step 6 from "flash the OFP/EDL Packages"
Following is the steps to flash the OFP/EDL Packages:​
Step 1:
Download all the usual tools
Android SDK
Get the firmware from this post
Firmware also availble at https://yun.daxiaamu.com/OnePlus_Roms/一加11/
CPH2449GDPR_11_A.06_2023010723370128.zip
Abandon_PHB110_V13_202301030.zip (only oplusstanvbk.img needed)
Step 2:
To boot into bootloader from Android
Turn On developer mode
Turn on USB Debug
Turn on OEM-unlock
Run $ adb reboot-bootloader
After enter into fastboot (Phone Screen: The one with Menu and shows SECURE BOOT/DEVICE STATE)
Run $ fastboot flashing unlock
Reboot back into bootloader, as in step 2 item 4.
Step 3:
fastboot flash --slot=all modem radio/modem.img
fastboot flash --slot=all boot images/boot.img
fastboot flash vbmeta_system_a images/vbmeta_system.img
fastboot flash vbmeta_system_b images/vbmeta_system.img
fastboot flash vbmeta_a images/vbmeta.img
fastboot flash vbmeta_b images/vbmeta.img
fastboot flash vendor_boot_a images/vendor_boot.img
fastboot flash vendor_boot_b images/vendor_boot.img
fastboot flash vbmeta_vendor_a images/vbmeta_vendor.img
fastboot flash vbmeta_vendor_b images/vbmeta_vendor.img
Step 4:
Go into fastbootd (Phone Screen: The one with language selection)
fastboot reboot fastboot
fastboot flash --slot=all init_boot images/init_boot.img
fastboot flash --slot=all abl radio/abl.img
fastboot flash --slot=all aop radio/aop.img
fastboot flash --slot=all aop_config radio/aop_config.img
fastboot flash --slot=all bluetooth radio/bluetooth.img
fastboot flash --slot=all cpucp radio/cpucp.img
fastboot flash --slot=all devcfg radio/devcfg.img
fastboot flash --slot=all dsp radio/dsp.img
fastboot flash --slot=all dtbo images/dtbo.img
fastboot flash --slot=all engineering_cdt images/engineering_cdt.img
fastboot flash --slot=all featenabler radio/featenabler.img
fastboot flash --slot=all hyp radio/hyp.img
fastboot flash --slot=all imagefv radio/imagefv.img
fastboot flash --slot=all keymaster radio/keymaster.img
fastboot flash --slot=all oplus_sec radio/oplus_sec.img
# Flash the ColorOS version A.08 # fastboot flash --slot=all oplusstanvbk radio/oplusstanvbk.img
fastboot flash --slot=all qupfw radio/qupfw.img
fastboot flash --slot=all recovery images/recovery.img
fastboot flash --slot=all shrm radio/shrm.img
fastboot flash --slot=all splash images/splash.img
fastboot flash --slot=all tz radio/tz.img
fastboot flash --slot=all uefi radio/uefi.img
fastboot flash --slot=all uefisecapp radio/uefisecapp.img
fastboot flash --slot=all xbl radio/xbl.img
fastboot flash --slot=all xbl_ramdump radio/xbl_ramdump.img
fastboot flash --slot=all system images/system.img
fastboot flash --slot=all system_ext images/system_ext.img
fastboot flash --slot=all vendor images/vendor.img
fastboot flash --slot=all product images/product.img
fastboot flash --slot=all my_product images/my_product.img
fastboot flash --slot=all odm images/odm.img
fastboot flash --slot=all my_engineering images/my_engineering.img
fastboot flash --slot=all vendor_dlkm images/vendor_dlkm.img
fastboot flash --slot=all system_dlkm images/system_dlkm.img
fastboot flash --slot=all my_stock images/my_stock.img
fastboot flash --slot=all my_preload images/my_preload.img
fastboot flash --slot=all my_heytap images/my_heytap.img
fastboot flash --slot=all my_carrier images/my_carrier.img
fastboot flash --slot=all my_region images/my_region.img
fastboot flash --slot=all my_bigball images/my_bigball.img
fastboot flash --slot=all my_manifest images/my_manifest.img
Step 5:
From the fastbootd screen (with language selection),
English
Format Data
Step 6:
From daxiaamu blog post,
Go in to OxygenOS, skip all the setup. DO NOT SET THE PIN
Go into bootloader again. follow step 2
Run $ fastboot flashing lock
Again, go in to OxygenOS, skip all the setup. DO NOT SET THE PIN
Once passed the setup screen. Goto settings and set the pin
Additional Tips:
If your phone goes into bootloop with oneplus logo. Most likely its not brick. Just need to do a factory reset in fastboot or QLMFlasher.
As mention by mark332 use the free edition. Goto the fastboot tab and unbrick your phone.
I also paid for the commercial edition. Received username/password which can never login to the commercial editon. Commercial edition allows flash in EDL which i wanted to try.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Nice! Would it be possible to write the steps, please?
I believe you had to unlock bootloader? Have you tried locking bootloader after? Thanks.
sth_safal said:
Nice! Would it be possible to write the steps, please?
I believe you had to unlock bootloader? Have you tried locking bootloader after? Thanks.
Click to expand...
Click to collapse
i tried to, after locking the bootloader. the system not able to set the screenlock pattern
kaijern said:
i tried to, after locking the bootloader. the system not able to set the screenlock pattern
Click to expand...
Click to collapse
Ohh, that's odd. Is it just screen lock pattern or also pin locks that had issue? No luck with factory reset either I would imagine..
sth_safal said:
Ohh, that's odd. Is it just screen lock pattern or also pin locks that had issue? No luck with factory reset either I would imagine..
Click to expand...
Click to collapse
Both. I had that problem as well after unlocking the bootloader of my Chinese Onplus 11. According to a Chinese post it's a common issue and you need to keep relocking/unlocking until you are able to set the pin/pattern. Worked for me.
alexander宇 said:
Both. I had that problem as well after unlocking the bootloader of my Chinese Onplus 11. According to a Chinese post it's a common issue and you need to keep relocking/unlocking until you are able to set the pin/pattern. Worked for me.
Click to expand...
Click to collapse
Hmm.. Thanks.
So just unlock again and relock, setup phone and try out if pin works? If it doesn't repeat the post again? Would it be possible to link the Chinese post, please? Couldn't find any info online.. Did you move to Oxygen Os as well?
alexander宇 said:
Both. I had that problem as well after unlocking the bootloader of my Chinese Onplus 11. According to a Chinese post it's a common issue and you need to keep relocking/unlocking until you are able to set the pin/pattern. Worked for me.
Click to expand...
Click to collapse
I am the same.
Can I recover with relock?
sth_safal said:
Hmm.. Thanks.
So just unlock again and relock, setup phone and try out if pin works? If it doesn't repeat the post again? Would it be possible to link the Chinese post, please? Couldn't find any info online.. Did you move to Oxygen Os as well?
Click to expand...
Click to collapse
yep, that's how I resolved the problem. Don't remember where I saw it, probably a Bilibili video comment. Not yet haven't got a chance to switch, been traveling.
alexander宇 said:
yep, that's how I resolved the problem. Don't remember where I saw it, probably a Bilibili video comment. Not yet haven't got a chance to switch, been traveling.
Click to expand...
Click to collapse
Since its worling. I will wait for the international version to be avilable after Feb 7 and try to do a complete flash again. By that time is just all about from Oxygen to Oxygen nothing risky.
alexander宇 said:
yep, that's how I resolved the problem. Don't remember where I saw it, probably a Bilibili video comment. Not yet haven't got a chance to switch, been traveling.
Click to expand...
Click to collapse
I tried to relock it.
fastboot oem lock、fastboot flashing lock、fastboot oem unlock、fastboot flashing unlock
Every command gives me an error.
It seems I brick my phone.
After I typed in "fastboot flash --slot=all abl abl.elf", I got this error:
ERROR: usb_write failed with status e00002ed
fastboot: error: Could not check if partition abl has slot all
In a poor attempt to fix it, I locked BL, and now it stuck in a bootloop to FASTBOOTD
I couldn't get back to FASTBOOT with pressing physical key. Please help!
P.S. I am using mac
if you can give a step by step, or actually a video, that would actually be amazing. i fear for my phone haha
Is this version of package able to receive the OTP update of OOS?
I also bricked my phone last night, got bootloop and only was able to get into bootloader. I unbricked it by fastbootenhanced and flash the F08 payload.bin file
sunxutian said:
I also bricked my phone last night, got bootloop and only was able to get into bootloader. I unbricked it by fastbootenhanced and flash the F08 payload.bin file
Click to expand...
Click to collapse
i bricked mine as well, trying to do the same of reflashing payload.bin, but fastbootenchaned won't flash payload.bin because i can't reboot it into "fastbootd mode". any idea?
oprocks said:
i bricked mine as well, trying to do the same of reflashing payload.bin, but fastbootenchaned won't flash payload.bin because i can't reboot it into "fastbootd mode". any idea?
Click to expand...
Click to collapse
Why can't you boot into fastbood? Did you try fastboot reboot fastboot?
oprocks said:
i bricked mine as well, trying to do the same of reflashing payload.bin, but fastbootenchaned won't flash payload.bin because i can't reboot it into "fastbootd mode". any idea?
Click to expand...
Click to collapse
what you might need to do is to reinstall oneplus driver, I got unknown device when booting into fastbootd and fixed it by reinstalling driver
sunxutian said:
what you might need to do is to reinstall oneplus driver, I got unknown device when booting into fastbootd and fixed it by reinstalling driver
Click to expand...
Click to collapse
"fastboot devices" works.
this is the actual error:
fastboot reboot fastboot
Rebooting into fastboot OKAY [ 0.016s]
< waiting for any device >
fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable.
any ideas?
oprocks said:
"fastboot devices" works.
this is the actual error:
fastboot reboot fastboot
Rebooting into fastboot OKAY [ 0.016s]
< waiting for any device >
fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable.
any ideas?
Click to expand...
Click to collapse
Try fastboot -w to clean user data, also you can try flash boot.img or everything which can be flashed from bootloader
sunxutian said:
Try fastboot -w to clean user data, also you can try flash boot.img or everything which can be flashed from bootloader
Click to expand...
Click to collapse
tried that a few times, something about "userdata" not working right..
platform-tools>fastboot -w
Erasing 'userdata' OKAY [ 0.063s]
F2FS-tools: mkfs.f2fs Ver: 1.15.0 (2022-05-20)
Info: Disable heap-based policy
Info: Debug level = 1
Info: Trim is disabled
Info: Set conf for android
Info: Enable Project quota
Error: Sparse mode is only supported for android
platform-tools/make_f2fs failed: 4294967295
fastboot: error: Cannot generate image for userdata
any idea if there is a way to get fastboot to get userdata partition to proper state first? maybe?

Categories

Resources