yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Nikish21:
Thanks For Your Recommendation. But Google Camera with AUTO HDR+ Port and ZSL is the Best Camera App For Redmi Note 4 For Auto Mode. I believe If You Would Successfully Make The Mod Fully Stable To Use in 4:3 Frame without Frame Lag In Stock MIUI camera app then this would definitely fix auto mode in Other Camera App too. Google Camera Clicks Some Great Picture Without Manual Mode Since Everytime it would not be possible to Click Photos In Manual Mode.

Also Thanks I Could Take Some "Stunning Night photography using Long Exposure.

In The Photos You Clicked Can You Share What Configuration was used for ISO, Exposure Time,WB and Focus!!:D:D:o:o

In Short, You Have Really Succeeded And Very Close To Make This Mod Fully Stable Once The Frame Lag in 4:9 Is Fixed. :good::good::good::good:

Thanks For You Contribution and Help.:good::good::good::laugh::laugh::laugh:
[Xiaomi Redmi Note 4 Guides, News, & Discussion] KAPITAN_DUPA:
Any news about Samsung sensor?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
Need someone for testing.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] andreymixmax:
Can you support for omnivision sensor cam? That's a problem until now
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Glembozt:
Upload here, i will try your samsung camera mod, alpha/beta/whatever just upload here
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Loki.A:
Could you make a mod for s5k3p3_f3p3man based on s5k3p3_omida01 mod ?. Someone made the mod for omida01 sensor so that the maximum exposure time of the devices with this sensor is upto 4s.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
Which device?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Loki.A:
Redmi note 3 pro?

P/s: tweak for s5k3p3_omida01 sensor upload(.)mobi/189726/yQZsBcF
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Grellenort:
Its redmi note 4 section, not rn3.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ThisIsRipunjay:
Wow Bro.. Working.. But Camera Lags After Opening, But After Switching To Manual, The Lag Goes Away..! What About 5 Min Exposure Time? Will It Be Possible?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Loki.A:
I know, but I think he did the mod based on mi4c mod so I just hope that he can help me if he has free time.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
5 min will be too much for our device.

i have a 40s exposure time mod.

want to test it?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ThisIsRipunjay:
Yes Bro.. Why Not..!
[Xiaomi Redmi Note 4 Guides, News, & Discussion] tan916040008:
what about s5k3l8 sensor? just wanna have a try , thanks
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
You are on which rom?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] tan916040008:
miui 9
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
Pm me
[Xiaomi Redmi Note 4 Guides, News, & Discussion] qun:
Please upload Samsung version
[Xiaomi Redmi Note 4 Guides, News, & Discussion] rohan2395:
It's working here on RR 5.8 great. One thing i noticed after using it is that the size of the image comes out to be lower than before. Does this mod change the output quality of the image or something?. I don't have any lags while using the 16s mod. I'm using the motorola camera.

I tried the 8s mod first but it was laggy for me. Then i tried the 16s mod and no lags.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Jimmyz0r:
[MENTION=7723821]kashyapshashankv[/MENTION] Dude anything on this? ^^
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
P.M.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] FMAranda:
Yes, please [emoji4]

Enviado de meu Redmi Note 4 usando Tapatalk
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Jimmyz0r:
Sent PM to you.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] narugan26:
How to get this to work? Im using paranoid android. And installed this using magisk module.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
Use open camera or any other camera with manual function.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] narugan26:
I tried that and the one plus camera and the moto cam. Still the maximum us 0.6 or 0.7 sec
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
Then your phone is not having imx258 sensor. Stay tuned i will soon release for samsung and omnivision sensors.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] narugan26:
Ok thank you so much op :)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ne0t:
A friendly suggestion..

It's better to add the source if you take someone's work, it's clear that this thread took the work of mr HZQ from Miui forum (the flashable zip), not directly, but this thread took from someone here at XDA (https://xdaforums.com/showpost.php?p=73698848&postcount=63)

who took the work directly from MIUI forum : http://en.miui.com/thread-551251-1-1.html

