diff options
| author | 2021-04-30 09:48:49 -0700 | |
|---|---|---|
| committer | 2021-04-30 11:06:35 -0700 | |
| commit | 1438ccbdb8ed8966b02ea1a13966da9a1ee400b3 (patch) | |
| tree | 34e5ab34b1e4c17a00ba9235b40d75c9f70dc615 /libs/input/InputDevice.cpp | |
| parent | a0e37d286b55bab43ce2c295f98885c9bf77dc95 (diff) | |
Allow input device config files in product and system_ext.
Treblization requires to locate OEM-specific configs in its own
partition. So the input device config file could be located in
/product/usr or /system_ext/usr.
Bug: 186864233
Test: "dumpsys input" and manual testing.
Change-Id: I72ca5c786ba1848edcef5c6f3ae71ce27bf8bdae
Diffstat (limited to 'libs/input/InputDevice.cpp')
| -rw-r--r-- | libs/input/InputDevice.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/input/InputDevice.cpp b/libs/input/InputDevice.cpp index 31027b6476..61d72adb33 100644 --- a/libs/input/InputDevice.cpp +++ b/libs/input/InputDevice.cpp @@ -87,8 +87,10 @@ std::string getInputDeviceConfigurationFilePathByName( // Search system repository. std::string path; - // Treblized input device config files will be located /odm/usr or /vendor/usr. - const char *rootsForPartition[] {"/odm", "/vendor", getenv("ANDROID_ROOT")}; + // 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")}; for (size_t i = 0; i < size(rootsForPartition); i++) { if (rootsForPartition[i] == nullptr) { continue; |