Protected apps components

Change-Id: I850d45e9aca6eff8221766830fce45468c8ca549
This commit is contained in:
Vineet Patil 2015-11-23 16:59:26 -08:00
parent a6cf63ac7d
commit 35fdbdab95
3 changed files with 38 additions and 0 deletions

View File

@ -127,6 +127,14 @@
android:description="@string/permdesc_accessAppSuggestions"
android:protectionLevel="signature|privileged|development" />
<!-- Permission for adding/removing applications to protected apps
<p>Not for use by third-party applications. -->
<permission
android:name="cyanogenmod.permission.PROTECTED_APP"
android:label="@string/permlab_protectedApp"
android:description="@string/permdesc_protectedApp"
android:protectionLevel="signature|privileged" />
<application android:process="system"
android:persistent="true"
android:hasCode="false"

View File

@ -77,6 +77,11 @@
<!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<string name="custom_tile_listener_binding_label">Custom tile listener</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">add and remove applications to protected apps</string>
<string name="permdesc_protectedApp">Allows an application to be marked as protected
and can be locked</string>
<!-- Profiles -->
<!-- Names of default profiles. -->
<string name="profileNameDefault">Default</string>

View File

@ -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";
}