property_get函数使用

2023-11-16

在C域的使用方法

int property_get(const char *key, char *value, const char *default_value);
int property_set(const char *key, const char *value);
 

char buf[20]="ssssssssssss";

char tempbuf[PROPERTY_VALUE_MAX];

property_set("phone.imei",buf);

property_get("phone.imei",tempbuf,"0");


adb shell

root@rkpx3:/system # setprop app.imei     ssssssssssss                                 

root@rkpx3:/system # getprop app.imei                                      

ssssssssssss

在JAVA域的使用方法

String navBarOverride = SystemProperties.get("qemu.hw.mainkeys");

SystemProperties.set("service.bootanim.exit", "0");


详见

http://blog.csdn.net/xujianqun/article/details/6363318



本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

property_get函数使用 的相关文章

随机推荐