Outils pour utilisateurs

Outils du site


lang:android:system
  • Lecture des propriétés système
#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);
}
lang/android/system.txt · Dernière modification : 2023/05/05 16:52 de root