Linux commands

Thursday, July 5, 2012

How to declare new system property in Android

Go to init.rc

//define property
setprop  sys.xyz 0

//use in your code
int ret;
char prop_value[MAX];
ret = property_get("sys.xyz",prop_value,NULL)

No comments:

Post a Comment