您的位置:首页 > 编程语言 > C语言/C++

android 系统使用c语言获取系统属性

2014-12-24 09:01 826 查看
1. 包含bionic库中"sys/system_properties.h"

2. 使用接口

a:获取接口 int _system_property_get(const char* key, char* buf),buf[PROP_NAME_MAX]
参数1:获取的属性值,参数2:output:char*

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

参数1:属性值,参数2:value值
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: