FORUMS
Remove All Ads from XDA

[ROM][AOSP/AOSP-CAF][Oreo/Nougat] Android 8.1/8.0/7.1 for Xiaomi Mi 2/2S/2SC

106 posts
Thanks Meter: 139
 
By windbells, Senior Member on 19th November 2017, 05:53 PM
Post Reply Email Thread
Although the Xiaomi Mi 2 is almost five years old, and it seems there would never be a working nougat/oreo ROM after ivan stopped the development of his AOSP project, but it's not the truth. As the issue of light and proximity sensor have been fixed, I think most of the system components are stable enough for dialy usage after my couple days tests, so I decide to release the AOSP 8.0.0 to you today.

Install:
Please make sure your phone haven't modified the stock partition. It means my rom only work with the latest miui-dev partition table, so you have to Download lastest Mi 2 Developer tar file and flash using fastboot before install my oreo/nougat ROM . This process will earse all data on you phone, so backup all data before you getting start.
1. flash stock miui developer by fastboot update (http://en.miui.com/a-234.html)
2. flash twrp recovery use fastboot and reboot
3. hold power and volume up key to boot into recovery mode
4. install oreo or nougat ota package
5. wipe data and cache (you have to do this even if you are using ivan's aosp marshmallow/lollipop)

Working:
(Note: I use Mi 2SC with CDMA network support, but I don't have an available CDMA SIM card right now for test, so users with CDMA network might have trouble with RIL)
- Audio (bluetooth headset not test)
- Bluetooth
- Camera
- RIL
- WIFI
- FM
- Sensors
- GPS

Credit/Thanks
Special thanks to ivan for the initial device source tree and his preview works on Mi2 device.
Many Thanks to @AdrianDC @Ziyan for their great work to bring Android Oreo to MSM8960 platform.
Also thanks to @m11kkaa (M1cha) @zaclimon for their projects.

- Xiaomi Opensource Project
- Google Android Opensource Project
- Team LineageOS/CyanogenMod
- Team Omnirom and Team TWRP recovery
- Team Unlegacy Android

Source:
device tree: https://github.com/windbellx/android...e_xiaomi_aries
https://github.com/windbellx/android...msm8960-common
kernel source: https://github.com/windbellx/android...xiaomi_msm8960
vendor: https://github.com/windbellx/proprietary_vendor_xiaomi

Screenshot:
The Following 41 Users Say Thank You to windbells For This Useful Post: [ View ] Gift windbells Ad-Free
 
 
19th November 2017, 06:01 PM |#2  
OP Senior Member
Thanks Meter: 139
 
More
Download Link:
Only twrp >= 3.2.1 works with ROM >= 20180101
https://mega.nz/#F!VKRggSoL!WAFIK45_IFKhnvlK1eyY4w

How to ROOT:
Flash the lastest Magisk.

Known issues:
1. Hidden network cannot connect.
2. APN needs setting manually to use CDMA data network. (?, not sure, need more tests).
3. Not support 1080P camera record due to outdated kernel driver.
4. Selinux status is permissive.

Changelog:
2018-06-16
* md5sum: da677903b4c5092d57e91f0dc2210a90 aosp-caf-8.1.0-20180616-aries-arch.zip
* bring back Privacy Guard and synchronize to latest LineageOS version.
* fixed sometime the device is too hot while too many background apps and optimize screen-on battery usage.
full battery usage estimated:
>5 hours online surfing with wifi opened(moderate usage, no gaming).
2 days standby (45-50 hours).
3-4 hours(?) using cellular data.


2018-05-06
* md5sum:
- b7121d3f95e91350722da01c8dfdea22 aosp-caf-8.1.0-20180506-aries-arch.zip
- 6988262c9f99c00371a1bc238ffbdf26 aosp-caf-8.1.0-20180506-aries-arch-gapps.zip
* fix gps and compass broken in last build.
* revert media profile changes so screen record now works normally.
* bring back Xiaomi usb otg driver. (Not tested, tell me if it not work)
* enable doze correctly.
* reduce battery usage when WIFI turned off.
* thermal and some kernel tweaks.

2018-04-20
* md5sum: e8fc7f3793d820f279580726f2c34e93 aosp-caf-8.1.0-20180420-aries-arch.zip
* this version is NOT compatible with previous ROM, SO CLEAN DATA/CACHE OPERATION IS REQUIRED.
* switch to CAF source(tag: LA.UM.6.6.r1-07200-89xx.0) instead of Google generic repository. This build contains Qualcomm specific enhancements plus some comunity optimizations, so it gives some improved performanence to this old device (especially pictures slipping and system animation). Thanks to AOSPA and AOSP-CAF.
* fix WiFi hotspot, tethering should work fine now.
* fix audio call volume cannot adjust.
* add firewall(app wifi/data restriction) support to oreo(App info -> Data Usage -> Disable all cellular data access/Disable all Wi-FI data access). Port from Lineage/CM, thanks again for their great works.
* add multiple pointers patch.
* add fake signature patch, for some MicroG users.
* update media profiles, remove 1080p option from camera records.
* now the build type is "user", which will disable adb debugging by default, "adb root" also disabled.
* repatch telephony framework for CDMA users(NOT TESTED).
* it's the final update if no serious issues(this update is to resolve the call volume issue).

2018-03-17:
* This version is expected to be the final version and wouldn't update anymore if no critical issues. I hope you can enjoy this one without obstacles. Source will be updated to github in a few days.
* update to 8.1.0_r17
* update audio configuration files so audio should work flawlessly now.
* update power hal and tweak cpu scheduler, try to make a better battery life.
* remove Privacy Guard (seem have unnormal power usage when data connection opened), revert Apps data path tweak, remove addtion Internet/Sensor permissions(it makes Google Setup Wizard FC).
* fix device hangs while trying power on machine in offline charging mode.

2018-01-27:
(NOTE: new kernel might have problems with some device, please attach your logcat, dmesg and top command result(adb shell -> top -> take a screenshot), plus you device model)
(NOTE 2: If you have installed gapps and don't want to clean data, flash gapps after flash the new ROM, before your first boot, or some app will get a FC, unless reinstall the app)
* Revert to old audio hal so that calling audio works with old configs
* Fix some storage access permission issues. Move all Apps data to /sdcard/AppData, so external storage path that apps got will be /sdcard/AppData/<package name>/

2018-01-19:
* fix system crash when openning gps with IPv6 network
* fix the audioserver crash when using a headphone
* fix app crash when not granted WRITE_STORAGE permission

2018-01-17:
* update to 8.1.0_r7
* switch to new kernel base. After almost one month dialy use test, I decide to abandon the old kernel tree and enable new kernel source tree, so Xiaomi aries now share the same kenel base code with sony huashan(https://github.com/AdrianDC/android_..._sony_msm8960t). Adrian DC have been working on AOSP/LineageOS of Sony msm8960 platform for a long time, he also is a recognized and trusted developer of LineageOS. With new kernel, I believe it will be more quickly to bring a features-ready and more stable aries ROM to you. Thanks @AdrianDC for his great work.
* switch to new audio/display/media HAL, report if you have any trouble to aduio, video play and records.
* new kernel support new auto sleep and wakeup (instead of earlysuspend), and many other changes to improve deep-sleep in oreo, so it will be a better battery life when phone is idle.
* adopt some code from Lineage to support CDMA data connection. if you want to report RIL releated issues, please attach both full logcat(adb logcat) and radio logcat(adb logcat -b radio)
* fix power menu not shows correctly
* fix some app cannot open again after force stop
* make lockscreen swipe more easier to unlock
* magisk now can boot properly

2018-01-01:
* fix UI performance. (NEED MORE TESTS)
* port Privacy Guard to aosp-8.1, thanks to team Lineage/CM/SlimROMs (Settings > App & notifications > Privacy Guard)
* superuser now is optional
* isolate app data/files on /sdcard (app now saved data to /sdcard/<package name>/ install of /sdcard/, It make external storage root more neat and more secure in some cases)
* fix alarm not work
* disable permission review, or permissions will reset after every updates
* disable liveshot in case of crashing when touched in video record mode
* secondary try to fix CDMA data connection. (Need feedbacks, plus model)
* fix setting lockscreen pin/pattern nonresponse
* update battery data, try to fix battery value reset. (NEED TEST and FEEDBACK)
* update twrp to 3.2.1

2017-12-09: (Download from here #65)
* Update to 8.1.0_r1
* Enhance security and privacy settings (many thanks to thestinger and CopperheadOS)
** I have added Internet permission and enable permission review for app with targetSdkVersion < 23, If you are not a clean installation, some app might get a FC. Reinstall app and give the permissions(PHONE OR INTERNET) can solve problem.
* Fix Mi2s 32gb with 13MP camera. (NEED TEST)
* Revert kernel gpu driver. Try to solve UI unsmoothly sometime. (NEED FEEDBACK)
* Add CDMA dummy APN patches. Try to solve data connection with CDMA network. (NEED TEST)
* Use old power and charger driver. It works better.

2017-11-19
* initial 7.1.2 and 8.0
Download: OUTDATED! FIND UPDATES FROM CHANGELOG
twrp recovery 3.1.1: https://mega.nz/#!RewDnB5Z!1JaIxJ2-w...pLg6lKL5Z2lsKg
aosp 8.0.0: https://mega.nz/#!FHpTRCQL!j_Z-XirV1...0Mep8lsKSiB10g
aosp 7.1.2: https://mega.nz/#!hTIgGT5a!gfap1JU95...RzklLENMwS2jgs
The Following 16 Users Say Thank You to windbells For This Useful Post: [ View ] Gift windbells Ad-Free
20th November 2017, 09:58 AM |#3  
Cloverkit's Avatar
Member
Flag YingShang
Thanks Meter: 4
 
More
Great!
20th November 2017, 01:22 PM |#4  
GuaiYiHU's Avatar
Junior Member
Thanks Meter: 28
 
More
Good work. I'm working on mi2 as well, can I use your rom as a base for fixing the ril? thanks!
20th November 2017, 01:41 PM |#5  
Junior Member
Thanks Meter: 0
 
More
lol,cdma 1x can be load ,but network doesn't

---------- Post added at 02:38 PM ---------- Previous post was at 02:35 PM ----------

---------- Post added at 02:41 PM ---------- Previous post was at 02:38 PM ----------

Quote:
Originally Posted by GuaiYiHU

Good work. I'm working on mi2 as well, can I use your rom as a base for fixing the ril? thanks!

huo zhuo huda
20th November 2017, 01:44 PM |#6  
GuaiYiHU's Avatar
Junior Member
Thanks Meter: 28
 
More
Quote:
Originally Posted by ziiimy

lol,cdma 1x can be load ,but network doesn't

---------- Post added at 02:38 PM ---------- Previous post was at 02:35 PM ----------

---------- Post added at 02:41 PM ---------- Previous post was at 02:38 PM ----------



huo zhuo huda

You are the first one to make the ril work after M. I think this is exciting.
20th November 2017, 02:32 PM |#7  
miuifans's Avatar
Member
Flag Guangzhou
Thanks Meter: 4
 
More
great!
20th November 2017, 02:37 PM |#8  
Junior Member
Thanks Meter: 0
 
More
Can't not connected to hidden WiFi
20th November 2017, 03:22 PM |#9  
OP Senior Member
Thanks Meter: 139
 
More
Quote:
Originally Posted by GuaiYiHU

Good work. I'm working on mi2 as well, can I use your rom as a base for fixing the ril? thanks!

Yes
The Following 2 Users Say Thank You to windbells For This Useful Post: [ View ] Gift windbells Ad-Free
20th November 2017, 03:28 PM |#10  
OP Senior Member
Thanks Meter: 139
 
More
Quote:
Originally Posted by ziiimy

lol,cdma 1x can be load ,but network doesn't

---------- Post added at 02:38 PM ---------- Previous post was at 02:35 PM ----------

---------- Post added at 02:41 PM ---------- Previous post was at 02:38 PM ----------



huo zhuo huda

Sorry, it wouldn't be fixed as I don't have a CDMA SIM card right now.
20th November 2017, 06:51 PM |#11  
-Tex-'s Avatar
Senior Member
Flag Dnipro
Thanks Meter: 10
 
More
UI is very unsmooth. After installing gapps got 'setup wizard has stoped' error. Can it be fixed?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes