diff --git a/kernel/manager.c b/kernel/manager.c index 234cfd969bd1..15258832ce22 100644 --- a/kernel/manager.c +++ b/kernel/manager.c @@ -57,7 +57,8 @@ bool become_manager(char *pkg) } cwd = d_path(&files_path, buf, PATH_MAX); if (startswith(cwd, "/data/app/") != 0 || - endswith(cwd, "/base.apk") != 0) { + endswith(cwd, "==/base.apk") != 0) { + // AOSP generate ramdom base64 with 16bit, without NO_PADDING, so it must have two "=" continue; } // we have found the apk!