mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-27 09:47:38 +00:00
Hide useless error message
This commit is contained in:
parent
6412bfc7b5
commit
fb55fe184c
@ -153,7 +153,7 @@ static int add_pkg_uid(const char *pkg) {
|
|||||||
struct stat st;
|
struct stat st;
|
||||||
const char *data = SDK_INT >= 24 ? "/data/user_de/0" : "/data/data";
|
const char *data = SDK_INT >= 24 ? "/data/user_de/0" : "/data/data";
|
||||||
sprintf(path, "%s/%s", data, pkg);
|
sprintf(path, "%s/%s", data, pkg);
|
||||||
if (xstat(path, &st) == 0) {
|
if (stat(path, &st) == 0) {
|
||||||
hide_uid.insert(st.st_uid);
|
hide_uid.insert(st.st_uid);
|
||||||
return st.st_uid;
|
return st.st_uid;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user