sdm845-common: Import pocketmode app and SELinux rules for it

* Based off android_device_oneplus_msm8998-common pocketmode
  app but without fpc10xx support and using actual OnePlus
  pocketmode sensor.

Change-Id: I73eaf7e00afd08cdad71d323b6821eb8a0160cd2
This commit is contained in:
LuK1337
2018-07-19 16:21:45 +02:00
committed by Luca Stefani
parent ee329ad0bb
commit 4ed29836d8
11 changed files with 259 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.lineageos.pocketmode"
android:versionCode="1"
android:versionName="1.0"
android:sharedUserId="android.uid.system">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-sdk
android:minSdkVersion="21"
android:targetSdkVersion="21"/>
<application
android:label="OnePlusPocketMode"
android:persistent="true">
<receiver android:name="org.lineageos.pocketmode.BootCompletedReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<service android:name="org.lineageos.pocketmode.PocketModeService"
android:permission="OnePlusPocketModeService">
</service>
</application>
</manifest>