Make systemproperties more match AOSP

This commit is contained in:
topjohnwu
2021-03-29 03:46:07 -07:00
parent 7e4194418a
commit 2bef967af1
5 changed files with 15 additions and 12 deletions

View File

@@ -21,6 +21,9 @@ static bool verbose = false;
#define system_property_read_callback __system_property_read_callback
#define system_property_foreach __system_property_foreach
#define system_property_read(...)
extern "C" int fsetxattr(int fd, const char* name, const void* value, size_t size, int flags) {
return syscall(__NR_fsetxattr, fd, name, value, size, flags);
}
#else
static int (*system_property_set)(const char*, const char*);
static int (*system_property_read)(const prop_info*, char*, char*);