From e97ce31fe768f6383234d809eef144f049210a5e Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Wed, 6 Jan 2016 18:52:52 +0000 Subject: [PATCH] Revert "system_properties.cpp: special case ro.* properties" This reverts commit c5fd81ab2524a06be907d9c5234e79346bbbbd7c. Bug: 26416032 Change-Id: Id2d6761fdf55efa28c0b08b597daaa5cd381d758 --- libc/bionic/system_properties.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libc/bionic/system_properties.cpp b/libc/bionic/system_properties.cpp index 28cce4050..27204553d 100644 --- a/libc/bionic/system_properties.cpp +++ b/libc/bionic/system_properties.cpp @@ -826,10 +826,6 @@ static bool map_system_property_area(bool access_rw, bool* fsetxattr_failed) { } static prop_area* get_prop_area_for_name(const char* name) { - if (strncmp(name, "ro.", 3) == 0) { - name += 3; - } - auto entry = list_find(prefixes, [name](prefix_node* l) { return l->prefix[0] == '*' || !strncmp(l->prefix, name, l->prefix_len); });