cmsdk: add common action for launching camera from screen gesture

Ref: OPO-427

Change-Id: If97b2ebc864687a53c4ef8253f5d2d0bafc1e996
Signed-off-by: Roman Birg <roman@cyngn.com>
This commit is contained in:
Roman Birg 2016-02-16 19:03:29 -08:00 committed by Gerrit Code Review
parent c8e4f0066f
commit 6ad5263eb3
2 changed files with 14 additions and 0 deletions

View File

@ -22,6 +22,8 @@
coreApp="true" android:sharedUserId="android.uid.system"
android:sharedUserLabel="@string/cyanogenmod_system_label">
<protected-broadcast android:name="cyanogenmod.intent.action.SCREEN_CAMERA_GESTURE" />
<!-- Must be required by an, to ensure that only the system can bind to it.
@hide -->
<permission android:name="cyanogenmod.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE"

View File

@ -17,6 +17,8 @@
package cyanogenmod.content;
import android.Manifest;
/**
* CyanogenMod specific intent definition class.
*/
@ -65,4 +67,14 @@ public class Intent {
*/
public static final String EXTRA_PROTECTED_COMPONENTS =
"cyanogenmod.intent.extra.PACKAGE_PROTECTED_COMPONENTS";
/**
* Broadcast action: notify the system that the user has performed a gesture on the screen
* to launch the camera. Broadcast should be protected to receivers holding the
* {@link Manifest.permission#STATUS_BAR_SERVICE} permission.
* @hide
*/
public static final String ACTION_SCREEN_CAMERA_GESTURE =
"cyanogenmod.intent.action.SCREEN_CAMERA_GESTURE";
}