yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Lord Sithek:
Hello, I've tried some Pie roms for mido and I would like to use GCam. There is small number of versions working on my device (omnivision sensor, agrrrrrhhh…) but even if it works, the pink tint on the front camera stays despite my every effort… Anybody knows efficient way to get rid of it? The zip file from OP obviously doesn't work
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] TigerKing:
GCam 5 and GCam 6.1 versions are working

https://www.celsoazevedo.com/files/android/google-camera/dev-suggested/

Using this version for almost 1 year.. most of the features are working..

Arnova's v8.3b1

Also these 6.1 versions are working..

Arnova's Advanced 1.7

BSG V2e

Always try stable versions, new 6.2 versions not tested by me.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Lord Sithek:
Thanks. Recently I found this version on Telegram:

MGC_5.2.025_BSGBase_N4X_v1t

And it seems to be quite stable and no pink tint :victory:
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] ImQseft:
Would it help if I send you a logcat of the crash?
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] aabenroi:
I have mido with sony and omni...

In sony you can force hdr+ in any light condition without problem

In omni, it doesn't work on bright light... Its funny that low light picture is better than bright light.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
No it wouldn't help. Sorry I'm not a developer so I can't do anything about the crashes.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] fatfoot:
My Omni works great with HDR+ in good light on HBL64 gcam with stock library. And that's completely unclear, why it crashes or freezes for other guys?
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
Cause HDR+ is set to auto by default. The app checks the lighting condition before taking a shot and automatically turns off HDR+ when lighting condition is good.

Here's a good way to test it: Set HDR+ to enhanced and it will force HDR+ to always ON. Take a direct shot of a white light bulb (while it's turned on obviously) and you'll see that the shutter button gets stuck and not respond. Restarting the app is the only way to fix it.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] fatfoot:
No, it isn't, I need HDR+ so I always set it to Enhanced to make HDR+ forcibly anyway.

And my gcam really makes it in good light, with the capture cycle and photo processing afterwards.

---------- Post added at 09:45 AM ---------- Previous post was at 09:42 AM ----------

No, you may go to frontal or to video, or to settings and then return back. It unfreezes the capture button without the app restarting.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
So yours doesn't get stuck when taking a direct shot of a white light bulb?

Mine doesn't really crash in every good lighting condition but it crashes when pictures are taken on subjects that are against bright lights example: pics taken outside on a bright sunny day.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] fatfoot:
No, and at sunlight it works too.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] vetefan:
After install the pink tint fix, the google camera app and some other apps' data will gone after killing the app or reboot the phone. The problem solved after wipe the data partition. Maybe can try to wipe cache or data for app crash or other strange problem. (I'm installing this on LOS 14.1)
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] aabenroi:
Are u using MIUI > 7.5.4?

Or what ROM you're on buddy?
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] sheeeple00:
I just tried this using the app posted by user romeocharliegolf and I didn't experience any problem.

Mido on miui 8.5.4.0 and Omnivision sensor.

?
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] fatfoot:
I'm on dev MIUI v7.10.19.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
So it's a rom issue then? I'm on AEX 4.5. I'll try to flash MIUI rom later and see if it's gonna be fixed.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] ImQseft:
May I ask what your config is?
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] sheeeple00:
Model: pixel XL (Corr)

Config: Nexus 6p

HDR params: super high

Though I've tried other configurations too (with hdr enhanced always on).

Are you having the crashing problem too? Can you post your config? I'll test it out on my device.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] ImQseft:
Yeah I am. I am constantly changing configs to try and fix the issue and as of now, gcam is not my primary cam yet because of this issue so I can't really give you an exact params to check. If you use the flashable zip fix instead of the hard codes fix, does it still work? No crashes?
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
Regardless of the fix, I still get crashes in good lighting conditions. Issue persists even if cam libs are not modified. I have yet to test in MIUI though.

Again it only crashes/gets stucked if the subject is under a bright light i.e. taking a photo of a person against under direct sunlight. If it's not bright enough, it will not crash and HDR+(forced) functions properly.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] fatfoot:
Did you guys try to wipe cash/dalvik?
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] ImQseft:
Yep. Still nothing.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] aabenroi:
Custom ROM are still using old omnivision blobs because of kernel imcompatibility with the new blobs in recent version of MIUI.

I think thats the problem...

We need to get the updated kernel changes, so dev can use new omnivision blobs

We can push xiaomi to release the updated source, [MENTION=7737930]highwaystar_ru[/MENTION] already ask for it but seems like it's useless.

I've created query about this pink problem in MIUI bugs months ago, it gets many support but those miui guys does not care...

Hopefully someone smarter jump again to correct the blobs / kernel source ...
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
2017/11/02 – GCMod5 based on Mod By B-S-G

(GCam5.1.014-Arnova8G2-v9.apk) Version test For request of [MENTION=4492200]chickentuna[/MENTION], [MENTION=7584793]ImQseft[/MENTION]

Restore default image compression values

Add motion photo for Oreo ( config camera hdr+ : Pixel 2017)

Image compression witch Hdr+ ~4Mo

Image compression witch motion photo Hdr+ ~12Mo

To enable the HDR+ UI button: Settings > Advanced > HDR+ control

GCam5.1.014-Arnova8G2-v9-Test-2.0f-mido-Omnivision-sensors

GCam5.1.014-Arnova8G2-v9-Test-0.5f-mido-Omnivision-sensors

No clear data/cache after installation and force closes
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
Tested both. Camera still gets stuck on both versions. Logcat: https://pastebin.com/QxNyiKWt
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] ImQseft:
Tested both. Neither worked. It appears to have the same logcat error as the one you pointed out.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
I'm backing up my data now and will flash MIUI rom out of desperation. Gonna see if it will work in MIUI and will report back.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
I think the values are in the libgcam.so, I will test to edit the lib file in hex.

[MENTION=4492200]chickentuna[/MENTION], [MENTION=7584793]ImQseft[/MENTION] I find the values in hex but I do not know how to modify. If someone has more knowledge in hexa, I will do the test but without certainty that I will succeed
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
[MENTION=4492200]chickentuna[/MENTION], [MENTION=7584793]ImQseft[/MENTION] test 2

GCMod5 based on Mod By B-S-G

(GCam5.1.014-Arnova8G2-v9-test2)

Add values max 2.0f in lib libgcam.so for error E/libgcam (22367): [validate.cc:36]: ErrorIf: Invalid condition: actual_analog_gain < 1.0f

To enable the HDR+ UI button: Settings > Advanced > HDR+ control

DOWNLOAD

Make a bug report by adding a logcat of the error and if possible screenshots.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
Thank you for the quick response and for your efforts but unfortunately it didn't work. The error is different now:

[validate.cc:36]: ErrorIf: Invalid condition: actual_analog_gain < 2.0f

What screenshot do you need?

P.S. I'm not sure how to explain this but I've tried it in MIUI and I've managed to crash it only twice. It seems that HDR+ is much more consistent while in MIUI compared to AEX. I took a pic of the same lighting condition(bright white light) in MIUI and it manages to take the photo in HDR+ enhanced without any problems while on AEX, the shutter button just gets stucked and no longer responds. It was tested in the same lighthing condition, settings and shot angle. The camera crash/not responding shutter button only happened when I changed the shot angle and took a shot quickly without the auto focus being stable. Take note that I'm actually trying to reproduce the issue in MIUI but in normal camera use, I don't think the issue will happen so I'm gonna give MIUI a shot and see how it goes
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
I do not know the maximum value of your device
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] ImQseft:
Seems to work for me but I am not 100% sure. I used to test by taking pictures of the sun, but since it's night time I can't use that method now and instead I took pictures of a light bulb. It worked whereas previous versions crashed. However, I did notice a lot of strange pink, yellow and green lines on the photo. Will further test this tomorrow once the sun is up.

Here's a sample of a pic with the strange lines: https://imgur.com/a/0JFp3
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
Thank you for your efforts. It was worth the shot but I guess it's hard for you if you do not have the device.

I have a feedback in using gcam in MIUI rom. See my edited response on https://xdaforums.com/showpost.php?p=74381945&postcount=67 Oh and btw, I don't have that strange lines.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] ImQseft:
May I know which value you modified?
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
The version of BGS was modified on several functions

