现在的位置: 首页 > 综合 > 正文

android property_get 与 property_set

2018年04月18日 ⁄ 综合 ⁄ 共 381字 ⁄ 字号 评论关闭

转载时请注明出处和作者文章出处:http://blog.csdn.net/lbmygf 

1、 char driver_status[PROPERTY_VALUE_MAX];
 
    property_get("wlan.driver.status", driver_status, NULL);
 
    获得 "wlan.driver.status" 的属性,放到 driver_status 数组中。
 
2、 property_set("wlan.driver.status", "timeout");
    
    将 "wlan.driver.status" 属性设置为 timeout。
 
相应的命令:
            getprop "wlan.driver.status"
            setprop "wlan.driver.status"  "timeout"

抱歉!评论已关闭.