History log of /external/toybox/toys/android/getprop.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b4944cab5213e47be222f23dd60e86644e4f2186 05-Feb-2017 Rob Landley <rob@landley.net> Patch from Elliott to silence a "const" warning in android/getprop.c.
(Broken out of a larger patch, fixed the other part a different way.)
/external/toybox/toys/android/getprop.c
102841199bee9cc76f3fff4335d6dbdd3c0cc8ab 25-Jan-2017 Dimitry Ivanov <dimitry@google.com> Remove name length limit for system properties

Android O removes name length limit for system properties.

Use __system_property_read_callback instead of deprecated
__system_property_read in getprop and remove check for
property name length in setprop.

Test: adb shell setprop debug.test.very.very.long.property.name valueforpropertywithlongname
Test: adb shell getprop | grep debug.test.very.very.long.property.name
Bug: http://b/33926793
Change-Id: I57ca99ea33283d069cd1b7b9f110ec9fb27f3d19
/external/toybox/toys/android/getprop.c
731a54b768d6b61fa5ef2e1bc39cee882c25bcce 27-Dec-2016 Elliott Hughes <enh@google.com> Admit that getprop requires selinux.

The "lsm" portability stuff could abstract this away, but Android doesn't
need it, and getprop is meaningless on non-Android. (And if you're just
building with the NDK, on recent enough versions of Android you won't be
able to read most of the system properties anyway because access to them is
increasingly restricted by selinux.)
/external/toybox/toys/android/getprop.c
45c6b12a0a0f09054ab1fee9197860aee27b2e8a 27-Dec-2016 Elliott Hughes <enh@google.com> Switch to bionic <sys/system_properties.h>.

Removes the dependency on libcutils for everything except ps.
/external/toybox/toys/android/getprop.c
d3e8dd1bf56afc2277960472a46907d419e4b3da 06-May-2016 Alistair Strachan <alistair.strachan@imgtec.com> Fix static linkage of toybox binary.

If toybox was compiled statically e.g. for use in a recovery ramdisk,
it would not build after b66a29a. This is because libselinux already
exports a selinux_log_callback() function which getprop.c is trying
to override.

This change simply makes the second symbol static, since it is only
used in a function table so we do not actually need to export it
from toybox.

Change-Id: I603258877ae2286660df35738bbf4f4285df5b54
Signed-off-by: Alistair Strachan <alistair.strachan@imgtec.com>
/external/toybox/toys/android/getprop.c
b66a29ab58c686c98ab9683c5c544f40a1ea35f5 18-Feb-2016 Tom Cherry <tomcherry@google.com> Add support for getprop -Z

Add support for a -Z option to getprop that will either print the
SELabel of a given property if one is provided or print all properties
that have been set along with their SELabel.

Also, correct a memory leak when freeing TT.nv.
/external/toybox/toys/android/getprop.c
2a7727dec265fa96e8522b0a557b72320d2889a7 03-May-2015 Elliott Hughes <enh@google.com> Fix getprop sorting and error reporting.

Use qstrcmp instead of alphasort (which expects struct dirent arguments).

Don't use perror_exit because property_list doesn't set errno.
/external/toybox/toys/android/getprop.c
e5fb6a28ffb09782e4df08251956f42c48445147 21-Apr-2015 Rob Landley <rob@landley.net> Switch setprop to use TOYBOX_ON_ANDROID and fix getprop include.

(I commented out the android-only #include in getprop to do what compile
testing I could, and then forgot to uncomment it.)
/external/toybox/toys/android/getprop.c
5b493dc48db03c7e27c8ce002fe216bcd778fe92 20-Apr-2015 Rob Landley <rob@landley.net> Cleanup getprop, add qstrcmp() to lib for qsort (because posix-2008 broke
alphasort), add compile-time probe for config symbol TOYBOX_ON_ANDROID.
/external/toybox/toys/android/getprop.c
d5566b3bf443b19ec511d702b4f03e352afafc86 19-Apr-2015 Rob Landley <rob@landley.net> Android getprop and setprop from Elliott Hughes.
/external/toybox/toys/android/getprop.c