Hide useless error message

This commit is contained in:
topjohnwu 2019-02-16 03:41:37 -05:00
parent 6412bfc7b5
commit fb55fe184c

View File

@ -153,7 +153,7 @@ static int add_pkg_uid(const char *pkg) {
struct stat st;
const char *data = SDK_INT >= 24 ? "/data/user_de/0" : "/data/data";
sprintf(path, "%s/%s", data, pkg);
if (xstat(path, &st) == 0) {
if (stat(path, &st) == 0) {
hide_uid.insert(st.st_uid);
return st.st_uid;
}