• 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

[ROM][Mi5][7.1.2][EAS] JDC Nougat Revived

Phil_Smith

Elite Member
Oct 16, 2015
1,678
1,499
113
Hey there,


good news for everyone who is missing the great JDC Nougat!
With smeroni68's authorization I'm offering you the latest version of the ROM, built from source, with some changes to keeping it up to date and maintained.


These changes are:
Latest security bulletins and changes from AOSP​
Kernel upstreams from Linux Stable​
Updates from Code Aurora Forum (CAF)​
Some smallish modifications of standard apps or behavior​


All credit goes to the JDC team!
(Check attachment for a list of team members).
They are the geniuses behind this awesome ROM and kernel, and I'm only making basic and minor modifications to it.


Besides a huge thanks to each member of the JDC team, thanks to Google, Lineage, Linux, CAF, Github & everyone else involved!
And many thanks also to DennySPB who helped me a lot with all the building stuff!
Have fun and enjoy!



Downloads


ROM / Kernel


Hashes



Recommended firmware

Last and latest Oreo firmware for our Mi 5:
8.11.22



ROM installation

  • Install latest TWRP
  • Make backups and store them externally
  • Wipe dalvik, cache, system, vendor, data
  • When coming from any android version other than Nougat 7.1.2:
    • Make external backups of your internal storage content
    • Format data (type "yes" way)
    • Reboot to recovery to access the data partition correctly again
  • Flash adequate firmware
  • No reboot in between the following and the optional steps
  • Flash ROM
Optionally:

After the first boot
  • Follow the gapps assistant (in case you installed gapps)
  • Wait 2 - 5 minutes to let everything settle in
  • Reboot to system


Kernel installation
You'll only wanna install the kernel separately when there's a kernel-only update later than the last ROM version!

  • Wipe dalvik and cache
  • Flash the kernel zip-file
  • Optionally: Re-flash root (if you were rooted before or now wanna be rooted)



GPL

All repos are forked from AOSP-JF-MM or LineageOS

Device tree source code:
https://github.com/PhilSmith31/platform_device_xiaomi_gemini/tree/aosp-7.1.2_r36

Kernel source code:
https://github.com/PhilSmith31/platform_kernel_xiaomi_msm8996/tree/bb



XDA:DevDB Information
AOSP, ROM for the Xiaomi Mi 5

Contributors
Phil_Smith
Source Code: https://github.com/PhilSmith31

ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.x
ROM Firmware Required: 8.1.18
Based On: AOSP

Version Information
Status: Stable

Created 2018-08-28
Last Updated 2020-03-20
 

Attachments

Last edited:

Phil_Smith

Elite Member
Oct 16, 2015
1,678
1,499
113
Changelogs

20.03.2020
  • March 2020 security updates from LineageOS
  • Synced Lineage repos
  • Kernel is up to date with relevant commits to android/common


02.03.2020
  • Security bulletins up to Februrary 2020 (no more source.android updates coming from here on)
  • Updated everything in aosp.xml to latest android tag r39
  • Updated HALs and all externals under CAF to tag LA.UM.5.5.c25-04600-8x96.0
  • Upstreamed kernel with all changes to android/common up to date
  • Merged LA.UM.5.5.c25-04600-8x96.0 into qcacld-2.0
  • Synced Lineage repos
  • Kicked opencv
  • Kernel compiled with latest Linaro toolchain 7.5.0


17.09.2019
ROM:
  • Security updates from August and September 2019
  • Merged in CAF tag LA.UM.5.5.c25-03100-8x96.0 into externals, hals, and some vendors
  • Synced system/gatekeeper with LOS
Kernel:
  • B--B-Kernel-N-[2019-09-17]-[20:17]-Mi5
  • From now on always also present in kernel_only folder
  • Cherry-picked all relevant aosp's kernel/common/android-3.18 commits up to date
  • Merged in security related changes from aosp
  • Merged CAF tag LA.UM.5.5.c25-03100-8x96.0 into qcacld-2.0
  • Wrote simple python script to filter out warnings from compile output
    • Check extract_warnings.py and changes to build_kernel.sh
Vendor/aosp:
  • Monitor changelog under Dropbox link only



all changelogs

.
 
Last edited:

Phil_Smith

Elite Member
Oct 16, 2015
1,678
1,499
113
FAQ


I'm having general problems with the ROM installation or don't know what steps to perform to move from x to y or to restore or undo z. What shall I do, Dr. Phil?

Dr. Dr. Phil said:
First read the intro and then see whether your problem is covered here:
Standard Installation Types

Still issues? Then feel free to post in this thread!

Gcam mod has green lines in portrait mode or even in general

Dr. Dr. Phil said:
Settings -> advanced -> Fix Camera API2 -> support level override

and set it to "Zsl reprocessing"

Gcam mod video recording is force closing all the time.

Dr. Dr. Phil said:
This problem is present in Arnova's cam versions > 8, while photo shooting is working fine with the support level override fix above. You could use stock camera for video recording or use Arnova's gcam mod in versions 7.9 till 8.

Proximity sensor lets the screen get black while making a phone call

Dr. Dr. Phil said:
Use the recommended firmware (Oreo 8.11.22).

If that doesn't help, here is a fix that I used once successfully when I had the same problem.
Thanks to Mi5 Arsenal!:

  • flash zcx twrp
  • make a backup of your persist partition (let's call that x)
  • store x externally in case the fix shouldn't work or make anything worse (which I don't believe, but still)
  • download this zip file and place it where x had been stored (replace x with it)
  • hit restore in twrp, and select the new backup file you just put in place where x was
  • reboot to system

You can switch to official twrp afterwards without any problem!

Xposed isn't working or producing issues, what to do?

Dr. Dr. Phil said:
In my experience, xposed is very powerful, but can produce all kinds of weird and untraceable behaviour.
I don't recommend using it if not completely nessecary, and cannot support it.
 
Last edited:

Phil_Smith

Elite Member
Oct 16, 2015
1,678
1,499
113
Thanks for this great work! Can I dirty flash it on latest original JDC nougat? And can I flash B-B Kernel or better not to do this?
You should be able to dirty flash, although I think that a clean flash is advisable.
B-B-kernel should be working, but keep in mind that I am gonna keep updating the stock kernel and the B-B one is getting more and more outdated.

Edit:
This info is outdated!
B--B-kernel is even built into the ROM now!
 
Last edited: