#include <sys/system_properties.h> const prop_info* pi = __system_property_find("persist.sys.locale"); if (pi != nullptr) { __system_property_read_callback( pi, [](void* cookie, const char*, const char* value, unsigned int) { reinterpret_cast<Classe*>(cookie)->champ = value; }, this); }