[Xiaomi Mi Pad Guides, News, & Discussion] WiMiOP:
[IMG="Mi Pad 1 - Header"]http://attach.en.miui.com/forum/201611/10/124847wonuo7oyobyf8ozg.png[/IMG]

TUTORIAL - FROM UNTOUCHED STOCK MOCHA TO SHIELD ROMS | LINK TO FAQ

-------------------------------

Introduction​

Hi,

As I see even today new members in Mi Pad community looking for a way to have a decent Mi Pad on latest blobs on Nougat and leave KitKat MIUI, I think that a proper detailed tutorial is needed, as this transition needs a lot of steps.

-------------------------------

Before starting​

/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this thread
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

Therefore, if you have any problem at any step, read the FAQ and if your problem is not solved, you can ask in this topic or join Telegram group : https://t.me/MiPad1

I will not answer you if you haven't read the topic properly !

Finally, my tutorial is not optimised but is the safest way to avoid bootloops or other bricks. You can avoid steps if you consider some as not important, but I will not help you.

-------------------------------

Pre-requisites​

To make you MiPad shiny (or close to), you will need :

The "Mi Pad to Shield Starter Pack" (All-In-One ZIP or separate downloads). This pack includes :

mocha_repartition_1_2GB_RahulTheVirus.zip, allowing you to repartition the two partitions of original mi pad to only bigger one

mocha_repartition_stock_by_RahulTheVirus.zip, to restore original partitioning

BootBlobs-SHIELD-mocha.zip, to flash blobs from shield device and run ROM based on Shield Blobs,

BootBlobs-STOCK-mocha.zip, to restore your MiPad from Shield Blobs to Original Blobs.

twrp-3.2.1-0-mocha-shield.img, latest version (date of the upload) of TWRP for Shield Version

twrp-3.2.1-0-mocha-stock.img, latest version (date of the upload) of TWRP for Stock Version

15 seconds ADB installer

[RECOMMANDED] The "I Messed Up Pack" (All-In-One ZIP or separate downloads). in case of hard-bricking device. This pack includes :

Best Mi Flash Tool version for Mi Pad compatibility

Latest (date of the upload) Official China Dev MIUI ROM

-------------------------------

Summary​

STEP 1 : Boot TWRP via Fastboot : Begin here if you have stock Xiaomi recovery and never flashed TWRP yet on your MiPad.

STEP 2 : Repartitioning : Begin here if you never have flashed custom ROM on your MiPad.

STEP 3 : Flash Shield Blobs : Begin here if you already flashed custom ROMs on your MiPad.

STEP 4 : Flash Shield Based ROMs : Begin here if you already flashed Shield based ROMs ... Wait, why are you here ?

-------------------------------

STEP 1 : Boot TWRP via Fastboot​

Requires :

15 seconds ADB Installer installed.

twrp-3.2.1-0-mocha-stock.img from the Mi Pad to Shield Starter Pack in your ADB Folder (default : C:\ADB, will be created after the installation of 15 seconds ADB Installer).

Steps :

Shutdown your Mi Pad.

Power on your tab with a small press and just after releasing the button, hold Power and Volume Down buttons to enter into fastboot mode. You should see a little rabbit messing up with an android logo.

Plug your MiPad into your computer. You should see a notification saying Configuring "Fastboot".

Go in your ADB folder, click on the folder logo at the top left (just aside the path) and write cmd to start a cmd terminal directly in the right folder. You should see the good path in your terminal.

Enter the command fastboot devices to make appear one device which is your MiPad.

Enter the command fastboot flash recovery twrp-3.2.1-0-mocha-stock.img to install TWRP in your MiPad.

Shutdown manually your MiPad to reboot it directly into recovery, holding Power and Volume Up at start up.

-------------------------------

STEP 2 : Repartitioning​

Original thread

Requires :

TWRP booted on your MiPad.

mocha_repartition_1_2GB_RahulTheVirus.zip in your MiPad

Steps :

[RECOMMANDED] Make a backup of your current software setup (Backup --> Boot,Data, System).

Wipe your MiPad : Wipe --> Advanced Wipe --> Check Dalvik, Cache, System and Data --> Swipe to Wipe

When done, go to Install --> Select Storage, select the storage where you put your zip file then go to the folder

Click on mocha_repartition_1_2GB_RahulTheVirus.zip and Swipe to confirm flash

The script will reboot your MiPad twice. To make sure it reboots well to recovery, you can hold Power and Volume Up at the moment of the reboot.

After the double reboot, you can check if the script worked well going in Wipe --> Advanced Wipe, check System and then click on Repair or Change File System. If the parameter Size equals to 12XXMB, repartition worked well

-------------------------------

STEP 3 : Flash Shield Blobs​

Requires :

BootBlobs-SHIELD-mocha.zip in your MiPad

Steps :

Boot to latest TWRP if not done already. I also consider TWRP is configured to focus on the right folder (if not, check step 2.3)

Wipe your MiPad if not done already : Wipe --> Advanced Wipe --> Check Dalvik, Cache, System and Data --> Swipe to Wipe

Go to Install, select BootBlobs-SHIELD-mocha.zip then Swipe to confirm flash

After flash is complete, go back to original TWRP menu, select Reboot --> Recovery. Your MiPad will boot into Shield's 3.1.1.0 TWRP recovery. To make sure it reboots well to recovery, you can hold Power and Volume Up at the moment of the reboot.

-------------------------------

STEP 4 : Flash Shield Based ROMs​

Requires :

twrp-3.2.1-0-mocha-shield.img and any ROM based on Shield's LOS. Examples :

Nougat :

Lineage OS by Smoke Team

Resurrection Remix by twu2

AospExtended by twu2

dotOS by twu2

Android Ice Cold Project by jpg3927

...

Oreo :

Lineage OS by Smoke Team

Resurrection Remix by twu2

AospExtended by twu2

dotOS by twu2

...

Steps :

Boot to latest TWRP if not done already. I also consider TWRP is configured to focus on the right folder (if not, check step 2.3)

Go to Install, select Install Image, choose twrp-3.2.1-0-mocha-shield.img, select Recovery and then Swipe to confirm flash

After flash is complete, don't reboot, go back again to the install menu

Go to Install, select Install Zip, choose the ROM you want to install, Gapps, Magisk / SuperSU, anything you want, then Swipe to confirm flash

After flash is complete, you can boot to system and enjoy your new brand MiPad !

-------------------------------

Credits​

HighwayStar, for his huge work on Stock LOS

Artemka and Smoke Team, for porting LOS to Shield Blobs for MiPad

RahulTheVirus, helping MiPad users since the beginning and providing homemade scripts including new repartitioning tool

MiPad Community, for helping MiPad users :

LuckyMeAgain

Abhayy

More that I can't remember

twu2 and nazunamoe/jpg3927, building ROMs based on Shield's LOS

Snoop05, providing 15 seconds ADB install

zardMi3, providing original repartitioning tool

Others that I can't remember