[Redmi Note 2 Original Android Development] Azizb750:
I'm Not even a developer, but a builder bot :)

Here is a collection of LineageOS 14.1 and other LineageOS 14.1-based Custom ROMS, these Custom are Compiled from me with the source tree of [MENTION=6296775]Dinolek[/MENTION].

His Device Tree uses MIUI lolipop blobs instead of marshmallow alps blobs which we used for Marshmallow before.

------------------------------------------------------------------------------------------------------------------------

Working :

* Adjustable brightness

* Audio

* Auto brightness

* MTP and Mass Storage modes

* Vibration

* Rotation

* RIL

* Video

* Gallery

* Mic

* Wi-Fi

* Bluetooth

* Internet

* GPS

* Hotspot

* Camera rear/front

* SD Card

* IR Blaster

* Built-in Signature Spoofing (for MicroG)

-----------------------------------------------------------------------------------------------------------------------

Broken/Bugs :

* Camera rear/front while trying to record video from stock camera (but you can record from other camera apps too)

* SafetyNet passes only with Offical Kernel source from Micode

------------------------------------------------------------------------------------------------------------------------

I this link I have included these Custom ROMS:

- LineageOS 14.1

- DotOS 1.2

- ViperOS 3.1.1

- Dirty Unicorns 11.7.2 (AOSP-Based, experimental)

- RR 5.8.5

- crDroid

Download Link: https://mega.nz/#F!0ZgiDaCS!1qISJ4mb9jWnA1W2vfUJcg

Source Trees:

Device Tree:

https://github.com/Azizb750/android_device_xiaomi_hermes

Vendor Tree:

https://github.com/Azizb750/android_vendor_xiaomi_hermes

Kernel Tree:

Official: https://github.com/Micode/Xiaomi_Kernel_OpenSource

Upstreamed: https://github.com/Azizb750/Xiaomi_Kernel_OpenSource

Credits:

