diff options
| author | Fredia Huya-Kouadio <fhuya@meta.com> | 2024-01-11 08:04:09 -0800 |
|---|---|---|
| committer | Fredia Huya-Kouadio <fhuya@meta.com> | 2024-01-11 08:04:09 -0800 |
| commit | df4f9e8e64321cf31a1cffd71fe8fe1879c7cd49 (patch) | |
| tree | 91a3f81f5d71f2ab4d7930f83fe18d8400df91a9 /platform/android/java/editor/src | |
| parent | 352434668923978f54f2236f20116fc96ebc9173 (diff) | |
| download | redot-engine-df4f9e8e64321cf31a1cffd71fe8fe1879c7cd49.tar.gz | |
Disable automatic permissions request
The feature was added in Godot 4.2, but it goes against recommended best practices for permissions request, as such it's being reverted.
In its place, developers now have to explicitly request the permissions they need to access.
Diffstat (limited to 'platform/android/java/editor/src')
| -rw-r--r-- | platform/android/java/editor/src/main/java/org/godotengine/editor/GodotEditor.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/android/java/editor/src/main/java/org/godotengine/editor/GodotEditor.kt b/platform/android/java/editor/src/main/java/org/godotengine/editor/GodotEditor.kt index 0d7017ae71..caf64bc933 100644 --- a/platform/android/java/editor/src/main/java/org/godotengine/editor/GodotEditor.kt +++ b/platform/android/java/editor/src/main/java/org/godotengine/editor/GodotEditor.kt @@ -91,6 +91,10 @@ open class GodotEditor : GodotActivity() { private val commandLineParams = ArrayList<String>() override fun onCreate(savedInstanceState: Bundle?) { + // We exclude certain permissions from the set we request at startup, as they'll be + // requested on demand based on use-cases. + PermissionsUtil.requestManifestPermissions(this, setOf(Manifest.permission.RECORD_AUDIO)) + val params = intent.getStringArrayExtra(EXTRA_COMMAND_LINE_PARAMS) Log.d(TAG, "Received parameters ${params.contentToString()}") updateCommandLineParams(params) |
