From 36173f2fcb893d6a3f0ec6adbb8ef0cf38922cc9 Mon Sep 17 00:00:00 2001 From: Jens Date: Tue, 1 Aug 2023 22:59:05 +0200 Subject: [PATCH] device admin permission added for start phone call action --- app/build.gradle | 4 ++-- .../main/java/com/jens/automation2/ActivityPermissions.java | 3 +++ fastlane/metadata/android/en-US/changelogs/134.txt | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 fastlane/metadata/android/en-US/changelogs/134.txt diff --git a/app/build.gradle b/app/build.gradle index 024852d..e03c5a3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,8 +11,8 @@ android { compileSdkVersion 31 buildToolsVersion '29.0.2' useLibrary 'org.apache.http.legacy' - versionCode 133 - versionName "1.7.17" + versionCode 134 + versionName "1.7.18" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/com/jens/automation2/ActivityPermissions.java b/app/src/main/java/com/jens/automation2/ActivityPermissions.java index cb6717e..3336d84 100644 --- a/app/src/main/java/com/jens/automation2/ActivityPermissions.java +++ b/app/src/main/java/com/jens/automation2/ActivityPermissions.java @@ -706,6 +706,7 @@ public class ActivityPermissions extends Activity case startPhoneCall: addToArrayListUnique(Manifest.permission.CALL_PHONE, requiredPermissions); // addToArrayListUnique(Manifest.permission.SYSTEM_ALERT_WINDOW, requiredPermissions); + addToArrayListUnique(Manifest.permission.BIND_DEVICE_ADMIN, requiredPermissions); break; case stopPhoneCall: addToArrayListUnique(Manifest.permission.ANSWER_PHONE_CALLS, requiredPermissions); @@ -950,6 +951,8 @@ public class ActivityPermissions extends Activity case Manifest.permission.BIND_DEVICE_ADMIN: for(String ruleName : getRulesUsing(Action.Action_Enum.turnScreenOnOrOff)) usingElements.add(String.format(getResources().getString(R.string.ruleXrequiresThis), ruleName)); + for(String ruleName : getRulesUsing(Action.Action_Enum.startPhoneCall)) + usingElements.add(String.format(getResources().getString(R.string.ruleXrequiresThis), ruleName)); break; case Manifest.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS: usingElements.add(getResources().getString(R.string.recommendedForBetterReliability)); diff --git a/fastlane/metadata/android/en-US/changelogs/134.txt b/fastlane/metadata/android/en-US/changelogs/134.txt new file mode 100644 index 0000000..e362db1 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/134.txt @@ -0,0 +1 @@ +* Fixed: Added device admin permission for start-phone-call action \ No newline at end of file