From 5c165c9bb068064d4dd87e3c68b84fa6e5a5097e Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Wed, 5 Apr 2023 18:08:38 +0800 Subject: [PATCH] Fix avd hack --- native/src/init/rootdir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/src/init/rootdir.cpp b/native/src/init/rootdir.cpp index d187f4ad1..62debbc9d 100644 --- a/native/src/init/rootdir.cpp +++ b/native/src/init/rootdir.cpp @@ -231,7 +231,7 @@ void MagiskInit::patch_ro_root() { } setup_tmp(tmp_dir.data()); - chdir("/data"); + chdir(tmp_dir.data()); if (tmp_dir == "/sbin") { // Recreate original sbin structure