[MENTION=6296775]Dinolek[/MENTION] for his source tree (don't worry I have already took his permission before)

[MENTION=4148470]Smosia[/MENTION] for his new hennessy tree and his fixes

[MENTION=5773402]nofearnohappy[/MENTION]

[MENTION=6738603]lokjianming[/MENTION]

[MENTION=5650330]danielpinto8zz6[/MENTION]

[MENTION=4772299]andrea210701[/MENTION]

[MENTION=7554429]l7ssha[/MENTION]

[MENTION=5405331]Syl157[/MENTION]

[MENTION=4948627]daniel_hk[/MENTION] (for his updated gps hal)

[MENTION=7175518]ibilux[/MENTION] (for his help to fix the bugs)

MiCode for Publishing Finally the hermes/hennessy kernel source!

Thanks to these developers/maintainers for making our device still alive!

NOTE: The ROM's are not fully stable, So I'm not responsible for the bugs which will occur later

_______________________________________________

Troubleshooting

- Some apps are crashing for a reason what's wrong?

- if you use Magisk root some apps are crashing for a reason, to solve this change Mount NameSpace Mode to Global and disable Magisk Hide and reboot (you cn re-enable it later if you want/need it),

I discovered this solution when I used older RR N 5.8.2 and the apps will not crash anymore, another way is to set ro.debuggable to 1 using MagiskHide Props Config module and reboot. But now the custom kernel is not causing this bug anymore, but in case you will meed it.

- SafetyNet fails what to do?

- If you fail Only CTSProfile, you can use this module

https://xdaforums.com/apps/magisk/module-magiskhide-props-config-t3789228

This will help you to Pass CTSProfile using custom build fingerprint from other certified devices.

If you use xposed and want to pass CTSProfile, you can use an xposed module called "No Device Check", but as far I know its impossible to pass BasicIntegrity with xposed installed, but using this module is pretty enough to log in via snapchat and using some apps but not for Pokemon GO

Edit: SafetyNet was failing due of kernel, the kernel source from Micode (or from mine upstreamed) passes it.

-what's MicroG?

- MicroG is an lightweight and opensource re-implementation of Gapps

- how do I install it?

- same as Gapps + you will need to wipe cache/dalvik and grant for signature spoofing

- In self check I see that Phonesky/Play Store has not correct signature, why does it happen?

- you need to grant for signature spoofing manually you can do it by going to Settings->Apps->Gear(in top right corner)->App Permissions-> Spoof package signature/(or signature spoofing, depends on the rom) and giving permissions to spoof signature, you can do the same to GMSCore too in case you did still haven't granted for it before

- I have problems with sign in with my account, what to do?

- this happens mostly when you are Replacing Gapps with MicroG or reinstalling MicroG without sign out, if this happened just go and delete using root explorer this files:

/data/system_ce/0/accounts_ce.db

/data/system_de/0/accounts_de.db

/data/system/sync/accounts.xml and reboot, and now you should have sign in to your account successfully

_______________________________________________

Link for MicroG(ale5000): https://xdaforums.com/android/development/microg-unofficial-installer-t3432360

Link for MicroG(nanodroid): https://xdaforums.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928

_______________________________________________

Changelog:

-----------------

25082018 (except DirtyUnicorns and LineageOS*)/26082018 (for DotOS)

- Fixed GPS (credit: [MENTION=4948627]daniel_hk[/MENTION], thanks to [MENTION=7175518]ibilux[/MENTION])

- intergrated V1.P2 modem

* Some Users reported that LineageOS 14.1 2508 does not even boot, so I dropped it temporary

-----------------

27082018 (DotOS and RR)

- integrated Audio fix

- Added some init.mt6795.rc tweaks

- Added some new flags on BoardConfig.mk

-----------------

28082018 (LOS, DotOS and RR)

- same as 27082018 + took some .conf files from MIUI 9.6.3.0 and Disabled HW overlays Permanently

-----------------

29082018 (LOS, DotOS and RR)

Dropped as some users reported Bootloops

You can Download 2808 build instead

-----------------

01092018 (LOS, DotOS and RR)

- Added some lines in ramdisk (for video recording)

- updated BoardConfig.mk

- added new keylayout (Thanks ARTEM)

- added new tweaks in build.prop for 1080@60fps (thanks [MENTION=7175518]ibilux[/MENTION] for help) and removed init.d script

-----------------

03092018 (ViperOS)

- Added some lines in ramdisk (for video recording)

- updated BoardConfig.mk

- added new keylayout (Thanks ARTEM)

- added new tweaks in build.prop for 1080@60fps (thanks [MENTION=7175518]ibilux[/MENTION] for help) and removed init.d script

- edited build.prop to make it debuggable

-----------------

04092018 (LOS, ViperOS, DotOS, RR and crDroid)

- added some lines in ramdisk

- fixed bootloop (on 03092018 ViperOS)

------------------

06092018 (LOS, ViperOS, DotOS, RR and crDroid)

- Patched for built-in signature spoofing support for MicroG (LOS, RR and DotOS only, crDroid and ViperOS have already native support for it)

- tried to fix wakelock issues while playing music

------------------

13092018 (LOS, RR, DotOS, ViperOS and crDroid)

- tried to fix colors on camera (for video recording)

- fixed some codecs (not playing flac files)

------------------

22092018 (RR with custom kernel)

Not working:

Audio (trytofixcamera.zip from older RR may solve the problem)

touch atmel

most of sensors

camera

------------------

01102018 (eelo 0.1)

- First release

- used FM libs from [MENTION=4148470]Smosia[/MENTION]'s tree (thanks [MENTION=6296775]Dinolek[/MENTION] for fixing FM and [MENTION=4148470]Smosia[/MENTION] for providing them)

- made some changes in ramdisk (init.mt6795.rc only, if you want spectrum support you can flash it by using a seperate zip)

------------------

07102018 (LOS, RR, ViperOS, DotOS)

- fixed FM Radio for sure now (thanks [MENTION=4148470]Smosia[/MENTION] and [MENTION=7175518]ibilux[/MENTION])

- used folders from auroraroms device tree so can compile them from source (credits: )

- added camera_wrapper from [MENTION=4948627]daniel_hk[/MENTION]'s tree

------------------

17102018 (LOS, RR and crDroid)

- updated some patches and some BoardConfig in the device tree (thanks [MENTION=4148470]Smosia[/MENTION] and [MENTION=6296775]Dinolek[/MENTION])

· updated and applied newer patch to disable seccomp filtering (Credit: [MENTION=6296775]Dinolek[/MENTION])

· updated and applied newer patch for hotspot (Credit: [MENTION=6296775]Dinolek[/MENTION])

· applied patch to fix airplane mode bug (thanks [MENTION=4148470]Smosia[/MENTION] to adding it to the tree)

- black screen seems to be fixed this time (probably it occured due that forgot to add an flag about seccomp in BoardConfig as it was essential to disable seccomp filtering)

------------------

20/21/22/23/26/27/28102018

- reverted camera_wrapper (it makes things worse about screen recording)

all compiled by [MENTION=3102935]dargonswim[/MENTION]

------------------

05/06012019

(05012019 crDroid and ViperOS

06012019 LineageOS, DotOS and RR)

- Moved device-specific libs to Vendor as Part of preparations for Oreo and Pie(Credits: [MENTION=6296775]Dinolek[/MENTION] for doing it and [MENTION=4148470]Smosia[/MENTION] providing the tree)

- fixed triggering ringtone (credits: [MENTION=4148470]Smosia[/MENTION])

- added a expermintal flag during compilation for VideoRecording bug (thanks: [MENTION=7175518]ibilux[/MENTION])

------------------

16012019 (Ghost Kernel0.1)

- Source from Official Xiaomi Open Source

- everything works well

- Upstreamed kernel to 3.10.108

- added dt2w (on Focaltech only)

- Patched for oreo Binders

- Passes BasicIntegrity (Now is possible to pass CTSProfile with custom fingerprints)

------------------

18012019 (for LOS, RR and DotOS, 19012019 for CrDroid and ViperOS)

- kernel from source (thanks xiaomi for releasing kernel source)

- Upgrade Sepolicy 30

- merged some camera fixes (thanks [MENTION=4148470]Smosia[/MENTION])

- SafetyNet passes BasicIntegry

------------------

22012019

(GhostKernel0.12)

- Added new ioscheds (credits: [MENTION=4694060]andrea2107[/MENTION])

- Made some cherry-picks for selinux improvement

- fixed annoying /proc/self/fd/* bug found in logcat

- kernel source now is more hybris friendly

(GhostKernel0.13)

- added some cherry-pick for wifi from launchpad/ubports (with the hope to fix WiFi reconnections)

- disabled dt2w by default (you can enable it using Kernel adiutor)

(GhostKernel0.14)

- fixed kernel version not updating (probably broke the script accidentally, now it applies to system, so now updates the kernel version)

- made "bfq" io-scheduler as default (I learned that it performs much better than "cfq")

- added local version to the kernel

------------------

25012019 (LOS, RR, DOTOS, VOS, CR)

- Added new governors (Credit: [MENTION=4694060]andrea2107[/MENTION])

- added enabled dt2w function on the kernel for focaltech (on atmel doesn't work), disabled by default, use Kernel Adiutor to enable it

- Merged New fixes and features of Ghost kernel0.14(as I use the source for compile the Rom's kernel too)

- fixed stk3x1x alsps bug

------------------

14022019

- Tried to fix Video Recording (on instagram at least it works as I saw, on camera apps still not)

- Ported codec configs to fix flac audio

- Moved modem path from /etc/firmware to /system/etc/firmware on the kernel

------------------