android 系統使用c語言獲取系統屬性

1. 包含bionic庫中"sys/system_properties.h" ionic

2. 使用接口接口

a:獲取接口 int _system_property_get(const char* key, char* buf),buf[PROP_NAME_MAX]
參數1:獲取的屬性值,參數2:output:char*get

b:設置接口 int __system_property_set(const char *key, const char *value);io

參數1:屬性值,參數2:value值co

相關文章
相關標籤/搜索