Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Disable noise warning #70

Open
crutchcorn opened this issue Nov 23, 2022 · 3 comments
Open

[Feature Request] Disable noise warning #70

crutchcorn opened this issue Nov 23, 2022 · 3 comments

Comments

@crutchcorn
Copy link

There seems to be a feature that has the Quest 2 disable the ability to turn up the volume without confirming it in the Quest app.

The problem is that I've removed the account login on my quest and can now no longer turn up the volume. It would be great to disable this "feature" if at all possible. (even with ADB)

@crutchcorn
Copy link
Author

crutchcorn commented Nov 23, 2022

This is actually possible using:

import android.provider.Settings

// ...

Settings.Global.putInt(contentResolver,
    "audio_safe_volume_state",
2);

And then rebooting the device after this code is ran.

The problem is that it requires:

<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" tools:ignore="ProtectedPermissions" />

In AndroidManifest.xml and the command:

adb shell pm grant com.orgname.packagename android.permission.WRITE_SECURE_SETTINGS

To be ran via ADB.

I'd be happy to contribute this feature and documentation on how others can use it if you'd like, @basti564, but I also understand if you mark this out-of-scope

@basti564
Copy link
Owner

I'll consider it, but considering you can already enable it with just adb I don't see why you would want to first grant Oculess write secure settings permission.
adb shell settings put global audio_safe_volume_state 2

@crutchcorn
Copy link
Author

I, for some reason, remember that command not working for me, but I could be wrong 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants