Switch to toybox setprop and regenerate generated files.

Change-Id: I63efaef8d27de661eac497a106e2c2c0cac8a9bb
diff --git a/.config b/.config
index aec1fc2..7f2201a 100644
--- a/.config
+++ b/.config
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
 # ToyBox version: KCONFIG_VERSION
-# Tue Apr  7 13:46:26 2015
+# Tue Apr  7 14:59:31 2015
 #
 CONFIG_TOYBOX_CONTAINER=y
 CONFIG_TOYBOX_FIFREEZE=y
@@ -279,6 +279,7 @@
 CONFIG_RESTORECON=y
 CONFIG_RUNCON=y
 CONFIG_SETENFORCE=y
+CONFIG_SETPROP=y
 
 #
 # 
diff --git a/Android.mk b/Android.mk
index 304d651..195970b 100644
--- a/Android.mk
+++ b/Android.mk
@@ -62,6 +62,7 @@
     toys/android/restorecon.c \
     toys/android/runcon.c \
     toys/android/setenforce.c \
+    toys/android/setprop.c \
     toys/lsb/dmesg.c \
     toys/lsb/hostname.c \
     toys/lsb/killall.c \
@@ -195,6 +196,7 @@
     toys/posix/xargs.c \
 
 LOCAL_CFLAGS += \
+    -std=c99 \
     -Os \
     -Wno-char-subscripts \
     -Wno-sign-compare \
@@ -205,7 +207,9 @@
     -ffunction-sections -fdata-sections \
     -fno-asynchronous-unwind-tables \
 
-LOCAL_SHARED_LIBRARIES := libselinux
+LOCAL_CLANG := true
+
+LOCAL_SHARED_LIBRARIES := libcutils libselinux
 
 LOCAL_MODULE := toybox
 
diff --git a/generated/config.h b/generated/config.h
index 3deeb57..b892003 100644
--- a/generated/config.h
+++ b/generated/config.h
@@ -502,6 +502,8 @@
 #define USE_RUNCON(...) __VA_ARGS__
 #define CFG_SETENFORCE 1
 #define USE_SETENFORCE(...) __VA_ARGS__
+#define CFG_SETPROP 1
+#define USE_SETPROP(...) __VA_ARGS__
 #define CFG_TOYBOX 1
 #define USE_TOYBOX(...) __VA_ARGS__
 #define CFG_TOYBOX_SUID 1
diff --git a/generated/flags.h b/generated/flags.h
index 865689b..f99bda1 100644
--- a/generated/flags.h
+++ b/generated/flags.h
@@ -1900,6 +1900,14 @@
 #undef FOR_setenforce
 #endif
 
+// setprop <2>2 <2>2
+#undef OPTSTR_setprop
+#define OPTSTR_setprop "<2>2"
+#ifdef CLEANUP_setprop
+#undef CLEANUP_setprop
+#undef FOR_setprop
+#endif
+
 // setsid ^<1t ^<1t
 #undef OPTSTR_setsid
 #define OPTSTR_setsid "^<1t"
@@ -4223,6 +4231,12 @@
 #endif
 #endif
 
+#ifdef FOR_setprop
+#ifndef TT
+#define TT this.setprop
+#endif
+#endif
+
 #ifdef FOR_setsid
 #ifndef TT
 #define TT this.setsid
diff --git a/generated/help.h b/generated/help.h
index 16d3450..f65eb52 100644
--- a/generated/help.h
+++ b/generated/help.h
@@ -22,6 +22,8 @@
 
 #define help_toybox "usage: toybox [--long | [command] [arguments...]]\n\nWith no arguments, shows available commands. First argument is\nname of a command to run, followed by any arguments to that command.\n\n--long	Show path to each command\n\nTo install command symlinks, try:\n  for i in $(/bin/toybox --long); do ln -s /bin/toybox $i; done\n\n"
 
+#define help_setprop "usage: setprop KEY VALUE\n\nSets an Android system property.\n\n"
+
 #define help_setenforce "usage: setenforce [enforcing|permissive|1|0]\n\nSets whether SELinux is enforcing (1) or permissive (0).\n\n"
 
 #define help_runcon "usage: runcon CONTEXT COMMAND [ARGS...]\n\nRun a command in a specified security context.\n\n"
diff --git a/generated/newtoys.h b/generated/newtoys.h
index 2307f1a..5bdcca6 100644
--- a/generated/newtoys.h
+++ b/generated/newtoys.h
@@ -177,6 +177,7 @@
 USE_SED(NEWTOY(sed, "(version)e*f*inEr[+Er]", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_LOCALE))
 USE_SEQ(NEWTOY(seq, "<1>3?f:s:", TOYFLAG_USR|TOYFLAG_BIN))
 USE_SETENFORCE(NEWTOY(setenforce, "<1>1", TOYFLAG_USR|TOYFLAG_SBIN))
+USE_SETPROP(NEWTOY(setprop, "<2>2", TOYFLAG_USR|TOYFLAG_SBIN))
 USE_SETSID(NEWTOY(setsid, "^<1t", TOYFLAG_USR|TOYFLAG_BIN))
 USE_SH(NEWTOY(sh, "c:i", TOYFLAG_BIN))
 USE_SHA1SUM(NEWTOY(sha1sum, "b", TOYFLAG_USR|TOYFLAG_BIN))