I use __system_property_get () from sys / system_properties.h to get the system property. I am trying to use r10c ndk because I need the arm64 toolchain.
__ system_property_get () is defined in libc.so. The output of readelf libc.so for armv5 / armv7a is shown below.
readelf -Ws libc.so | grep property_get 194: 00009100 20 FUNC GLOBAL DEFAULT 4 __system_property_get 198: 00009100 20 FUNC GLOBAL DEFAULT 4 __system_property_get
But it looks like it was removed for the arm64 version! I get a linker error saying that it is not defined. I have analyzed all common arm64 libraries, but not one of them has this symbol.
Is there an alternative API to get a system property in native code?
Thanks!
kanak source share