Ethan Yonker | 6bb26b5 | 2016-01-10 22:26:51 -0600 | [diff] [blame] | 1 | #include <stdio.h> |
2 | |||||
3 | #include <cutils/properties.h> | ||||
4 | |||||
5 | int setprop_main(int argc, char *argv[]) | ||||
6 | { | ||||
7 | if(argc != 3) { | ||||
8 | fprintf(stderr,"usage: setprop <key> <value>\n"); | ||||
9 | return 1; | ||||
10 | } | ||||
11 | |||||
12 | if(property_set(argv[1], argv[2])){ | ||||
13 | fprintf(stderr,"could not set property\n"); | ||||
14 | return 1; | ||||
15 | } | ||||
16 | |||||
17 | return 0; | ||||
18 | } |