as Mr HZQ [MENTION=2780045]miui[/MENTION] Forum said it's ok to take his work and share but he req to put a link to his thread at MIUI forum.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] RevanEphys:
This thread is worth keeping though i have samsung sensor but i'm pretty sure it doesn't stop there , imma keep looking at the dev updates , keep up the good work :good:
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ne0t:
Agree, unlike the other one (https://xdaforums.com/redmi-note-4/how-to/guide-how-to-camera-mod-hdr-4k-wideo-t3639058), this thread add tweak for the long exposure setting, maybe just put a link to the original camera mod in MIUI Forum (which activates the working manual mode, and some others feats) and make a flashable zip for the long exposure mod.

This way, no need to keep 'copying' everytime the author of that camera mod in MIUI forum update his camera mod.

Just an idea....
[Xiaomi Redmi Note 4 Guides, News, & Discussion] RevanEphys:
That's a different problem but i'm not going to talk about it anyways ;)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
I don't have any problem in giving credits but few things i want to tell you....

1. I have modified the mido.xml file on my own and was only using that script file which later i removed and changed it to my own script.

2. I have uploaded it for miui9 before mr HZQ have even started support for miui 9.

Hope Its OK for you.:)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ne0t:
I can tell you exactly why i'm so sure these 'MIUI 8 tweak' and 'MIUI 9 tweak' are EXACTLY from mr HZQ work... (the previous 'copier' in this xda forum (https://xdaforums.com/showpost.php?p=73698848&postcount=63) who took mr HZQ's work and do nothing but changed some names and shared as it was his work only move about 6 lines from top to somewhere in the lower part of these file, the rest of these files are EXACTLY the same.. so does your tweak files here since you took it from that xda thread), want me to point that here?

Mr HZQ supporting MIUI 9 posts : https://ibb.co/ghQWUF

If you check the date in these posts in the pict above, you will see that mr HZQ started supporting MIUI 9 right after it got released.. and it's still in July 2017...this thread started when?

I don't have problem here, really, except that friendly suggestion to respect other's work, since unlike other you actually do and add something here the Long Exposure mod..
[Xiaomi Redmi Note 4 Guides, News, & Discussion] qun:
Please don't fight. Let's unite together and release a samsung sensor version
[Xiaomi Redmi Note 4 Guides, News, & Discussion] leekoer:
Word! :laugh:
[Xiaomi Redmi Note 4 Guides, News, & Discussion] RevanEphys:
I'm not really into fighting but this is worth the wait
[Xiaomi Redmi Note 4 Guides, News, & Discussion] iruiz2:
How can I know my camera sensor? I'm on Resurrection Remix and I can't find "version information" anywhere...
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ne0t:
I'm not trying to pick a fight haha just think that we should always respect other's work, they put a lot of times into that and we should respect that.

I've checked these miui 8 & 9 tweak files here and compare to mr HZQ's work, the only thing that different is these tweak files here move 6 lines from the top to some other part of the original mr HZQ's work, the rest if EXACTLY the same, no other additional or reduced lines.

There are many new lines in the Device properties files

that are not there in the original device properties file

from RN4's ROM, and mr HZQ told that he got these lines ('new features') from more expensive Xiaomi devices like Mi 5, Mi Note 2, etc, so he compared a lot of ROMs and tried which can be used in these redmi series devices.. that's how he came out with his mod.

So it's really not possible if these tweak files here are original the author's work,

what is the chance someone took the original device properties file, then add exactly the same new lines and exactly at the same position (these new lines are not in one single position)

, and then some values for the existing lines changed to the exactly same number (like 100, or 15...).

So You see the problem is not i'm trying to pick a fight, but the problem lies on the author not admitting these tweak files are actually 100% someone else's work.

---------- Post added at 06:42 AM ---------- Previous post was at 06:23 AM ----------

btw, here is the original post from mr HZQ at MIUI Forum regarding this matter (http://en.miui.com/forum.php?mod=viewthread&tid=748682&page=29#pid16352806) :
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
Update

32s long exposure

Use in 32s Mode only.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Flash mord:
Please upload the Samsung version

There are a lot of people willing to test it and give feedback
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
i also want to release for samsung as well as omnivision sensor but i am not able to acheive long exposure(i acheives long exposure but the camera pictures are getting pink coloured) . I will need a physical device in order to make it possible.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] RevanEphys:
Hope you can get one soon man , we all supporting you for your amazing work
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Flash mord:
Keep up the great work man

We will always support you in this
[Xiaomi Redmi Note 4 Guides, News, & Discussion] alperenadalar:
I hope you will release samsung version soon :)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] YashrajS:
Hey !!! Please help me !!!

I tried this mod .It did'nt worked for me... instead It Crashed My Camera....My Camera Is Not Starting Even After Using the Original libmmcamera_img...... File.

I FORGET TO BACKUP!

PLEASE HELP ME ANYONE....!!?

CAN YOU UPLOAD YOUR LIB FOLDER FOR ME... ?

ANYONE?

PLEASE FO SO OTHERWISE I WILL HAVE FORMAT AND FLASH NEW ROM TO MY PHONE......

PLEASE HELP!!!!
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Nikish21:
I too got same problem first time I flashed it about 1 month ago. Backup of original lib is there in OP. Simply replace with the original one and you are good to go.

Don't worry. It should solve.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Flash mord:
The original lib file is on the start of the post
[Xiaomi Redmi Note 4 Guides, News, & Discussion] AbhishekJi111:
It is possible or not changing camera sensor to my old rn4 to new rn4

I have 2 redmi note 4 one I buy in March but unfortunately its 100% damage...so I buy second redmi note 4 who comes with Samsung camera sensor...so I am not satisfied with Samsung camera sensor pictures specially when I zoom any object pictures is not good...so I open my new rn 4 and remove the camera and inserted Sony imx258 camera but when I open camera app its says error... So I inserted Samsung camera again...so I wanna know any method is possible if I root my phone and change my Samsung camera sensor to Sony.the Sony camera sensor form old rn 4 who comes with Sony.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
Try to flash stock rom using edl mode. Maybe your camera will start working with imx258 lens
[Xiaomi Redmi Note 4 Guides, News, & Discussion] AbhishekJi111:
What is edl mode bro...???
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
Emergency download mode.it is recommended to unlock bootloader first before using edl mode(or one can say u can't access edl mode without unlocking bootloader).Since i don't recommend test point method ,i will recommend you to unlock bootloader then boot in edl mode by using fastboot command.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] AbhishekJi111:
I have already unlock my bootloader... Bro how to go edl mode and you are sure this method is working.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
For edl mode go to fastboot mode and give command fastboot oem-edl and you will see that your phone will have a red blinking light. Now you are ready to flash fastboot rom usin Miflash tool.

It might work. There is 50-50 chance that it will work.So give it a try.also make sure that you backup your data before flashing via fastboot.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Flash mord:
Any update on the Samsung camera ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] AbhishekJi111:
Kashyap bro edl mode is not opening i am give command but it syas something like internal or external type massage.... But i flash the rom in fastboot mode...but camera still says error with sony imx 258.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
Then your camera sensor is also damaged.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] AbhishekJi111:
Okk thanks for help.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] KAPITAN_DUPA:
Samsung version pls
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Adarsh Hegde:
Is there anything similar is there for redmi note 3 sensor?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] :
do these rear camera sensors varry ??
[Xiaomi Redmi Note 4 Guides, News, & Discussion] cannone94:
This 3D is discontinued?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] lampros00b:
are you alive ?if yes, can i test the omnivision sensor mod?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] lampros00b:
So after weeks of searching for long exposure for omnivision sensor on redmi note4,i sadly haven't found anything....so you are my last hope...but lately I've started to believe that you gave up on this mod and moved on with your life...at least leave some instructions for someone else to start were you left please
[Xiaomi Redmi Note 4 Guides, News, & Discussion] krienter:
my phone is Mi A1 .

this camera sensor is Omnivision (ov12a10) ..

it's manual camera mode exposure time very short (1/15)

how use it long exposure time ??
[Xiaomi Redmi Note 4 Guides, News, & Discussion] andreymixmax:
Android one , Xiaomi using omnivision sensor cam? very regrettable. should use sony IMX
[Xiaomi Redmi Note 4 Guides, News, & Discussion] asusm930:
Not possible :( only sony sensor
[Xiaomi Redmi Note 4 Guides, News, & Discussion] David_#27:
I tested it on Resurrection Remix, but when opening camera app, it gets too laggy!!!
[Xiaomi Redmi Note 4 Guides, News, & Discussion] cannone94:
We can close this tread, no answer from dev
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
I was not able to find any device with samsung or omnivision sensor around me, But now i have ordered both samsung and omnivision sensor for my redmi note 4 so that i can work on long exposure. I will start working as soon as i receive those sensors.

Yes I think so.

I have tried testing with many people but no success till now. Maybe within a span of 3-4 week you can find mod for your camera sensor also.

Brother I am a student , not a developer. I have to manage my academics and my work . So it may happen that i may not be available for Few weeks.

Anyway you guys can always connect to me on Telegram on [MENTION=7723821]kashyapshashankv[/MENTION] or on my facebook/Instagram. I will be happy to reply to you.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] lampros00b:
So happy to hear from you! Honestly i thought of asking you about your progress on your Instagram but then i thought how weird and creepy that would be..Any ways ,i wish you luck but i still dont believe that long exposure is possible... I hope you prove me wrong!Thank you for your work,in advance.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Rocky:
Need this mod for omnivision sensor.As there's a huge number of people having the omnivision sensor
[Xiaomi Redmi Note 4 Guides, News, & Discussion] rayhan4200:
brah,please do something for samsung sensor.! :(
[Xiaomi Redmi Note 4 Guides, News, & Discussion] tonibm19:
How to check camera sensor if on LOS 14.1?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] andreymixmax:
Sensor
[Xiaomi Redmi Note 4 Guides, News, & Discussion] lampros00b:
any updates?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kashyapshashankv:
Haven't Received the sensors yet!:rolleyes:
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Rocky:
Any update for omnivision?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] anooj21m:
how to check in resurrection remix?

ive pasted the file 32s and the miui port cam doesnt show anything after 1/2s

(tried 16s file as well... same result :( )

do we need to have a specific cam app?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Wahidussilmi:
How about xiaomi note 4x

How about front camera xiaomi note 4x (qtech_ov13855)?

Please help me about this
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Rocky:
Maybe we won't get any support for omnivision
[Xiaomi Redmi Note 4 Guides, News, & Discussion] anooj21m:
Have anyone with resurrection or any lineage os rom tried this?

which camera app did u see the exposure control,can u please send the link ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] icant:
This working for Nikel ??
[Xiaomi Redmi Note 4 Guides, News, & Discussion] nambont12:
Got the same problem, I even tried 8s file. I'm on RR 8.5.8 final. Please help
[Xiaomi Redmi Note 4 Guides, News, & Discussion] antony991:
It does not work for my redmi note 4x MIDO with epic rom and miui 9. Why?

After replacing the "libmmcamera_imx258_ofilm.so" file and restarting the phone, the camera will no longer start.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] lampros00b:
how's progress going?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] samuniv:
The exposure length works like a charm. thanks. :good: but the app is quiet a bit laggy when in normal mode. Am I the only one with the issue and is there any fix for it? Thanks

RN4 sd - miui 9 - 7.12.28
[Xiaomi Redmi Note 4 Guides, News, & Discussion] adundut:
Lag

when opening the camera with the automatic mode really lag
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Aniruddhlr:
I'm on RR final built. I tried this port. It works on miui ported camera. But really laggy in normal mode. Google camera won't support this.

If u want link then here it is for miui camera(twrp)

https://drive.google.com/file/d/0B8rJ9JYjI_7ETHRYc0xCTk9oZ3M/view?usp=drivesdk
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Herceg89:
Hello guys, first thank you this is great stuff.

I have question i use 16s exposure on my RN4X because of auto mode, does it work auto mode on 32s, ofc i change the frame from 4:3 to 16:9 and auto working without problem, so does it work with 32s exposure?

And what about magisk, is it posible if i flash magisk to disable mod when i want from magisk?

Seems that i go back to old, google camera is laggy with this mod, to bad i was just think that everything should work fine :(
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Herceg89:
On my RN4X can't capture picture on 2s and 4s, error "can't connect to camera", anybody with the same issue?

By the way, i'm on xiaomi.eu Rom, do i need to flash tweak for MIUI or it is just for stock Rom?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] grandgreed:
Any good news ? Author where are you bro ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Herceg89:
I'm waiting to with unpatient, and like i said now for me it's not working 2 and 4 sec exposure on 16 and 32 mod, on 8 it working but when i replace to 8s there is lag even in manual mode, this feature is so good and interesting just if they could improve it. I hope so.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] vishal thakar:
Are you working on Samsung sensor ?

When you release Samsung sensor lib file?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] broadways:
im currently on aospextended oreo rom

how to install miui 9 camera app and this mod?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] broadways:
Can you guide me

I'm on custom oreo rom. Google camera works for me. Im trying to flash this long exp mod

So I:

1) Flash your modded twrp zip

2) Copy ofilm_imx258 mod(32s) to /system/vendor/lib/ with rw-r--r-- permission

Is this it?

Do I need Camera Tweak MIUI8 /9 ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Herceg89:
Google cam works but when u replace file for long exp, i think that will be lagy, i have google cam to, and after replace file there is lag.

You just need to replace file in es file explorer, i think that you don't need tweak.

So before you replace take a backup of original file ...ofilm.so, rename it in ...ofilm.sobak and than replace moded file, set permision for original file to rw-r--r--, reboot and enjoy, like i said there is lag that is bad thing and google cam to lags so, when i want to use it i use this procedure, or enable 8s mod via magisk module, just if they make some improvements it would be so great feature.

And this zip file from broadways i don't know is it moded or original miui cam.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] broadways:
In stock miui firmware, there is a mido.xml mod avail. Just changing the "manual" tag to true enables manual and long exposure mode on the phone

See this

Written tutorial

https://www.techyardweb.com/single-...K-Recording-in-Redmi-Note-4-Stock-Camera-ROOT

Video tutorial

https://youtu.be/EBCXAsTn2y0

Can we do the same on custom Oreo roms?

If we can port the stock camera here and change these tags, do you think, it will work?

Can anyone check and confirm this?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Herceg89:
So that zip file that you post earlier is flash of miui cam, and i think that will work, there is apk with enabled all manual settings on miui forum somebody made it, you can try to search.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] broadways:
That's not my zip. I simply quoted someone posts.

You can download the ported miui stock camera from the app section. Open the zip and take a look at the mido.xml file. Most tags have been removed by the porter
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Herceg89:
So we can install from this MIUI camera on custom roms, but anyway we need to replace files for long exposure?

I really hope that devs soon give us some improvements.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] broadways:
Yes, install the zip from twrp and after reboot, go to settings > apps > permissions and enable all. Else it will give "can't connect to camera error".

The mido.xml tag modding method will not work on the ported miui camera because the tag for manual mode has been removed

The file replace method in the OP of this thread is an alternative method to get long exposure but users claim it effects the live preview mode as it becomes laggy.

_______

My recommendation would be to go back to miui 9 stock ROM and root it again. Then root it and edit the tags in mido.xml file to get manual access mode. Then install twrp in /recovery partition and use that to make backup of /system and /boot partitions. Then install custom ROM.

This way you can switch between roms easily. On my old phone(meizu), I only liked to use manual long exposure mode when I'm on a hill near my house at night overlooking the city. I place my phone between rocks and get a clean shot of the views.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kamil79123:
Sony sensor only?