You can boot twrp and use adb side load on advance option of twrp, put hex kernel on your adb folder and type on adb console adb sideload hex_a.zip. This works for flash magisk equally. The twrp does not work in the pie but the adb side load function does,So you can make it this way download...