FORUMS
Remove All Ads from XDA

Install Chinese JoyUI on Global Xiaomi Black Shark

915 posts
Thanks Meter: 1,411
 
By gilbert32, Senior Member on 5th February 2019, 07:05 PM
Post Reply Email Thread
Hello Guys. In this thread, you can see learn how to flash the Chinese Black Shark ROM, on the global version of the phone.

Before you start, please make sure that:
  1. You are rooted
  2. You have decrypted the system storage
  3. You have backed up system_{a,b}, vendor_{a,b}, boot_{a,b}, custom_{a,b}
Please double make sure you have backups of these partitions.

Also, There might be some bugs like:
  • After booting the screen will be upside down. This is fixed by locking then unlocking the phone. However it happens at every boot.
  • Lights settings does not work
  • Left is Recent Apps, Right is Back. A little annoying keymap but i can live with it There's a setting for that

So let's Begin!

The first step is downloading the files provided by @JengaMasterG:
system_b.img
boot_b.img
vendor_b.img

Again, please make sure you have a backup of your partitions, as well as the userdata.
Next, download TWRP for the phone.

Now, boot TWRP by running
Code:
adb reboot bootloader
fastboot boot twrp.img
Once TWRP is up, wipe, advanced, dalvik/art cache and data. Otherwise, when you boot the chinese rom, it will give you crashes.
Copy system_b.img, boot_b.img and vendor_b.img to your internal storage from pc.
Reboot to bootloader
Code:
fastboot getvar current-slot
Check on which slot you are. if it's A, we will flash to B. if it's B, we're gonna flash A.
Code:
fastboot set_active other
The command above will switch you to the corresponding slot, which we're gonna overwrite.
Code:
fastboot boot twrp.img
once twrp is booted, allow writing, and run an adb shell.
Code:
adb shell
Code:
cd /dev/block/bootdevice/by-name
This is the last step to make sure you have a backup.
For the following commands, replace of=partition_X where X is your new slot (if you were using slot A, X would be b and you would run the command as it is. If you were on slot B, you will use boot_a, system_a and vendor_a in end of the following commands)
Code:
dd if=/sdcard/boot_b.img of=boot_b
dd if=/sdcard/system_b.img of=system_b
dd if=/sdcard/vendor_b.img of=vendor_b
Once these commands have completed, flash DisableForceEncryption_Treble.zip and flash Magisk
Reboot without installing twrp app.

Now you will notice the bootanimation is upside down, as well as the system. No panic.
In the first time setup, you might have to go through it upside down (screen is upside down but touch is correct), so it's gonna be a bit tricky.
Once setup is finished, you can install google play store using the following link: miui forums (download zip file from here to avoid registering, for convenience)
Happy new Rom Global users!
Just don't install any update for the system, until you reflash your backup using the same procedure from twrp.

PS: This procedure should work on Chinese variant, to go to Global version. However i have not tested it as i only have the Global Black Shark. It works for switching between Chinese and Global too. Global version (not up to date): https://forum.xda-developers.com/and...mware-t3907789

Special Thanks:
mauronofio for TWRP
kanded for decrypt thread
JengaMasterG for chinese partition dumps
The Following 4 Users Say Thank You to gilbert32 For This Useful Post: [ View ] Gift gilbert32 Ad-Free
 
 
5th February 2019, 10:40 PM |#2  
JengaMasterG's Avatar
Senior Member
Flag Devon
Thanks Meter: 71
 
Donate to Me
More
This is great!! I am curious to see what happens when you boot from A. Does it keep your global rom intact?
6th February 2019, 01:19 AM |#3  
gilbert32's Avatar
OP Senior Member
Flag In the universe
Thanks Meter: 1,411
 
More
Quote:
Originally Posted by JengaMasterG

This is great!! I am curious to see what happens when you boot from A. Does it keep your global rom intact?

Probably not. It will most probably suffer from crashes until data is cleared.
6th February 2019, 06:48 AM |#4  
Junior Member
Thanks Meter: 0
 
More
Lighting setting doesn't work
23rd February 2019, 12:37 PM |#5  
Junior Member
Thanks Meter: 0
 
More
how to change from china rom to global rom?
i am using china rom. but i want global rom . . .
please help me . . .
i'm a beginner.
2nd March 2019, 11:53 PM |#6  
JengaMasterG's Avatar
Senior Member
Flag Devon
Thanks Meter: 71
 
Donate to Me
More
@gilbert32, do you have the global roms to upload? I'm getting pretty tired of using the CN rom version and want to try the global one.
3rd March 2019, 12:35 AM |#7  
gilbert32's Avatar
OP Senior Member
Flag In the universe
Thanks Meter: 1,411
 
More
Quote:
Originally Posted by JengaMasterG

@gilbert32, do you have the global roms to upload? I'm getting pretty tired of using the CN rom version and want to try the global one.

Sure. I have the backups i made before flashing the Chinese ROM (There's an update for them, so it's not the latest version)
Unfortunately you will have to wait for Monday until i can upload them.
The Following User Says Thank You to gilbert32 For This Useful Post: [ View ] Gift gilbert32 Ad-Free
3rd March 2019, 12:36 AM |#8  
JengaMasterG's Avatar
Senior Member
Flag Devon
Thanks Meter: 71
 
Donate to Me
More
Quote:
Originally Posted by gilbert32

Sure. I have the backups i made before flashing the Chinese ROM (There's an update for them, so it's not the latest version)
Unfortunately you will have to wait for Monday until i can upload them.

Thanks! I'm in no hurry on my side
5th March 2019, 06:25 PM |#9  
gilbert32's Avatar
OP Senior Member
Flag In the universe
Thanks Meter: 1,411
 
More
Quote:
Originally Posted by JengaMasterG

Thanks! I'm in no hurry on my side

Done.

https://forum.xda-developers.com/and...mware-t3907789
The Following User Says Thank You to gilbert32 For This Useful Post: [ View ] Gift gilbert32 Ad-Free
5th March 2019, 07:31 PM |#10  
JengaMasterG's Avatar
Senior Member
Flag Devon
Thanks Meter: 71
 
Donate to Me
More
I can confirm that this method works for chinese to global changes!
6th March 2019, 04:59 PM |#11  
Junior Member
Thanks Meter: 0
 
More
where can i find the chinese rom?
also it's work with skr-h0 8gb/128gb?
thank you
and sorry if i dont read it properly
Post Reply Subscribe to Thread

Tags
flash, rom, root, twrp, 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