MIUI 10 - Xiaomi Mi A1 Questions & Answers

Hi Devs,
Anyone trying to port miui 10 to mia1. Just saw a video OP5 and OP5T have already ported it.

Maybe but i never spoted on xda

Hmmm.... I think it Will fail like miui 9 on this phone... There Will be again problems with device activation and verify as Xiaomi device, that will lead into deleting MIUI services and framework's, and that will make wifi, system UI and MIUI account not working

I can do it but im not interested

Tisenoiazei100 said:
I can do it but im not interested
Click to expand...
Click to collapse
you can do it???? i don´t belive it.. but you can try to port.. if you do.. fully working.. you are de first dev i can trust.. miui it very difficult to port to mia1

planeador81 said:
you can do it???? i don´t belive it.. but you can try to port.. if you do.. fully working.. you are de first dev i can trust.. miui it very difficult to port to mia1
Click to expand...
Click to collapse
Very difficult to port!? Grab a MI5X ROM and slam MI A1's zImage and dtbs. Voila MIUI
You have to disable forceencrypt and dm-verity to avoid data partition getting encrypted though...
If i ever wanna do the port, i only need MI A1 stock nougat boot.img and modules(located in system/lib/ or lib64).
I've ported RN5+ and MI5X firmwares for API 25 support on my RN4 but im not working on them anymore. Redmi S2 port was a horrible disaster and also made a thread for it before even trying raging alot of ppl.

Tisenoiazei100 said:
Very difficult to port!? Grab a MI5X ROM and slam MI A1's zImage and dtbs. Voila MIUI
You have to disable forceencrypt and dm-verity to avoid data partition getting encrypted though...
If i ever wanna do the port, i only need MI A1 stock nougat boot.img and modules(located in system/lib/ or lib64).
I've ported RN5+ and MI5X firmwares for API 25 support on my RN4 but im not working on them anymore. Redmi S2 port was a horrible disaster and also made a thread for it before even trying raging alot of ppl.
Click to expand...
Click to collapse
Ur thoughts ?? @CosmicDan

Tisenoiazei100 said:
Very difficult to port!? Grab a MI5X ROM and slam MI A1's zImage and dtbs. Voila MIUI
You have to disable forceencrypt and dm-verity to avoid data partition getting encrypted though...
If i ever wanna do the port, i only need MI A1 stock nougat boot.img and modules(located in system/lib/ or lib64).
I've ported RN5+ and MI5X firmwares for API 25 support on my RN4 but im not working on them anymore. Redmi S2 port was a horrible disaster and also made a thread for it before even trying raging alot of ppl.
Click to expand...
Click to collapse
You don't need to modify system.img? Considering a/b device and what are your thoughts on porting oreo based miui 10?

Yash98 said:
You don't need to modify system.img? Considering a/b device and what are your thoughts on porting oreo based miui 10?
Click to expand...
Click to collapse
For a direct port!? Not really. If we use MI5X base, things will be absolutely perfect for us. Modules for Wi-Fi etc, can be installed and symlinked after base.
Yes, we will need to unpack system if we wanna change MI 5X to MI A1 brand and also fix possible bugs later.
For Oreo, Redmi Note 5+ might get it but thats unsure. Theres a leaked firmware which ive booted on Redmi Note 4 but waiting for a beta at least its better.
A/B Treble wont help that much. Redmi S2 has treble 32-bit MIUI 10 which i wasnt able to boot anyways because of 64-bit components, kernel and proprietary.
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk

sauru.660 said:
Ur thoughts ?? @CosmicDan
Click to expand...
Click to collapse
Was a bit more than that for me because our device is A/B, system needs to be custom modified for MIUI init services. Plus there was the whole Xiaomi authorisation to deal with still.
But I took the additive approach, not subtractive. Subtractive is too difficult to maintain IMO.
But noughat is meh. The proper port for Treble based on GSI lets us use Oreo and latest MIUI for e.g. 6X base.

CosmicDan said:
Was a bit more than that for me because our device is A/B, system needs to be custom modified for MIUI init services. Plus there was the whole Xiaomi authorisation to deal with still.
But I took the additive approach, not subtractive. Subtractive is too difficult to maintain IMO.
But noughat is meh. The proper port for Treble based on GSI lets us use Oreo and latest MIUI for e.g. 6X base.
Click to expand...
Click to collapse
Only Redmi S2 has MIUI 10 Oreo with GSI(As far as i checked) but its 32-bit. Maybe Xiaomi has started to do this on other devices too but im not sure or have an interest to check.
Modifying for MIUI init services? Will 5X Xiaomi.eu base do??
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk

