Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Fix fstab.qcom for Oreo
Browse files Browse the repository at this point in the history
  • Loading branch information
linusyang committed Jan 21, 2018
1 parent 2eaedad commit c19df91
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tools/update-binary-cleaner
Expand Up @@ -58,6 +58,21 @@ try_del() {
fi
}

force_encrypt_oreo() {
fstab=/system/vendor/etc/fstab.qcom
if ! [ -f "$fstab" ]; then
print "No fstab.qcom in vendor, skipping..."
else
sed -i "
s/\b\(encryptable\)=/fileencryption=/g
" "$fstab"
if ! grep -q '=ice,quota' "$fstab"; then
sed -i "s/=ice/=ice,quota/g" "$fstab"
fi
echo "Enabled force encryption for /data"
fi
}

print "***************************"
print "* MIUI 9 (EU) Cleaner Fix *"
print "***************************"
Expand Down Expand Up @@ -95,6 +110,9 @@ done
print "Removing evil apps..."
try_del app/MiuiDaemon

print "Enabling force encryption for Oreo..."
force_encrypt_oreo

umount /system
cleanup
print "Finished!"

0 comments on commit c19df91

Please sign in to comment.