Browse Source

fix permission issues

David Luhmer 7 years ago
parent
commit
b810a59167
2 changed files with 23 additions and 0 deletions
  1. 19 0
      src/main/AndroidManifest.xml
  2. 4 0
      src/main/res/values/strings.xml

+ 19 - 0
src/main/AndroidManifest.xml

@@ -65,7 +65,26 @@
     <uses-permission android:name="android.permission.USE_FINGERPRINT" />
     <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
 
+    <!--
     <permission android:name="com.owncloud.android.sso" android:protectionLevel="signature" />
+    -->
+
+    <permission-group android:name="com.owncloud.android"
+        android:label="@string/permission_group" />
+    <permission
+        android:name="com.owncloud.android.sso"
+        android:permissionGroup="com.owncloud.android"
+        android:protectionLevel="normal"
+        android:label="@string/permission_label"
+        android:description="@string/permission_desc">
+    </permission>
+
+    <!--
+    <uses-permission android:name="com.owncloud.android.sso" />
+    -->
+
+
+
 
     <application
         android:name=".MainApp"

+ 4 - 0
src/main/res/values/strings.xml

@@ -1,5 +1,9 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
+    <string name="permission_label">nextcloud sso</string>
+    <string name="permission_desc">nextcloud sso</string>
+    <string name="permission_group">nextcloud login</string>
+
     <string name="about_android">%1$s Android app</string>
     <string name="about_version">version %1$s</string>
     <string name="actionbar_sync">Refresh account</string>