lineage-sdk: Use AOSP permission CHANGE_OVERLAY_PACKAGES for styles
*) Replace lineageos.permission.CHANGE_STYLE with
AOSP android.permission.CHANGE_OVERLAY_PACKAGES.
Change-Id: I2dfb339688795ad5a7ae70d8d60a7dc51bbdb4cb
diff --git a/lineage/res/AndroidManifest.xml b/lineage/res/AndroidManifest.xml
index aa4e0f5..ed70182 100644
--- a/lineage/res/AndroidManifest.xml
+++ b/lineage/res/AndroidManifest.xml
@@ -117,13 +117,6 @@
android:icon="@drawable/ic_launcher_lineageos"
android:protectionLevel="normal" />
- <!-- Allows an application to change system style -->
- <permission android:name="lineageos.permission.CHANGE_STYLE"
- android:label="@string/permlab_changeStyle"
- android:description="@string/permdesc_changeStyle"
- android:icon="@drawable/ic_launcher_lineageos"
- android:protectionLevel="dangerous" />
-
<!-- Allows an application to access the Trust interface -->
<permission android:name="lineageos.permission.TRUST_INTERFACE"
android:label="@string/permlab_trustInterface"
diff --git a/sdk/src/java/lineageos/style/StyleInterface.java b/sdk/src/java/lineageos/style/StyleInterface.java
index 9ff9255..b985b22 100644
--- a/sdk/src/java/lineageos/style/StyleInterface.java
+++ b/sdk/src/java/lineageos/style/StyleInterface.java
@@ -93,7 +93,7 @@
* it at runtime as any other dangerous permission
*/
public static final String CHANGE_STYLE_SETTINGS_PERMISSION =
- "lineageos.permission.CHANGE_STYLE";
+ "android.permission.CHANGE_OVERLAY_PACKAGES";
private static final String TAG = "StyleInterface";