[Android Software/Hacking General [Developers Only]] spocko:
Just tried installing the superuser.zip from OP via TWRP on a Galaxy S4 running a stock-based Kit Kat rom. It gives an error executing updater binary. The device was previously rooted and working fine with SuperSU. Prior to trying to install this superuser, I opened SuperSU and did a "full unroot", then rebooted to recovery and tried to install superuser. I also tried the SuperSU option to "switch superuser app" and got the same result. Reflashing SuperSU via TWRP still works fine.

Below is a snippet from my recovery log. Any ideas? Thanks in advance, and thank you to phhusson for your work on this project!

+ fd=38
+ [ ! -L /proc/self/fd/38 ]
+ zip=/sdcard/superuser/superuser.zip
+ ui_print Installing seSuperuser...
+ echo ui_print Installing seSuperuser...
+ Installing seSuperuser...rm -Rf /tmp/superuser
+ mkdir -p /tmp/superuser
+ unzip -o /sdcard/superuser/superuser.zip -d /tmp/superuser/
Archive: /sdcard/superuser/superuser.zip
creating: scripts/
inflating: scripts/bootimg.sh
inflating: scripts/.gitignore
inflating: scripts/kernel_subkey.vbprivk
creating: scripts/su/
inflating: scripts/su/changes.sh
inflating: scripts/su/su-communication.sh
inflating: scripts/su/rights.sh
inflating: scripts/README.md
inflating: scripts/kernel_data_key.vbprivk
inflating: scripts/kernel_data_key.vbpubk
inflating: scripts/gitversion
creating: scripts/keystore_tools/
inflating: scripts/keystore_tools/README
inflating: scripts/keystore_tools/make_key
inflating: scripts/keystore_tools/BootKeystoreSigner.jar
inflating: scripts/keystore_tools/BootSignature.jar
inflating: scripts/kernel_subkey.vbpubk
creating: scripts/bin/
inflating: scripts/bin/su-x86
inflating: scripts/bin/sepolicy-inject
inflating: scripts/bin/sepolicy-inject-v2
inflating: scripts/bin/futility-arm
inflating: scripts/bin/bootimg-repack
inflating: scripts/bin/su-arm
inflating: scripts/bin/strip-cpio
inflating: scripts/bin/bootimg-extract
inflating: config.txt
creating: META-INF/
creating: META-INF/com/
creating: META-INF/com/google/
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/updater-script
inflating: META-INF/com/google/android/update-binary
+ cat /tmp/superuser/config.txt
+ modes=eng verity crypt
+ cd /tmp/superuser/scripts/su/
+ fstab=/etc/recovery.fstab
+ [ ! -f /etc/recovery.fstab ]
+ grep -E \b/boot\b /etc/recovery.fstab
+ grep -oE /dev/[a-zA-Z0-9_./-]*
+ bootimg=/dev/block/platform/msm_sdcc.1/by-name/boot
+ [ -z /dev/block/platform/msm_sdcc.1/by-name/boot ]
+ ui_print seSuperuser: Found bootimg @ /dev/block/platform/msm_sdcc.1/by-name/boot
+ echo ui_print seSuperuser: Found bootimg @ /dev/block/platform/msm_sdcc.1/by-name/boot
seSuperuser: Found bootimg @ /dev/block/platform/msm_sdcc.1/by-name/boot+ sh -x ../bootimg.sh /dev/block/platform/msm_sdcc.1/by-name/boot eng verity crypt
+ export TMPDIR=/tmp/
+ which mktemp
/sbin/mktemp
+ [ 4 == 0 ]
+ set -e
+ [ -f eng ]
+ scr=/tmp/superuser/scripts/su/changes.sh
+ trap cleanup EXIT
+ readlink -f ../bootimg.sh
+ dirname /tmp/superuser/scripts/bootimg.sh
+ scriptdir=/tmp/superuser/scripts
+ chmod 0755 /tmp/superuser/scripts/bin/sepolicy-inject
+ chmod 0755 /tmp/superuser/scripts/bin/sepolicy-inject-v2
+ chmod 0755 /tmp/superuser/scripts/bin/bootimg-repack
+ chmod 0755 /tmp/superuser/scripts/bin/bootimg-extract
+ chmod 0755 /tmp/superuser/scripts/bin/strip-cpio
+ [[ toto2 =~ toto ]]
sh: =~: unknown operand
+ r_file_perms=getattr open read ioctl lock
+ x_file_perms=getattr execute execute_no_trans
+ rx_file_perms=getattr open read ioctl lock getattr execute execute_no_trans
+ w_file_perms=open append write
+ rw_file_perms=getattr open read ioctl lock open append write
+ rwx_file_perms=getattr open read ioctl lock getattr execute execute_no_trans
+ rw_socket_perms=ioctl read getattr write setattr lock append bind connect getopt setopt shutdown
+ create_socket_perms=create ioctl read getattr write setattr lock append bind connect getopt setopt shutdown
+ rw_stream_socket_perms=ioctl read getattr write setattr lock append bind connect getopt setopt shutdown listen accept
+ create_stream_socket_perms=create ioctl read getattr write setattr lock append bind connect getopt setopt shutdown listen accept
+ r_dir_perms=open getattr read search ioctl
+ w_dir_perms=open search write add_name remove_name
+ ra_dir_perms=open getattr read search ioctl add name write
+ rw_dir_perms=open getattr read search ioctl open search write add_name remove_name
+ create_dir_perms=create reparent rename rmdir setattr open getattr read search ioctl open search write add_name remove_name
+ startBootImgEdit /dev/block/platform/msm_sdcc.1/by-name/boot
+ readlink -f /dev/block/platform/msm_sdcc.1/by-name/boot
+ f=/dev/block/mmcblk0p20
+ homedir=/tmp/superuser/scripts/su
+ mktemp -d
+ bootimg_extract=/tmp/tmp.wgQ1XN
+ cd /tmp/tmp.wgQ1XN
+ /tmp/superuser/scripts/bin/bootimg-extract /dev/block/mmcblk0p20
Unknown ramdisk type
Segmentation fault
+ cleanup
+ rm -Rf /tmp/tmp.wgQ1XN
I:Legacy property environment disabled.
E:Error executing updater binary in zip '/sdcard/superuser/superuser.zip'
Error flashing zip '/sdcard/superuser/superuser.zip'
Updating partition details...
I:Data backup size is 6575MB, free: 3059MB.
I:Unable to mount '/external_sd'
I:Actual block device: '', current file system: 'vfat'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=1
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'confirm_action'
I:Set page: 'action_page'