[Android Software Development] sovanyio:
Ok I was wrong about the wrong partition being selected, but maybe the script doesn't work for the new partition layout? Also of note, Oreo doesn't have a flashable recovery yet, so might be better to give people an option to create a flashable zip to manage themselves rather than reboot them into stock recovery which won't flash the zip..

/proc/mounts

sailfish:/ $ su -c 'cat /proc/mounts'
rootfs / rootfs ro,seclabel 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,seclabel,relatime 0 0
tracefs /sys/kernel/debug/tracing tracefs rw,seclabel,relatime 0 0
pstore /sys/fs/pstore pstore rw,seclabel,relatime 0 0
/dev/block/sda33 /system_root ext4 ro,seclabel,noatime,data=ordered 0 0
/dev/block/sda33 /system ext4 ro,seclabel,noatime,data=ordered 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,size=1900968k,nr_inodes=475242,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
none /dev/stune cgroup rw,relatime,schedtune 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
none /dev/cpuset cgroup rw,relatime,cpuset,noprefix,release_agent=/sbin/cpuset_release_agent 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
mtp /dev/usb-ffs/mtp functionfs rw,relatime 0 0
/dev/block/platform/soc/624000.ufshc/by-name/userdata /dev/block/supersu/daemonsu ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/soc/624000.ufshc/by-name/userdata /dev/block/supersu/su ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/soc/624000.ufshc/by-name/userdata /dev/block/supersu/sukernel ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/soc/624000.ufshc/by-name/userdata /dev/block/supersu/supersu ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
proc /proc proc rw,relatime,gid=3009,hidepid=2 0 0
/dev/block/platform/soc/624000.ufshc/by-name/vendor_a /vendor ext4 ro,seclabel,relatime,discard,data=ordered 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt tmpfs rw,seclabel,relatime,size=1900968k,nr_inodes=475242,mode=755,gid=1000 0 0
/data/media /mnt/runtime/default/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6 0 0
/data/media /mnt/runtime/read/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23 0 0
/data/media /mnt/runtime/write/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7 0 0
none /config configfs rw,relatime 0 0
/dev/block/platform/soc/624000.ufshc/by-name/modem_a /firmware/radio vfat ro,context=u:object_r:firmware_file:s0,relatime,uid=1000,fmask=0337,dmask=0227,codepage=437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/platform/soc/624000.ufshc/by-name/persist /persist ext4 rw,seclabel,nosuid,nodev,noatime,data=ordered 0 0
/dev/block/platform/soc/624000.ufshc/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
tmpfs /sbin tmpfs rw,seclabel,nosuid,relatime,size=1900968k,nr_inodes=475242,mode=755 0 0
/dev/block/platform/soc/624000.ufshc/by-name/userdata /sbin/daemonsu ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/soc/624000.ufshc/by-name/userdata /sbin/su ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/soc/624000.ufshc/by-name/userdata /sbin/sukernel ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/soc/624000.ufshc/by-name/userdata /sbin/supersu ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
tmpfs /storage tmpfs rw,seclabel,relatime,size=1900968k,nr_inodes=475242,mode=755,gid=1000 0 0
/data/media /storage/emulated sdcardfs rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6 0 0
tmpfs /storage/self tmpfs rw,seclabel,relatime,size=1900968k,nr_inodes=475242,mode=755,gid=1000 0 0

and 'mount' under TWRP

rootfs on / type rootfs (rw,seclabel)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=1901796k,nr_inodes=475449,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
proc on /proc type proc (rw,relatime,gid=3009,hidepid=2)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,seclabel,relatime,size=1901796k,nr_inodes=475449)
pstore on /sys/fs/pstore type pstore (rw,seclabel,relatime)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
/dev/block/sda35 on /data type ext4 (rw,seclabel,relatime,data=ordered)
/dev/block/sda35 on /sdcard type ext4 (rw,seclabel,relatime,data=ordered)
/dev/block/bootdevice/by-name/system_a on /system type ext4 (ro,seclabel,relatime,data=ordered)

Edit: When I did this manually, the paths were

/system/system/framework/...