[Xiaomi Mi A1 Guides, News, & Discussion] GuestK00183:
Guys as i said i will try to port MIUI to MI A1 but we have some problems that i don't know how to solve it so i need help from other people/devs./testers..

We have same Hardware like 5x only problem it's Partitions that we have some other partitions that 5X doesn't have like (system_a,system_b,boot_a,boot_b,modem_a,modem_b,and others..)

You can see the Difference Below

5X partitions

modem -> /dev/block/mmcblk0p1
fsc -> /dev/block/mmcblk0p2
ssd -> /dev/block/mmcblk0p3
sbl1 -> /dev/block/mmcblk0p4
sbl1bak -> /dev/block/mmcblk0p5
rpm -> /dev/block/mmcblk0p6
rpmbak -> /dev/block/mmcblk0p7
tz -> /dev/block/mmcblk0p8
tzbak -> /dev/block/mmcblk0p9
devcfg -> /dev/block/mmcblk0p10
devcfgbak -> /dev/block/mmcblk0p11
dsp -> /dev/block/mmcblk0p12
modemst1 -> /dev/block/mmcblk0p13
modemst2 -> /dev/block/mmcblk0p14
DDR -> /dev/block/mmcblk0p15
fsg -> /dev/block/mmcblk0p16
sec -> /dev/block/mmcblk0p17
splash -> /dev/block/mmcblk0p18
aboot -> /dev/block/mmcblk0p19
abootbak -> /dev/block/mmcblk0p20
boot -> /dev/block/mmcblk0p21
recovery -> /dev/block/mmcblk0p22
devinfo -> /dev/block/mmcblk0p23
system -> /dev/block/mmcblk0p24
cache -> /dev/block/mmcblk0p25
persist -> /dev/block/mmcblk0p26
misc -> /dev/block/mmcblk0p27
keystore -> /dev/block/mmcblk0p28
config -> /dev/block/mmcblk0p29
oem -> /dev/block/mmcblk0p30
limits -> /dev/block/mmcblk0p31
mota -> /dev/block/mmcblk0p32
dip -> /dev/block/mmcblk0p33
mdtp -> /dev/block/mmcblk0p34
syscfg -> /dev/block/mmcblk0p35
mcfg -> /dev/block/mmcblk0p36
lksecapp -> /dev/block/mmcblk0p37
lksecappbak -> /dev/block/mmcblk0p38
cmnlib -> /dev/block/mmcblk0p39
cmnlibbak -> /dev/block/mmcblk0p40
cmnlib64 -> /dev/block/mmcblk0p41
cmnlib64bak -> /dev/block/mmcblk0p42
keymaster -> /dev/block/mmcblk0p43
keymasterbak -> /dev/block/mmcblk0p44
apdp -> /dev/block/mmcblk0p45
msadp -> /dev/block/mmcblk0p46
dpo -> /dev/block/mmcblk0p47
logdump -> /dev/block/mmcblk0p48
cust -> /dev/block/mmcblk0p49
userdata -> /dev/block/mmcblk0p50

MI A1 Partitions

modem_a -> /dev/block/mmcblk0p1
modem_a -> /dev/block/mmcblk0p2
fsc -> /dev/block/mmcblk0p3
ssd -> /dev/block/mmcblk0p4
sbl1 -> /dev/block/mmcblk0p5
sbl1bak -> /dev/block/mmcblk0p6
rpm -> /dev/block/mmcblk0p7
rpmbak -> /dev/block/mmcblk0p8
tz -> /dev/block/mmcblk0p9
tzbak -> /dev/block/mmcblk0p10
devcfg -> /dev/block/mmcblk0p11
devcfgbak -> /dev/block/mmcblk0p12
dsp -> /dev/block/mmcblk0p13
modemst1 -> /dev/block/mmcblk0p14
modemst2 -> /dev/block/mmcblk0p15
DDR -> /dev/block/mmcblk0p16
fsg -> /dev/block/mmcblk0p17
sec -> /dev/block/mmcblk0p18
splash -> /dev/block/mmcblk0p19
aboot -> /dev/block/mmcblk0p20
abootbak -> /dev/block/mmcblk0p21
boot_a -> /dev/block/mmcblk0p22
boot_b -> /dev/block/mmcblk0p23
devinfo -> /dev/block/mmcblk0p24
system_a -> /dev/block/mmcblk0p25
system_b -> /dev/block/mmcblk0p26
persist -> /dev/block/mmcblk0p27
misc -> /dev/block/mmcblk0p28
keystore -> /dev/block/mmcblk0p29
config -> /dev/block/mmcblk0p30
limits -> /dev/block/mmcblk0p31
mota -> /dev/block/mmcblk0p32
dip -> /dev/block/mmcblk0p33
mdtp -> /dev/block/mmcblk0p34
syscfg -> /dev/block/mmcblk0p35
mcfg -> /dev/block/mmcblk0p36
lksecapp -> /dev/block/mmcblk0p37
lksecappbak -> /dev/block/mmcblk0p38
cmnlib -> /dev/block/mmcblk0p39
cmnlibbak -> /dev/block/mmcblk0p40
cmnlib64 -> /dev/block/mmcblk0p41
cmnlib64bak -> /dev/block/mmcblk0p42
keymaster -> /dev/block/mmcblk0p43
keymasterbak -> /dev/block/mmcblk0p44
apdp -> /dev/block/mmcblk0p45
msadp -> /dev/block/mmcblk0p46
dpo -> /dev/block/mmcblk0p47
logdump -> /dev/block/mmcblk0p48
userdata -> /dev/block/mmcblk0p49

My First Idea:

We can push parted to our device and from recovery we can remove the partitions and create every partition from 0 like 5X then we will need someone from 5x to backup their partitions and flash it to our device (first backup yours ) but there's high risk for Bricking our device but 85% after that MIUI will work :D

My Second Idea:

To Download MI 5X firmware and flash using MI Flash but as i see in the folder images there's file partition that shows all partitions (in that file there all partitions on list but some of the partitions are missing fsc,ssd and other so i think if we add them maybe we can boot it but i'm not sure) also i don't know does MI Flash is Repartitioning Our Device or just Overwrite the Partitions also there's gpt_backup0.bin file that backup gpt partitions so maybe we will have issues with that also we will need to modify some other files..but this is highly in danger we can brick our device totally

My Third Idea:

To someone create tool or find tool that can automatically repartition our Emmc with 5X partitions in Download Mode or Fastboot but i'm not sure about that

Also i will need some Testers

That's it

You can Join to our Telegram Group for Next Discussions and Testers:

https://t.me/joinchat/FcfGpRGIPfQi5m4STTy0mw