diff options
author | 2024-01-18 03:15:48 +0000 | |
---|---|---|
committer | 2024-01-18 03:15:48 +0000 | |
commit | 2443732f31fa918e67988d7cd134b97869d82881 (patch) | |
tree | 2a1a9314f936bc75b216f3372f55c5b05a2a32db /libs/input/KeyLayoutMap.cpp | |
parent | f62920cce147a6f566499a63ef2550e6166c3bb3 (diff) | |
parent | a50396ac3902482580eb59e259de1a6203cfc9e4 (diff) |
Merge "Skip loading kernel configs unless needed" into main
Diffstat (limited to 'libs/input/KeyLayoutMap.cpp')
-rw-r--r-- | libs/input/KeyLayoutMap.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/input/KeyLayoutMap.cpp b/libs/input/KeyLayoutMap.cpp index ab8c341b15..508818852e 100644 --- a/libs/input/KeyLayoutMap.cpp +++ b/libs/input/KeyLayoutMap.cpp @@ -97,6 +97,10 @@ static const std::unordered_map<std::string_view, InputDeviceSensorType> SENSOR_ bool kernelConfigsArePresent(const std::set<std::string>& configs) { #if defined(__ANDROID__) + if (configs.empty()) { + return true; + } + std::map<std::string, std::string> kernelConfigs; const status_t result = android::kernelconfigs::LoadKernelConfigs(&kernelConfigs); LOG_ALWAYS_FATAL_IF(result != OK, "Kernel configs could not be fetched"); |