mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 11:30:47 -05:00
Move BootConfig to rust
This commit is contained in:
@@ -64,7 +64,7 @@ bool MagiskInit::hijack_sepolicy() {
|
||||
// This only happens on Android 8.0 - 9.0
|
||||
|
||||
char buf[4096];
|
||||
ssprintf(buf, sizeof(buf), "%s/fstab/compatible", config.dt_dir);
|
||||
ssprintf(buf, sizeof(buf), "%s/fstab/compatible", config.dt_dir.data());
|
||||
dt_compat = full_read(buf);
|
||||
if (dt_compat.empty()) {
|
||||
// Device does not do early mount and uses monolithic policy
|
||||
@@ -106,7 +106,7 @@ bool MagiskInit::hijack_sepolicy() {
|
||||
int fd = xopen(MOCK_COMPAT, O_WRONLY);
|
||||
|
||||
char buf[4096];
|
||||
ssprintf(buf, sizeof(buf), "%s/fstab/compatible", config.dt_dir);
|
||||
ssprintf(buf, sizeof(buf), "%s/fstab/compatible", config.dt_dir.data());
|
||||
xumount2(buf, MNT_DETACH);
|
||||
|
||||
hijack();
|
||||
|
||||
Reference in New Issue
Block a user