TWRP Root Decrypt December update for Blackshark 1st Gen - Miscellaneous Android Development

Tools and information
mauronofrio's recovery twrp
usb drivers
platform tools
magisk
munchy_cool's disableecrypt tool
get your files ready, the twrp img, twrp zip, and disableecryption zip
you may rename the img file into twrp.img
unlock your blackshark bootloader, i assume you have known how.
backup everything, whatsapp chats, use sms and backup restore app to backup your sms, call logs, and wifi logins
first.
check your update in which slot. is your phone now in last update ota december ? lets see in which slot it is.
Code:
adb reboot bootloader
Code:
fastboot getvar current-slot
if the answer is B, reboot your phone, and check the system is before ota or not. boot back to fastboot, and do this :
Code:
fastboot set_active other
then reboot. check if its in latest ota update or not. just make sure, which slot has been updated to latest ota, and which slot is before update.
i assume the ota update is in slot A.
format this slot by going to recovery, this should be stock recovery, then turn off your phone.
now get to slot B, turn it on, directly to fastboot, volume down and power
Code:
fastboot set_active other
it must be in _b now. make sure its _b.
Code:
fastboot boot twrp.img
do not do anything here. do not install anything first. because we are doing a backup here. so you are now in slot B, and the twrp is in slot B.
now lets backup the slot A which has been updated to the last ota / december 5th.
backup boot image from slot A using twrp.
Code:
adb pull /dev/block/sde11 boot_a.img
Code:
adb pull /dev/block/sda8 vendor_a.img
Code:
adb pull //dev/block/sda6 system_a.img
Code:
adb pull /dev/block/sde19 custom_a.img
*remember, we cannot backup userdata image here, i dont know yet how. these files you can save just in case things are messy.
still in slot B. still in twrp
go to Wipe
Advance wipe, choose data, repair or change file system, change file system, pick ext4
back to menu, choose mount, disable and enable until you have your internal storage pop up in your pc
then put the disableforceecrypt zip, flash, then reboot.
*you will see the message pop up in your phone saying there's an internal problem with your device. its normal. this happened if you decrypt the slot.
skip skip skip, check your wifi works or not, mine works. check also your device if its ecrypted or decrypted, mine is decrypted.
in this part, we have our slot B is decrypted. reboot back to fastboot to boot twrp.img
Code:
fasboot boot twrp.img
then put twrp zip, and flash.
get back to recovery, check if its normal and your internal storage automatically pop up at your pc. it should be normal..
from twrp, get back to fastboot
Code:
fastboot set_active other
and then reboot recovery
you are now in slot A, and you are about to flash disableforceecrypt zip and the magisk zip into slot A
put the zip files to your internal storage. flash disable first, then magisk.
and reboot to system.
you will see the message pop up in your phone saying there's an internal problem with your device. its normal. this happened if you decrypt the slot.
done.
you now have slot A and slot B decypted and rooted
*Rebellion is here.
credits to
@mauronofrio for the hardworking
@puppet13th for your input
*** I AM NOT RESPONSIBLE FOR ANY POSSIBLE DAMAGE DONE TO YOUR DEVICE AS A RESULT OF FLASHING AND I AM NOT RESPONSIBLE FOR ANY BRICKED PHONES OR LOST DATA... FLASH AT OWN RISK ***

Thank you very much Brother! Excellent wrote a manual, and everything is quite clear !!!

Device Blackshark China ROM
SKR-A0
Need help my blackshark bootloop after I try to unlock bootloader
i make mistake that i write wrong code
adb reboot bootloader
Fastboot oem unlock
(its make my device factory reset) and then I try go to bootloader again but this device already unlocked.
But after that, I try to open recovery mode. and factory reset it. and its going like this *bootloop
please I need help, I can't do anything to this phone again because its can't go bootloader again even I press volume down+power T_T
What should I do ?
(Sorry my english so bad)

Ciao Mauro, ho appena preso il Black Shark 2 , riuscirai a farmelo rootare creando la Twrp Recovery adatta? Grazie mille... ho bisogno di poter installare Viper4 fx...

helppp
Hi, i need help whit this phone,I have the global version and I want to change to Chinese version, and I do not know what to do....

Ktcghost said:
Hi, i need help whit this phone,I have the global version and I want to change to Chinese version, and I do not know what to do....
Click to expand...
Click to collapse
Hey, you should unlock your bootloader first
Go, READ CAREFULLY the instructions below. Also if you unlock your bootloader, your PHONE data, EVERYTHING will be WIPE OUT!!!
BACKUP EVERYTHING FIRST BEFORE DOING UNLOCK OF BOOTLOADER
https://forum.xda-developers.com/android/development/unlock-black-shark-bootloader-t3859207

I'm a bit curious here. Doing the instructions will root the phone right? Is it possible to unroot or revert back to normal state?
I'd like to root my Blackshark global, and after installing China ROM JoyUi I'd like to unroot to see if it will receive updates.
Is it possible to unroot?

leipnacht said:
I'm a bit curious here. Doing the instructions will root the phone right? Is it possible to unroot or revert back to normal state?
I'd like to root my Blackshark global, and after installing China ROM JoyUi I'd like to unroot to see if it will receive updates.
Is it possible to unroot?
Click to expand...
Click to collapse
It is possible, but i don't think you will receive Chinese OTA.

gilbert32 said:
It is possible, but i don't think you will receive Chinese OTA.
Click to expand...
Click to collapse
I see. I guess I'll not bother to root this global anymore. And as you mentioned, since light settings doesn't work, and also the upside boot logo.
I guess its not worth it for now. Anyway thanks for the answer

My phone is just asking unlock password
Hi does anyone know how to get past the : To start Android enter your password screen? I did unlock and flash TWRP but for some reason id did restart the phone and since than i only see this screen and cannot log into bootloader or recovery.

korosfoy said:
Hi does anyone know how to get past the : To start Android enter your password screen? I did unlock and flash TWRP but for some reason id did restart the phone and since than i only see this screen and cannot log into bootloader or recovery.
Click to expand...
Click to collapse
The problem is you. You skipped half the op.

Now status is clean but cannot see twrp or boot from slot b
gilbert32 said:
The problem is you. You skipped half the op.
Click to expand...
Click to collapse
Now status is clean but cannot see twrp or boot from slot b i just want to revert to the original state from the backed up files from the process can i do ? @kanded

korosfoy said:
Hi does anyone know how to get past the : To start Android enter your password screen? I did unlock and flash TWRP but for some reason id did restart the phone and since than i only see this screen and cannot log into bootloader or recovery.
Click to expand...
Click to collapse
I managed to do all the steps except one getting the TWRP working on slot A. So TWRP is not working on slot A and cannot load to recovery. Also I am not able to encrypt the phone. Then i have no root rights at all. And i done all the steps above mentioned. Can someone help me in this matter?
Best regards,
---------- Post added at 12:59 PM ---------- Previous post was at 12:37 PM ----------
korosfoy said:
I managed to do all the steps except one getting the TWRP working on slot A. So TWRP is not working on slot A and cannot load to recovery. Also I am not able to encrypt the phone. Then i have no root rights at all. And i done all the steps above mentioned. Can someone help me in this matter?
Best regards,
Click to expand...
Click to collapse
Things went from worst to even worst if it is possible ... now i am only seeing the BS logo and doesn't boot neither to recovery neither to bootloader .
I would really APPRECIATE THE HELP !!!

nice

...

When I try to boot into TWRP I got a black screen. How can I got into TWRP.
I can not flash it either

Related

[SOLVED] Asking Experts for Solving Bootloop Nokia 8

So, I want to say that my Nokia 8 TA-1004 is having Bootloop. This happens very occasionally and randomly. It just attacks unexpected. I can't see what is the problem or what's the source of it. Thankfully, I have the logcat file. However, I do not understand what was the main cause. So please, I am asking the experts in here to help me identify the source of this error.
The Bootloop just boot like 4-5 times and then stopped Bootloop or sometimes just go straight to DOWNLOAD MODE and I had to restart manually. After that, i was able to gointo system like exploring like usual, and then it happens again. Sometimes not opening the app also happens. Repeat until you gets the nerve.
The phones status is rooted with magisk and unlocked bootloader but no twrp yet. Also, I am at 4.88B SP01 June,01 patch. If you are telling me that the root is the cause, then it is unlikely since it has been weeks since I had it rooted but the problem just came these recently.
Once again, I ask for the help of forumers here. I want to at least enjoy my phone that I love. I dont really want to sell the phone anymore.
Here's the link of logcat:
https://www16.zippyshare.com/v/2W0SVK8t/file.html
I promise. No viruses. Thank you
Hey, I suspect that this problem could be fixed by flashing original bootloader image.
I assume you have flashed an unsuitable image and I think you are using an unlocked bootloader, that's why you are facing this problem.
error748 said:
Hey, I suspect that this problem could be fixed by flashing original bootloader image.
I assume you have flashed an unsuitable image and I think you are using an unlocked bootloader, that's why you are facing this problem.
Click to expand...
Click to collapse
Do you mean flashing original Boot.img? As we know, to gain root, we need to flash patched boot.img with magisk. Do you mean this kind of issue? I notice the problem is in Android System. It says failed to load as data may corrupt. Google is also not responding and Google play services.
Unlocked Bootloader isnt the issue. But, I do think image is unsuitable. However, I have patched boot.img as the same as the version of Nokia. Is such thing still happen?
godofknife said:
Do you mean flashing original Boot.img? As we know, to gain root, we need to flash patched boot.img with magisk. Do you mean this kind of issue? I notice the problem is in Android System. It says failed to load as data may corrupt. Google is also not responding and Google play services.
Unlocked Bootloader isnt the issue. But, I do think image is unsuitable. However, I have patched boot.img as the same as the version of Nokia. Is such thing still happen?
Click to expand...
Click to collapse
now do one thing. flash stock boot img (will break wifi), after that download official twrp and boot into it. then from twrp flash twrp zip file provided with official boot img. reboot to twrp and flash latest magisk beta. (you will have wifi working after this)
This way you will get root and stable system.. no need to flash patched boot img anymore..
Make sure to revert back to stock boot first before flashing twrp..
sumitinhome said:
now do one thing. flash stock boot img (will break wifi), after that download official twrp and boot into it. then from twrp flash twrp zip file provided with official boot img. reboot to twrp and flash latest magisk beta. (you will have wifi working after this)
This way you will get root and stable system.. no need to flash patched boot img anymore..
Make sure to revert back to stock boot first before flashing twrp..
Click to expand...
Click to collapse
sumitinhome, I just did factory reset. The problem STILL HAPPENS. It means it wasn't any of the app but from the system or the boot.img itself perhaps.
With no way to enter the system, how do i get into the fastboot now? By pressing volume down + Power (That shows DOWNLOAD MODE)? Is that the fastboot? Then yet again, the only issue that I have is the exactly driver for Nokia 8. I found lots of drivers in the internet but I am quite confused which one is the real driver of Nokia 8 to be able to detect in fastboot and ADB. Do you have a driver installer?
Assuming if you will have given Nokia driver and I managed to get into fastboot mode by using hard key, do I type this command?
fastboot flash boot.img? Or is it wrong command?
Thank you and sorry if i ask too many questions.
godofknife said:
sumitinhome, I just did factory reset. The problem STILL HAPPENS. It means it wasn't any of the app but from the system or the boot.img itself perhaps.
With no way to enter the system, how do i get into the fastboot now? By pressing volume down + Power (That shows DOWNLOAD MODE)? Is that the fastboot? Then yet again, the only issue that I have is the exactly driver for Nokia 8. I found lots of drivers in the internet but I am quite confused which one is the real driver of Nokia 8 to be able to detect in fastboot and ADB. Do you have a driver installer?
Assuming if you will have given Nokia driver and I managed to get into fastboot mode by using hard key, do I type this command?
fastboot flash boot.img? Or is it wrong command?
Thank you and sorry if i ask too many questions.
Click to expand...
Click to collapse
1. download mode is fastboot mode.. no difference there.
2. unfortunately i dont have installer for drivers but you can find it if you browse nokia section in this forum.
3. you will need command 'fastboot flash boot_a boot.img' and 'fastboot flash boot_b boot.img' to flash stock boot img to your phone..
4. if you wish to install twrp then you will need to follow instructions from following thread
https://forum.xda-developers.com/nokia-8/development/official-twrp-nb1-t3832232
Make sure to read the thread and comments carefully before doing anything.
Hope it helped.
sumitinhome said:
1. download mode is fastboot mode.. no difference there.
2. unfortunately i dont have installer for drivers but you can find it if you browse nokia section in this forum.
3. you will need command 'fastboot flash boot_a boot.img' and 'fastboot flash boot_b boot.img' to flash stock boot img to your phone..
4. if you wish to install twrp then you will need to follow instructions from following thread
https://forum.xda-developers.com/nokia-8/development/official-twrp-nb1-t3832232
Make sure to read the thread and comments carefully before doing anything.
Hope it helped.
Click to expand...
Click to collapse
Hey there, thanks for the fast respond. It greatly helps.
Alright, I am waiting for the driver. Also, I checked anywhere in the forum section of Nokia 8 but none of them have 00WW_4.88bSP01 version of stock boot.img which is 1st June 2018 patch.
Do you happen to have had it? Is it okay if i ask for it? Thank you.
godofknife said:
Hey there, thanks for the fast respond. It greatly helps.
Alright, I am waiting for the driver. Also, I checked anywhere in the forum section of Nokia 8 but none of them have 00WW_4.88bSP01 version of stock boot.img which is 1st June 2018 patch.
Do you happen to have had it? Is it okay if i ask for it? Thank you.
Click to expand...
Click to collapse
I have it. Wait sometime.. i will upload it on gdrive and share you link
sumitinhome said:
I have it. Wait sometime.. i will upload it on gdrive and share you link
Click to expand...
Click to collapse
Yes sumitinhome, thank you so much. Try make it one upload with the driver. All that and I will do the fastboot command asap..
Oh yeah, one verify question. When the bootloader is unlocked, updating the newest ROM after august will lock the bootloader again or not? Some say yes, some say no. A member name hikari stated no, we are unaffected. But, some say relock again. Which is true?
godofknife said:
Yes sumitinhome, thank you so much. Try make it one upload with the driver. All that and I will do the fastboot command asap..
Oh yeah, one verify question. When the bootloader is unlocked, updating the newest ROM after august will lock the bootloader again or not? Some say yes, some say no. A member name hikari stated no, we are unaffected. But, some say relock again. Which is true?
Click to expand...
Click to collapse
we are unaffected.. and i have only boot img unfortunately.. i dont have drivers..
and dont update to august yet.. let pie come and update to pie directly then..
---------- Post added at 02:10 PM ---------- Previous post was at 02:04 PM ----------
godofknife said:
Hey there, thanks for the fast respond. It greatly helps.
Alright, I am waiting for the driver. Also, I checked anywhere in the forum section of Nokia 8 but none of them have 00WW_4.88bSP01 version of stock boot.img which is 1st June 2018 patch.
Do you happen to have had it? Is it okay if i ask for it? Thank you.
Click to expand...
Click to collapse
here is boot img
https://drive.google.com/file/d/1XtxIWQdn9dbtt1tJydM_6fFhslRZfozr/view?usp=drivesdk
sumitinhome said:
we are unaffected.. and i have only boot img unfortunately.. i dont have drivers..
and dont update to august yet.. let pie come and update to pie directly then..
---------- Post added at 02:10 PM ---------- Previous post was at 02:04 PM ----------
here is boot img
https://drive.google.com/file/d/1XtxIWQdn9dbtt1tJydM_6fFhslRZfozr/view?usp=drivesdk
Click to expand...
Click to collapse
Ah ha, thank you very much. I just need one more requirement. The driver. Honestly, there are so many drivers for Nokia 8 and none of them seems to work with my device detection. There's also type F, M driver..... Seriously confusing.
@sumitinhome, you are awesome. I must say thank you for helping me. Phone is no longer in bootloop state. However, I may require just little more help. I have also installed TWRP and succeeded. The problem is that the WIFI breaks. I went ahead and installed Magisk using zip one like you mentioned the steps in installing TWRP. It still doesn't solve the WIFI problem. How could this be? (Do note that I did not use fastboot flash twrp.img. I use fastboot boot twrp.img instead)
I also have other questions. During MTP in TWRP, I saw the partition drive; The internal storage and USB-OTG as given in picture below. What is the second drive meaning?
Second question is why is Magisk manager only showing Installed version v17.1? And the button is just uninstalled. I recall there are other buttons and feature like Safety Net and advance settings.
Finally, I want to know how do we get into recovery mode without using ADB command everytime? I tried pressing Volume UP + Power. But, it didn't go into TWRP. It just goes normal reboot.
Thank you so much once again.
Pic: https://ibb.co/jFtHPp
godofknife said:
@sumitinhome, you are awesome. I must say thank you for helping me. Phone is no longer in bootloop state. However, I may require just little more help. I have also installed TWRP and succeeded. The problem is that the WIFI breaks. I went ahead and installed Magisk using zip one like you mentioned the steps in installing TWRP. It still doesn't solve the WIFI problem. How could this be? (Do note that I did not use fastboot flash twrp.img. I use fastboot boot twrp.img instead)
I also have other questions. During MTP in TWRP, I saw the partition drive; The internal storage and USB-OTG as given in picture below. What is the second drive meaning?
Second question is why is Magisk manager only showing Installed version v17.1? And the button is just uninstalled. I recall there are other buttons and feature like Safety Net and advance settings.
Finally, I want to know how do we get into recovery mode without using ADB command everytime? I tried pressing Volume UP + Power. But, it didn't go into TWRP. It just goes normal reboot.
Thank you so much once again.
Pic: https://ibb.co/jFtHPp
Click to expand...
Click to collapse
Do one thing.
Flash stock boot img again. and after that do the following
1) Full charge your phone.
2) Get a MicroSD card ( 8 or 16 GB )
3) Download this - https://mega.nz/#!mRZHDaJI!3KrT2F0ZE...KQux5EvPWVGI_4
4) Copy it to SDCARD from your PC.
5) Put the SD card in ur mobile.
6) Go to recovery
7) Select update, from SDCARD - start flashing by pressing power button.
This will get back wifi. after that you can update to latest august patch too if you want and then flash twrp.
And about that OTG thing, don't worry twrp is being updated it will be fixed very soon. People are working on it.
sumitinhome said:
Do one thing.
Flash stock boot img again. and after that do the following
1) Full charge your phone.
2) Get a MicroSD card ( 8 or 16 GB )
3) Download this - https://mega.nz/#!mRZHDaJI!3KrT2F0ZE...KQux5EvPWVGI_4
4) Copy it to SDCARD from your PC.
5) Put the SD card in ur mobile.
6) Go to recovery
7) Select update, from SDCARD - start flashing by pressing power button.
This will get back wifi. after that you can update to latest august patch too if you want and then flash twrp.
And about that OTG thing, don't worry twrp is being updated it will be fixed very soon. People are working on it.
Click to expand...
Click to collapse
I see. Number 3 has Encryption. Also, before i can do this, i have a new problem. I was so stupid. I accidentally format everything including the system which leaves me NO OS. I should have just wipe data (factory reset). Not advanced wipe. Can I still install Stock rom (any version) with twrp? What do i do?
@sumitinhome, also I forgot to mention. SD Card and Internal storage is not detected in TWRP Mode. I checked in my PC. ADB Sideload is also fail. Is this the end of my phone fate?
EDITED: Never mind. I was using the obsolete TWRP Version. I updated to the latest one and SD Card and internal is detected in TWRP once again.
godofknife said:
@sumitinhome, also I forgot to mention. SD Card and Internal storage is not detected in TWRP Mode. I checked in my PC. ADB Sideload is also fail. Is this the end of my phone fate?
EDITED: Never mind. I was using the obsolete TWRP Version. I updated to the latest one and SD Card and internal is detected in TWRP once again.
Click to expand...
Click to collapse
well done
sumitinhome said:
well done
Click to expand...
Click to collapse
Thank you.
godofknife said:
I see. Number 3 has Encryption. Also, before i can do this, i have a new problem. I was so stupid. I accidentally format everything including the system which leaves me NO OS. I should have just wipe data (factory reset). Not advanced wipe. Can I still install Stock rom (any version) with twrp? What do i do?
Click to expand...
Click to collapse
@sumitinhome, how about this? I still have the issue. NO OS is running.
godofknife said:
Thank you.
@sumitinhome, how about this? I still have the issue. NO OS is running.
Click to expand...
Click to collapse
told you flash stock boot img again.. and use the above method i mention to flash firmware..
Do one thing.
Flash stock boot img again. and after that do the following
1) Full charge your phone.
2) Get a MicroSD card ( 8 or 16 GB )
3) Download this - https://mega.nz/#!mRZHDaJI!3KrT2F0ZE...KQux5EvPWVGI_4
4) Copy it to SDCARD from your PC.
5) Put the SD card in ur mobile.
6) Go to recovery
7) Select update, from SDCARD - start flashing by pressing power button
sumitinhome said:
told you flash stock boot img again.. and use the above method i mention to flash firmware..
Do one thing.
Flash stock boot img again. and after that do the following
1) Full charge your phone.
2) Get a MicroSD card ( 8 or 16 GB )
3) Download this - https://mega.nz/#!mRZHDaJI!3KrT2F0ZE...KQux5EvPWVGI_4
4) Copy it to SDCARD from your PC.
5) Put the SD card in ur mobile.
6) Go to recovery
7) Select update, from SDCARD - start flashing by pressing power button
Click to expand...
Click to collapse
That was also the solution for NO OS? Wow. Thanks. Um, the download link need Decryption key. Do you happen to have it?
godofknife said:
That was also the solution for NO OS? Wow. Thanks. Um, the download link need Decryption key. Do you happen to have it?
Click to expand...
Click to collapse
no it doesn't need any key

[Guide] Restoring Black Shark 1 Global to Stock

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:
Flash the stock images
Re-encrypt storage
Re-flash the stock files
Flash the stock images
Download the full backup from here: https://mega.nz/#!IZFAEAoC!UMHJ0drlhoHyGtV-0KYrtteC1VMP8-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.
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.
i need this for CN version too:crying::crying:
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.
metamorfose123 said:
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.
Click to expand...
Click to collapse
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.
needful guide for restoring black shark. Big thumb up for this post.
@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 :good:
hi, i have a problem, after flash system i get only on S logo
geed301 said:
hi, i have a problem, after flash system i get only on S logo
Click to expand...
Click to collapse
What version are you on? Which black shark?
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
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?
FasterBit said:
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?
Click to expand...
Click to collapse
I didn't find any slow motion option in camera. When you try OTA, open adb logcat at the same time. It should show you an error regarding which partition was modified when OTA fails.
It's probably one of: Boot, System, Modem, DSP, DTBO, Bluetooth, Vendor (maybe also other ones)
i need stock global ota package
do you have it yet?
hoangtieubao said:
i need stock global ota package
do you have it yet?
Click to expand...
Click to collapse
I have a backup of the global pie rom, i can upload it within this week.
gilbert32 said:
I have a backup of the global pie rom, i can upload it within this week.
Click to expand...
Click to collapse
i have solution to full convert rom to global
but i still dont have skr-h0 ota package full base
i need it to do
i have cn version OTA package, after flash
it can use *#1027# to fully convert to chinese version , ota works fine.
maybe you need to ask blackshark to provide a Full OTA request to your phone. just say your phone is rooted ,and cannot update anymore, need a full ota to restore it.
we use this trick to get cn version full ota package and it works
Vlin.Wang said:
i have cn version OTA package, after flash
it can use *#1027# to fully convert to chinese version , ota works fine.
maybe you need to ask blackshark to provide a Full OTA request to your phone. just say your phone is rooted ,and cannot update anymore, need a full ota to restore it.
we use this trick to get cn version full ota package and it works
Click to expand...
Click to collapse
this trick is very nice
and could you do it to get full ota for us?
i think too many people to want it
Any chance to find the global rom for black shark 2 pro.. DLT-A0
Any chance to find the global rom for black shark 2 pro.. DLT-A0
I need to make the phone supports multi language
Please help
Help Needed
Hi All,
Hope all is well.
Could anyone please help post a noob guide for this. I've flashing rooting etc thinf before but this one's really confusing for me. I would appreciate it greatly. I have a facebook group of BS1 Global user and they all wanted to restore their smartphone, I referred them to this thread but none of them seems to understand this tutorial. Pardon our ignorance. We would really appreciate it greatly.
Thanks in advance!
Hi Gilbert,
Thank you so much for posting this.
Your effort is greatly appreciated by us.
I am new to BS1 Global and I haven't done flashing rooting etc to this phone.
It would really help if there could be a step by step tutorial for users like me.
I would like to ask what files/tools are needed for this tutorial. I probably need pc? And probably need to install something on pc like drivers? What are they?
I'm guessing I need to unlock bootloader and root my bs1 global?
Also need to install twrp for bs1 global? And I don't know this disablforceencrypt and magisk thing.
Please please help post a noob tutorial for bs1 global that haven't been modified yet.
That would really be helpful, I look forward to your response. Thank you so much in advance.

