<?xml version="1.0" encoding="utf-8"?>
<!--
     SPDX-FileCopyrightText: 2015 The CyanogenMod Project
     SPDX-FileCopyrightText: The LineageOS Project
     SPDX-License-Identifier: Apache-2.0
-->
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
    package="lineageos.platform"
    coreApp="true" android:sharedUserId="android.uid.system"
    android:sharedUserLabel="@string/lineageos_system_label">

    <protected-broadcast android:name="lineageos.intent.action.SCREEN_CAMERA_GESTURE" />
    <protected-broadcast android:name="lineageos.intent.action.INITIALIZE_LINEAGE_HARDWARE" />
    <protected-broadcast android:name="lineageos.intent.action.INITIALIZE_LIVEDISPLAY" />
    <protected-broadcast android:name="lineageos.platform.intent.action.PROFILE_SELECTED" />

    <protected-broadcast android:name="lineageos.intent.action.UPDATE_PREFERENCE" />
    <protected-broadcast android:name="lineageos.intent.action.REFRESH_PREFERENCE" />

    <protected-broadcast android:name="lineageos.platform.intent.action.PROFILE_UPDATED" />
    <protected-broadcast android:name="lineageos.platform.intent.action.INTENT_ACTION_PROFILE_TRIGGER_STATE_CHANGED" />

    <protected-broadcast android:name="lineageos.platform.intent.action.UPDATE_TWILIGHT_STATE" />

    <protected-broadcast android:name="lineageos.platform.intent.action.CHARGING_CONTROL_CANCEL_ONCE" />

    <!-- Allows an application access to the Lineage hardware abstraction framework
        <p>Not for use by third-party applications. -->
    <permission android:name="lineageos.permission.HARDWARE_ABSTRACTION_ACCESS"
                android:label="@string/permlab_useHardwareFramework"
                android:description="@string/permdesc_useHardwareFramework"
                android:protectionLevel="signature|privileged" />

    <!-- Allows an application to write to Lineage system settings -->
    <permission android:name="lineageos.permission.WRITE_SETTINGS"
                android:label="@string/permlab_writeSettings"
                android:description="@string/permdesc_writeSettings"
                android:protectionLevel="normal" />

    <!-- Allows an application to modify system profiles -->
    <permission android:name="lineageos.permission.MODIFY_PROFILES"
                android:label="@string/permlab_modifyProfiles"
                android:description="@string/permdesc_modifyProfiles"
                android:protectionLevel="normal" />

    <!-- Allows an application to write to secure Lineage system settings.
        <p>Not for use by third-party applications. -->
    <permission android:name="lineageos.permission.WRITE_SECURE_SETTINGS"
                android:label="@string/permlab_writeSecureSettings"
                android:description="@string/permdesc_writeSecureSettings"
                android:protectionLevel="signature|privileged|development" />

    <!-- Allows an application to manage LiveDisplay -->
    <permission android:name="lineageos.permission.MANAGE_LIVEDISPLAY"
                android:label="@string/permlab_manageLiveDisplay"
                android:description="@string/permdesc_manageLiveDisplay"
                android:icon="@drawable/ic_launcher_lineageos"
                android:protectionLevel="normal" />

    <!-- Allows an application to access the Trust interface -->
    <permission android:name="lineageos.permission.TRUST_INTERFACE"
                android:label="@string/permlab_trustInterface"
                android:description="@string/permdesc_trustInterface"
                android:icon="@drawable/ic_trust"
                android:protectionLevel="signature|privileged" />

    <application android:process="system"
                 android:persistent="true"
                 android:hasCode="false"
                 android:label="@string/lineageos_system_label"
                 android:icon="@mipmap/ic_launcher"
                 android:allowClearUserData="false"
                 android:killAfterRestore="false"
                 android:supportsRtl="true"/>

    <!-- Permission for managing remote preferences -->
    <permission android:name="lineageos.permission.MANAGE_REMOTE_PREFERENCES"
                android:label="@string/permlab_manageRemotePrefs"
                android:description="@string/permdesc_manageRemotePrefs"
                android:protectionLevel="signature|privileged" />

</manifest>
