summaryrefslogtreecommitdiffstats
path: root/toolbox/setprop.c
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-01-11 05:26:51 +0100
committerDees Troy <dees_troy@teamw.in>2016-01-15 01:27:45 +0100
commit6bb26b5f14258c9fa0ed2b31d8cc0f25e0b24e1b (patch)
tree6d971c658a3ca67fae74178fae46a250ad2ad604 /toolbox/setprop.c
parentImprove sdcard partitioning process (diff)
downloadandroid_bootable_recovery-6bb26b5f14258c9fa0ed2b31d8cc0f25e0b24e1b.tar
android_bootable_recovery-6bb26b5f14258c9fa0ed2b31d8cc0f25e0b24e1b.tar.gz
android_bootable_recovery-6bb26b5f14258c9fa0ed2b31d8cc0f25e0b24e1b.tar.bz2
android_bootable_recovery-6bb26b5f14258c9fa0ed2b31d8cc0f25e0b24e1b.tar.lz
android_bootable_recovery-6bb26b5f14258c9fa0ed2b31d8cc0f25e0b24e1b.tar.xz
android_bootable_recovery-6bb26b5f14258c9fa0ed2b31d8cc0f25e0b24e1b.tar.zst
android_bootable_recovery-6bb26b5f14258c9fa0ed2b31d8cc0f25e0b24e1b.zip
Diffstat (limited to '')
-rw-r--r--toolbox/setprop.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/toolbox/setprop.c b/toolbox/setprop.c
new file mode 100644
index 000000000..63ad2b426
--- /dev/null
+++ b/toolbox/setprop.c
@@ -0,0 +1,18 @@
+#include <stdio.h>
+
+#include <cutils/properties.h>
+
+int setprop_main(int argc, char *argv[])
+{
+ if(argc != 3) {
+ fprintf(stderr,"usage: setprop <key> <value>\n");
+ return 1;
+ }
+
+ if(property_set(argv[1], argv[2])){
+ fprintf(stderr,"could not set property\n");
+ return 1;
+ }
+
+ return 0;
+}