[Xiaomi Mi Pad 5] tom.android:
!Warning custom rom may break your TEE (can't restore) and break persist partition.("Find Device storage corrupted. Your device is unsafe now")

Resource: https://xdaforums.com/t/tee-hacking.4662185/

View attachment 6123370

* With Patch for backward boot on <= Kernel 4.19.x

( All old devices which Kernel <= 4.14 are dead .....can't boot a new OS A14 from QPR2. Then Devs don't have dedicated enough to update...such as KernelSU announce to abandon Non-GKI kernel.)

### My purpose:

● Use as minimal base ROM without Google Services (& Power Save) only, the main OS is Linux OS at Second boot menu.

● Safety from EDL status ( hardware brick)

● Use only pure Stock Tools. ( actual Fastboot , FastbootD , Stock Recovery)

● LeOS-U boot only Base ROM "HyperOS" not "MIUI-14" take space around 8GB. & RisingOS use 19 GB.

●

HyperOS A13 Global Fastboot ROM

https://xiaomirom.com/en/download/xiaomi-pad-5-nabu-stable-OS1.0.1.0.TKXMIXM/#global-fastboot

================================

### if date/time not sync

adb shell settings put global ntp_server asia.pool.ntp.org

# test

$ adb shell settings get global ntp_server

> asia.pool.ntp.org

===============================

network & internet

-Disable Internet connectivity check

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

*** Face unlocked not work.

*** Auto Screen Brightness not work.

*** No offline-charge-power animation

About: LeOS GSI https://leos-gsi.de/

* Apatch (new root method ) now is on Fdroid already.

View attachment 6111134

View attachment 6110685

Supported xiaomi smart pen & Xiaomo keyboard with magisk/Apatch module.

View attachment 6110686

Download: LeOS-U-VNDK-arm64 A14(QPR2) version (Base Ponse's AOSP GSI on Proton Drive

*Update June 2024 QPR3

Proton Drive

Securely store, share, and access your important files and photos. Anytime, anywhere.

drive.proton.me

Spoiler content hidden.

# my Environment

base HyperOS A13 + Apatch 0.10.7

View attachment 6110689

View attachment 6110694

View attachment 6110695

when you 're satisfied with (installed any GSIs with DSU ) , now its time to real installation.

●Step by Step●

--> install GSIs-on nabu <--

By Dynamic Partition Tool

=====================
​

S1.Open "cmd admin" change to your platform tools directory

// I extracted "platform-tools.zip" into HyperOS ROM Dir.

cd "C:\nabu_global_OS1.0.1.0.TKXMIXM_13.0"

S2.//Test device online or not?

adb devices

S3.//Open normal "fastboot mode"

adb reboot bootloader

S4.

//will found red text on pad screen

//. FASTBOOT

fastboot devices

S5.

//copy vbmeta.img & vbmeta_system.img from Stock Fastboot ROM.

fastboot --disable-verification flash vbmeta vbmeta.img

fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img

S6. FastbootD good at process "Dynamic System Partition Size" for you.

fastboot reboot fastboot

S7. Check sure //will found blue text on pad screen

//. FASTBOOT

//test you 're on User space ( fastbootd mode)

//is userspace

fastboot getvar is-userspace

S8.//erase the current system. ( not delete physical partition.)

fastboot erase system

S9. Flash new GSI (system)

fastboot flash system LeOS-U-VNDK-arm64-bvN-0606.img

S10.Go to recovery,then perform " Factory reset/Wipe all data

fastboot reboot recovery

Process "FACTORY RESET" with Stock Recovery.

( make from instruction on screen)

View attachment 6123172

---------->

If you encounter issues like invalid partition size then do this:-

Exam: when Resizing 'system_a' FAIL

Spoiler content hidden.

> fastboot erase product

> fastboot resize-logical-partition product 0x0

// This is a Optional command. See SPOILER above error.

// test ^Find this if successfully fixed.

// No need to specific which product partition to erase or resize.

// Not safe to use "delete partition" such as " fastboot delete-logical-partition xxx"

// (bootloader) partition-size product:0x0

> fastboot getvar all

Exam:

Spoiler content hidden.

And again start flashing from the fastboot flash system command. Step S9 --->fastboot reboot recovery---->wipe all

------------>

S11.

Reboot system.

Note:

Enable developer options -> Developer options -> smallest width: 750 dp (horizontal) => make it look like a tablet !

- Phh Treble settings -> Misc Features -> Force FPS -> 1800x2880@60

( if the GSI did not specificed.)

============================

After flashing

Update "LeOS Webview"

View attachment 6111136

Trouble Shooting

Setting---Phh Treble Setting---->Xiaomi features Enable DT2W

Enable Developer options----> Enable USB Debugging

Enable USB = File Transfer

Install Root Manager (Apatch manager)

- If u want to modify system partition , do not changes real RW but use Virtual RW by OverlayFS module.

- Must flash "Simple bootloop saver" module , the first thing.

GitHub - Magisk-Modules-Alt-Repo/Simple_BootloopSaver: Protect your system from bootloop caused by Magisk modules by turning off all your modules and restart your system if bootloop is detected.

Protect your system from bootloop caused by Magisk modules by turning off all your modules and restart your system if bootloop is detected. - Magisk-Modules-Alt-Repo/Simple_BootloopSaver

github.com