mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 13:35:27 +00:00
Fix root on Android 7.0 and lower
This commit is contained in:
parent
dc61dfbde6
commit
f1295cb7d6
@ -96,6 +96,8 @@ void restore_tmpcon() {
|
|||||||
for (dirent *entry; (entry = xreaddir(dir.get()));)
|
for (dirent *entry; (entry = xreaddir(dir.get()));)
|
||||||
setfilecon_at(dfd, entry->d_name, SYSTEM_CON);
|
setfilecon_at(dfd, entry->d_name, SYSTEM_CON);
|
||||||
|
|
||||||
|
if (SDK_INT >= 26) {
|
||||||
string magisk = MAGISKTMP + "/magisk";
|
string magisk = MAGISKTMP + "/magisk";
|
||||||
setfilecon(magisk.data(), EXEC_CON);
|
setfilecon(magisk.data(), EXEC_CON);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user