yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
What works on Treble?

Any GSI

My AOSiP builds (since I build vendor images on that build)

Any builds using my source code. (yes their system.img will work)

Why doesn't MIUI work on Treble?

Because it wasn't shipped on a treble enabled device

Will custom kernels work on Treble?

Yes, as long as they are updated with source code on my github

LineageOS? No it won't work, explained in the post above.

How does Treble affect custom ROMs?

Peeps over XDA portal summed it up perfectly: Read here

How to fix Google Camera FC?

Flash PHH-TREBLE Vanilla build (latest)

Flash GApps zip

//Currently build with su and gapps causes gcam crash//

GApps won't flash? Not enough space in system

Flash this zip https://goo.gl/MSbGK5
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] macwindows:
Finally Mi5s has treble. Thanks for your hard work and appreciate your support.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] rezarivani:
good news, thank you for your hardwork
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] fim5646:
Try to flash IMG from TWRP and it's work:laugh:

Thank you for your greeeeeat work:good:
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] yodanutz01:
Amazing job man! Well done!
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Lord_Snake:
Never thought that Mi 5s would ever get treble support!! Thank you so much for your work!!!
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
I've fixed in call systems! Now calls are perfect. Uploading new zip :)
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] BajinganTengik:
Did you build AOSiP for Mi5s? Where can i get it? I look at your AFH folder and found nothing.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
I've been too lazy to upload and maintain it, but yea will upload it on afh anyways.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Dark Stranger:
How did you do it ?? And which image did you use ??
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
You can extract the zip and flash .img files through TWRP. But I wouldn't recommend.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] James Blode:
MZO will Luke's Lineage work on this or not?....
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Dark Stranger:
Then clarify some things.

I just need to run the script contained in the file to have the basic system or need to install anything else?

And then flash the system GSI image?

I am currently using the Lineage 15.1 rom, is there any problem in running this script on top of it ??
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] _m4yd4y_:
Nice.

Faster ROM than LOS. IMHO.

But I have a bug to ask the manufacturer. But it does not affect the further functioning. Also I need a double tap to sleep, because I have problems with the power button. And also the point of swap buttons is necessary for me.

Standart apps are very ugly eg music and SMS.

My phone have strange name.

In connection with these problems, I will return to LOS.

It would be good if smb told me where I can find some information how I can change img system as I want...

Thank you for work.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] BajinganTengik:
Maybe if you read OP's 3rd post you can find the answer.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
Please read the initial posts
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
You're correct. You can flash the script but not sure if it will boot.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
Flash images via fastboot flash xxx xxx.img
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
Guys the next month is going to be really busy for me so pardon me if there's no actual work done on device. I won't have time for that.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Zeskye:
Hello from France, first of all thanks for your work that awesome. I just instal it(treble + your rom) but how do i get the camera ?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
Install the camera app
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Zeskye:
Yes i know that but where is the download link ?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
Updated AOSIP. Switched to QTI Camera for higher compatibility
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] nadzi95:
It got little bit laggy using new updated rom
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] dapimp011:
Hello guys,

Just in case I want to revert back to Lineage OS (Not treble one), what is procedure?

Thanks in advance
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
Just flash the LineageOS ZIP clean.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Change.Yang:
:)Xiaomi released Redmi note 5 Pro with full treble MIUI China , I wonder if I can use the system.img from the offical China MIUI for Redmi note 5 Pro?:confused:
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
No you can't
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] michelfeldman:
Awesome work and awesome ROM MZO! Kudos!

3 notes that prevent it from being my daily driver:

1) videos play in slow motion

2) SElinux is permissive (prevents usage of work email) my

3) rom uses test-keys (prevents usage of my work email)

Other than that - it's perfect - no issues at all!!
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
You should try flashing magisk, it hides some of those issues. I'll work on them when I have time though.

Video I don't know what you mean?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] michelfeldman:
When playing video in the gallery or Google Photos it would play as if it was filmed in slow motion in a jagged manner.

I'm not using the ROM anymore so I cannot record the phenomenon and send it.

Wanted to thank you again for the awesome work!
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Vihru:
so vendor partition is changed after trying this treble project. how to get it back to stock? fastboot images dont have vendor.img?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Dark Stranger:
From miui use Xiaomi MiFlash or Xiaomi Mi Tools.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Vihru:
what happens if vendor partition is after treble project? now my lineageos 15.1 is taking so much battery..
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
The vendor we use is temporary and flashing stock kernel (boot.img) will get it back the way Xiaomi designed it
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Vihru:
so after flashing lineageos or fastboot images, it should be ok? thanks! i just wanna make it surely right.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] MZO:
LineageOS uses the same partition layout. Fastboot images of MIUI would get you back on stock
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] 18yusuf:
Hey guys!

Which version of phhusson's GSI works stable with G-apps? I also want to use the modded G-cam for HDR+.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] annas_muslih:
try updating your firmware, it works for me. i'm using 8.4.4
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] mesziman:
Hey .anyone tried with dirty unicorn gsi?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
Where can I find it ?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] mesziman:
Here.

Need to unzip first.

https://androidfilehost.com/?fid=674106145207487736

Full list of gsi imgs:

https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
This Version works good

https://drive.google.com/file/d/1GFHJgnP_PY3KpEnrvHnz1fy3IZGFLKSU/view
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] mesziman:
Thx I will try. No bugs?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] mesziman:
I flashed but asks for password when I boot it. How to bypass that?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
I don't have this problem, try to format Data.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] everesee:
What is difference on having LineageOS Treble instead of standalone Lineage OS ROM? Any performance improvement etc?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
It's worth it only if you want to use a rom that has long had no more update, such as CosmicOS or AICP.

With Treble you can use the latest version of this roms although they are not actively developed further for our device.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] mesziman:
Does not help, wtf. Stupid image.

Other DU (from ATechnoHazard) same problem ....
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
That's strange, was your storage encrypted before you tried this image? Did you tried to boot it with magisk?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] mesziman:
Not at all. I wiped everything and tried again . Same problem. It is now in F2FS maybe I should wipe and try EXT4?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
I'm using also F2FS..

How I installed the GSI:

Wiped everything

Flashed the Treble boot.img and vendor.img

Flashed via twrp the DU gsi

Booted into the rom

Reboot to recovery

Flashed OpenGapps nano + Magisk

Wiped data and booted into system
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] fim5646:
I think he means FORMAT DATA (A button, and you need to input yes to do it), not format DATA position

But if you want to do this, don't forget to do a backup for internal storage, it will wipe everything on DATA partition (include internal storage);)
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] mesziman:
I will try later again . thx

---------- Post added at 12:52 PM ---------- Previous post was at 12:29 PM ----------

Does not work. Wiped everything and ROM still asks for password. I gave up. Sad, I wanted DU, now I have to try somehow compile a simple version
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
And other gsi's working?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] nadzi95:
Have u watch tutorial on YouTube?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] mesziman:
Did not try them. Only DU from ATechnoHazard and Faiyaz.

They boot but ask for password.

Yes....

The problem might be something with encryption I will encrypt next time to ensure something happens.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] chamonline:
treble gsi is for devices is not official support from dev

if your devices is official support from dev just flash the normal recovery rom zip
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Talonette:
Does this version of TWRP can be use to flash Treble GSI ?

https://eu.dl.twrp.me/capricorn/
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] kecodoc:
I have the same question as you and wait for answer :confused:
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] nadzi95:
You need to understand what is treble first. Watch at youtube. The rom is the same but with treble support you can easily install rom without specific device. so in other word, it will easier to update the rom....
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] theOriginalSuperl2:
[MENTION=6304619]MZO[/MENTION]

Can you port treble easily to the Xiaomi Mi 5s Plus (natrium)?

How could I build it myself?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] nadzi95:
how to fix no touch in twrp after flash the treble?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
You have to flash twrp trough fastboot again
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] KnarrePete:
i flashed and got a working gsi (pixel experience) but the vendor is outdated how to solve/fix ? TY
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] theOriginalSuperl2:
[MENTION=6304619]MZO[/MENTION]

I'm getting sepolicy errors building for natrium:

neverallow check failed at /mnt/Data/AndroidBuilds/RR/out/target/product/natrium/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_sepolicy.cil:4118
(neverallow base_typeattr_41_27_0 servicemanager_27_0 (binder (call transfer)))
<root>
allow at /mnt/Data/AndroidBuilds/RR/out/target/product/natrium/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_sepolicy.cil:13424
(allow hal_sensors_default servicemanager_27_0 (binder (call transfer)))

neverallow check failed at /mnt/Data/AndroidBuilds/RR/out/target/product/natrium/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_sepolicy.cil:4116
(neverallow base_typeattr_41_27_0 service_manager_type (service_manager (find)))
<root>
allow at /mnt/Data/AndroidBuilds/RR/out/target/product/natrium/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_sepolicy.cil:13422
(allow hal_sensors_default audioserver_service_27_0 (service_manager (find)))

neverallow check failed at /mnt/Data/AndroidBuilds/RR/out/target/product/natrium/obj/ETC/plat_sepolicy.cil_intermediates/plat_sepolicy.cil:4558 from system/sepolicy/public/domain.te:520
(neverallow base_typeattr_41 servicemanager (binder (call transfer)))
<root>
allow at /mnt/Data/AndroidBuilds/RR/out/target/product/natrium/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_sepolicy.cil:13424
(allow hal_sensors_default servicemanager_27_0 (binder (call transfer)))

neverallow check failed at /mnt/Data/AndroidBuilds/RR/out/target/product/natrium/obj/ETC/plat_sepolicy.cil_intermediates/plat_sepolicy.cil:4548 from system/sepolicy/public/domain.te:520
(neverallow base_typeattr_41 service_manager_type (service_manager (find)))
<root>
allow at /mnt/Data/AndroidBuilds/RR/out/target/product/natrium/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_sepolicy.cil:13422
(allow hal_sensors_default audioserver_service_27_0 (service_manager (find)))

Failed to generate binary
Failed to build policydb
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] pazavaza:
is this discontinued? and btw, did someone try android p gsi on this?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] fim5646:
Android P works on lastest AOSiP vendor and boot.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] pazavaza:
But I afaik it's all laggy and overheating - not usable as a daily driver
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] fim5646:
I just check if everything work(and forget fingerpoint:silly:) and yes,it's laggy, and roll back to RR 6.1.0
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Liangbp:
hello, any update such as kernel:o
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Dm1tr1y:
Is there any way to fix "Internal problem with your device"?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] Gudude:
Device Features

Hello, my device is currently installed with PPP5, but the Device Features and Double tap to wake in the settings do not work. Are you still ready to update or fix?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] rebel377:
just ignore it
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] rhp_engcoy:
Is this still safe to use? Im currently using latest build of dotOS.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] fenix99355:
Where do you get It?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] sullivan781:
Thanks [MENTION=6304619]MZO[/MENTION], just installed Android Pie and everything seems fine.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] macwindows:
Did you installed pre gsi (by erfan)? Any bug like FP, camera?

Will you please give details of Pie gsi that you installed?

Thanks
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] sullivan781:
He released the final build today. Installed everything, it lagged but now is smooth. Fingerprint works properly, camera too. Haven't faced any bugs yet (just FTP storage, but it works through Developer Settings). I'll give more feedback later, but you can ask me anything.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
Unpack and flash this gsi:

https://androidfilehost.com/?fid=5862345805528067641

Flash this zips in the right order(from 1 to 3):

https://androidfilehost.com/?fid=5862345805528067635

https://androidfilehost.com/?fid=5862345805528067631

https://androidfilehost.com/?fid=5862345805528067630

And a navbar disabler you can find here:

https://xdaforums.com/project-trebl...oid-p-developer-preview-t3816659/post77264103

Edit:

You have to change the display size to small to fix some ui bugs

To get a working mtp connection you need to unlock the developer settings and change the usb mode to data transfer

To get trough the setup you have to install this apks

https://drive.google.com/file/d/1mmQxgSfNibPpAs-OTQVAnJVd7ief7o5Z/view?usp=sharing

And you have to give manuelley all permissions to data transfer tool when you want to restore a backup

Lagfix:

https://xdaforums.com/project-trebl...oid-p-developer-preview-t3816659/post77263328

When you want to root your device the latest magisk beta works fine
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] macwindows:
You mean erfan build, correct? Installed all three post files, too?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] sullivan781:
Yep, and lagfix.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
Edited my last post again, know it's pretty much a complete guide to get it working :victory:
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] sullivan781:
Is "Settings > System > Device Features" working for you? Also, do you know how to swap hw keys?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
No it doesn't work but it also doesn't work in new 8.1 gsi's

Try one of this app:

https://play.google.com/store/apps/details?id=com.irishin.buttonsremapper
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] macwindows:
Which treble zip file do you use? I used last aosip build by mzo, but my fp is not working.

Also even after installing gsm fix apps, still my apps from play store not updating. Also pixel setup is not completing.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
Try to reboot your device

This one:

https://androidfilehost.com/?fid=746010030569960996

You can flash the images from the zip also via twrp.

---------- Post added at 03:52 AM ---------- Previous post was at 03:22 AM ----------

Not helpful but funny for Android P Users

https://xdaforums.com/mi-a1/how-to/guide-install-android-p-dp3-mi-a1-t3817937/post77265647

---------- Post added at 04:49 AM ---------- Previous post was at 03:52 AM ----------

This kernel version works perfectly with Android P and you can enable double tap to wake with kernel adiutor

https://xdaforums.com/mi-5s/development/kernel-bg345-kernel-capricorn-t3756847/post76764853
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
Recommend Kernel settings for Android 9 to fix performance:
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] rhp_engcoy:
Sir, is this rom still safe to install? Im currently using dotos and want to try project treble.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] maghfurcak:
can someone tell me step by step how to install android p treble with twrp.? i want to try android P.

is it ok for daily use.?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] sepehrppp:
#245
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
https://xdaforums.com/mi-5s/development/oreo-project-treble-capricorn-t3756463/post77264934

First follow the guid from the op and than follow my steps from the link.

Yes it is when you follow my steps from my postes here
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] sepehrppp:
guys i just flash kernel BG and it cannot connect to pc..any fix?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] maghfurcak:
thank you but i still confusing with this part

"Run the script based on your system (sh for linux, bat for windows)"

so i need to flash it with PC via fastboot mode then go to twrp and flash the step that u mention?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
[MENTION=7832710]maghfurcak[/MENTION] and everybody else :laugh:

Guide to Install Android 9

1. Download this ZIP and copy the .img files to your phone.

2. In twrp wipe system, data ,cache ,dalvik and vendor.

3. Flash the boot.img to the boot partition and the vendor.img to the vendor partition.

4. Download this ZIP and copy the .img file to your phone and flash it to system

5. Download and copy the zips to your phone and flash it in the right order (from 1 to 3)

ZIP 1

ZIP 2

ZIP 3

6. Download and copy the zips to your phone and flash it

Navbar disabler

Lag fix

7. Flash this Kernel

8. Flash Magisk 16.7

9. Boot ROM

10. Install this APKs and give manually "Data transfer tool all permission

11. Reboot device and finish after that the setup

12. To fix little UI bugs change display size to small in the settings

13. Recommend Kernel Settings Look here

14. Magisk Module for some small fixes

Bugs:

Flashing Kernel causes the lose of the mtp function but is still recommend because it fixes pretty much bugs.

Thanks to:

[MENTION=6304619]MZO[/MENTION]

[MENTION=3016351]kdra[/MENTION]g0n

[MENTION=6298645]erfanoabdi[/MENTION]

[MENTION=5308099]Pho3nX[/MENTION]

[MENTION=5409794]brigio345[/MENTION]
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] sepehrppp:
how to fix FP...after flash kernel i cannot set FP :((
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
When it worked before you can simply reflash the boot.img
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] maghfurcak:
This is what im looking for complete guide with twrp :good:

thank you very much for the guide i will try it.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] sepehrppp:
i fix the FP but after flash kernel device cannot mount stroage to pc... :((

also change transfer file in developer option
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
That's strange because for me it works fine.

Have you installed Magisk? Maybe it helps to install it when not. In case of emergency, you can always connect to your pc while in twrp.
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] sepehrppp:
did u flash the kernel bg?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
Yes but it works with and without Kernel for me
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] sepehrppp:
which kernel did u flash?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
Step 7

https://xdaforums.com/mi-5s/development/oreo-project-treble-capricorn-t3756463/post77266733
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
A little Magisk module that fixes some bugs in user apps caused by the wrong device name and it increase the performance of the CPU
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] sepehrppp:
i flash this kernel too...but my pc cannot detect device...

but when I a on stuck kernel it fixed
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] fim5646:
This is a kernel bug, bg345 kernel can't link to computer on ROM(adb/mtp),but work fine in recovery
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] sepehrppp:
pepsy kernel had this bug too :(
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] rizahakam:
what gapps you use? or for Pie we can't using Play Service currently?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
And camera doesn't work

---------- Post added at 10:32 AM ---------- Previous post was at 10:31 AM ----------

It's ported from the Pixel XL the gapps are included
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] maghfurcak:
is there a way to fix home button wake up and swap button.?
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] rizahakam:
oh ok I see. so when I'm following your step, the gapps already installed right?

for the kernel, in psy thread he said that he already updated the github but don't have time to build it. can you build it? I want to help but didn't understand anything for building from github
[Xiaomi Mi 5s ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
Absolutely right

I can give it a try later but the last time I did something like that is a long time ago

---------- Post added at 10:53 AM ---------- Previous post was at 10:38 AM ----------

I opened a thread for Android Pie

https://xdaforums.com/mi-5s/how-to/treble-install-android-pie-t3826089