FORUMS
Remove All Ads from XDA

[Guide] Restoring Black Shark 1 Global to Stock

1,014 posts
Thanks Meter: 1,428
 
By gilbert32, Senior Member on 30th June 2019, 08:11 PM
Post Reply Email Thread
Hello, this is not a guide for noobs.

At this point, i assume your BlackShark 1 is running a custom ROM, or a modification, and not it cannot update over OTA.
This guide helps you restore your BS1 SKR-H0 to Stock ROM, hopefully you can update it when the next OTA comes out.
This guide sets one of your partitions at system update G66X1906170OS00MPX.
You agree that by performing these operation, you risk bricking your device. I will probably not be there to help you recover.

There are a few steps:
  1. Flash the stock images
  2. Re-encrypt storage
  3. Re-flash the stock files

Flash the stock images
Download the full backup from here: https://mega.nz/#!IZFAEAoC!UMHJ0drlh...-eqFWWrMXLZikQ
Extract the backup
Enter fastboot mode on your phone
Check which slot you are on, and which slot is definitely working. Try this on a slot that is broken, or that is not 100% working (in my case, slot a)
Run the following command for every partition:
Code:
fastboot flash <partitionname>_<slotname> <filename>
example: fastboot flash boot_a boot_a (if the slot you are overwriting is slot a)
or fastboot flash boot_b boot_a (if the slot you are overwriting is slot b)
Once finished, boot twrp, flash disableforceencrypt and magisk, and reboot into the system.

Reencrypt storage
First of all, backup ALL YOUR INTERNAL STORAGE, as it WILL GET WIPED IN THIS STEP. i warned you.
Once the system boots with the new version, go into stock recovery (adb reboot recovery, or enter bootloader > select start recovery)
Then reboot into the system. once the system boots, go to settings, security, encryption, and enable encryption. The phone should encrypt now. Wait for it to start encryption, finish, and get stuck at boot animation. This is the end of step 2.

Re-flash the stock files
This is the final and easiest step. If previous steps were performed correctly, then all you have to do now it the following:
from the stuck bootanimation, reboot to bootloader.
Flash 1 more time system, boot and vendor partition. This time DO NOT flash disableforceencrypt and magisk.
reboot into stock recovery
perform a wipe 1 more time.
reboot the system.


If done correctly, your phone should go into first time setup, with the stock OS, no internal error on boot, and you should be able to accept OTAs when they come. If OTA fails, Follow step 4:

(Optional) OTA Shows up again after finishing, and keep failing
If you restored your BlackShark to stock, and OTA does not finish (keeps coming back up), do the following:
If your backup is from slot a, and you are on it right now, run the following commands:
Make sure you are on the correct slot, with the correct backup!
Code:
fastboot flash boot boot_a.img
fastboot flash system system_a.img
fastboot flash vendor vendor_a.img
fastboot flash dsp dsp_a.img
fastboot flash devcfg devcfg_a.img
fastboot flash bluetooth bluetooth_a.img
fastboot flash dtbo dtbo_a.img
fastboot flash modem modem_a.img
fastboot flash vbmeta vbmeta_a.img
For the partitions dtbo and devcfg, i'm not sure if they need reflashing, however i found out that the others might be changed indirectly, and cause OTA to fail.
So just reflash those partitions from backup (Make sure to use the correct version/slot!)

Finally, if update still fails, you can connect your phone to pc, run adb logcat, and watch the logs just after update download is finished. If it fails, you will find some lines about a failed partition, with the partition name.


Special thanks to @leipnacht who provided me with stock file, so that i could restore my phone.
The Following User Says Thank You to gilbert32 For This Useful Post: [ View ] Gift gilbert32 Ad-Free
1st July 2019, 11:00 AM |#2  
leipnacht's Avatar
Member
Thanks Meter: 9
 
More
Big Thanks to this! I'm glad the stock files helped restoring your phone. This will surely help xda users as well when somethings go wrong with root coz some games will ban you if your phone is detected as rooted phone. This is very useful reference for everyone.
1st July 2019, 12:59 PM |#3  
Junior Member
Flag KUCHING
Thanks Meter: 2
 
More
i need this for CN version too
The Following User Says Thank You to jaygan93 For This Useful Post: [ View ] Gift jaygan93 Ad-Free
3rd July 2019, 12:48 AM |#4  
Junior Member
Thanks Meter: 0
 
More
help
How do I install and recover my black shark please?

when I have install via fastboot I get a message
FAILED remote flashing is not allowed for critical partitions.

way of doing the command on fastboot

fastboot flash partitionabl_a abl_a
fastboot flash partitionsystem_a system_a

Sorry, I do not understand much about this.
3rd July 2019, 07:42 AM |#5  
gilbert32's Avatar
OP Senior Member
Flag In the universe
Thanks Meter: 1,428
 
More
Quote:
Originally Posted by metamorfose123

How do I install and recover my black shark please?

when I have install via fastboot I get a message
FAILED remote flashing is not allowed for critical partitions.

way of doing the command on fastboot

fastboot flash partitionabl_a abl_a
fastboot flash partitionsystem_a system_a

Sorry, I do not understand much about this.

It's fastboot flash abl_a abl_a
Etc... If you want to overwrite slot a, or
Fastboot flash abl_b abl_a
If you want to overwrite B.
4th July 2019, 06:37 AM |#6  
Junior Member
Flag Surat
Thanks Meter: 0
 
More
needful guide for restoring black shark. Big thumb up for this post.
15th August 2019, 11:32 AM |#7  
JengaMasterG's Avatar
Senior Member
Flag Devon
Thanks Meter: 85
 
Donate to Me
More
@gilbert32 thanks for your hard work! I'll check to see if I can find someone with a stock CN rom and see if this will work for it. I haven't had the phone until now because a family member temporarily needed one
20th September 2019, 06:41 PM |#8  
Junior Member
Thanks Meter: 0
 
More
hi, i have a problem, after flash system i get only on S logo
21st September 2019, 02:16 AM |#9  
gilbert32's Avatar
OP Senior Member
Flag In the universe
Thanks Meter: 1,428
 
More
Quote:
Originally Posted by geed301

hi, i have a problem, after flash system i get only on S logo

What version are you on? Which black shark?
21st September 2019, 09:06 PM |#10  
Junior Member
Thanks Meter: 0
 
More
SKR-H0 in oreo 8.1, but i resolved hahaha, i was used
fastboot flash boot boot_a.img
fastboot flash system system_a.img
fastboot flash vendor vendor_a.img

Just copy and pasted hahaha , today i updated to P and its great

Thnks for the tutorial and sorry for my bad english
22nd September 2019, 09:02 PM |#11  
Junior Member
Thanks Meter: 0
 
More
Hi! I do not understand. One month ago I used this tutorial and I could get the previous little OTA update. Now I tried again do the same steps, all of them, and I can't get the OTA. I tried it 5 times… I have a question, in this new update of android Pie is the camera slow motion enabled? Can someone upload the android Pie backup for flashing directly?
Post Reply Subscribe to Thread

Tags
xiaomi-black-shark

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes