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

Commit 1057333b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge changes from topic "inject_key_events_permission" into main

* changes:
  Add INJECT_KEY_EVENTS permission
  Add aconfig flag for create virtual keyboard API
parents 83e0b5ee 51787405
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -173,6 +173,7 @@ package android {
    field @Deprecated public static final String HIDE_NON_SYSTEM_OVERLAY_WINDOWS = "android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS";
    field @FlaggedApi("android.xr.xr_manifest_entries") public static final String IMPORT_XR_ANCHOR = "android.permission.IMPORT_XR_ANCHOR";
    field public static final String INJECT_EVENTS = "android.permission.INJECT_EVENTS";
    field @FlaggedApi("com.android.hardware.input.create_virtual_keyboard_api") public static final String INJECT_KEY_EVENTS = "android.permission.INJECT_KEY_EVENTS";
    field @FlaggedApi("android.content.pm.sdk_dependency_installer") public static final String INSTALL_DEPENDENCY_SHARED_LIBRARIES = "android.permission.INSTALL_DEPENDENCY_SHARED_LIBRARIES";
    field public static final String INSTALL_DPC_PACKAGES = "android.permission.INSTALL_DPC_PACKAGES";
    field public static final String INSTALL_DYNAMIC_SYSTEM = "android.permission.INSTALL_DYNAMIC_SYSTEM";
+8 −0
Original line number Diff line number Diff line
@@ -197,3 +197,11 @@ flag {
    description: "Allow Bluetooth HID profile connection to fully wake up the device."
    bug: "385357349"
}

flag {
    name: "create_virtual_keyboard_api"
    namespace: "input"
    is_exported: true
    description: "Adds support for creating a virtual keyboard API"
    bug: "416054433"
}
+12 −0
Original line number Diff line number Diff line
@@ -5590,6 +5590,18 @@
    <permission android:name="android.permission.INJECT_EVENTS"
        android:protectionLevel="signature" />

    <!-- @SystemApi Allows privileged applications to inject key events into the event stream by
         creating a virtual keyboard. Key events may be delivered to ANY window. Allows for
         arbitrary keycode injections (e.g. AKEYCODE_BRIGHTNESS_UP) and modifier events
         (e.g. META_META_ON + AKEYCODE_L).
         <p>Not for use by third-party applications.
         @hide
         @FlaggedApi(com.android.hardware.input.Flags.FLAG_CREATE_VIRTUAL_KEYBOARD_API)
    -->
    <permission android:name="android.permission.INJECT_KEY_EVENTS"
        android:protectionLevel="signature|privileged"
        android:featureFlag="com.android.hardware.input.create_virtual_keyboard_api" />

    <!-- @hide Allows an application to register an input filter which filters the stream
         of user events (keys, touch, trackball) before they are dispatched to any window. -->
    <permission android:name="android.permission.FILTER_EVENTS"