Tisenoiazei100 said:
Only Redmi S2 has MIUI 10 Oreo with GSI(As far as i checked) but its 32-bit. Maybe Xiaomi has started to do this on other devices too but im not sure or have an interest to check.
Modifying for MIUI init services? Will 5X Xiaomi.eu base do??
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
Click to expand...
Click to collapse
GSI != DSSI. Don't even know if any MIUI device is Treble, that doesn't matter. Oreo devices are required to have binderized HAL so they can all be ported to Treble (or GSI base in my case).
Not modify the init services; just adding init service entries (I.e. from init.miui.rc). It's trivial, just means that initramfs needs to be modified (or etc/init/ entries must be added, which I am hoping is possible so I can get A-only compatibility without requiring boot.img modification). This also needs changes to SEPolicy, so I'm just requiring my port to have SELinux permissive for now.

CosmicDan said:
GSI != DSSI. Don't even know if any MIUI device is Treble, that doesn't matter. Oreo devices are required to have binderized HAL so they can all be ported to Treble (or GSI base in my case).
Not modify the init services; just adding init service entries (I.e. from init.miui.rc). It's trivial, just means that initramfs needs to be modified (or etc/init/ entries must be added, which I am hoping is possible so I can get A-only compatibility without requiring boot.img modification). This also needs changes to SEPolicy, so I'm just requiring my port to have SELinux permissive for now.
Click to expand...
Click to collapse
Ok, now i understand. I hope Redmi 5+ gets MIUI 10 with Oreo like the Mi Note 2. Then i think porting on my device(mido) and also yours(tissot) can be much easier. Fingerprint is the most difficult thing to fix though. Ive done many attempts to get the HAL to initialise but nah.
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk

Tisenoiazei100 said:
Ok, now i understand. I hope Redmi 5+ gets MIUI 10 with Oreo like the Mi Note 2. Then i think porting on my device(mido) and also yours(tissot) can be much easier. Fingerprint is the most difficult thing to fix though. Ive done many attempts to get the HAL to initialise but nah.
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
Click to expand...
Click to collapse
Well we already have Treble and GSI for Tissot, it's 100% compatible. Because I'm porting MIUI with an additive approach, it takes more work and requires custom modification at smali level to adapt to the GSI base, but it will ensure 100% hardware compatibility (as long as the vendor implementation is correct - some official Treble devices are not "fully Treble", for example they have Camera related stuff still on their /system). That's basically the difference between a GSI and DSSI, DSSI still has some hardware stuff on /system when it should be on /vendor.

CosmicDan said:
Well we already have Treble and GSI for Tissot, it's 100% compatible. Because I'm porting MIUI with an additive approach, it takes more work and requires custom modification at smali level to adapt to the GSI base, but it will ensure 100% hardware compatibility (as long as the vendor implementation is correct - some official Treble devices are not "fully Treble", for example they have Camera related stuff still on their /system). That's basically the difference between a GSI and DSSI, DSSI still has some hardware stuff on /system when it should be on /vendor.
Click to expand...
Click to collapse
You are trying to make a MIUI 10 GSI base? Thats hard to near-impossible i think. Does it even generate last_kmsg?
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk

Tisenoiazei100 said:
You are trying to make a MIUI 10 GSI base? Thats hard to near-impossible i think. Does it even generate last_kmsg?
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
Click to expand...
Click to collapse
Yes lol I've already got it booting. FC's all over the place though. I know why though, it's just an iterative process.
Not impossible; as I said - all Oreo ROM's are already binderized HAL. The hard part is done. Well, one of them. Providing full hardware compatibility with all Treble devices might not be possible, I guess.
I'm taking my time with it though because I am also working on a kitchen, I refuse to release a ROM port without also releasing and a complete build system to automate the process.

CosmicDan said:
Yes lol I've already got it booting. FC's all over the place though. I know why though, it's just an iterative process.
I'm taking my time with it though because I am also working on a kitchen, I refuse to release a ROM port without also releasing and a complete build system to automate the process.
Click to expand...
Click to collapse
.
Any thoughts on this ? - https://forum.xda-developers.com/mi-a1/development/rom-miui-10-mi-a1-8-7-12-epic-mod-t3842031

Related

Turn A1 into Mi 5X or not?

