Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77091bd4 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Add a HAF access permission

This is signature protected, and extremely dangerous since it
grants system GID.

Change-Id: I2528813de9341187f18ef708e7251b4e5e4003a3
parent e3e357a9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2877,6 +2877,14 @@
        android:label="@string/permlab_changePhoneBlacklist"
        android:description="@string/permdesc_changePhoneBlacklist" />

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

    <!-- The system process is explicitly the only one allowed to launch the
         confirmation UI for full backup/restore -->
    <uses-permission android:name="android.permission.CONFIRM_FULL_BACKUP"/>
+6 −0
Original line number Diff line number Diff line
@@ -64,6 +64,12 @@
    <string name="permdesc_changePrivacyGuardState">Allows the app to change whether another app runs with Privacy Guard. When an app is running with Privacy Guard, it will not have access to personal data such as contacts, call logs, or messages.</string>
    <string name="privacy_guard_notification">Privacy Guard active</string>
    <string name="privacy_guard_notification_detail"><xliff:g id="app">%1$s</xliff:g> will not be able to access personal data</string>

    <!-- Title of an application permission, listed so the user can choose whether they want the application to do this. -->
    <string name="permlab_useHardwareFramework">use hardware framework</string>
    <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permdesc_useHardwareFramework">Allows an app access to the CM hardware framework.</string>

    <string name="privacy_guard_dialog_title">Privacy Guard</string>
    <string name="privacy_guard_dialog_summary"><xliff:g id="app">%1$s</xliff:g> would like to <xliff:g id="op">%2$s</xliff:g>.</string>

+3 −0
Original line number Diff line number Diff line
@@ -117,6 +117,9 @@
         hardware; give them audio for now until full HAL support is added. -->
    <permission name="android.permission.MANAGE_VOICE_KEYPHRASES">
        <group gid="audio" />

    <permission name="android.permission.HARDWARE_ABSTRACTION_ACCESS" >
        <group gid="system" />
    </permission>

    <!-- ================================================================== -->