mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-26 14:37:31 +00:00
Update Android 11 emulator support
This commit is contained in:
@@ -79,6 +79,13 @@ void restorecon() {
|
||||
}
|
||||
|
||||
void restore_tmpcon() {
|
||||
if (MAGISKTMP == "/system/bin") {
|
||||
// Running with emulator.sh
|
||||
if (SDK_INT >= 26)
|
||||
lsetfilecon("/system/bin/magisk", EXEC_CON);
|
||||
return;
|
||||
}
|
||||
|
||||
if (MAGISKTMP == "/sbin")
|
||||
setfilecon(MAGISKTMP.data(), ROOT_CON);
|
||||
else
|
||||
|
Reference in New Issue
Block a user