[Android] Remove READ_PHONE_STATE permission from release

Geoffrey Métais git at videolan.org
Mon Oct 26 16:37:10 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Oct 26 15:40:49 2015 +0100| [923bbada6687ecab31addc1dfd3f90619976ccdf] | committer: Geoffrey Métais

Remove READ_PHONE_STATE permission from release

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=923bbada6687ecab31addc1dfd3f90619976ccdf
---

 vlc-android/build.gradle                |    3 +++
 vlc-android/release/AndroidManifest.xml |   10 ++++++++++
 vlc-android/tv/AndroidManifest.xml      |    3 ++-
 3 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/vlc-android/build.gradle b/vlc-android/build.gradle
index 64c80d4..40dd67b 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -166,6 +166,9 @@ android {
         res.srcDirs = ['res']
         assets.srcDirs = ['assets']
     }
+    sourceSets.release {
+        manifest.srcFile 'release/AndroidManifest.xml'
+    }
     sourceSets.test {
         java.srcDirs = ['test']
     }
diff --git a/vlc-android/release/AndroidManifest.xml b/vlc-android/release/AndroidManifest.xml
new file mode 100644
index 0000000..20da9c3
--- /dev/null
+++ b/vlc-android/release/AndroidManifest.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    package="org.videolan.vlc">
+
+    <!-- Because manifest merger will add it otherwise... -->
+    <uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />
+
+</manifest>
diff --git a/vlc-android/tv/AndroidManifest.xml b/vlc-android/tv/AndroidManifest.xml
index 4634f45..047bc79 100644
--- a/vlc-android/tv/AndroidManifest.xml
+++ b/vlc-android/tv/AndroidManifest.xml
@@ -5,7 +5,8 @@
 
     <uses-sdk
         android:minSdkVersion="17" />
-
+    
+    <uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />
     <!-- Launch recommendations service once device is booted -->
     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
 



More information about the Android mailing list