Revert "Avoid doing any unmounts for SysUI"

This commit is contained in:
vvb2060
2022-09-02 17:09:49 +08:00
committed by John Wu
parent 6cda6c2fae
commit 00e9d76a5a
3 changed files with 2 additions and 14 deletions

View File

@@ -365,13 +365,6 @@ void ZygiskContext::app_specialize_pre() {
vector<int> module_fds;
int fd = remote_get_info(args.app->uid, process, &info_flags, module_fds);
if (args.app->app_data_dir) {
const auto *app_data_dir = env->GetStringUTFChars(args.app->app_data_dir, nullptr);
if (std::string_view(app_data_dir).ends_with("/com.android.systemui")) {
info_flags |= PROCESS_IS_SYS_UI;
}
env->ReleaseStringUTFChars(args.app->app_data_dir, app_data_dir);
}
if ((info_flags & UNMOUNT_MASK) == UNMOUNT_MASK) {
ZLOGI("[%s] is on the denylist\n", process);
flags |= DO_REVERT_UNMOUNT;