So made the test with all the config and config camera hdr + the image processing are all different

I'm waiting for the report [MENTION=7584793]ImQseft[/MENTION] and will make a version with 3.0f values

---------- Post added at 04:19 PM ---------- Previous post was at 04:16 PM ----------

the value in lib libgcam.so, replace 1.0f with 2.0f for error E/libgcam (22367): [validate.cc:36]: ErrorIf: Invalid condition: actual_analog_gain < 1.0f
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] ImQseft:
You don't have those strange lines in MIUI? Are you still in MIUI? I want to see the libmmcamera_ov13855_qtech.so of MIUI and see if I could do something with it. For now I guess I'll wait till the sun is up so I could further test Arnova8G2's fix.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
Ok great. Sorry I thought you've given up.

Mate sorry,I tested it in MIUI again and I was wrong. It still crashes. I'm now back to AEX. Just to let you know, I don't have those strange pink lines in AEX nor in MIUI
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] ImQseft:
I just tested it again but this time using a bright white light source as suggested by [MENTION=4492200]chickentuna[/MENTION] and it crashed again. I got the same error as his on my logcat. ErrorIf: Invalid condition: actual_analog_gain < 2.0f

Edit: It still crashes but not as often as before. Last time any light could crash the gcam. Now it needs to be a bright white light before crashing.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
As for OnePlus 3, to correct this problem I added the camera config hdr+: nexus 6 hdr + Auto and nexus 6 hdr + Auto zsl for it to work
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] ImQseft:
Tried that config. Still crashing.

Edit: What program do you use to edit the .so files?
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] fatfoot:
B-S-G himself wrote such suggestions about the high light issue for Omni:

For version 5.1.14

There is the method In the file cop.smali:

.method private final c()F
.locals 3
const/high16 v0, 0x3f800000 # 1.0f
iget-object v1, p0, Lcop;->d:Lgzo;
iget-object v1, v1, Lgzo;->b:Ligz;
iget-boolean v1, v1, Ligz;->c:Z
if-eqz v1, :cond_0
iget-object v1, p0, Lcop;->m:Libh;
invoke-virtual {v1}, Libh;->a()F
move-result v1
const v2, 0x3fcccccd # 1.6f
cmpl-float v1, v1, v2
if-lez v1, :cond_0
const v0, 0x3faaaaaa
:cond_0
return v0
.end method

We should to change (to find, to match) the parameter in

const/high16 v0, 0x3f800000 # 1.0f

If the value is set to 0, then on mi5s Gcam with N6 (N5) model parameter makes photos in bad light (and without that change with original value N5/6 don't makes photos in darkness).

In the Omni case maybe the value should be set more higher.

I.e. we need to remove all the excess code and to obtain the modded method:

.method private final c()F
.locals 1
const/high16 v0, [COLOR="Red"]0x3f800000[/COLOR] # 1.0f
return v0
.end method

The value marked with red color should be changed.

And there is some link with a converter:

[url]https://gregstoll.dyndns.org/~gregstoll/floattohex/[/URL]
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
I edit this file in the previous version with the values:

0x40000000 # 2.0f

0x3f000000 # 0.5f

The error was the same, the problem comes from the lib libgcam.so

I will do a test with your method

---------- Post added at 08:00 PM ---------- Previous post was at 07:46 PM ----------

Test with the method of [MENTION=8682138]fatfoot[/MENTION] is here

https://drive.google.com/open?id=0BzS5yycs3wsRS1NkRU1neW0ybDA
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
This method still crashes the camera:(
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
I knew it would not do anything, but I wanted to do the test, the problem is the lib
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] LilBlinx:
lib or blobs? Every custom rom is compiled with old omnivison camera blobs. I currently don't have MIUI9 but there the blobs are latest for omnivision sensor which don't have strange lines
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] ImQseft:
The last 2 fix you posted changed the error from ErrorIf: Invalid condition: actual_analog_gain < 1.0f to ErrorIf: Invalid condition: actual_analog_gain < 2.0f but it still crashes
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] fatfoot:
It's seems that the modded Gcam HBL64 works fine in good light on the latest MIUI only (9th dev 7.10.19 or stable 8.5.8.0 and higher).

And, by the way, there is the difference in the max available ISO level on systems with and without the good light issue. It's 775 and 1550.

You may check it in Snap camera, for example.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
Hey man, GeorgeKiarie has fixed the crashes. I pm'd you about the fix.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
[MENTION=4492200]chickentuna[/MENTION] I'm rewriting your message here to get another developer involved who could give ideas to fix this problem

I will perform this code with the value 100

who will make a code

final int intValue3 = (int)ihr.a(CaptureResult.SENSOR_SENSITIVITY);

float n2;

float max;

intValue3 = 100.0f;

if (intValue3 > intValue2) {

n2 = intValue2 / intValue;

max = Math.max(intValue3 / intValue2, 1.0f);

}

else {

n2 = intValue3 / intValue;

max = 1.0f;

}

If anyone else has an idea to help?

Edit:

I do not know if the return value by SENSOR_SENSITIVITY (0x64 = 100 or 100.0f = 100 ) ????

const/high16 v2, 0x42c80000 # 100.0f or const/4 v2, 0x64

Edit 2:

I think the mistake comes from SENSOR_MAX_ANALOG_SENSITIVITY logcat. ErrorIf: Invalid condition: actual_analog_gain < 1.0f
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] aabenroi:
isn't it

if( intValue3 < 100 ) intValue3 = 100;

sorry if I get it wrong... I'm just a noobs :p
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
The code is written like this

sget-object v2, Landroid/hardware/camera2/CameraCharacteristics;->SENSOR_MAX_ANALOG_SENSITIVITY:Landroid/hardware/camera2/CameraCharacteristics$Key;
invoke-interface {p1, v2}, Lgdm;->a(Landroid/hardware/camera2/CameraCharacteristics$Key;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Integer;
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v4
sget-object v2, Landroid/hardware/camera2/CaptureResult;->SENSOR_SENSITIVITY:Landroid/hardware/camera2/CaptureResult$Key;
invoke-interface {p0, v2}, Lihr;->a(Landroid/hardware/camera2/CaptureResult$Key;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Integer;
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2
if-le v2, v4, :cond_a

if( intValue3 < intValue2 ) = if-le v2, v4, :cond_a

We replace the value of SENSOR_MAX_ANALOG_SENSITIVITY which return 0

const/high16 v4, 0x42c80000 # 100.0f

if-le v2, v4, :cond_a
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] fatfoot:
And B-S-G released the fresh v.1.4 of Gcam.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Sectorian:
Can you give me a link of the fix?
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
I've asked GeorgeKiarie from reddit to look at this thread. He's the one providing the fixes and was a really helpful guy. Hopefully he can chime in and help incorporating the fix to your builds.

The fix is hardcoded to the gcam version that GeorgrKiarie provided. It's an old version with no settings that can be tweaked. I won't recommend using it as it has pink tint when using the frontcam when HDR+ is enabled. That's why I've asked for Arnova to help us hardcode the fix to his gcam builds as his is much stable.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] defcomg:
if (intValue3 < intValue)

{

intValue = intValue3

}

No need for else clause also make sure intValue doesn't have a final price all it will get changed in the statement

0x64 is int 100 in hex

SENSOR_SENSITIVITY is int only when in gcam lib it's parsed to float and then when it comes out again back to int and set to Android.

Gcam Collects ISO and Shutter Value in auto mode when shutter button fired it switches to manual mode then modifies the iso and shutter values it got for something optimal. This is why value of 0 breaks the code .

For black level fix you just get LENS_FACING and Model Name or some value unique to the OV Version of RN4

If (LENS_FACING == 0 &&(Build.Model.equal("RN4"))

{

Black = 64.0f

}

Or you could just add iso selector and get override value

With something like

if (intValue3 < intValue)

{

intValue = intValue3

}

else if(ISO_MENU!=0)

{

intValue = ISO_MENU

}
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
I test this way

sget-object v2, Landroid/hardware/camera2/CaptureResult;->SENSOR_SENSITIVITY:Landroid/hardware/camera2/CaptureResult$Key;
invoke-interface {p0, v2}, Lihr;->a(Landroid/hardware/camera2/CaptureResult$Key;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Integer;
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2
if-le v2, v4, :goto_1
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2
:goto_1

If it works I'll add this

sget-object v2, Landroid/hardware/camera2/CaptureResult;->ISO_MENU:Landroid/hardware/camera2/CaptureResult$Key;
invoke-interface {p0, v2}, Lihr;->a(Landroid/hardware/camera2/CaptureResult$Key;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Integer;
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2

GCam5.1.014-Arnova8G2-v10-Test-defcomg-mido-Omnivision-sensors.apk
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] LilBlinx:
[MENTION=4860033]Arnova8G2[/MENTION]

Camera is installed and partially working. The stock capture is taking very dark images compared to original camera and when HDR is chosen the camera sensor just closes and it's just a black screen.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
I may have been writing the code incorrectly
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] LilBlinx:
Here is a logcat if it helps
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
Test 2

GCam5.1.014-Arnova8G2-v10-Test-defcomg-mido-Omnivision-sensors.apk
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] LilBlinx:
I can't remove thr second attachment but one is the older and the other is the newest log. Same error same problem
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
Same with mine. Camera is just black amd unuseable. The rest functions normally
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
[MENTION=4492200]chickentuna[/MENTION], [MENTION=4694376]LilBlinx[/MENTION] I added the max value

Test 3

GCam5.1.014-Arnova8G2-v10-Test-defcomg-mido-Omnivision-sensors.apk
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] LilBlinx:
It's the same with all configs.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] aabenroi:
Sir, can I know what tools used to disassemble the apk and recompile it? I dunno about hacking apk... but I can code java / C.

Will it help or I must use those assembly like language?
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] LilBlinx:
It's not a simple coding as you can imagine. This is a good tool for that kind of stuff
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] ImQseft:
I'm still seeing black viewfinder with this test version
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] ImQseft:
I don't know about Arnova8G2, but I use Apktool. You can download it here https://ibotpeaches.github.io/Apktool/
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] aabenroi:
Okay... Million thanks sir, will look into it and see if I can do something or not :D
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
I will try this way to replace if-le v2, v4, :cond_a by if-eqz v2, :cond_a ( if (intValue3 > intValue2) by if (intValue3 != null) )

I work in smali, does less than FC

I disassemble and recompile with apktool

TEST 4

GCam5.1.014-Arnova8G2-v10-Test-defcomg-mido-Omnivision-sensors

last test I will continue tomorrow thank you [MENTION=4694376]LilBlinx[/MENTION] and [MENTION=4492200]chickentuna[/MENTION] for error reports and logcats, if I had your device I would have given you a stable version (on my Mi5 all the settings works even the motion photo)
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] aabenroi:
Well how about this java code?

The apktools can see code like this or we need another tools to generate this?
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] LilBlinx:
Not really a big deal. I am willing to test anything you throw at me.

This test 4 is working fine now, no black screen but fails to save the image in HDR
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] Arnova8G2:
I generate them for what does not understand the smali java is easier to understand.

I used procyon

---------- Post added at 02:22 AM ---------- Previous post was at 02:18 AM ----------

If you could prepare a logcat, I would finish tomorrow being tired I do not want to do a bad thing
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] LilBlinx:
logcat

Here a log. I am off too :o
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
What are your settings? Initial tests, hdr+ works on mine without problems. Even hdr+ enhanced in good lighting conditions.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
Double post
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] LilBlinx:
Nexus 6P on both configs with default HDR parameters

EDIT: My bad, it works but with the pink tint
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
I believe it doesn't come with the hardcoded black level fix so you need to flash the pink tint fix in OP if you haven't already. Mine doesn't have pink tint.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] chickentuna:
Ok, confirmed after several tests. Hdr+ doesn't save/process the images. Camera no longer crashes/unresponsive but fails to take the images. Great progress still.
[Xiaomi Redmi Note 4 Themes, Apps, and Mods] romeocharliegolf:
Failed to process image when trying to take pic in low light. HDR+ enabled (the same thing happened when HDR+ enchanced enabled). Currently in AEX 4.6.

Config settings:

Model: PixelXL(corr)

Config camera HDR+: NEXUS 6P

HDR+ parameters: High

Logcat:https://pastebin.com/PTPaDDXt