can one use adb to improve camera jpeg quality? - Samsung Galaxy S8 Questions and Answers

I know the default jpeg quality in the lib's is 90% I think, is there a way to change that to 100% etc. using adb commands on unrooted S8/S8+?

Jostian said:
I know the default jpeg quality in the lib's is 90% I think, is there a way to change that to 100% etc. using adb commands on unrooted S8/S8+?
Click to expand...
Click to collapse
Not sure this would be possible, this requires access to the system and that needs root access.

Thought so but was hoping otherwise, thanks.
Sent from my SM-G950F using Tapatalk

Related

[Q] android root camera access

Hello,
I'm working on a app that can activate the devices camera using root that way there is no preview of the camera and no other apps open. Does anyone know a command to take a picture using runtime.exec and saving it to the root of the sdcard?
thanks,
nathan
natehome said:
Hello,
I'm working on a app that can activate the devices camera using root that way there is no preview of the camera and no other apps open. Does anyone know a command to take a picture using runtime.exec and saving it to the root of the sdcard?
thanks,
nathan
Click to expand...
Click to collapse
Why don't you use the normal API?
I do not think that there is a command for the camera.
nikwen said:
Why don't you use the normal API?
I do not think that there is a command for the camera.
Click to expand...
Click to collapse
because i want to be able to take a picture even when the screen is off or the phone has another app running.
natehome said:
because i want to be able to take a picture even when the screen is off or the phone has another app running.
Click to expand...
Click to collapse
Can't you do it in a service? (You need the proper permission in the manifest.)
For sure you cannot do it as root from the terminal.

[Q] How to remove camera shutter sound?

Hi all,
how to remove (if is possibile) camera shutter sound?
I have a korean LG G2 F320K, can anyone help me?
Sorry for the poor english.
Thanks in advance.
Open camera app. Select settings. Select shutter sound. select none. At least that's how it is done on the att version
Sent from my LG-D800 using xda app-developers app
Intub8 said:
Open camera app. Select settings. Select shutter sound. select none. At least that's how it is done on the att version
Sent from my LG-D800 using xda app-developers app
Click to expand...
Click to collapse
And vzw version a well.
Sent from my VS980 4G using Tapatalk 4
Intub8 said:
Open camera app. Select settings. Select shutter sound. select none. At least that's how it is done on the att version
Sent from my LG-D800 using xda app-developers app
Click to expand...
Click to collapse
In some countries no shutter sound is not avaliable in the app like here in Sweden.
Usually the camera sounds are stored in system/media/audio/ui and there you can delete or rename the ogg file to silence the camera.
But I think the sounds for this camera is incorporated into the camera apk itself, because I can't find them in system.
Tapatalked.
Can someone that has the option to silence the shuttersound post their LGCameraApp.apk & LGCameraApp.odex?
Thanks.
buffone68 said:
Hi all,
how to remove (if is possibile) camera shutter sound?
I have a korean LG G2 F320K, can anyone help me?
Sorry for the poor english.
Thanks in advance.
Click to expand...
Click to collapse
Here in Norway "no shutter sound" is not an option so I use tasker to turn silent mode on when the camera app is in foreground.
Just to add on this one:
As disabling the camera sound in (custom) camera apps didn't work I simply renamed the "camera_click.ogg" file in system/media/audio/ui and now I can enjoy a nice and silent camera
Damn can't delete sounds. Hmm
Sent from my LG-D802
Brava27 said:
Damn can't delete sounds. Hmm
Sent from my LG-D802
Click to expand...
Click to collapse
you need RW permissions. using root explorer is one way to accomplish this.
gotwillk said:
you need RW permissions. using root explorer is one way to accomplish this.
Click to expand...
Click to collapse
Yes I know that
The sounds don't appear in this folder. They are baked in the camera app itself.
Sent from my LG-D802
hmm works for me. thats how i used to do it on my gnex too. however, i'm still trying to figure out how to disable/remove the sound for the focusing. it beeps when you "click to focus".
dagrim1 said:
Just to add on this one:
As disabling the camera sound in (custom) camera apps didn't work I simply renamed the "camera_click.ogg" file in system/media/audio/ui and now I can enjoy a nice and silent camera
Click to expand...
Click to collapse
Did you do this on an LG G2?
I haven't rooted my phone yet, but it seems that other people aren't able to find this file.
Just tried the Mobile Hidden Camera app from the PlayStore.
Seems to be able to take pictures without sound but because it's a "Spy" app, I can't see what is within the frame before I take the picture and can't tell if the camera has finished focusing or not.
This has been the only success I've had and it's definitely far from a permanent solution...
I'll think I'll keep it for the few times where I may have to take a picture without sound.
Use Tasker
Set up a profile that when the camera app is open, silent mode is turned on.
Works nicely.
vween said:
Set up a profile that when the camera app is open, silent mode is turned on.
Works nicely.
Click to expand...
Click to collapse
Sorry what's Tasker?
Do I have to root my phone to use it?
Does your camera sound turn off when you set the phone on silent without Tasker?
Setting my phone on silent/vibrate had no effect and using Camera Mute from Glen on XDA didn't help either since I think the sound file is built into the camera app.
yyz123 said:
Sorry what's Tasker?
Do I have to root my phone to use it?
Does your camera sound turn off when you set the phone on silent without Tasker?
Setting my phone on silent/vibrate had no effect and using Camera Mute from Glen on XDA didn't help either since I think the sound file is built into the camera app.
Click to expand...
Click to collapse
Tasker is only the greatest app available in the play store. Not free, but totally worth the money.
Yes, my phone does NOT make a sound when it is set to silent. If yours does not, then Tasker may not be able to help.
On my D801 renaming camera_click.ogg doesn't do anything.
Setting the phone to silent does nothing too, I had used a custom app designed to emulate the Tasker command that others used. No avail.
This is incredibly annoying! I'm in Canada, there's no shutter law, don't understand why i can't disable it.
monkeyhatchet said:
On my D801 renaming camera_click.ogg doesn't do anything.
Setting the phone to silent does nothing too, I had used a custom app designed to emulate the Tasker command that others used. No avail.
This is incredibly annoying! I'm in Canada, there's no shutter law, don't understand why i can't disable it.
Click to expand...
Click to collapse
Same here lg - d801v11b videotron
i have the d802, even in silent mode the shutter sound is still being played.
i installed a third-party camera app (cameraMX) and guess what? no shutter sound. you can disable it in the app's menu.
same goes for camera zoom fx i can't hear a thing.
didn't try out more camera apps though. they're enough for me.
here is d way to remove camera shutter sound permanently(rooting required)
Hi folks..
Inorder to remove d camera shutter sounds u have to root your phone..
Once rooted install the root explorer app in it..
Then head to / > system > media > audio > ui folder..
Select the music files whose name has "camera" in it and delete them..
Thats all!
Note: I recommend u to take the backup of those files before deleting so that u can restore them whenever u want the sound back..
Hit "thanks" if I have helped you..!!!