Root + TWRP on Android 10 Post OTA?

I installed the Stable Android 10 on my GM1910 via TWRP, totally forgetting about maintaining root and TWRP.
So how do I bring back TWRP and root?
fastboot boot doesn't seem to work, I managed to pull the boot.img and patch it with Magisk from another device but flashing it through fastboot ends up in an endless bootanimation.
Could anyone help me? here's a link of the boot.img i pulled, it works if you flash it without magisk patching it.
Link: https://drive.google.com/file/d/1O8lF1UDwwu0zT8ro5Q1gKKfdxF-HGPEW/view?usp=sharing
(Almost) exactly the same here. I tired flashing a patched boot.img, it actually boots - but magisk manager gets stuck on the splash screen and some apps, including chrome, won't start. Trying to boot TWRP results in the phone getting stuck on the "fastboot mode" screen.
My only solution would be to downgrade, root, keep the upgrade this time. But because my ISP is doing some maintenance work I don't have wifi - and restoring my phone through mobile data does not seem to work correctly.
EDIT: In fastboot, neither bootloader version nor baseband version are show, product name is "msmnile". Has this always been that way?
EDIT 2, solution:
I extracted the boot.img from the device, and patched it using magisk on the same phone:
https://drive.google.com/file/d/1-Gf-6iXSFuYT5xDR-mnLKANvkXUHal9e/view?usp=sharing
Run this command in fastboot so you know which is the CURRENT active slot :
Code:
fastboot getvar current-slot
Run this command so you can flash the correct slot :
Code:
fastboot flash boot_X magisk_patched.img
replace X with the a or b from the command before.
:good:
dmj0shu4 said:
I installed the Stable Android 10 on my GM1910 via TWRP, totally forgetting about maintaining root and TWRP.
So how do I bring back TWRP and root?
fastboot boot doesn't seem to work, I managed to pull the boot.img and patch it with Magisk from another device but flashing it through fastboot ends up in an endless bootanimation.
Could anyone help me? here's a link of the boot.img i pulled, it works if you flash it without magisk patching it.
Link: https://drive.google.com/file/d/1O8lF1UDwwu0zT8ro5Q1gKKfdxF-HGPEW/view?usp=sharing
Click to expand...
Click to collapse
Hi sorry to hear that you got this problem and hopefully it gets fixed. I have another question: does that mean using TWRP to completely clean the device then installing Android 10 via zip will remove TWRP and fastboot everything? Does that mean after installing, everything will be refreshed like a box opened phone?
dmj0shu4 said:
I installed the Stable Android 10 on my GM1910 via TWRP, totally forgetting about maintaining root and TWRP.
So how do I bring back TWRP and root?
fastboot boot doesn't seem to work, I managed to pull the boot.img and patch it with Magisk from another device but flashing it through fastboot ends up in an endless bootanimation.
Could anyone help me? here's a link of the boot.img i pulled, it works if you flash it without magisk patching it.
Link: https://drive.google.com/file/d/1O8lF1UDwwu0zT8ro5Q1gKKfdxF-HGPEW/view?usp=sharing
Click to expand...
Click to collapse
If you have an endless boot animation you might be trying to boot from the wrong slot, try using the fastboot set_active command to change slot, then restart
h0l said:
Run this command in fastboot so you know which is the CURRENT active slot :
Run this command so you can flash the correct slot : replace X with the a or b from the command before.
:good:
Click to expand...
Click to collapse
I got a bit confused.
If the current slot is boot_a, i flash it in boot_b or am I supposed to flash on the one that isn't the current slot?
djsubterrain said:
If you have an endless boot animation you might be trying to boot from the wrong slot, try using the fastboot set_active command to change slot, then restart
Click to expand...
Click to collapse
Which is the default active slot? Is it okay to use either of the 2?
dmj0shu4 said:
Which is the default active slot? Is it okay to use either of the 2?
Click to expand...
Click to collapse
Either one should work if the rom and the rooted boot image is on it (If you are rooting). That's why you should install using TWRP, if you look in the reboot menu it will show you the active slot.
djsubterrain said:
Either one should work if the rom and the rooted boot image is on it (If you are rooting). That's why you should install using TWRP, if you look in the reboot menu it will show you the active slot.
Click to expand...
Click to collapse
I would've used TWRP but it won't let me boot into it
fastboot boot [recovery.img] does not seem to work for android 10, atleast on my case
dmjoshu4 said:
I got a bit confused.
If the current slot is boot_a, i flash it in boot_b or am I supposed to flash on the one that isn't the current slot?
Click to expand...
Click to collapse
You are supposed to flash it in the one that IS the active one. Because you do want to root the slot that you'll be booting.
does that mean using TWRP to completely clean the device then installing Android 10 via zip will remove TWRP and fastboot everything? I.e. everything will be refreshed like a box opened phone?
gh279760559 said:
does that mean using TWRP to completely clean the device then installing Android 10 via zip will remove TWRP and fastboot everything? I.e. everything will be refreshed like a box opened phone?
Click to expand...
Click to collapse
not everything, just twrp and root will be gone if you restarted without installing magisk to the inactive slot
h0l said:
(Almost) exactly the same here. I tired flashing a patched boot.img, it actually boots - but magisk manager gets stuck on the splash screen and some apps, including chrome, won't start. Trying to boot TWRP results in the phone getting stuck on the "fastboot mode" screen.
My only solution would be to downgrade, root, keep the upgrade this time. But because my ISP is doing some maintenance work I don't have wifi - and restoring my phone through mobile data does not seem to work correctly.
EDIT: In fastboot, neither bootloader version nor baseband version are show, product name is "msmnile". Has this always been that way?
EDIT 2, solution:
I extracted the boot.img from the device, and patched it using magisk on the same phone:
https://drive.google.com/file/d/1-Gf-6iXSFuYT5xDR-mnLKANvkXUHal9e/view?usp=sharing
Run this command in fastboot so you know which is the CURRENT active slot :
Code:
fastboot getvar current-slot
Run this command so you can flash the correct slot :
Code:
fastboot flash boot_X magisk_patched.img
replace X with the a or b from the command before.
:good:
Click to expand...
Click to collapse
dude, thanks for this, i was banging my head against a wall trying to get root to work. I used your patched boot img and i had the version mismatch, but i local updated my android and it has root!
dmj0shu4 said:
I would've used TWRP but it won't let me boot into it
fastboot boot [recovery.img] does not seem to work for android 10, atleast on my case
Click to expand...
Click to collapse
I have not been able to boot TWRP either in fastboot mode - got stuck at "OnePlus Logo FastBoot" black screen.
Hi guys.. can you post the steps in rooting android 10??
I've already had bootloader unlocked.
Do i need to.follow the steps intended for android 9??
Like
1. Install TWRP via fastboot.. (2files)
2. Reboot to twrp.
3. Flash magisk via twrp??
Is that it?? If so. Then after reading this thread.. some of. You mentioned about boot. Img?? Patched?? What's that supposed to mean?? Sir??
Thanks. Any advice is highly appreciated..
---------- Post added at 08:30 AM ---------- Previous post was at 08:28 AM ----------
And by the way..
Im on Gm1910 model. Global rom. Gm21AA build.. if that info would matter.. i dont actually need the root on android 9. Coz parallel app is working.. but now in android 10. It isnt working.. so.i need to root to grant su to game guardian.. thanks..
MigbyPie said:
I have not been able to boot TWRP either in fastboot mode - got stuck at "OnePlus Logo FastBoot" black screen.
Click to expand...
Click to collapse
Same.
I've read that Q/10 is different and you can't install TWRP like that anymore. Supposedly you need to use the MSM tool or the all-in-one tool but I've tried both of those and still can't boot to TWRP.
E30Nova said:
Same.
I've read that Q/10 is different and you can't install TWRP like that anymore. Supposedly you need to use the MSM tool or the all-in-one tool but I've tried both of those and still can't boot to TWRP.
Click to expand...
Click to collapse
Hopefully there will be a solution. I had tried to update from Pie to Q10 while staying rooted and it didn't work. So I had to wipe the whole device and decided to wait for a smoother root method for my device. If you have any other ideas about rooting Q10 let me know. Thank you
h0l said:
(Almost) exactly the same here. I tired flashing a patched boot.img, it actually boots - but magisk manager gets stuck on the splash screen and some apps, including chrome, won't start. Trying to boot TWRP results in the phone getting stuck on the "fastboot mode" screen.
My only solution would be to downgrade, root, keep the upgrade this time. But because my ISP is doing some maintenance work I don't have wifi - and restoring my phone through mobile data does not seem to work correctly.
EDIT: In fastboot, neither bootloader version nor baseband version are show, product name is "msmnile". Has this always been that way?
EDIT 2, solution:
I extracted the boot.img from the device, and patched it using magisk on the same phone:
https://drive.google.com/file/d/1-Gf-6iXSFuYT5xDR-mnLKANvkXUHal9e/view?usp=sharing
Run this command in fastboot so you know which is the CURRENT active slot :
Code:
fastboot getvar current-slot
Run this command so you can flash the correct slot :
Code:
fastboot flash boot_X magisk_patched.img
replace X with the a or b from the command before.
:good:
Click to expand...
Click to collapse
You saved my life! Thank you!
But how do we get twrp now? Is there any way?
Me too. Use tool all in one but it doesnt work. Stuck at "waiting twrp boots".
Any help, thanks.
Same here any Solution?
Sent from my GM1911 using Tapatalk
---------- Post added at 08:14 AM ---------- Previous post was at 08:14 AM ----------
Stuck at Fastboot booting when flashed img and also zip
Sent from my GM1911 using Tapatalk
I updated my phone to 10 last night, followed the same guide as I have for every other update but this time I lost root for some reason.
I still have TWRP recovery on there but it can't read internal storage so I can't flash Magisk.
I tried changing file system to ext 2 then back to 4 and then repairing it as I read elsewhere and this wiped the phone obviously but internal storage seemed to be working until I set the phone up again, downloaded Magisk, rebooted to recovery and I'm back where I started, internal storage showing as 0mb in TWRP.
Any ideas how to fix?

