From 5ffb36a87f4285c0810bc430b8b35c043e2a567e Mon Sep 17 00:00:00 2001 From: Jens Date: Tue, 18 May 2021 22:30:01 +0200 Subject: [PATCH] Added read_phone_state for action setDataConnection --- app/src/apkFlavor/AndroidManifest.xml | 16 ++++++++-------- app/src/fdroidFlavor/AndroidManifest.xml | 14 ++++++-------- app/src/googlePlayFlavor/AndroidManifest.xml | 16 ++++++++-------- .../jens/automation2/ActivityPermissions.java | 1 + 4 files changed, 23 insertions(+), 24 deletions(-) diff --git a/app/src/apkFlavor/AndroidManifest.xml b/app/src/apkFlavor/AndroidManifest.xml index 881a14be..053d4a93 100644 --- a/app/src/apkFlavor/AndroidManifest.xml +++ b/app/src/apkFlavor/AndroidManifest.xml @@ -192,7 +192,7 @@ - + + + + + + + + - - - - - - - diff --git a/app/src/fdroidFlavor/AndroidManifest.xml b/app/src/fdroidFlavor/AndroidManifest.xml index e46e0cf9..85793ce3 100644 --- a/app/src/fdroidFlavor/AndroidManifest.xml +++ b/app/src/fdroidFlavor/AndroidManifest.xml @@ -188,14 +188,6 @@ - - - - - - - - + + + + + + - + + + + + + + + - - - - - - - diff --git a/app/src/main/java/com/jens/automation2/ActivityPermissions.java b/app/src/main/java/com/jens/automation2/ActivityPermissions.java index d2dbdb34..310299ed 100644 --- a/app/src/main/java/com/jens/automation2/ActivityPermissions.java +++ b/app/src/main/java/com/jens/automation2/ActivityPermissions.java @@ -524,6 +524,7 @@ public class ActivityPermissions extends Activity addToArrayListUnique(Manifest.permission.WRITE_SETTINGS, requiredPermissions); addToArrayListUnique(Manifest.permission.ACCESS_NETWORK_STATE, requiredPermissions); addToArrayListUnique(Manifest.permission.CHANGE_NETWORK_STATE, requiredPermissions); + addToArrayListUnique(Manifest.permission.READ_PHONE_STATE, requiredPermissions); /* Permission was not required anymore, even before Android 6: https://su.chainfire.eu/#updates-permission addToArrayListUnique(permissionNameSuperuser, requiredPermissions);*/ break;