From bb7e82fbcbd8c10d0d0128d736c41cec0f79e7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Brey?= Date: Tue, 14 Jun 2022 15:51:04 +0200 Subject: [PATCH] Use custom permission for unfiltered broadcast receiver in CallActivity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Brey --- app/build.gradle | 4 ++++ app/src/main/AndroidManifest.xml | 5 +++++ .../java/com/nextcloud/talk/activities/CallActivity.java | 6 +++++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index b271d0f16..46dc272a8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -83,6 +83,10 @@ android { testInstrumentationRunnerArgument "TEST_SERVER_URL", "${NC_TEST_SERVER_BASEURL}" testInstrumentationRunnerArgument "TEST_SERVER_USERNAME", "${NC_TEST_SERVER_USERNAME}" testInstrumentationRunnerArgument "TEST_SERVER_PASSWORD", "${NC_TEST_SERVER_PASSWORD}" + + def localBroadcastPermission = "com.nextcloud.talk.permission.PRIVATE_BROADCAST" + manifestPlaceholders.broadcastPermission = localBroadcastPermission + buildConfigField "String", "PERMISSION_LOCAL_BROADCAST", "\"${localBroadcastPermission}\"" } buildTypes { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index afb39eef3..0972f54af 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -79,6 +79,11 @@ + + +