Add input_device.config_file.apex property

This new property is to set an apex name when input configuration files
are bundled in an apex.

libinput checks the new sysprop when loading input configuration.

This removes hard-coded apex name (com.android.input.config).

Bug: 315080500
Test: adb shell dumpsys input
  # set "touch.orientationAware = 0" in Touchscreen_0.idc
  # build/install the input config apex
  # Observe the Input configuration
  # "Touch Input Mapper" shows "OrientationAware: false"
Change-Id: Ie0bf30bff2ed7f983caa5b893994a5bd2759e192
This commit is contained in:
Jooyung Han 2024-02-23 14:06:32 +09:00
parent 9fca32695a
commit c6d75293b9
4 changed files with 6 additions and 0 deletions

View file

@ -23,6 +23,7 @@
hal_threadnetwork_service
hidl_memory_prop
hidraw_device
input_device_config_prop
virtual_camera_service
ot_daemon_service
ot_daemon_socket

View file

@ -288,6 +288,9 @@ persist.device_config.memory_safety_native_boot. u:object_r:device_config_mem
persist.device_config.memory_safety_native. u:object_r:device_config_memory_safety_native_prop:s0
persist.device_config.tethering_u_or_later_native. u:object_r:device_config_tethering_u_or_later_native_prop:s0
# Prop indicates the apex that bundles input configuration files (*.idc,*.kl,*.kcm)
input_device.config_file.apex u:object_r:input_device_config_prop:s0 exact string
# Properties that is for staging
next_boot. u:object_r:next_boot_prop:s0

View file

@ -520,6 +520,7 @@ allow system_server apk_tmp_file:file create_file_perms;
r_dir_file(system_server, vendor_keylayout_file)
r_dir_file(system_server, vendor_keychars_file)
r_dir_file(system_server, vendor_idc_file)
get_prop(system_server, input_device_config_prop)
# Access /vendor/{app,framework,overlay}
r_dir_file(system_server, vendor_app_file)

View file

@ -160,6 +160,7 @@ system_vendor_config_prop(hw_timeout_multiplier_prop)
system_vendor_config_prop(hypervisor_prop)
system_vendor_config_prop(hypervisor_restricted_prop)
system_vendor_config_prop(incremental_prop)
system_vendor_config_prop(input_device_config_prop)
system_vendor_config_prop(keyguard_config_prop)
system_vendor_config_prop(keystore_config_prop)
system_vendor_config_prop(lmkd_config_prop)