[Miscellaneous Android Development] kanded:
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.

adb reboot bootloader

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 :

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

fastboot set_active other

it must be in _b now. make sure its _b.

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.

adb pull /dev/block/sde11 boot_a.img

adb pull /dev/block/sda8 vendor_a.img

adb pull //dev/block/sda6 system_a.img

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

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

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

[MENTION=4712355]mauronofrio[/MENTION] for the hardworking

[MENTION=3931841]puppet13th[/MENTION] 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 ***