• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[TREBLE][VENDOR+ROM][GSI][9.0][UNOFFICIAL] AospExtended ROM V6.1 for POCO F1

CodeElixir

Senior Member
Jul 11, 2016
99
711
0
Hyderabad

Warnings:-
Code:
/*
 * I am not responsible for bricked devices, dead SD cards, dead cats,
 * thermonuclear war, or you getting fired because the alarm app failed.  
 * YOU are choosing to make these modifications, and no point
 * in pointing the finger at me for messing up your device
 */


AOSP Extended is an AOSP based rom which provides stock UI/UX with various customisations features along with the Substratum theme engine. The project has been made by cherry-picking various commits from various other projects. Being based on AOSP it provides a smooth and lag-free experience out of the box. We will constantly try to add more features and make it even better in future updates. A ROM by a user, for a user. #StayAOSP #ExtendYourDevice #BeExtended

BRIEF INRODUCTION
The objective of this project is to make sure our vendor image is truly treble compatible.
As a part of google's project treble, vendor image should not depend on framework. Xiaomi's vendor image is not strictly isolated with framework because of
VNDK enforcement. In Android 8.1, VNDK was optional. As poco was shipped with oreo, this was optional. Xiaomi continues to disable VNDK enforcement even with Pie. In Android 9, VNDK is mandatory, meaning the BOARD_VNDK_RUNTIME_DISABLE must not be set (BOARD_VNDK_RUNTIME_DISABLE := # must not be set).

Fortunately, it wasnt that difficult and i managed to fix the dependencies:victory:. I built vendor image and flashed the flashed phhusson GSI and it worked fine.

PERFORMANCE ISSUES?
I noticed there is severe performance degradation in all custom Roms. Its bit strange to me being the device was powered with sdm845. I started digging and found that Xiaomi's thermal-engine was pretty useless in all custom roms out there. It was designed in a way that it keeps listens to thermal message from MIUI framework and basing on that it adjusts CPU and GPU clock speeds.
MIUI has a framework called PowerKeeper. It tracks each and every application that we open. Xiaomi devs Preconfigured 11 different thermal modes for thermal-engine. Those are game, incall , evaluation, class0, camera, pubg, youtube, extreme, arvr game2 and restore. It sends one of these dynamically to thermal-engine using sysfs.
For more info, Refer this commit.
Work around
As of now, thermal-engine receives evaluation mode which do not underclock CPU and GPU in normal situation. I guess governor schedutil manages frequencies efficiently. This is what xiaomi uses this mode when we open Antutu benchmark and hence scores are high. I played PUBG and didnt notice lag whatsoever.
It is possible to have a userspace control on sysfs path. We can include this in settings menu and let user selects whatever he wants to. Any other solutions are welcome.:)





Code:
[B]-Download the ROM and GApps of your choice
-Flash latest Firmware
-Make a full wipe (system, data, cache, dalvik).
-Flash Rom
-Flash GAPPS package
-Do factory reset
-And at last Reboot!
Clean Flash is always recommended![/B]
Note : Dont flash OEM Vendor. Flash firmware only. Otherwise the ROM wont boot. I will rebase vendor from every global open beta release. Currently vendor is based on MIUI 8.12.20.


Selinux is still in permissive mode. Bug Reports are welcome if any other than this.


Monitor the source changes here

Code:
[B][U][COLOR="SeaGreen"] AospExtended-v6.1-beryllium-20181229-1831-UNOFFICIAL.zip[/COLOR][/U][/B]
-Initial Beta Build.
-Synced with latest source ,Android 9.0.0 Release 21
-December Security Patch.
-Fixed Performance Issues.
Donations:
Help Supporting me. Any donations are highly appreciated.


Donate via PayTM



Sources:
AospExtended
Device
Kernel

XDA:DevDB Information
AEX-TREBLE, ROM for the Xiaomi Poco F1

Contributors
CodeElixir
ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x
Based On: AOSP

Version Information
Status: Beta
Beta Release Date: 2018-12-30

Created 2018-12-30
Last Updated 2019-02-03
 

Attachments

Last edited:

spoin64

Senior Member
Apr 24, 2016
139
25
0
So maybe we should use your edited vendor with other ROMs?
Is it possible to make universal patch for official vendors?
 
Last edited:

eLaDiio

Senior Member
Nov 27, 2011
156
50
0
Santiago
Nice rom, nice performance and battery with franco kernel, the only issue i have was with the port of MIUI camera, it may be related with the custom vendor that install your zip, anyway google camera works wells without problems, so isn't relevant almost for me.

BTW, good workaround about the performance issue on custom roms but there is a possibility to make this a flashable fix to any custom rom?
 
Last edited:
  • Like
Reactions: omargamalxx

CodeElixir

Senior Member
Jul 11, 2016
99
711
0
Hyderabad
Last edited: