[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] levone1:
So I tested 'fastboot boot twrp' with the june TWRP, and it booted to recovery and touch worked fine. Then I did 'install recovery ramdisk' and chose the July TWRP, and rebooted to recovery, and no touch.

Attempting to run script gives "permission denied". Here's what I get for logcat:

platform-tools> ./adb.exe logcat

--------- beginning of main

08-23 00:46:51.932 648 654 I adbd : initializing functionfs

08-23 00:46:51.932 648 654 I adbd : opening control endpoint /dev/usb-ffs/adb/ep0

08-23 00:46:51.937 648 654 I adbd : functionfs successfully initialized

08-23 00:46:51.937 648 654 I adbd : registering usb transport

08-23 00:46:51.937 648 657 E cutils-trace: Error opening trace file: No such file or directory (2)

08-23 00:46:43.846 647 647 W auditd : type=2000 audit(0.0:1): initialized

08-23 00:46:45.709 647 647 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295

08-23 00:46:45.709 647 647 W auditd : type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295

08-23 00:46:45.729 1 1 W init : type=1400 audit(0.0:4): avc: denied { relabelto } for name="rdimage_a" dev="tmpfs" ino=23790 scontext=u:r:init:s0 tcontext=u:object_r:ramdump_block_device:s0 tclass=lnk_file permissive=0 ppid=0 pcomm="swapper/0"

08-23 00:46:45.729 1 1 W init : type=1400 audit(0.0:5): avc: denied { relabelto } for name="boot_a" dev="tmpfs" ino=23778 scontext=u:r:init:s0 tcontext=u:object_r:boot_block_device:s0 tclass=lnk_file permissive=0 ppid=0 pcomm="swapper/0"

08-23 00:46:45.729 1 1 W init : type=1400 audit(0.0:6): avc: denied { setcheckreqprot } for scontext=u:r:init:s0 tcontext=u:object_r:kernel:s0 tclass=security permissive=0 ppid=0 pcomm="swapper/0"

08-23 00:46:45.729 1 1 W init : type=1400 audit(0.0:7): avc: denied { create } for name="cgroup.procs" scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0 ppid=0 pcomm="swapper/0"

08-23 00:46:46.199 529 529 W ueventd : type=1400 audit(0.0:8): avc: denied { read } for name="boot_a" dev="tmpfs" ino=23778 scontext=u:r:ueventd:s0 tcontext=u:object_r:tmpfs:s0 tclass=lnk_file permissive=0 ppid=521 pcomm="ueventd" pgid=521 pgcomm="ueventd"

08-23 00:46:46.209 525 525 W ueventd : type=1400 audit(0.0:9): avc: denied { read } for name="rdimage_a" dev="tmpfs" ino=23790 scontext=u:r:ueventd:s0 tcontext=u:object_r:tmpfs:s0 tclass=lnk_file permissive=0 ppid=521 pcomm="ueventd" pgid=521 pgcomm="ueventd"

08-23 00:46:46.239 1 1 W init : type=1400 audit(0.0:10): avc: denied { setattr } for name="system" dev="rootfs" ino=14409 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=lnk_file permissive=0 ppid=0 pcomm="swapper/0"

08-23 00:46:48.889 597 597 I recovery: type=1400 audit(0.0:647): avc: denied { getattr } for path="/data/data/lpVrhijGm+MMoCS0oCCVGGCehAOOPZ2VrlKKnC/rO9xuvqB4AQ4iWFvhIFBWA/_kYDNAMaGeU3BMnHQP5S4gixk9wTLOEm5" dev="sda73" ino=2622656 scontext=u:r:recovery:s0 tcontext=u:object_r:app_data_file:s0:c176,c256,c512,c768 tclass=file permissive=1 ppid=1 pcomm="init" pgid=1 pgcomm="init"

08-23 00:46:48.889 597 597 I recovery: type=1400 audit(0.0:648): avc: denied { getattr } for path="/data/data/K9T3vTFIQcSy6RiRAkQ,ZNCzqlHkPGwKwRC,0HcpXED/BJt1YBybbQriXaj7oo0PPC/_W8Z2lANSBNZE29JKODY4+kXKF5dDzZlS" dev="sda73" ino=756 scontext=u:r:recovery:s0 tcontext=u:object_r:app_data_file:s0:c112,c257,c512,c768 tclass=file permissive=1 ppid=1 pcomm="init" pgid=1 pgcomm="init"