I am about to receive my Mi A1. In general, I do prefer MIUI over plain stock Android (...yes, I know that is not that common ). So naturally, I am thinking about to directly flash the A1 into a Mi 5X.
What are your opinions? Anybody here who has done it? Bugs afterwards? OTA?
Not going to work... You could brick the device..
I hear somethink about differences in partitions so better just don't do that because you can REALLY brick your phone.
Mi A1 has A/B partition which allows seamless updates whereas Mi 5X has the normal single partition. I suggest you to wait for about a month. Xiaomi will release the kernel sources (hopefully) this month and developers will make a MIUI ROM. If you tried to flash the Mi 5X ROM, you will end up bricking your phone.
Thread about "A1 into a Mi 5X" No 958484383828284.
What happened to XDA and moderating team?
Sent from my Mi A1 using Tapatalk
If you wanted MIUI, you should've gotten yourself a Mi 5X. What's this nonsense thing, flash A1 into Mi 5x? It won't work. Be prepared for trouble if you try to do so.
Wait for kernel sources to be available, development to swing in. There will be a number of custom ROMs including MIUI.
KloNom said:
I am about to receive my Mi A1. In general, I do prefer MIUI over plain stock Android (...yes, I know that is not that common ). So naturally, I am thinking about to directly flash the A1 into a Mi 5X.
What are your opinions? Anybody here who has done it? Bugs afterwards? OTA?
Click to expand...
Click to collapse
Please, before asking anything read and search, there are many many many threads about A1 vs 5X. If you want Miui just because of Miui and no other reason than I can't get it why you bought A1, 5X is in general cheaper then A1.
Can't wait for Xiaomi to release kernel sources and someone ports Miui so this can stop.

Any idea of making Mi Max 2 treble supported?

This thread is is to discuss whether Mi Max 2 is supported for treble either officially or unofficially. ?
Right now officially No and don't have any hopes. Un officially there are hopes as we have kany good devs
should be possible, since the first non-treble device that was made treble compatible was actually a xiaomi phone i think its a matter of having all correct drivers at hand and repurposing the vendor partition.
Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
Pixel experience latest build is treble supported.
V_v3k on telegram group confirmed they have finally managed to make treble support for our device.
Also just a minor vendor mismatch is all need to be corrected then we will be just one step away from android p.
And yes its confirmed. We will get android p in near future thanks to the efforts of mi max 2 developers especially V_v3k, hardrock and jayb who worked together to make this a success.
They are currently working to make other ROMs treble supported.
Can we install android p gsi on pixel experience 22 build?
aveejnasv said:
Can we install android p gsi on pixel experience 22 build?
Click to expand...
Click to collapse
No not yet. You can try but its highly recommended to wait for a while.
As the developer himself has not yet tried.
Also the process of installing a gsi is slightly different from normal flashing.

treble rom

Is there any treble rom for redmi 2 prime??
Redmi 2 does not support Project Treble,so it's impossible to have any ROM based on Project Treble to be developed to fit Redmi 2
Mr said:
Redmi 2 does not support Project Treble,so it's impossible to have any ROM based on Project Treble to be developed to fit Redmi 2
Click to expand...
Click to collapse
There is 32bit (ARM) Treble for Redmi 2 but sensors RIP
karthik km said:
There is 32bit (ARM) Treble for Redmi 2 but sensors RIP
Click to expand...
Click to collapse
As far as I know , Project Treble rely on vendor interface adjustment which was set by OEM. Unless you change the partition table, it's hard to achieve this.
However , according to your reply, it seems that there are some new stuff on Redmi 2, could you tell me the details
PS. Sorry for my poor English.
Mr said:
As far as I know , Project Treble rely on vendor interface adjustment which was set by OEM. Unless you change the partition table, it's hard to achieve this.
However , according to your reply, it seems that there are some new stuff on Redmi 2, could you tell me the details
PS. Sorry for my poor English.
Click to expand...
Click to collapse
For the purpose of project treble on Redmi 2
We have used OEM as cache and cache as vendor
So we booted successfully

[REFERENCE] Converting Oreo DSSI into sGSI

