Home | History | Annotate | Download | only in toolbox
      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 }
     19