08-23 00:46:48.999 597 597 I recovery: type=1400 audit(0.0:649): avc: denied { getattr } for path="/data/data/nL0WAEcQS89IR0bNq4blF3Xm1BLgDqyuhbujmD/XhwSakLP27U68zYXX6nSRB/1Kub1PAi0ncKyLvuAlLNGairJSLqw8UZrACHTSy9,pL" dev="sda73" ino=2884896 scontext=u:r:recovery:s0 tcontext=u:object_r:app_data_file:s0:c119,c256,c512,c768 tclass=file permissive=1 ppid=1 pcomm="init" pgid=1 pgcomm="init"

08-23 00:46:49.089 597 597 I recovery: type=1400 audit(0.0:650): avc: denied { getattr } for path="/data/data/+FZs0gOJCvSUa2VyeYF2rA/irWCcPGVPDVEpPgVcONalC" dev="sda73" ino=2884905 scontext=u:r:recovery:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=lnk_file permissive=1 ppid=1 pcomm="init" pgid=1 pgcomm="init"

08-23 00:46:49.109 597 597 I recovery: type=1400 audit(0.0:651): avc: denied { getattr } for path="/data/data/FnmP67JgjenWml6oTAJU,C/43bqjb2PidXr6184yAOEjA/Y79,WIJRjNwGM8u0o1e38A/906TnZrTyzo2DYT19+oeVB/2BhzCl0IKFj3ubr2g30ftD" dev="sda73" ino=3025058 scontext=u:r:recovery:s0 tcontext=u:object_r:app_data_file:s0:c99,c257,c512,c768 tclass=file permissive=1 ppid=1 pcomm="init" pgid=1 pgcomm="init"

08-23 00:46:49.109 597 597 I recovery: type=1400 audit(0.0:652): avc: denied { getattr } for path="/data/data/FnmP67JgjenWml6oTAJU,C/43bqjb2PidXr6184yAOEjA/VG0iKBZ2g7Dx15LQwPD4xD/Mk,zRjYY6JMFO3fsQVqctD/UBS7F5tnWGtVXgh,gEoUZ9ryUvL" dev="sda73" ino=3025024 scontext=u:r:recovery:s0 tcontext=u:object_r:app_data_file:s0:c99,c257,c512,c768 tclass=lnk_file permissive=1 ppid=1 pcomm="init" pgid=1 pgcomm="init"

08-23 00:46:49.259 597 597 I recovery: type=1400 audit(0.0:653): avc: denied { getattr } for path="/data/data/kxxIWuQcFvkGdwv1h1pUdC/E8G,AlvNfVo,3roWNbBO,D" dev="sda73" ino=2884840 scontext=u:r:recovery:s0 tcontext=u:object_r:app_data_file:s0 tclass=dir permissive=1 ppid=1 pcomm="init" pgid=1 pgcomm="init"

08-23 00:46:49.259 597 597 I recovery: type=1400 audit(0.0:654): avc: denied { read } for name="E8G,AlvNfVo,3roWNbBO,D" dev="sda73" ino=2884840 scontext=u:r:recovery:s0 tcontext=u:object_r:app_data_file:s0 tclass=dir permissive=1 ppid=1 pcomm="init" pgid=1 pgcomm="init"

08-23 00:46:49.259 597 597 I recovery: type=1400 audit(0.0:655): avc: denied { open } for path="/data/data/kxxIWuQcFvkGdwv1h1pUdC/E8G,AlvNfVo,3roWNbBO,D" dev="sda73" ino=2884840 scontext=u:r:recovery:s0 tcontext=u:object_r:app_data_file:s0 tclass=dir permissive=1 ppid=1 pcomm="init" pgid=1 pgcomm="init"

08-23 00:46:49.269 597 597 I recovery: type=1400 audit(0.0:656): avc: denied { search } for name="E8G,AlvNfVo,3roWNbBO,D" dev="sda73" ino=2884840 scontext=u:r:recovery:s0 tcontext=u:object_r:app_data_file:s0 tclass=dir permissive=1 ppid=1 pcomm="init" pgid=1 pgcomm="init"

08-23 00:46:52.859 597 597 I recovery: type=1400 audit(0.0:836): avc: denied { read } for scontext=u:r:recovery:s0 tcontext=u:r:recovery:s0 tclass=netlink_kobject_uevent_socket permissive=1 ppid=1 pcomm="init" pgid=1 pgcomm="init"

08-23 00:46:56.938 648 656 E adbd : Could not start mdnsd.

08-23 00:46:59.938 648 656 E adbd : Could not register mDNS service (-65563).

I had to run logcat after recovery booted, because if I try starting it, and then connecting the phone to boot, it hangs on 'waiting for device'.

Let me know if kmesg will help...