yashsingh1/xdaforums huggingface dataset:
[One (M7) Q&A, Help & Troubleshooting] CRACING:
It doesn't seems to have OV sensor. :(

/sys/android_camera/sensor

st vd6869(1.0) cinesensor 2013-09-13

/sys/android_camera2/sensor

Omnivision ov2722 2.1M

So my device is possible to have pink tint issue in future? but the built date of this camera module seems new and some who have given for RMA were replaced to this new camera module.

Ok so mine is FA39T. No idea about FA but manufacturing date is 26th Sept 2013
[One (M7) Q&A, Help & Troubleshooting] Osama Zabin:
Strange, green tint with ST sensor.

My previous phone was manufactured at Sep 2013 ( FA39TW905511 ) , and it was showing the purple tint from day one.

Not sure if it's going to develop with your camera or not.
[One (M7) Q&A, Help & Troubleshooting] CRACING:
Could it be possible that camera module in my device is replaced to OV but the data in /sys/android_camera/sensor is not changed or showing wrong or previous camera info? Any other ways to check the sensor info except disassembling?

I have tested many shots day and night but there was no sign of pink or any colour tint issue. Even covered/blocked the camera and kept running for few mins.

Anyways, wish I won't face the problem anytime in future. This is my 7th HTC phone and none of them let me down so far. :)

Thanks...

Best Regards
[One (M7) Q&A, Help & Troubleshooting] akpe:
Hello all.

I may have some very interesting news concerning the green tin issue we're facing, will post back when it's official!
[One (M7) Q&A, Help & Troubleshooting] Osama Zabin:
Must be the 4.4.3 or 4.4.4 update for HTC One M7
[One (M7) Q&A, Help & Troubleshooting] akpe:
Possibly it will be 4.4.3, as far as I know HTC will skip the 4.4.4 update and will implement any fixes in the 4.4.3. However I'm waiting for an official word on the tint issue before I announce it here.
[One (M7) Q&A, Help & Troubleshooting] akpe:
Ok guys it's official. HTC Greece just informed me they are aware of the green tint issue in omnivision sensors, it is indeed a software/calibration issue and they plan to fix it with an upcoming software update. They weren't specific enough to mention if it will be a simple OTA patch or if it will be implemented in the 4.4.3 update but the point is this: they know about it and they are going to fix it soon :)
[One (M7) Q&A, Help & Troubleshooting] j1po:
my greentint finally gone using ROM based on latest 4.4.3 dev edition (6.07.1540.1) :D
[One (M7) Q&A, Help & Troubleshooting] Thepho3nix:
What Rom are you using? Battery life? Stable?
[One (M7) Q&A, Help & Troubleshooting] j1po:
Apolo7

Battery life ok, yes it's stable
[One (M7) Q&A, Help & Troubleshooting] Thepho3nix:
Thank you so much I hope my green tint would have gone too :/
[One (M7) Q&A, Help & Troubleshooting] :
Can someone paste a link for the permanent method?
[One (M7) Q&A, Help & Troubleshooting] danielr18:
Init.d script indeed works. I'm on stock kernel, so I used the universal init.d app and placed the script on its folder. Its working now
[One (M7) Q&A, Help & Troubleshooting] deeevan:
What firmware/ROM version are you on? The cp command is failing for me, which is why the init.d script isn't working. I'm trying to figure out what's different on your phone
[One (M7) Q&A, Help & Troubleshooting] danielr18:
I'm using stock rom, haven't flashed anything.

Stock cid 332 4.4.2 rom (Sense 6)

Sunshine S-off

TWRP

Rooted

Xposed

That's what I have
[One (M7) Q&A, Help & Troubleshooting] kai_en:
The 4.4.3 update seemed to slightly fix the Green tint issue. From my eyes, i noticed that green tinting is not as prominent but comparing to the XDA fix of using AWB_CAL file from M8, I still think the XDA fix works much better, the white is more accurate comparing to this update which has a colder tone.
[One (M7) Q&A, Help & Troubleshooting] akpe:
Hmm I still haven't tried any of the 4.4.3 ROMS, waiting for ViperOne or ARHD to be released first. When they do I'll also S-Off (with Sunshine) and test both the new rom and the AWB_CAL file.

