2022-02-06 13:20:18 +01:00
|
|
|
--- a/core/libcutils/properties.cpp
|
|
|
|
+++ b/core/libcutils/properties.cpp
|
2022-02-07 12:53:59 +01:00
|
|
|
@@ -106,6 +106,7 @@
|
2022-02-06 13:20:18 +01:00
|
|
|
data->callback(name, value, data->cookie);
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if defined __ANDROID__ && __ANDROID_API__ >= 26
|
|
|
|
static void property_list_callback(const prop_info* pi, void* data) {
|
|
|
|
__system_property_read_callback(pi, trampoline, data);
|
|
|
|
}
|
2022-02-07 12:53:59 +01:00
|
|
|
@@ -114,5 +115,6 @@
|
|
|
|
callback_data data = {fn, cookie};
|
2022-02-06 13:20:18 +01:00
|
|
|
return __system_property_foreach(property_list_callback, &data);
|
|
|
|
}
|
|
|
|
+#endif
|
2022-02-07 12:53:59 +01:00
|
|
|
|
|
|
|
#endif
|