From d5a56d9e8521a8c4a3ec2187abb51621598cbaea Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 12 Oct 2018 00:54:55 -0400 Subject: [PATCH] Fix bootloop for some devices with two /data Close #654 --- native/jni/utils/misc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/native/jni/utils/misc.c b/native/jni/utils/misc.c index 4a7c6db41..ae77938b5 100644 --- a/native/jni/utils/misc.c +++ b/native/jni/utils/misc.c @@ -56,9 +56,8 @@ int check_data() { char *line; int mnt = 0; vec_for_each(&v, line) { - if (strstr(line, " /data ")) { - if (strstr(line, "tmpfs") == NULL) - mnt = 1; + if (strstr(line, " /data ") && strstr(line, "tmpfs") == NULL) { + mnt = 1; break; } }