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

Commit 31ac8e9d authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Add new permission android.permission.ACCESS_USB to allow access to USB devices



Change-Id: Ib3dd573a5ef3950d20b21251fe7a3efad56b5c1f
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 91882c47
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -436,6 +436,14 @@
        android:label="@string/permlab_flashlight"
        android:description="@string/permdesc_flashlight" />

    <!-- Allows an application to access USB devices
         @hide -->
    <permission android:name="android.permission.ACCESS_USB"
        android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
        android:protectionLevel="signatureOrSystem"
        android:label="@string/permlab_accessUsb"
        android:description="@string/permdesc_accessUsb" />

    <!-- Allows access to hardware peripherals.  Intended only for hardware testing -->
    <permission android:name="android.permission.HARDWARE_TEST"
        android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
+5 −0
Original line number Diff line number Diff line
@@ -929,6 +929,11 @@
    <string name="permdesc_flashlight">Allows the application to control
        the flashlight.</string>

    <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permlab_accessUsb">access USB devices</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_accessUsb">Allows the application to access USB devices.</string>

    <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permlab_hardware_test">test hardware</string>
    <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
+4 −0
Original line number Diff line number Diff line
@@ -58,6 +58,10 @@
        <group gid="sdcard_rw" />
    </permission>

    <permission name="android.permission.ACCESS_USB" >
        <group gid="usb" />
    </permission>

    <!-- The group that /cache belongs to, linked to the permission
         set on the applications that can access /cache -->
    <permission name="android.permission.ACCESS_CACHE_FILESYSTEM" >