yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] scricccettoni:
I've made some failed test in a different way.

a magisk module with libs and libchromatixs from mi max 3 and edited build.prop to be nitrogen instead of whyred ...

resulted in some more functions but still no 32s in manual mode.

Where is this driver? kernel?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] robertlindz:
16s ported in fb group but very lagging n freeze,only manual function work n auto mode given force closed. I think i surrend ported this LE
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
Don't need to modify build.prop. You just modify libmmcamera_whyred_s5k2l7_ofilm_cn_i.so

And you can't direct replace the file, this causing camera not working
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] rocker00:
Hi man,

Same here, some tests also without success!

Noway without decompiling the libs, these libs are the deal:

libmmcamera_whyred_s5k2l7_ofilm_cn_i.so for the global variant

libmmcamera_whyred_imx486_ofilm_global_i.so for the Indian variant

libmmcamera2_mct.so and maybe the driver which is camera.sdm660.so (located on vendor/lib/hw)

On Mi Max 3 the same except the first one which is libmmcamera_nitrogen_s5k2l7_ofilm.so and nothing for imx486

I saw many threads for various devices including Xiaomi devices successfully managed to do it and i remember one of the developers said it was just about two lines of hex codes!
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] scricccettoni:
Since I can't(don't know how to) modify it i did that way.

The ofilm .so for nitrogen should be already ok without editing if there is 32s shutter on that device.

I'll try again by adding the driver too from nitrogen /vendor/hw/
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Daimler_Benz:
User kashyapshashankv made a mod 32 seconds for all Redmi Note 4 and Redmi Note 4X user. can we ask him?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] haigal:
I contacted him in this regard via XDA he still hasn't replied :(
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
You can try to ask defcomg, he made so many camera mods

---------- Post added at 22:46 ---------- Previous post was at 22:43 ----------

Try to modify chromatix or mmcamera, if success, even 64s or more exposure times can be added
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Daimler_Benz:
where can I find chromatix or mmcamera?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] scricccettoni:
I've tried to open them with some hex editor (that's the best I can do :p ) but found nothing easy to understand.

[MENTION=9488980]Daimler_Benz[/MENTION]

they are in /vendor/lib/
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
You can use hex workshop with some struct files, which can be found github. It's not easy bro:)
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] alungstiff:
Maybe you can try edit ramdisk like maxpro m1 mod
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
Not ramdisk, it's camera lib. And it's also defcomg's help, we need him too.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] alungstiff:
This is file mod long exposure for max pro m1

Maybe we can analyze how mod shutter time

Sorry my bad english
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
This is a kernel
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Daimler_Benz:
here are the libraries from mi max 3, the same processor and rear cameras Samsung s5k2l7, s5k5e8
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Daimler_Benz:
Well, any ideas?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] jishnuv56:
Can anyone make it?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] insetta:
We need this.

I would literally pay for long exposure times.

But why don't do like 30min max exp time for manual? :D
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] dinci:
Hi guys,

I have redmi 6 pro and im disappointed with camera, my wife have redmi note 5 and it is having much better photos, specially in low light. I wanted to try to copy camera lib files in my phone. Do you have idea, what can i do?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] haigal:
True someone needs to make this mod asap. A camera phone without long exposure is just sad af.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
I noticed that RN5 cam patch already changed exposure time from 530ms to 332ms, this fix exposure bug. In another way, they can change to higher time
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] scricccettoni:
what exposure bug?

about shutter time.

I've decompressed with apktool the MIUI Camera and found inside smali/con/android/camera/data/data/config/ComponentManullyET.smali

.line 79
.local v6, "resultItems":Ljava/util/List;, "Ljava/util/List<Lcom/android/camera/data/data/ComponentDataItem;>;"
sget-boolean v7, Lcom/android/camera/Device;->IS_MI4:Z

if-eqz v7, :cond_1

const v4, 0x1e8480
......

:cond_1
invoke-static {}, Lcom/android/camera/CameraSettings;->getMaxExposureTimes()I

move-result v4

.restart local v4 # "maxExposure":I

I've changed IS_MI4:Z to IS_E7S:Z and got shown exposure time to 2s

0x1e8480 is 2000000 (2s in milliseconds)

tried to change to 16s (0xf42400) but not changes in camera still 2s max

all that said. if 2s is set pics are still take at 1/3

in smali/com/android/camera/data/data/running/DataItemRunning.smali

.method private reConfigExposureTimeRange(Landroid/hardware/Camera$Parameters;)V
.locals 2
.param p1, "parameters" # Landroid/hardware/Camera$Parameters;

.prologue
.line 233
const-string/jumbo v0, "pref_camera_max_exposure_key"

invoke-static {}, Lcom/android/camera/hardware/CameraHardwareProxy;->getDeviceProxy()Lcom/android/camera/hardware/CameraHardwareProxy;

move-result-object v1

invoke-virtual {v1, p1}, Lcom/android/camera/hardware/CameraHardwareProxy;->getMaxExposureTimeValue(Landroid/hardware/Camera$Parameters;)I

move-result v1

invoke-virtual {p0, v0, v1}, Lcom/android/camera/data/data/runing/DataItemRunning;->putInt(Ljava/lang/String;I)Lcom/android/camera/data/provider/DataProvider$ProviderEditor;

.line 235
const-string/jumbo v0, "pref_camera_min_exposure_key"

invoke-static {}, Lcom/android/camera/hardware/CameraHardwareProxy;->getDeviceProxy()Lcom/android/camera/hardware/CameraHardwareProxy;

move-result-object v1

invoke-virtual {v1, p1}, Lcom/android/camera/hardware/CameraHardwareProxy;->getMinExposureTimeValue(Landroid/hardware/Camera$Parameters;)I

move-result v1

invoke-virtual {p0, v0, v1}, Lcom/android/camera/data/data/runing/DataItemRunning;->putInt(Ljava/lang/String;I)Lcom/android/camera/data/provider/DataProvider$ProviderEditor;

.line 237
return-void
.end method

I don't know were it looks for this: Landroid/hardware/Camera$Parameters
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Daimler_Benz:
here is apk of mi max 3
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
It's driver's limitation bro. We need modify mmcamera
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] scricccettoni:
I've managed to bypass max exposure shown on camera...

Pic are still taken at 1/3 max but for the camera part at least I'm done
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Daimler_Benz:
Wow, you can even choose a camera module) We are waiting for your great success!
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
Well, I had modify the module. Max exposure time can be 34806s. But there is no difference with 1/2s. May we need also modify chromatx preview and snapshot
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] jishnuv56:
is this development for Redmi note 5 pro(indian version) (sony sensor) ?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] scricccettoni:
seems that there is already for sony sensor on telegram
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] jishnuv56:
you mean a working mod? can you give me link for that?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] id74em8:
Do you have the source link ?

Please share here.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
Anyone know how to modify camera i2c register?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] pradeepvg:
redmi 6a supports shutter speed upto 1/2 . officially
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
There is no long exposure for redmi. And redmi note 6 only 1/8s max
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] id74em8:
My mi4 (cancro) had support up to 32s!
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
Because it's mi not redmi
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] airtelmaza:
Found in telegram group
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Hashimzia:
Send links bro
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] pradeepvg:
libmmcamera_whyred_).rar

https://drive.google.com/open?id=1KSzx2JSldb5k1Xy3T3775qhQk0EJjc3J

ashamu2-32s.apk

https://drive.google.com/open?id=1K_X-e5YFkV2X_YL5KS62KFQvPWifgf9R
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] id74em8:
I'll be damned. It works. Although I haven't tested at night yet.

But I can't tell what setting I'm using. The controls are everywhere.

And is this really using manual capture for 32sec?

If I set the settings at x3200, it takes the picture for about 9-11sec and then works on HDR.

Or is it electronically amplifying the exposure?

---------- Post added at 08:26 AM ---------- Previous post was at 07:46 AM ----------

can you share the group link? if not here, then in PM?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] airtelmaza:
My telegram number 9288558855
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Warrimonk:
I installed the APK (but didn't flash the patch because I am already using another patch) and the app seems to work pretty well. It isn't a 32 second capture but it is pretty long.

I compared it to Night Sight and it is close but not as bright as Night Sight. I might flash the patch and then update this post.

Also why the heck is the patch a RAR file. Are we in 2008?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] airtelmaza:
Are you using global varient. Not working in indan pro
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Warrimonk:
Yeah. 4/64 Global Version.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
Can you share the group?

---------- Post added at 19:48 ---------- Previous post was at 19:30 ----------

Works! But need waiting 10s to open camera. 10s exposure times in all the time, and the max exposure time still 1/2s showed in camera app
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] id74em8:
I'm not sure which variant I'm using. But I'm from India, so, I guess I'm using the Indian variant.

EDIT-

attached two pictures

"stock.jpg" [darker, noisier, using stock camera]

"x3200.jpg" [cleaner, brighter, using the modded camera, at x3200]

x3200 doesn't feel like 32sec exposure. My mi4 has proper 32sec shutter exposure, and it's a bit brighter.

added: "x3200-2"

The electronic noise reduction still leaves behind a vew spots, so although the exposure levels are comparable to that of 32sec, this has more noise.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] airtelmaza:
Your rom
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] id74em8:
LiquidRemix pie
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] haigal:
I tried to do this in note 5 pro Indian, just the Google cam seems to give long exposure support haven't tested fully though :) . Also I tried to replace the library file but couldn't find the library with the same name under vendor/lib64 instead it was located on system/vendor/lib . Where should I paste the library file and will it make any difference???
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
/vendor/lib/
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] haigal:
Also is this a true library modified long exposure or just electronic long exposure???

Also just tried the gcam after replacing the library file provided .earlier with the stock file I was getting a pretty good long exposured photo with the special gcam however after replacing the library file in vendor/lib , the gcam now crashes or takes normal photos . I'm confused af :(
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] id74em8:
If your system is treble-enabled, copy at vendor/lib64

If it's not, copy at system/vendor/lib64. I'd suggest taking backups and copying to both locations, and see if it works.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] evanlocked:
Its true long expo not electronic aperture ,its made by defcomg aka savitarZa, that libs file its an old test library ,glad if all of you can use it

Big thanks to him for made it happend

The only known bugs is viewfinder a lil bit laggy:)

---------- Post added at 08:18 AM ---------- Previous post was at 08:17 AM ----------

Put it on vendor/lib i made a mistakes while share it on telegram :)
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
But why they not share it:confused:
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] evanlocked:
Its a test modded lib and make for several tester only but naaah just use it atleast people who use rn5AI can enjoy the benefit ,thanks to him [MENTION=377973]defcomg[/MENTION]
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] SpyKnife:
is it possible now to have manual shutter in miui camera more than 1/2?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
Yes,big thanks to him. If there have any tutorial or something, so i can learn to modify the libs would be nice:)

---------- Post added at 23:09 ---------- Previous post was at 23:06 ----------

Of course, just wait the mod to be stable

---------- Post added at 23:10 ---------- Previous post was at 23:09 ----------

Of course, just wait the mod to be stable
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] id74em8:
The work done is phenomenal, but this is not true long exposure. The photos are being digitally exposure-amplified and denoised. Here are two examples. I've attached two photos:

"WHYRED" darker one, at x3200. You can clearly see the leftover noise particles.

"CANCRO", the brighter one, shot from my MI4 at 32s exposure and ISO 800. The noise is significantly lesser.

As you can see, true exposure at 32s will look like this, bright and clean.

True, this is just an alpha build. I hope the developer is able to further stabilize this.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] evanlocked:
Forgot to mention x900 is the best for ashamu32s my mistakes is that x3200 only works on other gcam test build not in ashamu gcam

Result down below pic taken with ashamu32s

To be honest cancro use imx sensors not skl sensor
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] evanlocked:
Another pic that taken with whyred old pic btw :) x900 for better light
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
That gcam set the exposure time to 1/2s, same as use other apps to set 1/2s. I'm already compared the libs, some i2c register were changed.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] id74em8:
Thank you for clearing that.

Actually, I'm kinda confused. I think my whyred has imx.

Here's the log-

:/ # dmesg | grep -i imx

[ 10.055812] msm_sensor_fill_eeprom_subdevid_by_name:239 Eeprom userspace probe for whyred_imx486_ofilm_global_i
[ 10.087677] whyred_imx486_ofilm_global_i probe succeeded
[ 10.139519] msm_sensor_fill_eeprom_subdevid_by_name:239 Eeprom userspace probe for whyred_imx376_ofilm_global_i
[ 10.140368] msm_sensor_fill_eeprom_subdevid_by_name:239 Eeprom userspace probe for whyred_imx376_ofilm_global_i
[ 10.165172] whyred_imx376_ofilm_global_i probe succeeded
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] evanlocked:
Check using exif tool ,mine got 5.6sec perframe ,if you still curious ask defcomg about the lib mod:)where he made a change on the lib for whyred
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] evanlocked:
Defcomg libs is for rn5ai global or china that use samsung sensor not pro variant aka indian variant that use sony sensor
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] id74em8:
Argh. Alright thanks
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
I mean the max exposure time shown in camera app
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] evanlocked:
Yeah on freedcam its show only 3sec max only on that gcam can reach 5s
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] scricccettoni:
Don't work stable on my side. I get sometimes some shot and after can't connect to camera error. Using the modded lib with the new miui cam apk modded to show 32s max
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] vigneshjack3:
Please share the link of modded library and miui camera which support 32 sec limit

Confirm whether it supports indian whyred with sony sensor imx486
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] scricccettoni:
The modded lib is the rar shared here. Modded camera will be in test releases of Miui Camera v2 PORT

And this lib is for Samsung sensors so will not change for India version
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] xdarkstar:
Has anyone tried for Indian variant.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] scricccettoni:
follow my miui port thread, I'll release a test version that will include it, but can't test on my global.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Daimler_Benz:
32 seconds exists?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] maha sandhy:
Goooooood
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Daimler_Benz:
what about 32 seconds? works?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Cirra92:
Have you tried this modded lib with Night Sight? Does it utilize the longer shutter speed properly? As far as I can see, Night Sight is going as low as 1/3s with stock lib file, so I'm curious whether this makes any difference.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] insetta:
Im studying google's HDR+ algorithm, wich is basically the foundation of NightSight.

And the way that works, is by taking multiple underexposed shots in a short period, aligning them, calculate noise pattern, then add the pictures and remove noise. Nigh Sight is kinda same, but with more refined noise patterns, and i think it is not doing underexposed samples, but rather rightly exposed ones with high ISO.

The thing is, the way that it works does not require long exposure times, as it will make your handheld photos blurry, wich can't be corrected in any ways.

So i think the only benefit when using Night Sight is only in the hardware, like bigger sensor, and/or lower f value.

I can only imagine how great photos an LG V40 could do with NightSight and its 1.5f lens...
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
You can imagine 32s exposure time with night sight, which is brighter?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] insetta:
With such high exp time, Night Sight doesn't make any sense.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Cirra92:
Yeah I understand how HDR+ works and what principle is behind Night Sight which is just a bunch of good (over)exposed shots with better noise reduction.

My question was whether Night Sight is taking advantage of longer shutter speed for some of the buffer shots or is it limited by algorithm due to absence of OIS.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] insetta:
It does not take advantage of longer exp times. Wich is in this case is a huge plus, because we have very limited shutter speeds :D

Basically, Nightsight won't be bettet on 32s exp time capable devices.

But! A proper 32s exp timed photo is waaaay better, if not handheld ofcourse.

---------- Post added at 02:47 PM ---------- Previous post was at 02:39 PM ----------

And its not because of the lack of OIS.

My friend has a Mi8, and a modded Gcam (BSG mods gcam specifically for Mi8), and the Nightsight shots are marginally better, if not better at all, than on my RN5.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Suyash3267:
Plz do something we have good hardware camera bust just need some permissions and manual controls
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Daimler_Benz:
is someone going to do 32 seconds?)
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Anon.Hacker47:
Any update on this?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] AFq44:
Any news? :(
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] brunoxavier_gp:
Link of telegram ?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] vin4ester15:
Any news about long exposure? :(
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] yunako:
Maybe you can take a look with this thread, hope that it can be ported to rn5 too.

https://xdaforums.com/redmi-note-4/how-to/guide-long-exposure-redmi-note-4-redmi-t3657343
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] InfernoCR:
Can someone port this to new camera blobs?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Nacho37:
+1
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] RussXDA:
Shutter Speed 4s

https://yadi.sk/d/YITbdWtXc94g8Q

Must have:

1) RN5 Glonal (China) | Miui 11 | Android 9

3) Miui Camera with manual settings or analog cameras (Gcam)

4) Root

Install:

1) Copy/Past in "vendor/lib" with replacement

2) rw-r-r for replaced files

Всё делаете на ваш страх и риск!
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] korisnik2007a:
I have tried it on Havoc 3.4 - works fine - I created a backup tho, just in case. First I copied the files, then restarted my device, then changed permissions, restarted again - works as advertised, 4s confirmed, both in MiCam and GCam! Thanks a bunch man!
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] gshumway:
Perfekt ???????
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] Developer.:
Can you make a tutorial how to modify the exposure time?I want to modify a version for Android 10:)
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] RussXDA:
Чтобы сделать урок мне нужно иметь Android 10, которого у меня нет и не будет на этом смартфоне!

Это не только моя заслуга, а точнее, это заслуга ещё одного человека с 4PDA. Извените.
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] fdarroyogo:
Works on MIUI 12 from xiaomi.eu?
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] MadK9:
Geez... I broke my camera!

I forgot I had an Magisk module for camera and copied this files as instructed... But no extra time had been added on manual mode instead I lost back camera (main camer) for panorama and manual mode!!! Only front camera working in this modes!

Tried to put old file back but still no luck...

I'm on stock miui 11 rooted with magisk android 9 global.

Can anybody share an ideea or solution to bring back main camera but still have those 4 second exposure time on manual?

Thanks in advance!

LE:

I just restored the old file. It seems the reason for this failure was not applying the correct permission. Simple as that!

But still doing this the correct way I cannot achieve those 4 sec exposure time...
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] RussXDA:
Remember rw-r-r

4sec only for new blob
[Xiaomi Redmi Note 5 Pro Themes, Apps, and Mods] MadK9:
Thanks. It doesn't matter anymore. I went custom with mi-globe rom.

---------- Post added at 06:40 AM ---------- Previous post was at 06:24 AM ----------

Thank you but I went custom... Chose mi-globe rom. Did not experiment anything yet because I got another phone as a gift... Redmi Note 8T. And Redmi Note 5 is taking a long nap for now.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] modit5:
:)

[youtube]TMJBdnzI8_U[/youtube]
[Samsung Galaxy J3 (2016) Questions & Answers] thevalos:
Hi, I've got a J320FN, and I rooted it. I installed CSC features expert, and enabled the call recording option.

It works as expected, but, in my other device sm-g935f, oreo, there's an option 'Auto Call Recording' - which basically auto-starts voice call recording as soon as the call is accepted. I don't get that option in this J320FN, in call settings (where it's found in sm-g935f), running Android 5.1.1.

Any help?
[Xiaomi Mi A2 / 6X Questions & Answers] afrasiabi:
Hi guys , I bought MI A2 because of Android one rom , I thought Android one phones will get "Day one" update , after Google releases the android p for pixel phones I realized that we will get the android P by end of the year. So I installed unofficial GSI android P to experience the new android.

now I want to re install the "Stock Android One" and I can't find downloadable image file.

does anyone know how can I restore "Android one ROM" ?