refactor(permissions): Remove unnecessary full-screen intent permission for outgoing calls

This commit is contained in:
cogwheel0
2025-11-26 13:49:44 +05:30
parent 9b69290589
commit 7301bcbeac
3 changed files with 9 additions and 4 deletions

View File

@@ -1,6 +1,12 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.INTERNET"/>
<!-- Remove USE_FULL_SCREEN_INTENT added by flutter_callkit_incoming/flutter_local_notifications.
Not needed: app only has outgoing calls (no incoming call UI on lock screen). -->
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" tools:node="remove"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/> <uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.CAMERA"/> <uses-permission android:name="android.permission.CAMERA"/>

View File

@@ -225,6 +225,6 @@ SPEC CHECKSUMS:
wakelock_plus: e29112ab3ef0b318e58cfa5c32326458be66b556 wakelock_plus: e29112ab3ef0b318e58cfa5c32326458be66b556
webview_flutter_wkwebview: 8ebf4fded22593026f7dbff1fbff31ea98573c8d webview_flutter_wkwebview: 8ebf4fded22593026f7dbff1fbff31ea98573c8d
PODFILE CHECKSUM: 32adf4606dae7e9ca2351c13b9e3ce1df6ad7ebf PODFILE CHECKSUM: 1f8874f58051a502e2f506dc2d4737781aa1edde
COCOAPODS: 1.16.2 COCOAPODS: 1.16.2

View File

@@ -27,8 +27,7 @@ class CallKitService {
}, },
), ),
); );
// Full-screen intent permission not needed for outgoing-only calls.
await _safe(() => FlutterCallkitIncoming.requestFullIntentPermission());
} }
/// Starts an outgoing call with the native UI and returns the call id. /// Starts an outgoing call with the native UI and returns the call id.