OSDN Git Service

Remove limit of system property name length
authorDimitry Ivanov <dimitry@google.com>
Thu, 3 Dec 2015 19:26:38 +0000 (11:26 -0800)
committerDimitry Ivanov <dimitry@google.com>
Mon, 23 Jan 2017 19:21:18 +0000 (11:21 -0800)
commit5c1ce278f31bc6fc338b9b951f1adc7c2b343d7c
tree0652006476a923c95c16837640a52f9298322a35
parent7844b4c5dbd0be9ea4212a523da2dd6a4804032c
Remove limit of system property name length

This change introduces new __system_property_read_callback
method to use in place of deprecated __system_property_read
__system_property_set() and get() should just work but now
do not have limit on system property names.

Bug: http://b/33926793
Test: boot device, run adb shell propget
Test: boot device with old version of init (protocol v1)
Test: run bionic-unit-tests --gtest_filter=prop*
Change-Id: I619fb5a7e27a272aac30011579665f6160888bc7
14 files changed:
libc/bionic/system_properties.cpp
libc/bionic/system_properties_compat.c
libc/include/sys/_system_properties.h
libc/include/sys/system_properties.h
libc/libc.arm.map
libc/libc.arm64.map
libc/libc.map.txt
libc/libc.mips.map
libc/libc.mips64.map
libc/libc.x86.map
libc/libc.x86_64.map
tests/Android.bp
tests/system_properties_test.cpp
tests/system_properties_test2.cpp [new file with mode: 0644]