From 35fdbdab9507758693de72c7c864021d5f9de3f4 Mon Sep 17 00:00:00 2001 From: Vineet Patil Date: Mon, 23 Nov 2015 16:59:26 -0800 Subject: [PATCH] Protected apps components Change-Id: I850d45e9aca6eff8221766830fce45468c8ca549 --- cm/res/AndroidManifest.xml | 8 ++++++++ cm/res/res/values/strings.xml | 5 +++++ src/java/cyanogenmod/content/Intent.java | 25 ++++++++++++++++++++++++ 3 files changed, 38 insertions(+) diff --git a/cm/res/AndroidManifest.xml b/cm/res/AndroidManifest.xml index af2f10b..8a668d1 100644 --- a/cm/res/AndroidManifest.xml +++ b/cm/res/AndroidManifest.xml @@ -127,6 +127,14 @@ android:description="@string/permdesc_accessAppSuggestions" android:protectionLevel="signature|privileged|development" /> + + + Custom tile listener + + add and remove applications to protected apps + Allows an application to be marked as protected + and can be locked + Default diff --git a/src/java/cyanogenmod/content/Intent.java b/src/java/cyanogenmod/content/Intent.java index b7ae458..9611ffe 100644 --- a/src/java/cyanogenmod/content/Intent.java +++ b/src/java/cyanogenmod/content/Intent.java @@ -40,4 +40,29 @@ public class Intent { */ public static final String EXTRA_RECENTS_LONG_PRESS_RELEASE = "cyanogenmod.intent.extra.RECENTS_LONG_PRESS_RELEASE"; + + /** + * Intent filter to update protected app component's settings + */ + public static final String ACTION_PROTECTED = "cyanogenmod.intent.action.PACKAGE_PROTECTED"; + + /** + * Intent filter to notify change in state of protected application. + */ + public static final String ACTION_PROTECTED_CHANGED = + "cyanogenmod.intent.action.PROTECTED_COMPONENT_UPDATE"; + + /** + * This field is part of the intent {@link #ACTION_PROTECTED_CHANGED}. + * Intent extra field for the state of protected application + */ + public static final String EXTRA_PROTECTED_STATE = + "cyanogenmod.intent.extra.PACKAGE_PROTECTED_STATE"; + + /** + * This field is part of the intent {@link #ACTION_PROTECTED_CHANGED}. + * Intent extra field to indicate protected component value + */ + public static final String EXTRA_PROTECTED_COMPONENTS = + "cyanogenmod.intent.extra.PACKAGE_PROTECTED_COMPONENTS"; }