• topjohnwu's avatar
    Read fstab from device tree · adf95ce3
    topjohnwu authored
    In previous versions, magiskinit will not early mount if /sepolicy is detected. However on OP5/5T latest betas, the devices are fully trebelized,
    but for some reason the file /sepolicy still exists, making magiskinit think it is NOT a treble device and doesn't work properly.
    
    So to properly fix this issue, I will have to use the "official" way - check fstab in device trees. Any block mentioned in the fstab in device trees
    are supposed to be early mounted. Currently magiskinit will only mount system and vendor even if other partitions exists in the dtb fstab, since other
    partitions are not used to construct sepolicy (currently).
    
    These changes can also fix #373, since we dynamically detect PARTNAME from device trees.
    adf95ce3
Name
Last commit
Last update
app @ 49ba7ad2 Loading commit data...
chromeos Loading commit data...
docs Loading commit data...
gradle/wrapper Loading commit data...
native Loading commit data...
scripts Loading commit data...
snet Loading commit data...
utils Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
LICENSE Loading commit data...
README.MD Loading commit data...
build.gradle Loading commit data...
build.py Loading commit data...
config.prop.sample Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...