[MENTION=5716913]kai_en[/MENTION], did you also update your firmware (to 6.06etc) or you just flashed a 4.4.3 ROM. I want to know if the fix is contained in the ROM, the camera app or (somehow) in the firmware itself.
[One (M7) Q&A, Help & Troubleshooting] kai_en:
[MENTION=423803]akpe[/MENTION] I updated through OTA, so it's stock ROM. Took me hours to do, restore TWRP (Boot+System), Stock recovery, then only OTA.
[One (M7) Q&A, Help & Troubleshooting] Arkanius:
Is there a way to do a permanent fix for the users of the GPE rom?
[One (M7) Q&A, Help & Troubleshooting] Osama Zabin:
OTA usually contains the ROM + firmware.

Do you remember what was the previous firmware before receiving OTA?
[One (M7) Q&A, Help & Troubleshooting] Veren:
I have 2 HTC One with me now, both replaced camera module by HTC, one all fix without any problem and the other one back with green tint issue. So my question is if i dump my ROM from the one that without any problem & restore into the one with green tint issue, will this solve the unit with the green tint issue? wanna make sure if anyone does it so that i won't have to butthurt on restore my One for all the data.
[One (M7) Q&A, Help & Troubleshooting] tgeza:
If you want to try no need to dump the whole ROM, only the awb file of the working one
[One (M7) Q&A, Help & Troubleshooting] Veren:
I had tested M8 AWB file but still slightly green tint when when point it to fluorescent lamp or toward white wall.
[One (M7) Q&A, Help & Troubleshooting] tgeza:
Try with the one of your second phone, just take the awb file from it and the process is the same as in the original post
[One (M7) Q&A, Help & Troubleshooting] MaRcIuPT:
after updating to 4.4.3 saying in log "camera improvements" they didn't fix the green tint. I tested now in my room and it's green. I switched the awb like before and green tint 95%better or none. what improvements they did? bah
[One (M7) Q&A, Help & Troubleshooting] akpe:
Hmm did you flash a rom or are you stock? If not, you also flashed firmware?
[One (M7) Q&A, Help & Troubleshooting] gelo01:
For me, the 4.4.3 update fixes my green tint issue on the camera, though i'm using MaximusHD 44.. the photos produced by the stock camera doesn't seem to be different with those when i replace the awb file from the OP.. i'll post pictures if i have the time, but as of now i could only say that green tint issue is fixed on 4.4.3, well atleast for me. :)
[One (M7) Q&A, Help & Troubleshooting] akpe:
That's why I asked specifically if he flashed firmware, because if I can recall correctly HTC told me the fix is contained inside the firmware :)

At least the AWB file works for him, that's something :)
[One (M7) Q&A, Help & Troubleshooting] MaRcIuPT:
I used a guru reset to install stock firmware and recovery ( i was only on custom kernel) and then updated via ota
[One (M7) Q&A, Help & Troubleshooting] :
hm, I'm on InsertCoin 4.0.1 with Android 4.4.3 and I still have the green tint :rolleyes:
[One (M7) Q&A, Help & Troubleshooting] akpe:
Can also confirm that, no apparent fix on InsertCoin 4.0.1. And since Maik268 has the latest firmware I guess the fix is not inside the firmware as HTC suggested. :(

On the other hand, we have reports on it being fixed. So, either it works on some devices and not on others, or it's ROM related...

I'll be getting a new device soon, if a signed official firmware is released in time I'll give it a try just in case I see any improvement.
[One (M7) Q&A, Help & Troubleshooting] bintang456:
how to command rewrite this file awb_call..

i still use stock rom,with root,from htc replace camera but still green tint...

i use stock rom 4.4.3

with root explorer but failed..,sorry for noob about linux languange...,

can i use command from fasboot... to rewrite awb_call..

sorry for bad in english..

edited : will try flash elemental kernel,sorry
[One (M7) Q&A, Help & Troubleshooting] Osama Zabin:
Flashed the latest firmware 6.09.401.5

I confirm the green tint is still there.

:(

I'll flash the latest. ARHD (4.4.3) once released and let you know
[One (M7) Q&A, Help & Troubleshooting] akpe:
Oh well, expecting a new device which is S-Off so I'm gonna go with the awb file method if it still has the green tint :)

Osama I doubt it's a ROM issue, green tint is still there on both InsertCoin 4.4.3 and ViperOne 4.4.3.
[One (M7) Q&A, Help & Troubleshooting] Osama Zabin:
It's said " a drowning man will clutch at straw ".

One of the members has reported the problem fixed after updating Maximums HD 44 , so let me try the latest ROM and see.

I'm already S-Off, and tried replacing awb file but didn't make any difference.

Thanks.
[One (M7) Q&A, Help & Troubleshooting] CRACING:
Hello friends,

Any idea when this green tint fix will be implemented into CM11? I guess its not figured out yet, since 4.4.3 custom ROMs still has the problem as well as in stock ROM for some.

Atm there is only one custom ROM for sprint based on latest stock, The ViperONE v7 but its still under testing stage.

Thanks...

Best Regards
[One (M7) Q&A, Help & Troubleshooting] Osama Zabin:
Flashed ARHD 4.4.3 and confirm green tint problem isn't fixed.

:thumbdown::thumbdown::thumbdown:
[One (M7) Q&A, Help & Troubleshooting] donkeykong1:
Second that... [emoji17]

Powered by non removable 2300 mAh battery
[One (M7) Q&A, Help & Troubleshooting] deeevan:
Follow up on this: Turns out the init.d script is still working for me. My method of checking the file date in ES File Explorer to verify was flawed. When I switched to InsertCoin (and the script got wiped), I realised it had been working.

FYI - works with InsertCoin 4.0.0, stock kernel (not sure what IC uses but there's no mention of using Elemental etc), original CID
[One (M7) Q&A, Help & Troubleshooting] MaRcIuPT:
hi, I tried the scrip with elementalx kernel and kangaroo kernel with stock rom and no luck. Tried to run the script, as root, with an app and this is what I got ( image attached) and the code is

chmod 777 /sys

chmod 660 /sys/android_camera_awb_cal/awb_cal

cp /sdcard/htcm8awb/awb_cal /sys/android_camera_awb_cal/awb_cal
[One (M7) Q&A, Help & Troubleshooting] deeevan:
Yeah I was getting that I/O error too when I tried it in adb shell. But when I commented out that line in the script and re-took the shot, I definitely saw the green tint.
[One (M7) Q&A, Help & Troubleshooting] blueberry60:
How did you do that? Did you placed the script on universal init.app to /etc/init.d folder that rom includes? Please explain in detail,it confuses me.I tried test of Universal init.d app,but it says "Your kernel doesn't have init.d support"
[One (M7) Q&A, Help & Troubleshooting] danielr18:
Paste the script in that folder. Place M8 awb_cal file in /system/etc. Turn On Universal Init.d and give it a try by touching 99awb_cal script and hitting play. You shouldn't have green tint any longer. And that same process will be done automatically after the phone boots up. So make sure you gave Root access.
[One (M7) Q&A, Help & Troubleshooting] gelo01:
Noob question: how can i "turn on" universal init.d? Where can we activate it?
[One (M7) Q&A, Help & Troubleshooting] blueberry60:
Many Thanks,but I couldn't understand exactly, which script will I paste in which folder ? Test script which belongs to Universal init.d is already in /system/etc/init.d.
[One (M7) Q&A, Help & Troubleshooting] danielr18:
Save this text as 99awb_cal and paste the script in /system/etc/init.d Don't add any extension to the file, just 99awb_cal. To turn on, download app and open it. You will clearly see the button to activate.

http://dl-1.va.us.xda-developers.com/2/7/9/6/9/8/8/99awb_cal.txt?key=il3wtTIlBOn2hZYoMFNUPw&ts=1410650089
[One (M7) Q&A, Help & Troubleshooting] blueberry60:
Link doesn't work.
[One (M7) Q&A, Help & Troubleshooting] danielr18:
Link is in page 5 I think. Search for it
[One (M7) Q&A, Help & Troubleshooting] skinniezinho:
Sorry to bump this thread.

Has anyone seen this?

http://android-revolution-hd.blogspot.pt/2014/10/htc-one-m8-android-444-latest-system.html

Maybe it is "just" the calibration file, or do you think it is more than that?

Maybe someone with 4.4.4 M8 can extract the file and we could try on M7 to see the result while HTC doesn't launch it for M7.
[One (M7) Q&A, Help & Troubleshooting] tgeza:
Hmm interesting..i think it's mostly likely camera libaries though, not the calibration file
[One (M7) Q&A, Help & Troubleshooting] cute poison:
Why is the S-OFF in this fix needed for? Because i'm S-ON (and ROOT of course) and i replaced the file without any problems. However the green tint is still there..:(

Maybe is because the S-ON...that's why i'm asking...
[One (M7) Q&A, Help & Troubleshooting] tgeza:
Some people seemed to have been able to replace the file after S-OFF - if you replaced it and it didnt work then you probably have a 'milder' version of the green tint. No idea why the OV sensors are different!
[One (M7) Q&A, Help & Troubleshooting] :
I have two questions:

1) How can I replace the awb file if root explorer always says "overwrite failed"?

I set all permissions correctly.

2) Anyone tested the new awb from M8 4.4.4 ROM?
[One (M7) Q&A, Help & Troubleshooting] monacoo:
After updating to google edition Lollipop (the easiest way from Nand backup), green tint issue is gone. I did not even need s-off :)
[One (M7) Q&A, Help & Troubleshooting] Mart Son:
I tried everything to overwrite the file with no luck. At this point I have in any Rom the green tint also in GPE.

