[ROM][7.1.2][UNOFFICIAL] LineageOS-14.1 Xiaomi Redmi Note 4 MTK

Search This thread

sinanlenfom

Senior Member
Apr 14, 2014
107
52
istanbul
Whats Working ?
Hardware acceleration
Wifi
Bluetooth
Vibration
Audio
MTP and Mass Storage modes
Doze
Offline charging
RIL (Calls,Msg)
Operator name
GPS
Hotspot

Known issues:
Fingerprint Scanner
Camera(install camera fix patch with twrp for solve problem)
Rotation Sensor (work partially)
SD-Card
Calls


Source code: https://github.com/LineageOS
Device Tree: https://github.com/SamarV-121/android_device_xiaomi_nikel

Credit & Thanks to :
(SamarV-121, Team_MAD , Verevka , sandstranger , vgdn1942 , DeckerSU , Danielhk , jonnyxda , Moyster , adrianom)

ROM OS Version: 7.1.2
ROM Kernel : Linux 3.18.x


Changelog: 2017-07-30
Calls [RIL] Fixed
Some Improvements

2017-08-12
Changelog:

Data Fixed
Add AGPS
Fix power off Alarm
Fix Traffic counter
Optimization of battery consumption and performance
Update sources

********Do Wipe System and Data with Twrp and install Rom*********
Download Link :
https://www.androidfilehost.com/?fid=961840155545588213
Camera fix patch : https://www.androidfilehost.com/?fid=745425885120756749

Video From Rom : https://www.youtube.com/watch?v=BTs-ELobJOQ

Source : http://en.miui.com/thread-723898-1-1.html

Note: i am not tested this rom...
 

jellybean13

Senior Member
Aug 16, 2017
64
43
Linyi
Bug: Could not play *.flac audios
This bug caused by mediacodec, especially MTKOMX. Only MediaTek Android 6.0 (author: cofface) has not have this bug so far.
 

Attachments

  • Screenshot_20180308-224421.jpg
    Screenshot_20180308-224421.jpg
    184.7 KB · Views: 5,866

jellybean13

Senior Member
Aug 16, 2017
64
43
Linyi
This file may help you fix "Could not detect SD card" bug.

WARNING: You need to add a code which can create /nvcfg in /init.mt6797.rc
 

Attachments

  • fstab.mt6797.zip
    760 bytes · Views: 889

jellybean13

Senior Member
Aug 16, 2017
64
43
Linyi
For fingerprint sensor and screen rotation, you may add some vendor blobs such as lib_fpc_tac_shared.so (/system/lib)(/system/lib64). Then you need to add some codes in /init.project.rc .

Here are some files unpacked from MediaTek AOSP Android 6.0 (MRA58K).

WARNING: DO NOT directly copy /init.project.rc, otherwise GSM baseband and CDMA baseband will not be loaded such as in this picture.
 

Attachments

  • boot_nikel_aosp.zip
    9.5 MB · Views: 834
  • 6662cc0b808c75b2.png
    6662cc0b808c75b2.png
    123.2 KB · Views: 4,103
Last edited:

jellybean13

Senior Member
Aug 16, 2017
64
43
Linyi
This device (nikel) has two basebands rather than a baseband. It means that you need to add some settings which is about CDMA baseband.

This screenshot comes from MediaTek AOSP Android 6.0 (MRA58K).
 

Attachments

  • DeviceInfoSettingsExts.zip
    2.6 KB · Views: 352
  • src-Settings-MT6797.zip
    215.3 KB · Views: 380
  • Screenshot_20180308-232628.png
    Screenshot_20180308-232628.png
    126.4 KB · Views: 4,397
Last edited:

azeredo21

Member
Feb 21, 2015
41
14
35
rio de janeiro
it would not be possible to correct these errors ... I wanted so much to use a custom Rom in my redmi

Enviado de meu Redmi Note 4 usando Tapatalk
 

jellybean13

Senior Member
Aug 16, 2017
64
43
Linyi
can we port rom from custom rom vernee apollo lite which have helio x20 processor too?

Yes, we can. But be careful especially kernel version. If you port a wrong kernel, this device will bootloop (Logo (about 1s)>reboot>Logo (about 1s)>reboot>...).

Kernel version (nikel): 3.18.22+
Kernel version (Vernee Apollo Lite): 3.18.22/3.18.35/3.18.9x ...
 
  • Like
Reactions: Trojanovsky

canaryfire

New member
Jul 18, 2017
2
0
For fingerprint sensor and screen rotation, you may add some vendor blobs such as lib_fpc_tac_shared.so (/system/lib)(/system/lib64). Then you need to add some codes in /init.project.rc .

Here are some files unpacked from MediaTek AOSP Android 6.0 (MRA58K).

WARNING: DO NOT directly copy /init.project.rc, otherwise GSM baseband and CDMA baseband will not be loaded such as in this picture.
hey, do you mind clarifying what 'codes' to add to /init.project.rc? Also, I can't figure out how to unpack the files from the .img you attached. Thanks :)
 

jellybean13

Senior Member
Aug 16, 2017
64
43
Linyi

Attachments

  • Screenshot_20180416-125406.png
    Screenshot_20180416-125406.png
    221.8 KB · Views: 604

canaryfire

New member
Jul 18, 2017
2
0
ImageFactory can unpack boot.img
Thanks for the help so far! I got the libs from ranstar74's build and moved them to /system/lib and /system/lib64, but it seems that /init.project.rc does not exist after install.. I tried creating it with the codes that you showed and I tried putting those codes in init.rc and the fingerprint sensor still doesn't work. There is meta_init.project.rc, but it seems to be different, would that work?
 

ranstar

New member
Feb 27, 2017
3
1
Thanks for the help so far! I got the libs from ranstar74's build and moved them to /system/lib and /system/lib64, but it seems that /init.project.rc does not exist after install.. I tried creating it with the codes that you showed and I tried putting those codes in init.rc and the fingerprint sensor still doesn't work. There is meta_init.project.rc, but it seems to be different, would that work?

You'll never get scanner working on 7.0+ because theres no sources of fingerprint hal,you can get it work only in 6.0 based roms.Same for camera btw...
 

jellybean13

Senior Member
Aug 16, 2017
64
43
Linyi
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    Whats Working ?
    Hardware acceleration
    Wifi
    Bluetooth
    Vibration
    Audio
    MTP and Mass Storage modes
    Doze
    Offline charging
    RIL (Calls,Msg)
    Operator name
    GPS
    Hotspot

    Known issues:
    Fingerprint Scanner
    Camera(install camera fix patch with twrp for solve problem)
    Rotation Sensor (work partially)
    SD-Card
    Calls


    Source code: https://github.com/LineageOS
    Device Tree: https://github.com/SamarV-121/android_device_xiaomi_nikel

    Credit & Thanks to :
    (SamarV-121, Team_MAD , Verevka , sandstranger , vgdn1942 , DeckerSU , Danielhk , jonnyxda , Moyster , adrianom)

    ROM OS Version: 7.1.2
    ROM Kernel : Linux 3.18.x


    Changelog: 2017-07-30
    Calls [RIL] Fixed
    Some Improvements

    2017-08-12
    Changelog:

    Data Fixed
    Add AGPS
    Fix power off Alarm
    Fix Traffic counter
    Optimization of battery consumption and performance
    Update sources

    ********Do Wipe System and Data with Twrp and install Rom*********
    Download Link :
    https://www.androidfilehost.com/?fid=961840155545588213
    Camera fix patch : https://www.androidfilehost.com/?fid=745425885120756749

    Video From Rom : https://www.youtube.com/watch?v=BTs-ELobJOQ

    Source : http://en.miui.com/thread-723898-1-1.html

    Note: i am not tested this rom...
    3
    FIX: Fix OMX problems (Lineage OS 14.1 ONLY)
    Please replace "/system/etc/media_codecs.xml" with this one (in appendices), and then, reboot device and enjoy.
    Before (Screenshot_20180731-193049.png):
    OMX (MediaTek) is not working (Could not play FLAC audios).
    After (Screenshot_20180801-161529.png):
    OMX (FFmpeg) is working.

    That's all. Thank you.

    Sent from my nikel using XDA Labs
    2
    Bug: Could not play *.flac audios
    This bug caused by mediacodec, especially MTKOMX. Only MediaTek Android 6.0 (author: cofface) has not have this bug so far.
    2
    This file may help you fix "Could not detect SD card" bug.

    WARNING: You need to add a code which can create /nvcfg in /init.mt6797.rc
    2
    This device (nikel) has two basebands rather than a baseband. It means that you need to add some settings which is about CDMA baseband.

    This screenshot comes from MediaTek AOSP Android 6.0 (MRA58K).