diff options
| author | 2021-11-04 20:28:34 +0000 | |
|---|---|---|
| committer | 2021-11-04 20:28:34 +0000 | |
| commit | e88cb403a0b3d50437e3cc9d10a144dba69ad97f (patch) | |
| tree | 479a769ee225a6bb53726734074959683ba85c23 | |
| parent | a2f992a0b12c8d1a7a4cdbc8bf11f82541565558 (diff) | |
| parent | 6786e58c6bad7d5e54dd516c8fae7489f38f4acd (diff) | |
Merge "Updates InputDevice.cpp to read input configs from an APEX." am: ad23373a8c am: 131d8dd638 am: 894ab92124 am: 6786e58c6b
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1836694
Change-Id: I12373bdeeccf7edcb601d1717224555bbbbcd9e1
| -rw-r--r-- | libs/input/InputDevice.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libs/input/InputDevice.cpp b/libs/input/InputDevice.cpp index 220c8e1e6e..1aec477081 100644 --- a/libs/input/InputDevice.cpp +++ b/libs/input/InputDevice.cpp @@ -89,8 +89,15 @@ std::string getInputDeviceConfigurationFilePathByName( // Treblized input device config files will be located /product/usr, /system_ext/usr, // /odm/usr or /vendor/usr. - const char* rootsForPartition[]{"/product", "/system_ext", "/odm", "/vendor", - getenv("ANDROID_ROOT")}; + // These files may also be in the com.android.input.config APEX. + const char* rootsForPartition[]{ + "/product", + "/system_ext", + "/odm", + "/vendor", + "/apex/com.android.input.config/etc", + getenv("ANDROID_ROOT"), + }; for (size_t i = 0; i < size(rootsForPartition); i++) { if (rootsForPartition[i] == nullptr) { continue; |