[Q] Removing the shutter sound

Got my Verizon GN3 rooted, went to the same folders as with the GN2 and changed the necessary .ogg files to .bak, which silenced the camera on the GN2. No such luck with the GN3, I'm still getting the shutter sound. I'm sure I'm missing a file somewhere, I did a search with Root Explorer for .ogg files and didn't see anything that stuck out.
Here is the path and list of the .ogg files I renamed with Root Explorer:
System/Media/Audio/UI
Auto_Focus.ogg
Auto_Focus_Error.ogg
Cam_Start.ogg
Cam_Stop.ogg
Camera_Click.ogg
Camera_Click_Short.ogg
Camera_Empty.ogg
Camera_Focus.ogg
Camera_Timer.ogg
Camera_Timer_2sec.ogg
Lens_Flare_Lock.ogg
Lens_Flare_Unlock.ogg
Shutter.ogg
Shutter_Multiple.ogg
VideoRecord.ogg
Anyone have any ideas?
MrClean69 said:
Got my Verizon GN3 rooted, went to the same folders as with the GN2 and changed the necessary .ogg files to .bak, which silenced the camera on the GN2. No such luck with the GN3, I'm still getting the shutter sound. I'm sure I'm missing a file somewhere, I did a search with Root Explorer for .ogg files and didn't see anything that stuck out.
Here is the path and list of the .ogg files I renamed with Root Explorer:
System/Media/Audio/UI
Auto_Focus.ogg
Auto_Focus_Error.ogg
Cam_Start.ogg
Cam_Stop.ogg
Camera_Click.ogg
Camera_Click_Short.ogg
Camera_Empty.ogg
Camera_Focus.ogg
Camera_Timer.ogg
Camera_Timer_2sec.ogg
Lens_Flare_Lock.ogg
Lens_Flare_Unlock.ogg
Shutter.ogg
Shutter_Multiple.ogg
VideoRecord.ogg
Anyone have any ideas?
Click to expand...
Click to collapse
It's shutter.ogg, I've deleted it and no longer have the shutter sound when taking a picture.
Of course, rooted or not, turning the volume down silences the shutter.
TabGuy said:
Of course, rooted or not, turning the volume down silences the shutter.
Click to expand...
Click to collapse
I just don't like having to turn the system volume down and then remembering to turn it back up afterwards.
airmaxx23 said:
It's shutter.ogg, I've deleted it and no longer have the shutter sound when taking a picture.
Click to expand...
Click to collapse
I'll try deleting it, I don't like doing that, but I can't see any instance where I'll ever need that shutter sound. It's strange, the shutter sound is intermittent. I had rebooted the phone earlier today so I don't believe anything was 'hung' up. I'll see after it's deleted.
I've tried renaming it to .bak and moving it to the SD card and it still makes the shutter sound after rebooting.
I used an xposed module to turn it off (it just renamed it) but it didn't work. So I tried completely deleting the renamed file and it still makes the sound when I take a pic.
Sent from my SM-N900V using Tapatalk
There is an option for it in wanam module
Sent from my SCH-I605 using xda app-developers app
I deleted the Shutter.ogg file and the sound is gone when using the camera. But if I'm in Kik, the shutter sound is still there. It's not that big of a deal for me, I just thought all app's used the system sound files, especially for a system app.
you guys can try installing the app Note 2 Hidden Settings:
https://play.google.com/store/apps/details?id=com.steinapps.note2hiddensettings&hl=en
it has a function to enable the shutter off option in the camera app.
*requires root
mintcookies said:
you guys can try installing the app Note 2 Hidden Settings:
https://play.google.com/store/apps/details?id=com.steinapps.note2hiddensettings&hl=en
it has a function to enable the shutter off option in the camera app.
*requires root
Click to expand...
Click to collapse
Just wanted to let others know...this worked. Wanam didn't work and renaming the shutter didn't work.
I haven't tried that Note 2 hidden settings thing, but have tried a couple other methods including Wanam.
I noticed today though, that I get the shutter sound when smart stabilization is on, but no sound when it is off...
Pretty weird, but maybe it will help diagnose?
mintcookies said:
you guys can try installing the app Note 2 Hidden Settings:
https://play.google.com/store/apps/details?id=com.steinapps.note2hiddensettings&hl=en
it has a function to enable the shutter off option in the camera app.
*requires root
Click to expand...
Click to collapse
I can confirm this works for my note 3. Added the option for camera sounds in camera settings menu. Opened camera then went into settings then toggled off.
Sent from my SM-N900V using xda app-developers app
Perhaps this will help some of you with Shutter sounds. it also states that the reason that deleting the ogg file isnt working is that it's included inside the Camera app now!
http://forum.xda-developers.com/showthread.php?t=2486948
This thread gives several solutions.
For me what worked is to put Jrummys root browser into system using titanium backup. Then use the built in editor to modify system/csc/feature.xml. change camera sound from false to true. Done.
Sent from my SM-N900V using Tapatalk
mintcookies said:
you guys can try installing the app Note 2 Hidden Settings:
https://play.google.com/store/apps/details?id=com.steinapps.note2hiddensettings&hl=en
it has a function to enable the shutter off option in the camera app.
*requires root
Click to expand...
Click to collapse
This didn't work for me. It also shut off text messages for me. Just FYI beware
Sent from my Verizon Samsung Galaxy Note 3
Other devices currently owned and in use At&t Samsung Galaxy Note 2, Google Nexus 7 2013
pwhitersxs said:
For me what worked is to put Jrummys root browser into system using titanium backup. Then use the built in editor to modify system/csc/feature.xml. change camera sound from false to true. Done.
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
Thanks. Did the same with root explorer. Rebooted and had the settings option to turn it off in the camera app.
Sent from my SM-N900V using Tapatalk
TSman74 said:
Thanks. Did the same with root explorer. Rebooted and had the settings option to turn it off in the camera app.
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
No problem! This is definitely the easiest way. The only remaining noises are on the arrows for the other settings on the screen. They are annoying but not nearly as annoying as the picture taking noise.
pwhitersxs said:
For me what worked is to put Jrummys root browser into system using titanium backup. Then use the built in editor to modify system/csc/feature.xml. change camera sound from false to true. Done.
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
Definitely the best way to get it done.
Sent from my Verizon Samsung Galaxy Note 3
Other devices currently owned and in use At&t Samsung Galaxy Note 2, Google Nexus 7 2013

