1. #!/sbin/sh
  2. OUTFD=/proc/self/fd/$2
  3. ui_print() { echo -e "ui_print $1\nui_print" >> "$OUTFD"; }
  4. ui_print " "
  5. ui_print "Encryption disabler for custom ROMs - Poco X3"
  6. ui_print "~ by ghostrider_reborn"
  7. ui_print " "
  8. ui_print "- Mounting filesystems..."
  9. mount -o ro /vendor
  10. mount -o rw /dev/block/mapper/product /product
  11. ui_print "- Processing..."
  12. mkdir -p /product/vendor_overlay/29/etc
  13. cp /vendor/etc/fstab.qcom /product/vendor_overlay/29/etc
  14. sed -i 's/fileencryption=/encryptable=/g' /product/vendor_overlay/29/etc/fstab.qcom
  15. ui_print "- Unmounting filesystems..."
  16. umount /vendor
  17. umount /product
  18. ui_print "- Finished !"
  19. ui_print " "
  20. exit 0

[surya]encryption-disabler-v1