Here's the guide to convert an Oreo trebled DSSI(OEM ROM) into an sGSI.
Before starting, I have to claim these points below:
1.This thread aims to converting ,not generalizing.This means they are the basic steps of porting a DSSI, I can lead you to boot, but bug fixes are up to you.
2.Some of the devices with official / unofficial treble support isn't compatible with sGSI(at least my definition) e.g. mido
3.Only supports Oreo porting.VNDK version of DSSI and your vendor needs to be the same.If you want to support a different vndk,you should investigate the way to add another vndk support by yourself.
First - unpack and deploy the original rom to your device.
This means that you don't need to use a kitchen,as it will cause problems.
Unpack the rom and get raw system.img.
-use brotli tool to covert system.new.dat.br to .dat
-use sdat2img to convert dat to raw img
Mount it to your device's /system
-copy it to your sdcard.
-goto twrp-advanced-terminal
Enter:
losetup /dev/block/loop0 /sdcard/system.img
mount /dev/block/loop0 /system
Debloat it by using filemanager
-Goto twrp file manager,
-goto /system
-delete only apps that you are sure it's safe to remove(e.g. Downloadable GApps)
Create a twrp backup of the target
-Just use twrp to backup /system using normal method.
Write /system to your real partition.
-twrp mount menu - uncheck /system
-restore your backup created.
Then you've flashed the rom's system to your device.
Second - SELinux Fix
This is the most important step to avoid fastboot kick.
-Download an Oreo GSI and unpack using whatever methods you like.
-extract /system/etc/selinux/mapping from the GSI.
-adb push <your extracted folder>/system/etc/selinux/mapping/. /system/etc/selinux/mapping
To test it:
Flash permissiver.zip from semiGSI thread.
Reboot.
If your device isn't kicked into fastboot mode, then it's possible to port this DSSI.
Third - ramdisk fixes.
Get boot patcher from any sGSI thread.
Unpack target rom's boot.img
Put necessary files into boot patcher zip.
Mainly:
/init.rc
/init.environ*
/init.zygote*
/init.($oem name / rom name).*
Exclude:
/init
/init.usb*
is possible take my rom of huawei mate 9 , emui 8.0 and create a GSI for install in others phones ????
Fourth - Vendor patch fixes.
Download vendor patch from my MIUI sGSI thread.
Extract your DSSI's vendor.img using the same way as system.img.
In the patcher from my thread you will see some files under /vendor.They are the files necessary for ports of Oreo Qualcomm DSSIs.
-get the "necessary" files from vendor.img and put them to the patcher.
-If there are vendor implementations the one I described in my P Preview porting thread , add them too.
There will be some files that is rom-specific and you need to find out later by logs.
Fifth - build.prop editing.
-copy and add contents from target rom's /vendor/*.prop to /system/build.prop
(Mainly PMS configs)
Sixth - Test
Modify /system/etc/prop.default to disable adb secure.
Wipe /data
Reboot and adb logcat
is possible take my rom of huawei mate 9 , emui 8.0 and create a GSI for install in others phones ????
aureliomilitao said:
is possible take my rom of huawei mate 9 , emui 8.0 and create a GSI for install in others phones ????
Click to expand...
Click to collapse
Other EMUI8.0 phones.
fxsheep said:
Other EMUI8.0 phones.
Click to expand...
Click to collapse
so, no possible take the gsi and create a rom for install in others, mido, example...custom rom ?
aureliomilitao said:
so, no possible take the gsi and create a rom for install in others, mido, example...custom rom ?
Click to expand...
Click to collapse
Yes it's possible but without RIL GPS and Sensors .maybe HWC too.
BTW mido doesn't support sGSI.
Can we use this guide to port Oyxgen os (P) to Asus Zenfone max pro m1?
Would it be possible to port z17 rom to z17s? The z17 has 8.1. The z17s does not but it can boot GSI.
devast8ndiscodave said:
Would it be possible to port z17 rom to z17s? The z17 has 8.1. The z17s does not but it can boot GSI.
Click to expand...
Click to collapse
yes
Pretty much thank you for the guide. Ill try to convert the Redmi 6 Pro ROM into sGSI and try to get it stable for mido(Mido can boot sGSI btw like your MIUI10 sGSI).
Just a question @fxsheep . How can i get away with force encryption? Ive tried many methods on my old MIUI Oreo port but all of them failed.
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
Tisenoiazei100 said:
Pretty much thank you for the guide. Ill try to convert the Redmi 6 Pro ROM into sGSI and try to get it stable for mido(Mido can boot sGSI btw like your MIUI10 sGSI).
Just a question @fxsheep . How can i get away with force encryption? Ive tried many methods on my old MIUI Oreo port but all of them failed.
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk
Click to expand...
Click to collapse
forcecrypt -> encryptable in fstab.qcom
so would u recommend going with android P Releases or Oreo ?
cause i wanted to port funtouch os 4.0 8.1 from vivo x9 which has the same chip as my phone (rn4x) and i saw you ported the P Version which did not boot
omarilzz said:
so would u recommend going with android P Releases or Oreo ?
cause i wanted to port funtouch os 4.0 8.1 from vivo x9 which has the same chip as my phone (rn4x) and i saw you ported the P Version which did not boot
Click to expand...
Click to collapse
Then Oreo.But imo it has nothing to do with Android version.MIUI also have many bugs on it(which is from the same chipset too).That's because of the poor vendor support of your device.
@fxsheep Just a tip:
Include the need to add libcameraservice.so from stock lib & lib64 to port as phones like mido bootloop without it.
Στάλθηκε από το Redmi Note 4 μου χρησιμοποιώντας Tapatalk

old android version roms for 9t

can I get old android version rom (nougat or orio ) for mi 9t...
I need to use cube acr to record whats app and other social media (VOIP) calls...
regards
Mi 9T comes with Android 9, that means older Android versions don't exist for this device.
Maybe, but not sure if it would work, an old GSI ROM.
Schnedi said:
Mi 9T comes with Android 9, that means older Android versions don't exist for this device.
Maybe, but not sure if it would work, an old GSI ROM.
Click to expand...
Click to collapse
Waw, I did not now about GSI before..
I will try that
thanks

Categories

Resources