FORUMS
Remove All Ads from XDA

[FIX] Camera green tint HTC One

97 posts
Thanks Meter: 25
 
By tgeza, Member on 8th May 2014, 08:54 AM
Post Reply Email Thread
21st July 2015, 08:36 AM |#171  
Junior Member
Flag Wrocław
Thanks Meter: 1
 
More
Quote:
Originally Posted by 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...

I have Maximus HD 53 with ElementalX kernel. This works only under ES Explorer with Root.
 
 
27th July 2015, 02:13 AM |#172  
shadowguy1's Avatar
Member
Flag Silicon Valley
Thanks Meter: 14
 
More
Quote:
Originally Posted by deeevan

Thanks! Attached is my init.d script that copies it over on boot.

1. In the last line, change the location of the M8 awb_cal file from /system/etc/awb_cal to wherever you put it
2. Remove the .txt extension from the filename and place it in the /system/etc/init.d folder

Optional steps
3. Script permissions should be rwxr-xr-x. In ARHD, this is automatically done on boot
4. I didn't need to set permissions on /sys, but remove the # at the front of the third last line if you need to

Things to note:
- I am running S-OFF, ARHD 71.1 and ElementalX, which means I have busybox installed and who knows what else write permissions
- The script just automates the manual steps and performs it at boot. If the manual steps aren't working for you, I don't know if this script will help
- I'm utterly confused why going SuperCID would solve the permission problem, but OK

Thanks so much - this combined with the awb_cal did the trick. Worked perfectly the first time. (Note I am S-OFF and rooted)
18th October 2015, 01:07 AM |#173  
Senior Member
Thanks Meter: 7
 
More
Quote:
Originally Posted by shadowguy1

Thanks so much - this combined with the awb_cal did the trick. Worked perfectly the first time. (Note I am S-OFF and rooted)

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;

Code:
#!/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;

Code:
#!/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
31st December 2015, 11:36 AM |#174  
Junior Member
Thanks Meter: 0
 
More
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
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes