Skip to content

Commit

Permalink
fix: crash when multiple users
Browse files Browse the repository at this point in the history
  • Loading branch information
Sevtinge committed Dec 15, 2024
1 parent 9aabf5b commit 0186c79
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,9 @@ private void getScope() {
UserHandle currentUserHandle = android.os.Process.myUserHandle();
int userId = currentUserHandle.hashCode();

safeExecCommandWithRoot("cp -r /data/adb/lspd/config /data/data/com.sevtinge.hyperceiler/cache/\n");
safeExecCommandWithRoot("chmod -R 777 /data/data/com.sevtinge.hyperceiler/cache/config\n");
safeExecCommandWithRoot("mkdir -p /data/local/tmp/HyperCeiler/cache/ && cp -r /data/adb/lspd/config /data/local/tmp/HyperCeiler/cache/ && chmod -R 777 /data/local/tmp/HyperCeiler/cache/config");

DatabaseHelper dbHelper = new DatabaseHelper(this.getContext(), "/data/data/com.sevtinge.hyperceiler/cache/config/modules_config.db");
DatabaseHelper dbHelper = new DatabaseHelper(this.getContext(), "/data/local/tmp/HyperCeiler/cache/config/modules_config.db");

String tableName = "modules";
String[] columns = {"mid"};
Expand Down

0 comments on commit 0186c79

Please sign in to comment.