Maybe somebody can build a kernel with the correct awb file for omnivision modules or can give instructions how to make one...
[One (M7) Q&A, Help & Troubleshooting] :
ES File Explorer tells me 'Not enough free space"
[One (M7) Q&A, Help & Troubleshooting] guffe2005:
I replaced my camera today with no luck :( if we have to overwrite the cal file then we have to close down our camera but how did we do that ? Somebody .......
[One (M7) Q&A, Help & Troubleshooting] deeevan:
Settings > Apps > All > Camera > Force stop
[One (M7) Q&A, Help & Troubleshooting] RyuzakiTA:
S-off, elemental-x , custom rom, and still I can't overwrite the awb file..

help please :(
[One (M7) Q&A, Help & Troubleshooting] tgeza:
Did you overwrite and not delete+paste?
[One (M7) Q&A, Help & Troubleshooting] RyuzakiTA:
I tried to overwrite - failed (not enough space)

delete = failed

rename=failed

With es, root explorer...

Help me :(
[One (M7) Q&A, Help & Troubleshooting] MaRcIuPT:
So sad that htc don't remember that some htc m7 has different sensors why the hell when we do updates it don't change that file from factory? I talked to HTC and the only thing they said was to send for repair. I sent already and they changed to OV sensor. yeah thx a lot for green tint instead of pink. it is just a simple update I would really wanted to know how can this problem reach the HTC devs.
[One (M7) Q&A, Help & Troubleshooting] tgeza:
Try on a GPE rom.. i actually never tried this on Sense
[One (M7) Q&A, Help & Troubleshooting] tgeza:
Maybe try tweeting them twitter - i was already thinking this issue will be gone only if i upgade to M9, based on the latest leaks however this is not happening!
[One (M7) Q&A, Help & Troubleshooting] gustav30:
When I was on M7, I got rid of green tint by talking my pics all in night mode. I made that my default custom camera.
[One (M7) Q&A, Help & Troubleshooting] themachinist:
White balance on this phone is whack when it's warm light. That's when the green tint will most likely crop up I guess. Be it with night mode or not, it'll look like it's taken in a different lighting. These days I just take the pic anyway and edit later.
[One (M7) Q&A, Help & Troubleshooting] guffe2005:
I have changed 2 cameras without any luck so i found a secondhand M7 and took the cameraboard and built it in my own phone now with functionel camera
[One (M7) Q&A, Help & Troubleshooting] echoes80:
Hi guys.

Try this:

-Download Open Camera from playstore

-Set image quality to 100%

-Enable hdr scene

-OR the alternative set the manual exposure

(These steps are intended in Open Camera app)

This is the best solution in my case, HTC one m7 with ov4688 replaced Camera sensor.

Please leave a feedback about this.

And post photo taken with difference beetween stock
[One (M7) Q&A, Help & Troubleshooting] Alexandr82:
I think we should go to the HTC tech support and ask them to make a AWB calibration for the Omnivision sensor
[One (M7) Q&A, Help & Troubleshooting] akpe:
Well, I just got a new M7 for my girlfriend (used). Even before unlocking it, completely stock with latest Sense 6 and firmware, it still has the notorious green tint. It's actually even worse than my first HTC One (had it last summer).

So I gave it a try, unlocked, rooted, S-OFF, SuperCID, installed BusyBox, I got the M8 awb file to replace the stock file (I had to go to EX options, click the root description text -not the switch- and select system as R/W), custom ROM & Kernel (ViperOne, ElementalX, both latest versions), but the green tint is still there, no obvious improvement whatsoever.

Is there anything else I could try?

Edit: just found a workaround: Take a picture, go to gallery, press menu, select edit, go to filters, go to the last option (custom), and play around with the white balance setting. Completely gets rid of green tint if you get it right :D Posting samples in a minute.

Picture 1: Taken with all settings default in poor lighting conditions (fluorescent bulb I think). Please excuse the mess :D

You can see green tint is still there, subtle, but enough to ruin the shot:

Picture 2: I just edited the pic, raised color balance a bit, green tint is gone.
[One (M7) Q&A, Help & Troubleshooting] the playa!:
Woah, I did not know green tint appears after replacing the sensor. I've had the purple tint issue for quite a while (almost two years since I have my M7) and it's really ticking me off now as it obstructs from taking good lowlight pictures, and yes, I love to take pictures so I need a good result. Anyway, I got a ticket from HTC to repair my M7 and I'm gonna send it in tomorrow. After I get it back, judging from everyone's results, I'm gonna have a green tint now? Man, why is HTC so whack when it comes to their cameras. :'(
[One (M7) Q&A, Help & Troubleshooting] akpe:
Not necessarily, purple tint was a hardware issue with a specific batch(es) of cameras. Green tint is purely a software calibration problem and, if you have it, it can be fixed by either updating the firmware and rom to Sense 6 (for pre-Sense 6 devices) or using the M8 awb configuration file (need s-off, superCID etc).

Of course, for all the above solutions your mileage may vary, the Sense 6 update/firmware fixed it for some, not for others, and the M8 file worked for some, not for others. In my old device the issue was eventually fixed using the M8 file (I had to S-Off, SuperCID it, install busybox, flash a custom kernel and use ES Explorer, no other file manager seemed to work), but in the new one I got none of the solutions worked.

For a more solid fix you can take it to a repair centre for quick calibration, or for a workaround you could edit the pictures later in gallery raising the AWB a bit.

It's not guaranteed that you will have the green tint though. Since you haven't sent it yet you could let them know beforehand to check the new camera calibration for green tint and adjust it accordingly :)
[One (M7) Q&A, Help & Troubleshooting] the playa!:
Aha, I see. Thanks! I'll post the results when I get my M7 back! :D
[One (M7) Q&A, Help & Troubleshooting] QundA:
very bad to hear that
[One (M7) Q&A, Help & Troubleshooting] the playa!:
Sent it in yesterday. Told them the requests. Let's see what happens when I get it back. Btw, do yall think the new "Hero" product announced today for October will be a smartphone? Hoping to switch before the year's end, but the M9 is meh. Gotta wait to see what HTC has next in store for us.
[One (M7) Q&A, Help & Troubleshooting] GIA131:
After i sent my one 4 times to repair centre, i've always green tint -.-

Now i try to root my phone with new sense or the fix. I hope this will finally work ^_^
[One (M7) Q&A, Help & Troubleshooting] the playa!:
Getting my phone back tomorrow... Let's see how the results are. :D
[One (M7) Q&A, Help & Troubleshooting] the playa!:
So I guess there is green tint?
[One (M7) Q&A, Help & Troubleshooting] tgeza:
That looks just fine!
[One (M7) Q&A, Help & Troubleshooting] akpe:
Looks fine too. Try to take a picture of a single colored object so that the object takes the most space on the viewfinder, like a close up of the chair, the wall, or the floor. Like the picture I posted here (the first one).
[One (M7) Q&A, Help & Troubleshooting] the playa!:
Yeah so... Here it is. I guess there is no green tint. :)
[One (M7) Q&A, Help & Troubleshooting] the playa!:
Another one.
[One (M7) Q&A, Help & Troubleshooting] the playa!:
Final one.
[One (M7) Q&A, Help & Troubleshooting] gustav30:
Best way to tell us take pictures in auto mode. Then take same picture in night mode. Compare the color accuracy. I had found auto mode produced some green tint, while night mode would produce accurate colors.
[One (M7) Q&A, Help & Troubleshooting] the playa!:
Well I guess there is green tint then. :/ This is taken from auto mode.
[One (M7) Q&A, Help & Troubleshooting] the playa!:
And this from night mode.
[One (M7) Q&A, Help & Troubleshooting] gustav30:
I had found any other setting than auto produced results with less green tint. Even choosing Portrait or Landscape would reduce the green tint considerably. I basically made Night mode a custom camera and set it to default. So any time I opened camera it would default to night mode.
[One (M7) Q&A, Help & Troubleshooting] the playa!:
How do you save/open/set to default a custom camera?
[One (M7) Q&A, Help & Troubleshooting] Osama Zabin:
I don't see green tint in your photos.
[One (M7) Q&A, Help & Troubleshooting] tgeza:
Yes - if you have to look so closely then greent tint is no issue. My phone made full green photos in daylight!
[One (M7) Q&A, Help & Troubleshooting] bastaz:
My camera fixed. A little bit annoying with copying the file after every reset.

I had no problems copying the file with S-ON. My One is only unlocked by HTCdev with root, and custom rom and kernel.
[One (M7) Q&A, Help & Troubleshooting] GIA131:
But isn't there a permanent fix for every time a reboot the phone?
[One (M7) Q&A, Help & Troubleshooting] Sirt:
Which ROM and kernel are you using? I am now on S-ON custom 5.1 GPE rom but I'm unable to replace the awb_cal file...
[One (M7) Q&A, Help & Troubleshooting] bastaz:
I have Maximus HD 53 with ElementalX kernel. This works only under ES Explorer with Root.
[One (M7) Q&A, Help & Troubleshooting] :
Thanks so much - this combined with the awb_cal did the trick. Worked perfectly the first time. (Note I am S-OFF and rooted)
[One (M7) Q&A, Help & Troubleshooting] :
I have a question. The awb_cal file that I downloaded is located in my Download folder.

So should I edit the script to say;

#!/system/bin/sh
# ====================================
# init.d script for camera green tint fix
# ====================================

#chmod 777 /sys
chmod 660 /sys/android_camera_awb_cal/awb_cal
cp /storage/emulated/0/Download/ /sys/android_camera_awb_cal/awb_cal

Or should I make it;

#!/system/bin/sh
# ====================================
# init.d script for camera green tint fix
# ====================================

#chmod 777 /sys
chmod 660 /sys/android_camera_awb_cal/awb_cal
cp /sdcard/Download/ /sys/android_camera_awb_cal/awb_cal
[One (M7) Q&A, Help & Troubleshooting] ira93:
I have two HTC one m7. First is dual sim and he dont have a problem with green.

Can i use from Dual Sim file to Htc one m7? Both have omnivision cameras. Can anyone help to me to permanent fix for green tint step by step?

Best regards
[Sprint Galaxy S 5 General] xXDevOXx:
Here is a video tutorial for all you newbies (like myself) youtube.com/watch?v=p643h9cfWlw good:
[Moto G Q&A, Help & Troubleshooting] banesh:
When i connect my pendrive to phone via otg cable it shows blank Usb storage.and when i format it the phone restarts.what to do ?