Hi, this is not a direct problem with the Galaxy Camera.
I use a Galaxy device made in Japan and many people want to turn off the shutter sound.
So I created an app called Galaxy CamSnd that turns off the shutter sound.
In my app, do the following:
Settings.System.putInt(getContentResolver(), "csc_pref_camera_forced_shuttersound_key", 0);
Here’s the big problem:
The conclusion of the problem I want to convey is that you can’t turn off the shutter sound with just the app on your device, without using ADB.
One UI 6.0 has been upgraded to Android version 14 (34).
This is a very good thing.
And for security reasons, third-party apps with a targetSdkVersion of 22 or less can no longer be installed unless they are via a shell such as ADB.
If you look at the source code of my app, you’ll see that the targetSdk is 22.
This is because if you set targetSdk to M(23) or higher, your app won’t work properly.
The content of this crash is an IllegalArgumentException:
java.lang.IllegalArgumentException: You cannot keep your settings in the secure settings.
In apps with targetSdk is 23 or higher, can putInt()
no longer be used?
Or is it just my implementation mistake?
If, as I mentioned earlier, putInt()
cannot be used, I would like the Japan version of the device to allow the user to adjust the shutter sound arbitrarily.