blob: 63ad2b4263b2ba72c6160e58305afc6462642777 [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001#include <stdio.h>
2
3#include <cutils/properties.h>
4
5int 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}