- #!/sbin/sh
- OUTFD=/proc/self/fd/$2
- ui_print() { echo -e "ui_print $1\nui_print" >> "$OUTFD"; }
- ui_print " "
- ui_print "Encryption disabler for custom ROMs - Poco X3"
- ui_print "~ by ghostrider_reborn"
- ui_print " "
- ui_print "- Mounting filesystems..."
- mount -o ro /vendor
- mount -o rw /dev/block/mapper/product /product
- ui_print "- Processing..."
- mkdir -p /product/vendor_overlay/29/etc
- cp /vendor/etc/fstab.qcom /product/vendor_overlay/29/etc
- sed -i 's/fileencryption=/encryptable=/g' /product/vendor_overlay/29/etc/fstab.qcom
- ui_print "- Unmounting filesystems..."
- umount /vendor
- umount /product
- ui_print "- Finished !"
- ui_print " "
- exit 0
[surya]encryption-disabler-v1