Unable to mute camera - Root

I have used this method in the past on both my S3 and S4 and it always worked. I just rooted my Note 3 and tried the same without any success. I do the following:
Navigate to system> media> audio> ui Then I proceed to change the name of the following:
Camera_click.ogg
Camera_focus.ogg
Shutter.ogg
Shutter_multiple.ogg
As I stated above, this has always worked but it's NOT working on the Note 3. I have tried it 3 times already and rebooted each time and nothing. Does anyone know if there is something different with the camera sounds on the Note compared to the S3 and S4?
Thanks.
Yes some sounds are baked into the app itself. To fully mute camera you need to use a root Explorer. Go to system / csc/ open feature. Xml then go to camera_shuttersound menu and change it to true. (it's close to the top, under camera features.)
Then go to camera and you will have a mute option in the settings.
Profit.
Sent from my SM-N900V using Tapatalk
Awesome! Needed this!
Awesome! Thanks a ton for this information. This was driving me up a wall!
mrlaigle said:
Yes some sounds are baked into the app itself. To fully mute camera you need to use a root Explorer. Go to system / csc/ open feature. Xml then go to camera_shuttersound menu and change it to true. (it's close to the top, under camera features.)
Then go to camera and you will have a mute option in the settings.
Profit.
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
There is an app called Enforced Stream Silencer that will disable all of the camera sounds once it's installed.
https://sites.google.com/site/enforcedstreamsilencer/
mrlaigle said:
Yes some sounds are baked into the app itself. To fully mute camera you need to use a root Explorer. Go to system / csc/ open feature. Xml then go to camera_shuttersound menu and change it to true. (it's close to the top, under camera features.)
Then go to camera and you will have a mute option in the settings.
Profit.
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
I tried this and after changing false to true, it would not let me save the file.
BobC43 said:
I tried this and after changing false to true, it would not let me safe the file.
Click to expand...
Click to collapse
You need to make sure the system is mounted as RW with whatever file explorer you are using.
njfoses said:
You need to make sure the system is mounted as RW with whatever file explorer you are using.
Click to expand...
Click to collapse
It does show rw-rw-rw for permissions after I changed it from rw-r--r--. Not sure what is up.

LG G4 Resolution and DPI - For battery and performance improvement - ROOT REQUIRED

For People that have very little battery life and feel phone is slow or just want to get a low DPI (lower than 540) to work on phone in general here is the trick
1. Go to terminal emulator
2.Type:
3. Su
4. wm size 1080x1920
5. wm density 440(or any dpi you want)
6. Install Xposed download module called App Settings
7. Change the dpi of lg apps to 540 or higher
8. for the phone app you have to change the Contacts app also.
9. Now to make the phone to work to receive calls and to dial a call you need Tasker app (its a paid app unfortunately...)
10. Go to Tasker
11. go to the tasks tab
12. create two new tasks
13. On the first task: Name it DPI:540
14. add new action
15. click on code then on Run Shell
16. on command type wm density 540
17. check the box Use Root
18. The second task do the same thing except the command: wm density XXX (X represents any dpi you want).
The rest to make it easier watch the video:
https://www.youtube.com/watch?v=0eR2L4xyHKE
When receiving a call it will bring an error but following that it will work.
Battery improved a lot see photo:
Could I just change the resolution using this method without changing the dpi? I don't want to have to mess with that or Tasker to be able to make/receive calls, but I would appreciate the improved battery life by lowering the resolution.
Sent from my VS986
How does this improve battery life? I already have my dpi set lower with no problem and average 3.5 hours SoT.
His graphs indicate that before he was getting 3.5hours SOT after 8h of use and the battery was down to 3%.
Now he is at 4h20 SOT with 12h of use and battery still has 39% left.
You could get an hour to an hour and a half extra of sot by the time battery got to 3%.
jaxbierley said:
How does this improve battery life? I already have my dpi set lower with no problem and average 3.5 hours SoT.
Click to expand...
Click to collapse
Lowering the resolution can save you power, lowering DPI can not.
http://www.phonearena.com/news/We-c...and-negligible-battery-life-increases_id65982
This is a good app to change both resolution and DPI on the fly:http://forum.xda-developers.com/android/apps-games/app-screen-shift-change-screen-t3138718
It has an option to automatically go into default resolution when you're using the phone app. Forget about tasker.
It would be nice to see with a resolution of 720p how many hours you can do!
Sent from my LG-H815 using XDA Free mobile app
No matter what i couldn't get SwiftKey to act right after changing the resolution and DPI.
I also noticed that the camera viewer gets cropped when modding the DPI back to 540 using app settings. So i reverted back to 1440p because IMO these are deal breakers to me.
Sent from my LG-H815 using Tapatalk
rirozizo said:
No matter what i couldn't get SwiftKey to act right after changing the resolution and DPI.
I also noticed that the camera viewer gets cropped when modding the DPI back to 540 using app settings. So i reverted back to 1440p because IMO these are deal breakers to me.
Sent from my LG-H815 using Tapatalk
Click to expand...
Click to collapse
At 160 DPI with a text size of 300 SwiftKey is displayed correctly but way to tiny. The camera of course ended my testing as well.
Edit:
WOOOHOOO! @aravindsagar the developer of screen shift will come with an update with per app resolution settings soon.
I've followed the guide, and got error when phone call from outside. I also tried Screen Shift with many combination of resolutions and density, but with resolution 1080x1980, it only worked at density>530. So I reverted back to QHD with density 540. Hope someone found a solution for res 1080x1980
rick09 said:
Could I just change the resolution using this method without changing the dpi? I don't want to have to mess with that or Tasker to be able to make/receive calls, but I would appreciate the improved battery life by lowering the resolution.
Sent from my VS986
Click to expand...
Click to collapse
You can keep the DPI, but the problem is that everything will be HUGE.
asce1992 said:
It would be nice to see with a resolution of 720p how many hours you can do!
Sent from my LG-H815 using XDA Free mobile app
Click to expand...
Click to collapse
Haha, I tried it unfortunately, it is impossible to read text because it becomes disproportional.
android404 said:
Lowering the resolution can save you power, lowering DPI can not.
http://www.phonearena.com/news/We-c...and-negligible-battery-life-increases_id65982
This is a good app to change both resolution and DPI on the fly:http://forum.xda-developers.com/android/apps-games/app-screen-shift-change-screen-t3138718
It has an option to automatically go into default resolution when you're using the phone app. Forget about tasker.
Click to expand...
Click to collapse
Thank you that makes life much easier Will give it a try
android404 said:
Lowering the resolution can save you power, lowering DPI can not. .
Click to expand...
Click to collapse
As per the article "negligible 7 minute 47 second".
How to revert to stock values since every app crashes when i try to run it?
EDIT:Nevermind, did a hard reset.
imarcel99 said:
How to revert to stock values since every app crashes when i try to run it?
EDIT:Nevermind, did a hard reset.
Click to expand...
Click to collapse
These commands in adb shell
wm size reset
wm density reset
wm overscan reset
Yeah I was not able to do that because when I set dpi to the 440 my Lg keyboard crashed and almost every app even settings.
Sent from my LG-H815 using Tapatalk
Interesting to see that for some people it works for others it doesn't. Idk if I should remove this thread
--
imarcel99 said:
How to revert to stock values since every app crashes when i try to run it?
EDIT:Nevermind, did a hard reset.
Click to expand...
Click to collapse
DPI stock 640
Resolution stock 1440x2560
imarcel99 said:
Yeah I was not able to do that because when I set dpi to the 440 my Lg keyboard crashed and almost every app even settings.
Sent from my LG-H815 using Tapatalk
Click to expand...
Click to collapse
Did u place the DPI 540+ on app settings on xposed?
android404 said:
Lowering the resolution can save you power, lowering DPI can not.
http://www.phonearena.com/news/We-c...and-negligible-battery-life-increases_id65982
This is a good app to change both resolution and DPI on the fly:http://forum.xda-developers.com/android/apps-games/app-screen-shift-change-screen-t3138718
It has an option to automatically go into default resolution when you're using the phone app. Forget about tasker.
Click to expand...
Click to collapse
android404 said:
At 160 DPI with a text size of 300 SwiftKey is displayed correctly but way to tiny. The camera of course ended my testing as well.
Edit:
WOOOHOOO! @aravindsagar the developer of screen shift will come with an update with per app resolution settings soon.
Click to expand...
Click to collapse
Latest version is crashing on my mobile, anyone confirm ?
Or can someone share old apk ?

Resources