Some utilities (e.g. proot-distro) may produce read-only files in $PREFIX which will make use of termux-restore impossible.