Rooting HTC U12+ Android PIE

Hi everyone,
since yesterday ive got a HTC U12+. Now I want to root the phone. But the latest TWRP (TWRP 3.3.1-0 Released) is not compatible with PIE. (Error 23 RU_READ_PARTITION_FAIL read/open partition fail)
Is there any way to root the phone?
Thank you for your help.
alexmentin said:
Hi everyone,
since yesterday ive got a HTC U12+. Now I want to root the phone. But the latest TWRP (TWRP 3.3.1-0 Released) is not compatible with PIE. (Error 23 RU_READ_PARTITION_FAIL read/open partition fail)
Is there any way to root the phone?
Thank you for your help.
Click to expand...
Click to collapse
Root in PIE and latest twrp are working good
did you unlock the phone?
did you encrypt the phone?
SIRKRA said:
Root in PIE and latest twrp are working good
did you unlock the phone?
did you encrypt the phone?
Click to expand...
Click to collapse
Yes the Phone is unlocked.
How do I encrypt it?
Sorry, my fault I was on download mode.
When you boot the twrp.img in fastboot, than it works.
Thanky you for your help
SIRKRA said:
Root in PIE and latest twrp are working good
did you unlock the phone?
did you encrypt the phone?
Click to expand...
Click to collapse
I want to boot temporary to TWRP so I can flash the magisk.zip to get root. But when I boot temporary to TWRP (with fastboot) - TWRP asks for a decryption pattern. So I entered my phone pattern but TWRP says that it's wrong. Therefore I can't access my partition to flash the zip.
The bootloader is unlocked. As I can see in my settings, my phone is encrypted but I never encrypted it. I think it's per default encrypted.
Is it because TWRP support for the HTC U12+ is dead? How did you root it?
Has anyone rooted 2.50.709.3 (it fixed the stutter on startup & mic is clearer) will tarp 3.3.1 0 work this second update on Pie, (Taiwan model) I intend to temp twrp to put magisk so on phone, bootloader unlocked already
---------- Post added at 04:25 PM ---------- Previous post was at 04:15 PM ----------
byinhh said:
I want to boot temporary to TWRP so I can flash the magisk.zip to get root. But when I boot temporary to TWRP (with fastboot) - TWRP asks for a decryption pattern. So I entered my phone pattern but TWRP says that it's wrong. Therefore I can't access my partition to flash the zip.
The bootloader is unlocked. As I can see in my settings, my phone is encrypted but I never encrypted it. I think it's per default encrypted.
Is it because TWRP support for the HTC U12+ is dead? How did you root it?
Click to expand...
Click to collapse
Unlock bootloader first via htcdev, Make sure you msgisk on your memory card no bigger than 32gb as twrp won't recognise it if it's bigger, In bootloader mode not download mode ,make sure yr adb working, then type fastboot boot twrp.img in cmd and from ur PC adb folder. It will boot into twrp and flash msgisk from there
It's working!
jab5555 said:
Has anyone rooted 2.50.709.3 (it fixed the stutter on startup & mic is clearer) will tarp 3.3.1 0 work this second update on Pie, (Taiwan model) I intend to temp twrp to put magisk so on phone, bootloader unlocked already
---------- Post added at 04:25 PM ---------- Previous post was at 04:15 PM ----------
Unlock bootloader first via htcdev, Make sure you msgisk on your memory card no bigger than 32gb as twrp won't recognise it if it's bigger, In bootloader mode not download mode ,make sure yr adb working, then type fastboot boot twrp.img in cmd and from ur PC adb folder. It will boot into twrp and flash msgisk from there
Click to expand...
Click to collapse
Thank you very much! It worked!
For other people having the same problems:
What I did:
Prerequisites: 1. Bootloader must be unlocked, 2. adb drivers are correctly working, 3. USB-Debugging enabled
1. Downloaded latest magisk.zip file and put it on the microSD card (not bigger than 32GB)
2. Put into smartphone
3. connect and booted to bootloader (via adb reboot bootloader)
4. typed fastboot boot twrp.img (from the path, where twrp.img is located)
5. Now TWRP is asking you for a decryption pattern. Ignore this and click on Cancel. After that you will get the normal main menu of TWRP.
6. Click on Install and choose your microSD.
7. Flash your magisk.zip.
byinhh said:
Thank you very much! It worked!
For other people having the same problems:
What I did:
Prerequisites: 1. Bootloader must be unlocked, 2. adb drivers are correctly working, 3. USB-Debugging enabled
1. Downloaded latest magisk.zip file and put it on the microSD card (not bigger than 32GB)
2. Put into smartphone
3. connect and booted to bootloader (via adb reboot bootloader)
4. typed fastboot boot twrp.img (from the path, where twrp.img is located)
5. Now TWRP is asking you for a decryption pattern. Ignore this and click on Cancel. After that you will get the normal main menu of TWRP.
6. Click on Install and choose your microSD.
7. Flash your magisk.zip.
Click to expand...
Click to collapse
i did the same thing but got the message "This device is corrupt. It can´t be trusted and will not boot"
bronyel said:
i did the same thing but got the message "This device is corrupt. It can´t be trusted and will not boot"
Click to expand...
Click to collapse
I had that error on my Pixel 2 XL when an update broke my root and I tried to reflash magisk which I believe my boot.img was already patched by magisk previously. I was stuck in a boot loop. After days of not finding a solution, I ended up flashing a stock image. I then reflashed magisk. The issue may be that the boot image is on the wrong partition or corrupted. There may be a solution but I never did find one at that time.
---------- Post added at 04:28 PM ---------- Previous post was at 04:17 PM ----------
byinhh said:
Thank you very much! It worked!
For other people having the same problems:
What I did:
Prerequisites: 1. Bootloader must be unlocked, 2. adb drivers are correctly working, 3. USB-Debugging enabled
1. Downloaded latest magisk.zip file and put it on the microSD card (not bigger than 32GB)
2. Put into smartphone
3. connect and booted to bootloader (via adb reboot bootloader)
4. typed fastboot boot twrp.img (from the path, where twrp.img is located)
5. Now TWRP is asking you for a decryption pattern. Ignore this and click on Cancel. After that you will get the normal main menu of TWRP.
6. Click on Install and choose your microSD.
7. Flash your magisk.zip.
Click to expand...
Click to collapse
I also wanted to add that after doing this, download the latest MagiskManager.apk from this site and install.
After installation, start the Magisk manager app and press OK on the popup to reboot the phone.
Next, just download a root checker app from the play store to check for root.
bronyel said:
i did the same thing but got the message "This device is corrupt. It can´t be trusted and will not boot"
Click to expand...
Click to collapse
That's very strange. I didn't had that problem. I found a Q&A at xda-developers where someone had the same problem. Perhaps it might help you.
https://forum.xda-developers.com/u12-plus/help/wont-boot-device-corrupt-t3927896
The other way to get root is to patch the boot.img.
byinhh said:
That's very strange. I didn't had that problem. I found a Q&A at xda-developers where someone had the same problem. Perhaps it might help you.
https://forum.xda-developers.com/u12-plus/help/wont-boot-device-corrupt-t3927896
The other way to get root is to patch the boot.img.
Click to expand...
Click to collapse
Patching the boot.img is the method I did to root last night. All rooted and Magisk Manager + Leedroid Rom installed. Looks good.
*Is there a easy way to install TWRP now? / Is there any point? I am not going to do any more customisation or install any other ROMS or do any OTA updates for the next 2-3 years! It would be nice to have the option of having a recovery and performing a nandroid back-up...only because that's what I have been doing for years. I've only ever needed a backup once, but it was a big help when I did! I have no idea if the phone is encrypted or not (not too sure what this means). My APP data + photos + Contacts / Calendar are backed-up to Google.
no support for this phone anymore...
sonny123 said:
Patching the boot.img is the method I did to root last night. All rooted and Magisk Manager + Leedroid Rom installed. Looks good.
*Is there a easy way to install TWRP now? / Is there any point? I am not going to do any more customisation or install any other ROMS or do any OTA updates for the next 2-3 years! It would be nice to have the option of having a recovery and performing a nandroid back-up...only because that's what I have been doing for years. I've only ever needed a backup once, but it was a big help when I did! I have no idea if the phone is encrypted or not (not too sure what this means). My APP data + photos + Contacts / Calendar are backed-up to Google.
Click to expand...
Click to collapse
If you want to see whether your phone is encrypted or not:
Go to Settings - Security & location - Advanced - Encryption & credentials
I think it is encrypted by default.
I have TWRP installed on my phone but without the decryption of my internal storage most functions will not be available. (No Nandroid Backups, no flashing of Custom ROMs, ...)
TWRP for HTC U12+ has to be updated to decrypt the internal storage...
byinhh said:
If you want to see whether your phone is encrypted or not:
Go to Settings - Security & location - Advanced - Encryption & credentials
I think it is encrypted by default.
I have TWRP installed on my phone but without the decryption of my internal storage most functions will not be available. (No Nandroid Backups, no flashing of Custom ROMs, ...)
TWRP for HTC U12+ has to be updated to decrypt the internal storage...
Click to expand...
Click to collapse
Thanks so much for explaining that. I really appreciate it. Yes, it is encrypted. What a downer! lol. Oh well, not a big deal. I have just spent last night and tonight moving over pictures (I don't use google photos, but I will from now!) wallpaper, ringtones etc... Hopefully, I never have to 'repair' the phone by reverting to stock and losing all of these settings that I insist on having.
sonny123 said:
Thanks so much for explaining that. I really appreciate it. Yes, it is encrypted. What a downer! lol. Oh well, not a big deal. I have just spent last night and tonight moving over pictures (I don't use google photos, but I will from now!) wallpaper, ringtones etc... Hopefully, I never have to 'repair' the phone by reverting to stock and losing all of these settings that I insist on having.
Click to expand...
Click to collapse
Yeah, Nandroid would be better. I personally backup my Apps with Titanium Backup; photos, videos and music on my personal cloud; rest with Google Account.
byinhh said:
Yeah, Nandroid would be better. I personally backup my Apps with Titanium Backup; photos, videos and music on my personal cloud; rest with Google Account.
Click to expand...
Click to collapse
I will try Ti Backup this week and let you know if it worked. Cheers.
byinhh said:
I want to boot temporary to TWRP so I can flash the magisk.zip to get root. But when I boot temporary to TWRP (with fastboot) - TWRP asks for a decryption pattern. So I entered my phone pattern but TWRP says that it's wrong. Therefore I can't access my partition to flash the zip.
The bootloader is unlocked. As I can see in my settings, my phone is encrypted but I never encrypted it. I think it's per default encrypted.
Is it because TWRP support for the HTC U12+ is dead? How did you root it?
Click to expand...
Click to collapse
Do a data wipe inside twrp and reboot to fastboot and it be fine m8, I get the same error but that cures it ?
---------- Post added at 12:03 PM ---------- Previous post was at 11:59 AM ----------
shadokreeper said:
I had that error on my Pixel 2 XL when an update broke my root and I tried to reflash magisk which I believe my boot.img was already patched by magisk previously. I was stuck in a boot loop. After days of not finding a solution, I ended up flashing a stock image. I then reflashed magisk. The issue may be that the boot image is on the wrong partition or corrupted. There may be a solution but I never did find one at that time.
---------- Post added at 04:28 PM ---------- Previous post was at 04:17 PM ----------
I also wanted to add that after doing this, download the latest MagiskManager.apk from this site and install.
After installation, start the Magisk manager app and press OK on the popup to reboot the phone.
Next, just download a root checker app from the play store to check for root.
Click to expand...
Click to collapse
I used a 128gb usb c stick, don't understand why it won't mount anything bigger than 32gb Sdcard but OK with USB stick??
Everything worked fine with 2.55.401.3 on my U12+ with magisk until my phone accidentally auto-updated system to htc original image(same build). Now it works without root and when I only patch boot.img -> whatever slot_a or b - phone hangs after login.
Changing active slots doesn't change anything, and when I flash stock boot.img then system works ok again.
Patched boot.img doesn't start / unpatched boot.img works ok.
Whast's going on? Can You help me? Most stupid is that google pay stopped working saying that my phone is rooted while it isn't. LOL

Fixing a trashed "A" boot partition

My device is a rooted, TWRP-enabled OnePlus 7 Pro ... GM1917.
Through some failed flash attempts in the past, I hosed my "A" boot partition, meaning that I can't boot into it, nor do any meaningful work in it via TWRP. The data partition is empty and cannot be written to when I boot into TWRP via the "A" partition. My "B" partition is fine, and my device is running fine with that partition active.
Is there any way to get my "A" boot partition back to being properly functional without messing up my current device configuration? For example, one question I have is this: if I format the data partition in TWRP when I'm booted into the "A" partition, will it format the working data partition that I see when I boot into "B", thereby causing me to lose everything that is currently resident on this data partition?
I don't have a good understanding of the A/B boot partition methodology, so any help will be greatly appreciated.
.​
I think you should do a clean factory reset
https://forums.oneplus.com/threads/...ide-for-a-hard-bricked-oneplus-7-pro.1041896/
sonvotrung said:
I think you should do a clean factory reset
https://forums.oneplus.com/threads/...ide-for-a-hard-bricked-oneplus-7-pro.1041896/
Click to expand...
Click to collapse
Thank you, and I agree. I tried a few things via fastboot, but they didn't fix the problem.
Playing with TWRP, fastboot, and boot slots has been an over-complicated headache.
In following your link and reading, I see that this is the flash download that I need:
https://otafsg1.h2os.com/patch/amaz...ygen_21.O.16_OTA_016_all_1908281716_b2bb5.zip
I downloaded it. Then, does the following procedure appear to be correct? ...
First, back up everything that's important on my data partition. Then, from my desktop ...
Code:
fastboot --set-active=b
fastboot reboot bootloader
... just to make sure that "B" is indeed currently the active partition, which it should be.
I should then boot back into my system and flash that ROM I downloaded.
I should flash it via Settings->System update->Local upgrade.
After the system reboots and I get it initialized, I should make sure that OEM unlocking is set,
I can then boot back into the bootloader and do the following
Code:
fastboot flashing unlock
Then, after the system reboots again and I make sure my system is set up properly, I should reboot yet again to the boot loader.
I should then run this command:
Code:
fastboot boot twrp-3.3.1-4-guacamole.img
This should bring up TWRP recovery. Inside of TWRP, I should go into Advanced->Sideload, and then from my desktop ...
Code:
adb sideload twrp-installer-3.3.1-4-guacamole.zip
In TWRP, I should go back to sideload and then do the following from my desktop ...
Code:
adb sideload Magisk-v20.1.zip
At this point, I should boot back into my system and get everything restored and set up the way I want.
Does this all look correct?
Thank you again!
.​
Hmmm.. happened to my boot a partition too.. it cant boot because i flashed dm verity or something like that hoping that it would erase the lock pattern before entering and decrypting TWRP. but it failed. Took.me about an hour before i noticed that if i boot my phone to partition B.. its working fine.. when i boot to B.. i have read somewhere that android 10 installs on inactive slot..so i gambled to see if it would.fix my partition A that i think has been corrupted.. and so.it. worked. I lost my root and TWRP BECAuse i rebooted too soon..but hey... Patching my boot img with magisk..gives me a rooted device again...
So,. Im suggesting to flash ANDROID 10 FULL ROM.VIA Local upgrade then reboot.. i think it will be installed to your inactive slot and will fix the corrupt issue.. ehehehehe
santiagoruel13 said:
Hmmm.. happened to my boot a partition too.. it cant boot because i flashed dm verity or something like that hoping that it would erase the lock pattern before entering and decrypting TWRP. but it failed. Took.me about an hour before i noticed that if i boot my phone to partition B.. its working fine.. when i boot to B.. i have read somewhere that android 10 installs on inactive slot..so i gambled to see if it would.fix my partition A that i think has been corrupted.. and so.it. worked. I lost my root and TWRP BECAuse i rebooted too soon..but hey... Patching my boot img with magisk..gives me a rooted device again...
So,. Im suggesting to flash ANDROID 10 FULL ROM.VIA Local upgrade then reboot.. i think it will be installed to your inactive slot and will fix the corrupt issue.. ehehehehe
Click to expand...
Click to collapse
Thank you. Yes, I plan to flash the new 10.0.2 ROM soon, and I am glad to know from your experience that this should indeed solve my problem with the "A" slot.
Regarding dm-verity ... did you ever get that to work? I want to decrypt my phone, but I'm still not confident that dm-verity will work for me.
HippoMan said:
Thank you. Yes, I plan to flash the new 10.0.2 ROM soon, and I am glad to know from your experience that this should indeed solve my problem with the "A" slot.
Regarding dm-verity ... did you ever get that to work? I want to decrypt my phone, but I'm still not confident that dm-verity will work for me.
Click to expand...
Click to collapse
Nope.. i cant seem to make it work.. it just messes up and corrupt my phone partition slot.. dont know why.
It says decrypting phone.. successful.. and then.. it wont boot.
santiagoruel13 said:
Nope.. i cant seem to make it work.. it just messes up and corrupt my phone partition slot.. dont know why.
It says decrypting phone.. successful.. and then.. it wont boot.
Click to expand...
Click to collapse
Thank you. You have saved me a big headache, because now I won't even try to decrypt.
I'll keep investigating decryption, however, and if I can get it to work, I'll let you know
There seem to be a lot of posts in the following thread where people report problems similar to yours, so maybe we just have to wait until there is some sort of enhancement to dm-verity, or perhaps a new method for decrypting.
The thread: https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
PS: I just saw this message: https://forum.xda-developers.com/showpost.php?p=80185974&postcount=599
This person first formatted data, then rebooted TWRP, then did a factory reset, and then did the rest of the flashing.
Also, as you can see, the flashing was done twice, with a TWRP reboot in between.
Did you perform that many steps when you tried to decrypt via dm-verity?
.​
Boot to twrp
Format data
Reboot twrp again
Flash A10.01 rom
Flash TWRP
REBOOT TWRP
Flash decrypt via dm verity
REBOOT.. STUCK..
santiagoruel13 said:
Boot to twrp
Format data
Reboot twrp again
Flash A10.01 rom
Flash TWRP
REBOOT TWRP
Flash decrypt via dm verity
REBOOT.. STUCK..
Click to expand...
Click to collapse
In the other message whose link I posted, the writer did repeated flashing and more rebooting, including 3 dm verity flashes.
I think this multiple flashing and rebooting might be necessary because of the A/B slots, but I'm not sure ...
Format data,reboot twrp,factory reset,flash rom ,flash twrp ,flash dm verity.
Reboot again twrp
flash again rom,twrp,dm verity
Reboot twrp
flash gapps(when nedded)magisk(im using 19.4) flash dm verity.
Reboot system.
Click to expand...
Click to collapse
I'll have time to try all this on the weekend.
I fixed the problem via the following steps ...
(1) uninstall all Magisk modules
(2) reboot to System
(3) install the 10.0.2 OOS ROM via System Update->Local upgrade
(4) boot to bootloader
(5) "fastboot boot twrp.img" (version 3.3.1-70)
(6) go into Sideload and flash the twrp 3.3.1-70 installer
(7) reboot recovery
(8) go into Sideload and flash Magisk 20.1
(9) reboot to System
(10) reinstall the xXx-NoLimits ROM (version 9.3) via Magisk
In the process, I ended up with 10.0.2, as well.

Categories

Resources