Disable Camera App Display Brightness Increase [DEV NEEDED][WILL PAY!] - Samsung Galaxy S7 Questions and Answers

Hi there, I've about had it with the stock camera app automatically boosting brightness when it's launched. It's a nice feature when you're outside, but if you're inside it's way too bright. It makes scenes look brighter than they really are, causing under-exposed photographs. And it's super distracting in a dark room. I've spent a few hours looking through the APK and can't find a setting that would be controlling this auto-brightness behavior. But I'm not an experienced Android dev.
Almost all other camera apps have a toggle for this, but not the S7's.
I also spent a couple weeks fooling with Tasker to disable auto-brightness when the app is launched, the re-enable when exiting. The problem is the display brightness level is not consistent when AB is toggled off and sometimes the screen is way too dark or way too bright. Example:
1. Inside, display at 20% brightness.​2. Launch camera app, Tasker disables auto-brightness, display stays at 20%.​3. Exit camera app, Taske enables auto-brightness, display still at 20%.​4. Go outside, display increases to 75% brightness.​[here's where it gets whacky]
5. Launch camera app, Tasker disables auto-brightness, display drops to 20%.​It's like the OS remembers the last manual brightness setting for an app. If there were a way in Tasker to freeze the brightness level before display auto-brightness, that'd be ideal. But I can't figure that out.
So, I'm requesting help from a developer(s) to find a solution. Either a foolproof Tasker recipe, or a modification to the camera app itself. Solution found. Read thread.
If you want payment for your efforts (assuming you find a solution), I'm happy to do that! :good:

Optimistically bumping this thread. It sucks that Samsung's closed-off everything has chased away so many devs from this device.

Ignore

Look in this file.
Camera.smali - For auto brightness change - 0x78 (120) to 0x1.
120 is the lower limit where brightness override kicks in.
I found the actual pictures the S7 takes are bright anyway so if the viewfinder is dull the actual image is brighter anyway. So I've left mine.

Just disable auto brightness when dark viewfinder is needed. It works even on the lowest level when auto brightness is disabled.

zeroprobe said:
Look in this file.
Camera.smali - For auto brightness change - 0x78 (120) to 0x1.
120 is the lower limit where brightness override kicks in.
I found the actual pictures the S7 takes are bright anyway so if the viewfinder is dull the actual image is brighter anyway. So I've left mine.
Click to expand...
Click to collapse
AWESOME. Where/How can I find this file to edit? I couldn't find it packaged in the APK but maybe I missed it...

mrmattolsen said:
AWESOME. Where/How can I find this file to edit? I couldn't find it packaged in the APK but maybe I missed it...
Click to expand...
Click to collapse
Make sure you have decompiled the APK. Good tool is AndroidMultiTool.
Might need to also copy the latest apktool to AndroidMultiTools Program Files directory.

zeroprobe said:
Make sure you have decompiled the APK. Good tool is AndroidMultiTool.
Might need to also copy the latest apktool to AndroidMultiTools Program Files directory.
Click to expand...
Click to collapse
I've tried this, but decompiling the APK does not reveal any smali files. What am I doing wrong? I tried checking "Use Baksmali" but get this error:
The system cannot find the path specified.
Exception in thread "main" org.jf.dexlib2.DexFileFactory$DexFileNotFound: zip file SamsungCamera5.apk does not contain a classes.dex file
at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:94)
at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:78)
at org.jf.baksmali.main.main(main.java:292)
Click to expand...
Click to collapse

mrmattolsen said:
I've tried this, but decompiling the APK does not reveal any smali files. What am I doing wrong? I tried checking "Use Baksmali" but get this error:
Click to expand...
Click to collapse
Are you decompiling your own Camera? This is probably an odexed rom.
The Camera needs to be deodexed, alternatively you can use my modded camera.apk here which should decompile.
http://forum.xda-developers.com/galaxy-s7/themes/zero-camera-mod-v1-0-increased-bitrates-t3439176

