[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
Good News For all Redmi Note 4 and Redmi Note 4X user.​

This tweak can only be used in manual mode, and auto mode can also be used.​

This tweak tested on Working on MIUI and Other Custom Roms also.​

Samples in Attachment

To find out the check in the hardware info by pressing the kernel version several times and then select Version Information and check back_camera info then you will find some information like this.

​

Files

ofilm_imx258 mod(32s) -- AFH

ofilm_imx258 mod(16s) -- AFH

Magisk Module(8s) -- AFH

Camera Tweak MIUI9 -- AFH

Camera Tweak MIUI8 -- AFH

ofilm_imx258 mod(8s) -- AFH

ofilm_imx258 original -- AFH

V2.1

Long Exposure of 32s

V2

Long Exposure of 16s.

Video Fixed

Auto Mode working in camera frame of 16:9

No Frame lag in Manual Mode

Backup file lib before replaces file lib MOD.

Materials

- Root

- File Explorer

- File tweak camera

- TWRP recovery

1. Download camera tweak and flash it via twrp (Only if you are running MIUI).

2. Download file ofilm_imx258 mod(16s). And extract the file.

3. Open file explorer. Go to system/vendor/lib/ and replace the original file libmmcamera_imx258_ofilm.so with mod camera file.

4. Don't forget to original backup file.Sett permission rw-r--r--

5. Reboot

6. Launch camera.

7. Go to mode > select manual

8. Check your shutter speed and enjoy to capture light painting and light trails!!!

Magisk Module Soon...

V1.1

Since the Long exposure driver have some bugs such as Video not working and Low FPS in auto mode(I am working on these bugs).I am going to introduce you to the Magisk module for faster switching between original and modded driver.

Materials

- Root using Magisk.

- File tweak camera

- TWRP recovery

1. Download camera tweak and flash it via twrp (Only if you are running MIUI).

2. Download Magisk Module and install it via magisk Manager.

3. Reboot

4. Launch camera.

5. Go to mode > select manual

6. Check your shutter speed and enjoy to capture light painting and light trails!!!

7. If you want to revert back to original driver just disable this module from Magisk Manager.

V 1

Backup file lib before replaces file lib MOD.

Materials

- Root

- File Explorer

- File tweak camera

- TWRP recovery

1. Download camera tweak and flash it via twrp (Only if you are running MIUI).

2. Download file ofilm_imx258 mod. And extract the file.

3. Open file explorer. Go to system/vendor/lib/ and replace the original file libmmcamera_imx258_ofilm.so with mod camera file.

4. Don't forget to original backup file.Sett permission rw-r--r--

5. Reboot

6. Launch camera.

7. Go to mode > select manual

8. Check your shutter speed and enjoy to capture light painting and light trails!!!

This mod made by me, lots of sleepless nights has resulted in this,to say thank you help my by buying a cup of coffee.

PayPal:kashyapshashank@live.com:good:

This mod has been tested in my Redmi Note 4 uses ROM MIUI 9 7.8.10 Nougat, AOSP Extended 4.5, Lineage 14.1 and Resurrection Remix.​

BUGS

-Video recording does not works.(If you want to use than use original library).

-you tell me.

DON'T FORGET TO HIT THANKS IF YOU LIKE IT.:cool:​

Credits:

For miui tweak - http://en.miui.com/thread-551251-1-1.html

[MENTION=8094069]ne0t[/MENTION]