[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] The Book of Mido:
Review - LineageOS Unofficial 17.1 - Android Q - Kernel 4.9 - Mido 2020-06-13

[IMG="LineageOS Unofficial 17.1 - Android Q - Kernel 4.9 - Mido"]https://i.ibb.co/k3GdyyM/lineageos-17-1-list.jpg[/IMG]

LineageOS​

Device: Redmi Note 4X (Mido)

Rom OS Version: Android 10 Q

Rom Kernel: Linux 4.9.x

Based On: LineageOS 17.1

Rom Firmware Required: Unlocked Bootloader, Latest Xiaomi Firmware

Developer/Maintainer: Aryan Kedare

Created: 2020-05-18

Last Updated: 2020-06-13

Status: Stable

Telegram Group/Discussion: LineageOS Unofficial • Mido

Download LineageOS Unofficial 17.1 Q 4.9:

GitHub 2020-06-13

AndroidFileHost 2020-06-13

OTA / dirty / clean flash

For a clean flash see the "Installation" below ⇓

Analysis of LineageOS Unofficial 17.1 Q 4.9 release of 13th of June 2020:

Τested thoroughly. Based on LineageOS (Vanilla/No Gapps). The latest release of 13th of June, comes with pre-installed the Linux kernel MoeSyndrome vanilla 4.9.227. It is a powerful, reliable, smooth, secure and stable rom with fairly good battery performance and excellent CPU performance. It is not ideal for games due to the high temperatures. For daily use for the time being. The battery discharge when the mobile screen is inactive, is about 0.5% per hour and it lasts for 40 hours, with normal use. The temperature of the battery is between 26°C - 40°C. CPU's temperature is between 27°C - 44°C (External temperature: 19°C - 38°C). Memory and CPU are working flawlessly and are very very fast. During the inspection, the mobile phone was found to have 41 applications open (fb, telegram, messenger, whats up, opera, google, gallery, email, 3 different cam apps e.t.c.) and simultaneously to play music, record video, have open Data, Wi-Fi, GPS, screen recording and taking backups with 2 different apps, without any error or delay.

Working: Everything - except Infrared (IR) Blaster (Kernel side issue, not rom's) & SELinux (SELinux set to permissive - officialy won't work on LineageOS 17.1 Q 4.9 Kernel - which is a major security issue. We hope to see resolved soon): Boots, Calls, SMS, Data, Fingerprint, Wi-Fi, Bluetooth, Camera, Camcorder, Video Playback, Call recording, Audio, Mi Sound Enhancer, Dirac Sound, Sensors, Flash, LED, GPS, Volte, Face Unlock, Miracast/Cast/Wireless Display, Magisk, Smart Lock, Encryption, SafetyNet. No unneeded customizations and bloatware apps. Not support MicroG (I may not know how to install it). Flash Pico, Nano or Micro OpenGapps.

Bugs: No bugs and no lags on the latest release of 13th of June 2020

Screen Recording Video: Rom evaluation test by recording the screen with the internal recording application (video without editing).

MP4, 84,2 MB, 00:01:58, 1080x1920, (video were taken on 2020-06-25) Watch

LineageOS Unofficial 17.1 Q 4.9 2020-06-13 by Aryan &

CAF Kernel 4.9.228 2020-06-23 0839 by Nicklas373 &

Adreno 500 Series OpenGL & Vulkan Drivers V@454.0 | V1.1.128

MP4, 87,3 MB, 00:02:04, 1080x1920, (video were taken on 2020-06-24) Watch

LineageOS Unofficial 17.1 Q 4.9 2020-06-13 by Aryan &

CAF Kernel 4.9.228 2020-06-23 0839 by Nicklas373 &

Adreno 500 Series OpenGL & Vulkan Drivers V@454.0 | V1.1.128

MP4, 94,4 MB, 00:02:14, 1080x1920, (video were taken on 2020-06-21) Watch

LineageOS Unofficial 17.1 Q 4.9 2020-06-13 by Aryan &

MoeSyndrome Kernel 4.9.228 2020-06-20 2357 by krasCGQ

Kernel 4.9.x (Why?): (Linux 4.9.230 Thur, 9 Jul 2020 09:44) is far more secure and performant than Linux 3.18.x was and it is supported by Linux until Jan, 2023 (longterm stable). It has security updates, bug fixes, it is more faster in animation & snappier and is EAS (Energy Aware Scheduling). Also Android 10+ dropped support for 3.18 kernels. Linux Kernel 3.18.x is an ancient Linux Kernel, which is now EOL (end of life/discontinued) from support from actual Linux Foundation.

Installation of LineageOS Unofficial 17.1 Q 4.9:

Full clean installation - You don't need all the steps

Delete Pin/Pattern/Password Lock & Fingerprint Data from your security settings on your present system (Recommended - This will save you a lot of trouble afterwards)

Backup your mobile settings and apps with Migrate_3.1.1_GPE.apk or Backup-Your-Mobile.apk (Optional)

Backup your Internal storage (Recommended)

Boot on twrp-3.3.1-3-KudProject-mido.img recovery (Recommended for 4.9 kernels - You can flash the file as an image with standard TWRP to Partition "Recovery" - Latest twrp-3.4.0-0-KudProject-mido.img 2020-06-26 )

Backup all partitions (Recommended - If something, during the flash of the rom, goes wrong, you have to Restore everything. (Before you make the Backup, remember that you have to delete all Pin/Pattern/Password Lock & Fingerprint Data from your security settings on your system. If you forgot to delete them and after the restore you have problems with them, go to TWRP and follow the directions of this video or this post)

Advanced wipe: Tick (Dalvik/Art Cache, Cache, System, Data, Vendor) and wipe

a. If you have change your firmware, flash the Latest Firmware stable V11.0.2.0.NCFMIXM Global 2019-11-15 (Optional - Always I am doing this, when I am coming from another custom rom or,

b. Sometimes flashing Latest MIUI Official ROM Global Stable Fastboot V11.0.2.0.NCFMIXM 1.8 GB, before reflashing custom ROMs may repair some broken things if we have some years of flashing things here and there and something got corrupted or altered)

a. if 7a. Swipe to wipe Cache & Dalvik

b. if 7b. Advanced wipe: Tick (Dalvik/Art Cache, Cache, System, Data, Vendor) and wipe

Flash the new rom - lineage-17.1-20200613-UNOFFICIAL-aryankedare-4.9-mido.zip

Flash the Gapps (Optional - ARM64/10/Pico/Nano/Micro)

Swipe to wipe Cache & Dalvik

Reboot to the system

Set up the phone

Boot on recovery again

Flash Backup Migrate zip (Optional)

Flash the latest Magisk 20.4 (Recommended)

Flash any Kernel you want from the following (Optional):

a. Latest CAF Kernel 4.9.229 2020-07-02 (Optional - Better Battery Backup) See: How to flash CAF Kernel below

b. Latest MoeSyndrome Kernel 4.9.230 2020-07-09 (Optional - KudProject)

c. Latest Fox kernel 4.9.228 2020-06-26 (Optional - XDA)

Swipe to wipe Cache & Dalvik

Reboot to the system

Restore settings and apps with Backup-Your-Mobile.apk or Setup Migrate Helper - Uninstall Migrate Helper (Optional)

To stop the warnings from the Trust agent after installation of the 2020-06-13 release, go to Settings > Privacy > Trust > Security Alerts > and switch OFF SELinux (Optional)

YOU ARE OK.

And remember! Never Flash 3.18 Kernel Over The Build.

Troubleshooting Guide:

How to delete your Fingerprint data

1. Go to Settings > Security > DEVICE SECURITY

2. Delete your fingerprints one by one (The first time that you will try to delete your fingerprints, you cannot delete them. They are staying on the security settings but they are disabled)

2. Delete your Pin/Pattern/ or Password Lock

3. Set a new Pin/Pattern/ or Password Lock

4. Now delete again your fingerprints

6. Finally, delete again the Pin/Pattern/ or Password Lock that you have specified before (if you want)

If Call Recording doesn't work

or you have problems with the microphone, disable "OK Google" (hotword) service and restart. Then see if it is solved. (Open Google app > More > Settings > Voice > HEY GOOGLE Voice Match > Switch OFF Hey Google). I don't know if this problem exist. Some users had reported this issue for the version LineageOS 17.1 Q 4.9 of May 18th.

Screenshots (were taken on 2020-06-19) of LineageOS Unofficial 17.1 Q 4.9:

LineageOS Unofficial 17.1 Q 4.9 2020-06-13 by Arean Kedare with CAF Kernel 4.9.227 2020-06-12 1916 by Nicklas373:

SafetyNet Success:

Open Magisk Manager app v7.5.1(267)(7) on your system and click on:

Menu > Settings > Magisk Hide. Toggle it ON. Close the Magisk Manager. Reopen it and now confirm that SafetyNet has been activated by clicking on Tap to start SafetyNet check. Again open the Menu and this time you can select Magisk Hide option on menu. Done.

Now your device is safe to run Netflix, Android pay, Pokemon Go and Banking applications. After you have choose Magisk Hide on Magisk Manager, refresh your device state on the Google server (Certified or Uncertified state in PlayStore, by wiping all your data on the settings menu of PlayStore).

And moreover, you can also go again on Magisk Manager and:

Menu > Settings > Hide Magisk Manager (Repackage Magisk Manager with random package and application names). Many bank apps detect Magisk Manager by it's package name, or

Menu > Settings > Clear Repo Cache (Clear the cached information for online repos. This forces the app to refresh online).

After all the changes, you have to reboot and then, you will see that no online application will be able to resist the capabilities of Magisk Manager app. All you need to do, is to know it's capabilities.

Magisk and MagiskHide Installation and Troubleshooting guide

GitHub Magisk Releases

Camera Apps: (Optional)

1. trCamera V1.5 Leader build 4 [FIX].apk 7.2.011 2020-02-13 based on GCam 7.3.030 (Pink issue in dark areas on Sony sensors) and config.xml

vian-sith trCamera 1.5 Night v2.xml

vian-sith trCamera 1.5 Day v2.xml

2. HyperCam-RaizenA-10_CFV.apk 2020-04-22 based on GCam 6.1 and config.xml

E3-QD_HypercamMido.xml

QD_HypercamE4_Night.xml

QD_HypercamE4_Day.xml

XTerkRS_-_Vian_-_E3.xml

XTerkRS_-_Vian_-_HyperRaizen_V1.xml

HyperCam_E3_Naazzz_XML.xml

Both camera apps can work together (and with the stock) at the same time, are marvelous and do not crash at all. I think this moment are the best camera apps for our mido android Q. Stock Los 17.1 camera app is working excellent too.

How to Load/Save XML Configs

Parrot043 has also made some very good builds that based on gcam 7.3, which can work very well on our Mido Android 10 and they supports all camera vendors.. Not all versions are stable.

3. MGC_7.3.020_Parrot043_V7 2020-06-05 no config.xml

Before installing Parrot043's cam, remove and clean the data from any other camera application you have installed. Otherwise you will have crashes or lags.

Working Magisk Modules:

1. Use fingerprint scanner as camera shutter button on Redmi Note 4X (Mido). v4 by veez21 2019-06-05 9.2kb fpcam-11.zip. Only works on Aryan's LineageOS Unofficial 17.1 Q (3.18, 4.9), not on Zeelog's 17.1 Q 4.9 and not tested on David's 17.1 Q 3.18

How to flash CAF Kernel on LineageOS Unofficial 17.1 Q 4.9:

1. Extract original boot.img from your rom.zip

2. Boot to twrp-3.3.1-3-KudProject-mido.img recovery.

3. Flash (restore) the original boot.img on partition "Boot", if you have previously change your stock Kernel

4. Flash the latest Magisk 20.4 (Optional)

5. Flash the CAF-Kernel-Mido-r2-EAS-Q-20200702-2301.zip

6. Swipe to wipe Cache & Dalvik

7. Reboot to the system

Adreno 500 Series OpenGL & Vulkan Drivers (2020-06-30 - NEW):

INSTALL THE DRIVERS BY YOUR OWN RESPONSIBILITY

Adreno 500 Series OpenGL & Vulkan Drivers V@454.0 | V1.1.128 - v2.2(22). Requiring the use of Canary Magisk and not the stable build of the Magisk itself. Otherwise, you will encounter bootloops, black screens or self reboots.

The driver is still not optimized as the stock one. It does not yet included on the Mido device tree. People think, that with the use of it as Magisk module, they can get better performance, but the truth is, that they just force their phone to use unoptimized driver, instead of the stock driver (optimized) and this makes the phone end up with an unstable behaviour and heat issues.

Adreno 500 Series OpenGL & Vulkan Drivers for chipset Qualcomm Snapdragon 625 MSM8953

Fully release the potential of GPU to continuously improve gaming experience. The main functions are optimize the GPU driver to game performance and stability. Including OpenGL and Vulkan optimizations.

Drivers module is only for Android 10.0+: V@454.0 | V1.1.128 - v2.2(22) (2020-06-30)

Installation only by Canary Magisk (debug): magisk-debug.zip (magisk-uninstaller.zip, app-debug.apk, notes.md, debug.json, stub-release.apk, release.json, GitHub Canary)

XDA Developers thread: [DRIVER] [9.0+] Adreno 500 Series OpenGL & Vulkan Drivers [V@454.0] [1.1.128]

Telegram group: Adreno Graphics Drivers

Download drivers Magisk module 2020-06-30: GoogleDrive sd625-sd626 magisk-v2.2(22)

Check the version of OpenGL and Vulkan: OpenGL ES Extensions - The OpenGL/Vulkan Utility

How to flash Canary Magisk & install the Adreno 500 Series OpenGL & Vulkan Drivers:

1. Extract original boot.img from your rom.zip

2. If you have the Magisk installed on your system uninstall it completely. You can do this from the home screen of the Magisk Manager. You have to choose "Complete Uninstall". Magisk self-reboots, uninstalls the Magisk from the Recovery and it returns to the system

3. Boot to twrp-3.3.1-3-KudProject-mido.img recovery (or any other 4.9 recovery you have installed on your device)

3. Flash (restore) the original boot.img on partition "Boot"

5. Flash the Canary Magisk magisk-debug.zip

6. Flash any Kernel 4.9 you prefer (Optional)

7. Swipe to wipe Cache & Dalvik

8. Reboot to the system

9. Open Canary Magisk Manager application on your system. (The interface is different from the stable build of Magisk 20.4, but all the settings are the same. It does not contain a full uninstall option. Canary Magisk magisk-uninstaller.zip is available in a separate file and is only applicable in Recovery mode)

10. Adjust the application, just as you would with the stable build of Magisk 20.4.

11. After setting up the application, go to the Modules page and install from your "Internal storage" the Adreno_OpenGL-V@454.0_Vulkan-1.1.128_sd625-sd626_magisk-v2.2(22).zip drivers module

12. Reboot

13. Check the version of OpenGL and Vulkan drivers with the OpenGL ES Extensions - The OpenGL/Vulkan Utility

14. YOU ARE OK. Now the drivers have been installed on your system systemless-ly. (You can disable the "Adreno 500 Series OpenGL & Vulkan Drivers" module, whenever you want from the Canary Magisk Modules page)

- If it cause any problem, you can get rid of the problem by disabling or removing the module via Magisk manager application or by deleting the Adreno folder in /data/adb/modules/ via custom recovery.

Also read the installation methods: Installation Methods for Adreno Graphics Drivers

You can also install the Canary builds through Magisk Manager 20.4 by switching over the Menu > Settings > Update Channel to "Custom Channel" and pasting this link:

https://github.com/topjohnwu/magisk_files/raw/canary/release.json

Do note that the Canary release channel (it is prepared for Android 10+ and 11) is considered the “bleeding edge” of Magisk releases, and as such, is recommended for developers only and not for average users. Please do not install Canary builds only for the sake of being on the absolute latest release.

KudProject TWRP System Image Backup:

1. Delete Pin/Pattern/Password Lock & Fingerprint Data from your security settings on your present system (Recommended - This will save you a lot of trouble afterwards)

2. Boot into TWRP Recovery

3. Go to Wipe menu

4. Advanced wipe: Tick (Dalvik/Art Cache, Cache) and wipe

5. Go to Backup menu

6. The default backup options in TWRP are System, Data, and Boot. For most cases, this is sufficient for backing up a ROM. (If your device has the option, backing up android_secure and/or sd-ext may be a good idea. There's usually no reason to back up cache or recovery.

A System Image Backup takes up more space than a regular System Backup, but the System Image Backup is a bit-perfect backup that, when restored, will not break dm-verity (assuming that you don't break dm-verity before making the backup). If you need a perfect "go back to completely stock" backup then you should be using System Image (and Vendor Image, when available) instead of just System.

Some devices have "special partitions" like WiMAX, pds, efs, etc. These partitions almost never need to be included in a normal Backup. It's usually a good idea to make a single backup of these partitions and hang on to them just in case. Make use of TWRP's keyboard feature and name your backup of these special partitions accordingly. It is NOT recommended to restore these special partitions unless you are absolutely certain that you need to restore them. Restoring these partitions unnecessarily may result in a bricked device.

-- Boot (64MB) +

-- Cache (0MB)

-- Recovery (64MB)

-- System (~...MB)

-- Vendor (~...MB)

-- System Image (~...MB) +

-- Vendor Image (~...MB) +

-- Data (excl. storage) (~...MB) +

-- Persist (0MB)

-- Persist Image(32MB) +

-- Modem (100MB)

-- EFS (4MB)

7. Swipe to Backup

8. As soon as the TWRP System Image Backup finish the job, go to Home > Reboot menu

9. Choose: Reboot to the system

Done. You will find your System Image Backup, on the Internal Storage, into the folder TWRP > Backups.

TWRP Backup

Other 4.9 Kernels & Recoveries:

1. Latest OrangeFox Recovery for 4.9 kernels (Recommended - Works very good)

2. Latest PitchBlack Recovery for 4.9 kernels (Not tested)

3. Latest Cartel Kernel 4.9 (Not tested)

Other LineageOS 17.1 Q (3.18 or 4.9) builds:

1. Zeelog, also has made a build of LineageOS Unofficial 17.1 Q 4.9 with no Gapps on 2020-05-18, which as many users who have tried it say (me too - I have installed this version on my mobile since 24th of June), that it's an excellent build. For those "purist" perhaps choose Zeelog's LineageOS because it's lack or close to bone stock customizations.

I recommend to anyone who installs version 4.9 of Zeelog not to install OpenGL and Vulkan drivers as the system becomes heavier. However, all the other instructions you will find in this post also apply to the Zeelog version.

Zeelog is probably the most important developer at the moment for updating our Mido mobile hardware. Dozens of other developers have relied on his work to support the release of their own custom operating systems. I thank him.

2. Zeelog's LineageOS Unofficial 17.1 Q 3.18 with no Gapps on 2020-07-02. Third OTA release on GitHub. Tested. Reliable, fast and stable. Marvellous rom. (Use it with the latest UG kernel by Zile995).

3. Aryan's LineageOS Unofficial 17.1 Q 3.18 with no Gapps on 2020-06-12. I have tried this build also and it is an excellent build with no bugs or lags, fast stable, smooth and reliable. (Use it with the latest UG kernel by Zile995).

4. David Trpchevski's (LilBlinx), LineageOS Unofficial 17.1 Q 3.18 with stock Gapps (1.22 GB) on 2020-06-22. An excellent developer, who, I'm sure, will have made a very beautiful rom. Unfortunately, I will not try it because I am not a fan of Gapps.

Latest Tools for Xiaomi Redmi Note 4X (Mido):

1. Mi Unlock Tool

2. Xiaomi Flash Tool

3. XiaoMiTool V2

4. Minimal ADB And Fastboot v1.4.3

P.S.

1. I am not a developer, I started using this rom and I liked and I want to help other people.

2. I also want to help Aryan continue to develop the LineageOS for our mido.

3. The files in the post that are linked to MediaFire (I keep a free MediaFire account) were made for the convenience of those who do not have a Telegram account.

4. I bear no responsibility if, in your attempt to follow the instructions in the post, you cause damage to your system.

5. If you see something wrong in my post please let me know so I can fix it

Post Updated on 2020-07-09 16:10:00 UTC