zeroprobe said:
Are you decompiling your own Camera? This is probably an odexed rom.
The Camera needs to be deodexed, alternatively you can use my modded camera.apk here which should decompile.
http://forum.xda-developers.com/galaxy-s7/themes/zero-camera-mod-v1-0-increased-bitrates-t3439176
Click to expand...
Click to collapse
Thanks so much. I used that apk, decompiled, found the smali file and made the edit. I recompiled and planned to use it to install your bitrate mod. However, I cannot rename the SamsungCamera5.odex or its folder -- access denied. Am I stuck? I've replaced the apk with the modded one, but I can't rename the odex. Can't replace media_profiles.xml either -- access denied too.

mrmattolsen said:
Thanks so much. I used that apk, decompiled, found the smali file and made the edit. I recompiled and planned to use it to install your bitrate mod. However, I cannot rename the SamsungCamera5.odex or its folder -- access denied. Am I stuck? I've replaced the apk with the modded one, but I can't rename the odex.[/Q
Do you use ES file explorer, you need to enable root explorer then click root explorer and set /system to rw mount
Click to expand...
Click to collapse

zeroprobe said:
mrmattolsen said:
Thanks so much. I used that apk, decompiled, found the smali file and made the edit. I recompiled and planned to use it to install your bitrate mod. However, I cannot rename the SamsungCamera5.odex or its folder -- access denied. Am I stuck? I've replaced the apk with the modded one, but I can't rename the odex.[/Q
Do you use ES file explorer, you need to enable root explorer then click root explorer and set /system to rw mount
Click to expand...
Click to collapse
I was using Solid Explorer. Could access some files. For example, was able to replace the camera apk, but other was denied. Tried ES too and can't enable Root Explorer. I'm not rooted, so am I screwed?
-edit- I take that back. Can't replace the camera apk either. Bummer. I guess that's that.
Click to expand...
Click to collapse

mrmattolsen said:
zeroprobe said:
I was using Solid Explorer. Could access some files. For example, was able to replace the camera apk, but other was denied. Tried ES too and can't enable Root Explorer. I'm not rooted, so am I screwed?
Click to expand...
Click to collapse
Yes you need to be rooted to change camera. I doubt the camera.apk has been replaced as you are not rooted. The only other way is to flash through custom recovery example TWRP
Click to expand...
Click to collapse

zeroprobe said:
mrmattolsen said:
Yes you need to be rooted to change camera. I doubt the camera.apk has been replaced as you are not rooted. The only other way is to flash through custom recovery example TWRP
Click to expand...
Click to collapse
Dang it. My hopes and dreams crushed. Thanks for you help anyways.
I guess I need to revisit the Tasker recipe...
Click to expand...
Click to collapse

Alright @zeroprobe, I rooted and used your instructions to modify the app. Works like a charm! Brightness now stays the same as my screen brightness. And now indoor photos are a million times better. I appreciate your help very, very, much. Sending a little PayPal love your way. Thank you for help!

mrmattolsen said:
Alright @zeroprobe, I rooted and used your instructions to modify the app. Works like a charm! Brightness now stays the same as my screen brightness. And now indoor photos are a million times better. I appreciate your help very, very, much. Sending a little PayPal love your way. Thank you for help!
Click to expand...
Click to collapse
Thanks a lot, appreciated !

Hi there!
The brightness issue with the camera app annoys me as well but unfortunately I have no rooted phone.
But is it possible that someone (e.g. @mrmattolsen) can send me the modified camera apk I can install? (my camera app version is 5.0.88) Will it work that way? ... and of course I would also send some appreciation via PayPal for your effort
best regards, Tom

Related

[Request] disable camera sound from camera settings

I ask you guys if someone is able to add in camera settings an option to disable the camera sound, it's not present in the stock app
the only way I found is to disable system volume via cVolume
anyone ? thx
deadpoux said:
I ask you guys if someone is able to add in camera settings an option to disable the camera sound, it's not present in the stock app
the only way I found is to disable system volume via cVolume
anyone ? thx
Click to expand...
Click to collapse
I just deleted the camera shutter sound file...
but please enable this feature...
AbsoluteDesignz said:
I just deleted the camera shutter sound file...
but please enable this feature...
Click to expand...
Click to collapse
Where's the file located?
+1 I hate that sound
/system/media/audio/ui/camera_click.ogg
if you want it to sound different, just replace it with a different file.
if you don't want to hear it, just rename it.
if you want an automated process to do it, just make a simple script that renames it back and forth between the proper name and anything else (remember to mount r/w)
i don't get why people want this as an option.. is there EVER a time when you actually want it to make the sound? just nuke it... why waste the space for a radio button or check-box?
*edit* also, @deadpoux ... it's not an option in the stock rom because they've been trying to make it a legal requirement in many places, including the US. Not sure if this has passed or not, but here's the first link I found about it. http://www.tgdaily.com/consumer-electronics-features/41212-camera-click-sound-could-become-legally-required
sorry in advance for being so noob, but.... how can I delete/rename the file?
Tried using terminal emulator on the phone, but get no permission message....
please advise.
thnks
adb remount
adb shell rm /system/media/audio/ui/camera_click.ogg
Should do the trick.
if you're not comfortable with using adb, just download "rootexplorer" and navigate to the directory then in the upper right corner, click the button to select "r/w" access (read/write) and then long click camera_click.ogg and delete or rename, etc...
then switch back to "r/o" (read only) when you're done.
I will mention if you use root explorer, be VERY careful, if you poke around too much, you may cause issues with your phone. I can't see anyone actually bricking their phone with it, but it would require a reflash at the very least. I'd recommend at least trying to understand adb basics.
thanks guys, I used adb with your suggestion and now the camera is silent!!
thanks again!
SilentSnap Camera App
There´s an app for that now
SilentSnap Camera
What is the location for the focus sound?
Yaotl said:
What is the location for the focus sound?
Click to expand...
Click to collapse
\system\media\audio\ui\camera_click.ogg
rori~ said:
\system\media\audio\ui\camera_click.ogg
Click to expand...
Click to collapse
That's the actual picture taking sound. If you hold the trackball to focus, there is another sound before the picture is taken.
yeah, wasnt aware of this, right...donno where it is yet, sorry..
Yaotl said:
That's the actual picture taking sound. If you hold the trackball to focus, there is another sound before the picture is taken.
Click to expand...
Click to collapse
Isn't that just the sound of the "Volume Up/Down" sound? In that case i wouldn't remove that one :-/
Re: [request]disable camera sound from camera settings
no i think its another one.
i guess we could listen to them all the find the second sound......
Sent from my Nexus One using the XDA mobile application powered by Tapatalk
depending on what rom ur on
CM 5.0.5.3 has desire camera port and it has the shut shutter sound off in options
its a bit more difficult getting the CM 5.0.5.3 desire camera port to work on CM 5.0.6 and the app is obviously on the desire rom's, enom's official rom has the use for it as well
unzip & push this .ogg file to /system/media/audio/ui
Yaotl said:
That's the actual picture taking sound. If you hold the trackball to focus, there is another sound before the picture is taken.
Click to expand...
Click to collapse
Yes, this is very annoying.

[Q] torch.apk from cm7?

is it possible to take the torch.apk file from cyanogenmod and install it on anyother rom? ive already found the apk. i, just wondering if it will work on say a 2.2.1 rom?
trell959 said:
is it possible to take the torch.apk file from cyanogenmod and install it on anyother rom? ive already found the apk. i, just wondering if it will work on say a 2.2.1 rom?
Click to expand...
Click to collapse
it should...why dont you try it and let us know what happens
It works. I was messing around with it the other day to see how bright it would get. there's some code in the kernel to up the leds brightness, which is in my kernel so you may not have the 'torch' mode if your kernel doesn't have it added. you'll know it if it does if you've used the full brightness with the app. damn near brighter than mag light I keep in my toolbox. Actually not damn near, it is brighter. blinding.
di11igaf said:
It works. I was messing around with it the other day to see how bright it would get. there's some code in the kernel to up the leds brightness, which is in my kernel so you may not have the 'torch' mode if your kernel doesn't have it added. you'll know it if it does if you've used the full brightness with the app. damn near brighter than mag light I keep in my toolbox. Actually not damn near, it is brighter. blinding.
Click to expand...
Click to collapse
i tried it on ingersoll but it doesn't even recognize it as an .apk but thanks anyway
That just means it wasn't installed right. all you have to do is drop it in /system/app with root explorer AND set the permissions as rw, r,r(0644), then reboot. If you don't set permissions it won't show up.

[Q] Force landscape mod

is there anyway to force landscape mode on some apps?
Hearmeman said:
is there anyway to force landscape mode on some apps?
Click to expand...
Click to collapse
You could decompile the apk, edit the AndroidManifest.xml.
how exactly can i do that?
I use a tool call APK Multitool. Decompile the apk and use Notepad+ to edit the AndroidManifest.xml (I changed anything that I see "portrait" to "sensor", that way it rotate with the sensor.
When done, compile the apk and sign it.
Note, sometimes the graphic will not look right due to the app being design for
portrait use only ect.
baseballfanz said:
I use a tool call APK Multitool. Decompile the apk and use Notepad+ to edit the AndroidManifest.xml (I changed anything that I see "portrait" to "sensor", that way it rotate with the sensor.
When done, compile the apk and sign it.
Note, sometimes the graphic will not look right due to the app being design for
portrait use only ect.
Click to expand...
Click to collapse
Awesome thankyou baseballfanz ive been wondering how to change some apps. Example draw something only works in portrait and i thought there updates would fix this but now i can do it myself and stop waiting
Currently on aokp hoping build 32 will convince me to stay

[Q] Disable Battery Charging Light

I recently installed a new 4.3 rom and I love it except they don't include an option to disable the battery charging light. Is there anyway to disable this by editing rom files ect?
ajh305 said:
I recently installed a new 4.3 rom and I love it except they don't include an option to disable the battery charging light. Is there anyway to disable this by editing rom files ect?
Click to expand...
Click to collapse
If you are running CM 10.2, then go to System Settings...Display and lights...Battery light. Uncheck it. Not sure where it is on other roms,
gr8nole said:
If you are running CM 10.2, then go to System Settings...Display and lights...Battery light. Uncheck it. Not sure where it is on other roms,
Click to expand...
Click to collapse
I am running a ported rom called dirty unicorn. It is a pretty slick rom but it has no option to disable the battery light anywhere I have combed through every setting. So I was wondering if there is a system file I could modify to just disable it.
ajh305 said:
I am running a ported rom called dirty unicorn. It is a pretty slick rom but it has no option to disable the battery light anywhere I have combed through every setting. So I was wondering if there is a system file I could modify to just disable it.
Click to expand...
Click to collapse
i dont know about that, but there is an app called light flow that controls the led. i never tried it so i don't know its capabilities, but you could look @ it and see.
ajh305 said:
I am running a ported rom called dirty unicorn. It is a pretty slick rom but it has no option to disable the battery light anywhere I have combed through every setting. So I was wondering if there is a system file I could modify to just disable it.
Click to expand...
Click to collapse
I saw you over at that other forum! I've been going mad trying to find a solution. Try under "sound -> quiet mode" a bit of deep googling found that as a potential hiding spot for the setting. (I'm back on stock and don't want to flash DU without knowing if this can be disabled.) I poked around in the DU build.prop, and wasn't able to find anything there either.
bweN diorD said:
i dont know about that, but there is an app called light flow that controls the led. i never tried it so i don't know its capabilities, but you could look @ it and see.
Click to expand...
Click to collapse
i actually tried light flow and several other apps like that and they don't seem to be able to override the roms default.
moonrakerone said:
I saw you over at that other forum! I've been going mad trying to find a solution. Try under "sound -> quiet mode" a bit of deep googling found that as a potential hiding spot for the setting. (I'm back on stock and don't want to flash DU without knowing if this can be disabled.) I poked around in the DU build.prop, and wasn't able to find anything there either.
Click to expand...
Click to collapse
I had looked in there and have it enabled but even though notifications are disabled at night the battery light is not so thats a no go. Ive even been trying to merge the settings from a rom that had this option into the settings apk in this rom but haven't been able to get it to work. I looked in the build prop as well with no luck. I did find something in the sys/class/leds folder but it won't let me edit the charging folder even with root.
ajh305 said:
I had looked in there and have it enabled but even though notifications are disabled at night the battery light is not so thats a no go. Ive even been trying to merge the settings from a rom that had this option into the settings apk in this rom but haven't been able to get it to work. I looked in the build prop as well with no luck. I did find something in the sys/class/leds folder but it won't let me edit the charging folder even with root.
Click to expand...
Click to collapse
Those class files look really promising.
I was able to open them using ES file explorer on stock, looks like you could just modify the max_brightness one to 0, or something similar.
moonrakerone said:
Those class files look really promising.
I was able to open them using ES file explorer on stock, looks like you could just modify the max_brightness one to 0, or something similar.
Click to expand...
Click to collapse
I tried that but couldn't get the values to stick. I even tried deleting the charging folder but every operation fails.
I was able to Enable the charging light on stock using those files. Interesting that motorola has that feature kind of built-in with no front-end access.
What a bummer that it won't work for you. This weekend I think I'll flash back to DU and poke around.
moonrakerone said:
I was able to Enable the charging light on stock using those files. Interesting that motorola has that feature kind of built-in with no front-end access.
What a bummer that it won't work for you. This weekend I think I'll flash back to DU and poke around.
Click to expand...
Click to collapse
Ok let me know if it worked for you. I flashed back to Validus a few days ago I may try again this weekend as well.
Install "Light Manager" from the market. Most stable notification light app out there, best thing of all its FREE.
Problem solved.
Sent from my DROID RAZR HD using xda premium

[Q] Any chance to increase Z3 Flashlight intensity?

Hi guys,
i'm coming from a Galaxy S2, a great phone btw, and the only phone that made me to finally change it was the Z3.
I use the flashlight a lot cause the place where i live. And the intensity of the Z3 is very very poor compared with the S2 one. Any chance to increase the power?
Thanks in advance!
butman said:
Hi guys,
i'm coming from a Galaxy S2, a great phone btw, and the only phone that made me to finally change it was the Z3.
I use the flashlight a lot cause the place where i live. And the intensity of the Z3 is very very poor compared with the S2 one. Any chance to increase the power?
Thanks in advance!
Click to expand...
Click to collapse
Yes, but you need root and R/W permissions in System.
Then just do it:
Go to:
system/etc/flashled_calc_parameters.cfg
And change the value of this Parameter to this:
LED If setting for Torch or video recording (uA).
if_torch_vr = 500000
Reboot and give a try.
iFlasher said:
Yes, but you need root and R/W permissions in System.
Then just do it:
Go to:
system/etc/flashled_calc_parameters.cfg
And change the value of this Parameter to this:
LED If setting for Torch or video recording (uA).
if_torch_vr = 500000
Reboot and give a try.
Click to expand...
Click to collapse
The value is 500000 or 50000 because the default one is 25000.
Thanks.
Is there any risk regarding the diod?
If it could flash brighter, why was it capped at half the strength?
Cheers.
butman said:
The value is 500000 or 50000 because the default one is 25000.
Thanks.
Click to expand...
Click to collapse
500000 is correct. Try it and see the difference
TanmayTzara said:
Is there any risk regarding the diod?
If it could flash brighter, why was it capped at half the strength?
Cheers.
Click to expand...
Click to collapse
The only risk is if you leave it on for a lot of hours because of overheat.
Greetings!
I can't seem to get the file to stay changed, any time I overwrite it or open in x-plore text editor it comes back to the original value. I have root access and gave the permissions to the file manager. I've tried to mount the /system via adb shell, but no command is accepted, throwing errors as "bad option".
Any ideas regarding this?
EDIT: After a research I found a solution:
lowtraxx said:
[...] After installing and gaining root, to get system R/W access you need to run my script which will enable RICDefeat on the device and allow R/W of the system partition. Just extract SGP621-RICDefeat.zip and run the install batch file. It should also work for other devices, but as I have not personally tested it on anything else than my SGP621 and Z2, I cannot guarantee for it. So if this makes your cat explode, it is not my fault.
Click to expand...
Click to collapse
Right now my LED is supernova bright.
Cheers.
iFlasher said:
500000 is correct. Try it and see the difference
Click to expand...
Click to collapse
It worked! Thank you so much!
iFlasher said:
Yes, but you need root and R/W permissions in System.
Then just do it:
Go to:
system/etc/flashled_calc_parameters.cfg
And change the value of this Parameter to this:
LED If setting for Torch or video recording (uA).
if_torch_vr = 500000
Reboot and give a try.
Click to expand...
Click to collapse
Thanks!!
You save me in the dark. =D
Just did this due to my z3c being much dimmer than my friends z1c flash.
These were the default settings:
Z3c 2,500
Z1c 62,500
So it would seem the z3c might have had a mistyped figure in the first place from the factory.
Both are very bright now with the above suggested setting

Categories

Resources