[Google Pixel 3 XL Questions & Answers] daniel_am_ram:
Hey there,

After unlocked the bootloader of my Google Pixel 3 XL and installed TWRP i'v tried to install any version of Magisk with no success. (Latest factory img)

Everytime i'm getting back to a bootloop and the only way to fix it is to flash uninstallation of Magisk through TWRP/ADB.

I have debugged it for a while and here the logs:

Magisk.log -

--------- beginning of main
--------- beginning of system
08-27 16:04:24.445 804 804 I Magisk : Magisk v19.4-736729f5(19307) daemon started
08-27 16:04:24.445 804 804 I Magisk : * Device API level: 28
08-27 16:04:24.496 804 805 I Magisk : ** post-fs-data mode running
08-27 16:04:24.498 804 805 I Magisk : * Initializing Magisk environment
08-27 16:04:24.500 804 805 I Magisk : * Mounting mirrors
08-27 16:04:24.500 804 805 I Magisk : mount: /sbin/.magisk/mirror/product
08-27 16:04:24.500 804 805 I Magisk : mount: /sbin/.magisk/mirror/vendor
08-27 16:04:24.500 804 805 I Magisk : mount: /sbin/.magisk/mirror/data
08-27 16:04:24.500 804 805 I Magisk : link: /sbin/.magisk/mirror/system
08-27 16:04:24.501 804 805 I Magisk : * Setting up internal busybox
08-27 16:04:24.526 804 805 I Magisk : * Running post-fs-data.d scripts
08-27 16:04:24.529 804 805 I Magisk : * Running module post-fs-data scripts
08-27 16:04:24.529 804 805 I Magisk : * Loading modules
08-27 16:04:24.541 804 822 I Magisk : * Starting MagiskHide
08-27 16:04:24.541 804 822 I Magisk : hide_policy: Hiding sensitive props
08-27 16:04:24.542 804 822 I Magisk : hide_list init: [com.google.android.gms/com.google.android.gms.unstable]
08-27 16:04:24.559 804 822 I Magisk : hide_list init: [org.microg.gms.droidguard/com.google.android.gms.unstable]
08-27 16:04:25.001 804 1059 I Magisk : ** late_start service mode running
08-27 16:04:25.002 804 1059 I Magisk : * Running service.d scripts
08-27 16:04:25.002 804 1059 I Magisk : * Running module service scripts
--------- beginning of crash

Kernel Log -

[ 3.214915] F2FS-fs (dm-0): Reduce reserved blocks for root = 26387
[ 3.271699] F2FS-fs (dm-0): Mounted with checkpoint version = 60866e1
[ 3.360081] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 3.360107] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 3.360602] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 3.360637] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 3.360648] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 3.360813] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 3.360821] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 3.360833] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 3.360863] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 3.510326] google_charger: l=17 vb=3691 vc=3687 c=560 fv=4200000 t=429 s=Fast usb=1 wlc=0
[ 3.510346] google_charger: failed to get POWER_SUPPLY_PROP_VOLTAGE_NOW from 'usb', ret=-61
[ 3.510444] google_charger: usbchg=USB usbv=0 usbc=368 usbMv=5000 usbMc=75
[ 3.510453] google_charger: MSC_DSG vbatt_idx:0->0 vbatt=3691093 ibatt=560000 fv_uv=4200000 cv_cnt=3 ov_cnt=0
[ 4.026738] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.026792] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.026800] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.026890] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.026897] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.026978] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.027134] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.124868] SELinux: Context u:object_r:magisk_file:s0 is not valid (left unmapped).
[ 4.126428] SELinux: Context is not valid (left unmapped).
[ 4.205874] EXT4-fs (sdf2): mounted filesystem with ordered data mode. Opts:
[ 4.212381] F2FS-fs (dm-0): Reduce reserved blocks for root = 26387
[ 4.236052] F2FS-fs (dm-0): Mounted with checkpoint version = 60866e4
[ 4.267088] EXT4-fs (sda5): mounted filesystem without journal. Opts: barrier=1
[ 4.271580] EXT4-fs (sda5): mounted filesystem without journal. Opts: barrier=1
[ 4.278003] EXT4-fs (sda9): mounted filesystem without journal. Opts: barrier=1
[ 4.346748] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.346771] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.347347] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.347381] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.347391] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.347544] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.347552] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.347562] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.347594] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 4.823193] EXT4-fs (sdf2): mounted filesystem with ordered data mode. Opts:
[ 5.013394] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 5.013459] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 5.013467] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 5.013586] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 5.013594] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 5.013688] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 5.013873] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 5.333403] logbuffer: Fmt is empty. Aborting after printing RTC timestamp
[ 5.601618] google_charger: l=17 vb=3674 vc=3656 c=665 fv=4200000 t=429 s=Fast usb=1 wlc=0
[ 5.601639] google_charger: failed to get POWER_SUPPLY_PROP_VOLTAGE_NOW from 'usb', ret=-61
[ 5.601782] google_charger: usbchg=USB usbv=0 usbc=414 usbMv=5000 usbMc=75
[ 5.601791] google_charger: MSC_DSG vbatt_idx:0->0 vbatt=3674062 ibatt=665937 fv_uv=4200000 cv_cnt=3 ov_cnt=0
[ 6.042616] EXT4-fs (sdf2): mounted filesystem with ordered data mode. Opts:
[ 6.051742] selinux: avc: denied { set } for property=sys.usb.config pid=660 uid=0 gid=0 scontext=u:r:recovery:s0 tcontext=u:object_r:exported_system_radio_prop:s0 tclass=property_service permissive=1\x0a
[ 6.051843] init: processing action (sys.usb.config=none && sys.usb.configfs=1) from (/init.recovery.sdm845.rc:154)
[ 6.052280] init: Command 'write /config/usb_gadget/g1/UDC none' action=sys.usb.config=none && sys.usb.configfs=1 (/init.recovery.sdm845.rc:155) took 0ms and failed: Unable to write to file '/config/usb_gadget/g1/UDC': Unable to write file contents: No such device
[ 6.052385] init: Sending signal 9 to service 'adbd' (pid 665) process group...
[ 6.055652] oom_reaper: reaped process 665 (adbd), now anon-rss:0kB, file-rss:8kB, shmem-rss:0kB
[ 6.084519] libprocessgroup: Successfully killed process cgroup uid 0 pid 665 in 32ms
[ 6.085045] init: Service 'adbd' (pid 665) received signal 9
[ 6.085831] init: processing action (sys.usb.config=mtp,adb && sys.usb.configfs=1) from (/init.recovery.sdm845.rc:189)
[ 6.085856] init: starting service 'adbd'...
[ 6.087685] init: Created socket '/dev/socket/adbd', mode 660, user 1000, group 1000
[ 6.090276] EXT4-fs (sda5): mounted filesystem without journal. Opts: barrier=1
[ 6.092247] read descriptors
[ 6.092270] read strings
[ 6.256916] sec_ts 2-0048: [sec_input] get_tsp_nvm_data: offset:0 data:FF
[ 6.486899] sec_ts 2-0048: [sec_input] get_tsp_nvm_data: offset:1 data:01
[ 6.716907] sec_ts 2-0048: [sec_input] get_tsp_nvm_data: offset:54 data:FF
[ 6.859608] read descriptors
[ 6.859626] read strings
[ 6.860352] init: processing action (sys.usb.config=mtp,adb && sys.usb.configfs=1 && sys.usb.ffs.mtp.ready=1 && sys.usb.ffs.ready=1) from (/init.recovery.sdm845.rc:192)
[ 6.946922] sec_ts 2-0048: [sec_input] get_tsp_nvm_data: offset:55 data:FF
[ 6.947115] sec_ts 2-0048: [sec_input] sec_ts_read_info_work: fac_nv:FF, cal_count:01
[ 7.134705] msm-dwc3 a600000.ssusb: Avail curr from USB = 100
[ 7.176917] sec_ts 2-0048: [sec_input] get_tsp_nvm_data: offset:3 data:01
[ 7.182755] android_work: sent uevent USB_STATE=CONNECTED
[ 7.233548] configfs-gadget gadget: high-speed config #1: b
[ 7.233740] msm-dwc3 a600000.ssusb: Avail curr from USB = 500
[ 7.233936] android_work: sent uevent USB_STATE=CONFIGURED
[ 7.406899] sec_ts 2-0048: [sec_input] get_tsp_nvm_data: offset:4 data:12
[ 7.407083] sec_ts 2-0048: [sec_input] sec_ts_read_info_work: tune_fix_ver [0112]
[ 7.407815] sec_ts 2-0048: [sec_input] sec_ts_read_info_work: left: -1, center: -1, right: -1
[ 7.408372] sec_ts 2-0048: [sec_input] execute_selftest: Self test start!
[ 7.734875] google_charger: l=17 vb=3723 vc=3691 c=28 fv=4200000 t=429 s=Fast usb=1 wlc=0
[ 7.734888] google_charger: failed to get POWER_SUPPLY_PROP_VOLTAGE_NOW from 'usb', ret=-61
[ 7.735017] google_charger: usbchg=USB usbv=0 usbc=414 usbMv=5000 usbMc=500
[ 7.735027] google_charger: MSC_DSG vbatt_idx:0->0 vbatt=3723906 ibatt=28125 fv_uv=4200000 cv_cnt=3 ov_cnt=0
[ 8.087223] sec_ts 2-0048: [sec_input] sec_ts_wait_for_ready_with_count: 1D, 41, 00, 00, 00, 00, 00, 00 [14]
[ 8.087234] sec_ts 2-0048: [sec_input] execute_selftest: Self test done!
[ 8.127211] [sec_input] sec_ts : SIG 46, 4C, 45, 53 [sec_input] sec_ts : VER 0, 0, 2, 20
[ 8.127231] [sec_input] sec_ts : SIZ 0, 0, 8, 50 [sec_input] sec_ts : CRC A6, 38, D3, AC
[ 8.127248] [sec_input] sec_ts : RES 0, 0, 0, 0 [sec_input] sec_ts : COU 0, 0, 0, 21
[ 8.127265] [sec_input] sec_ts : PAS 0, 0, 0, 21 [sec_input] sec_ts : FAI 0, 0, 0, 0
[ 8.127283] [sec_input] sec_ts : CHA 0, 0, 12, 25 [sec_input] sec_ts : AMB 2, AD, 1, E3
[ 8.127300] [sec_input] sec_ts : RXS 0, 0, 0, 0 [sec_input] sec_ts : TXS 0, 0, 0, 0
[ 8.127317] [sec_input] sec_ts : RXO 0, 0, 0, 0 [sec_input] sec_ts : TXO 0, 0, 0, 0
[ 8.127333] [sec_input] sec_ts : RXG 0, 0, 0, 0 [sec_input] sec_ts : TXG 0, 0, 0, 0
[ 8.127350] [sec_input] sec_ts : RXR 0, 0, 0, 0 [sec_input] sec_ts : TXT 0, 0, 0, 0
[ 8.127368] [sec_input] sec_ts : RXT 0, 0, 0, 0 [sec_input] sec_ts : TXR 0, 0, 0, 0
[ 8.127402] sec_ts 2-0048: [sec_input] sec_ts_read_info_work: 00 00 00 00
[ 8.480068] sec_ts 2-0048: [sec_input] sec_ts_read_raw_data: 3, ALL
[ 8.480077] sec_ts 2-0048: [sec_input] sec_ts_fix_tmode
[ 8.526723] sec_ts 2-0048: [sec_input] sec_ts_read_frame
[ 8.618379] sec_ts 2-0048: [sec_input] sec_ts_print_frame
[ 8.618397] sec_ts 2-0048: [sec_input] TX 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17
[ 8.618406] sec_ts 2-0048: [sec_input] +------------------------------------------------------------------------
[ 8.618423] sec_ts 2-0048: [sec_input] Rx00 | 18 21 20 18 15 15 14 13 16 14 14 12 12 11 13 14 19 15
[ 8.618438] sec_ts 2-0048: [sec_input] Rx01 | 29 16 9 5 5 1 -3 -1 1 -1 0 -1 -3 1 -2 3 10 24
[ 8.618452] sec_ts 2-0048: [sec_input] Rx02 | 35 15 3 -1 -2 -3 -11 -8 -7 -9 -9 -9 -9 -8 -8 -4 8 30
[ 8.618467] sec_ts 2-0048: [sec_input] Rx03 | 34 12 -4 -4 -8 -10 -12 -14 -12 -12 -12 -10 -14 -12 -14 -8 5 27
[ 8.618482] sec_ts 2-0048: [sec_input] Rx04 | 32 8 -2 -8 -9 -10 -15 -15 -13 -14 -14 -14 -16 -18 -14 -10 1 27
[ 8.618497] sec_ts 2-0048: [sec_input] Rx05 | 34 7 -5 -6 -9 -11 -17 -13 -14 -12 -13 -14 -15 -16 -17 -12 1 23
[ 8.618512] sec_ts 2-0048: [sec_input] Rx06 | 33 7 -5 -7 -9 -11 -15 -15 -13 -13 -13 -13 -15 -17 -18 -10 0 23
[ 8.618526] sec_ts 2-0048: [sec_input] Rx07 | 29 8 -4 -8 -7 -11 -13 -13 -12 -11 -13 -15 -13 -15 -17 -7 0 22
[ 8.618541] sec_ts 2-0048: [sec_input] Rx08 | 31 5 -5 -7 -9 -13 -17 -15 -13 -13 -12 -13 -16 -15 -17 -13 -3 21
[ 8.618555] sec_ts 2-0048: [sec_input] Rx09 | 29 9 -5 -7 -9 -9 -15 -12 -11 -11 -11 -12 -16 -15 -17 -11 1 21
[ 8.618570] sec_ts 2-0048: [sec_input] Rx10 | 29 5 -5 -9 -10 -10 -16 -14 -12 -10 -10 -11 -16 -15 -19 -16 -2 21
[ 8.618584] sec_ts 2-0048: [sec_input] Rx11 | 27 1 -7 -11 -13 -10 -15 -15 -13 -13 -13 -13 -18 -18 -21 -15 -5 17
[ 8.618599] sec_ts 2-0048: [sec_input] Rx12 | 24 3 -9 -13 -13 -14 -21 -15 -14 -15 -13 -18 -20 -20 -22 -18 -6 16
[ 8.618614] sec_ts 2-0048: [sec_input] Rx13 | 23 -3 -11 -13 -15 -16 -22 -20 -16 -18 -16 -16 -23 -24 -26 -20 -8 17
[ 8.618628] sec_ts 2-0048: [sec_input] Rx14 | 20 -2 -12 -13 -16 -18 -19 -17 -17 -17 -17 -17 -24 -24 -24 -20 -8 15
[ 8.618643] sec_ts 2-0048: [sec_input] Rx15 | 21 -5 -11 -16 -17 -18 -20 -20 -21 -19 -17 -20 -22 -24 -28 -22 -9 15
[ 8.618657] sec_ts 2-0048: [sec_input] Rx16 | 20 -3 -16 -18 -17 -20 -24 -22 -20 -20 -19 -21 -27 -25 -28 -25 -11 12
[ 8.618671] sec_ts 2-0048: [sec_input] Rx17 | 17 -8 -18 -17 -18 -24 -26 -23 -24 -20 -20 -26 -28 -30 -30 -24 -11 11
[ 8.618685] sec_ts 2-0048: [sec_input] Rx18 | 15 -7 -18 -20 -21 -21 -24 -25 -23 -22 -21 -23 -28 -28 -30 -24 -12 10
[ 8.618700] sec_ts 2-0048: [sec_input] Rx19 | 15 -7 -17 -21 -21 -23 -27 -26 -22 -24 -25 -23 -29 -29 -33 -26 -14 12
[ 8.618715] sec_ts 2-0048: [sec_input] Rx20 | 17 -7 -17 -21 -21 -23 -27 -27 -23 -23 -23 -25 -31 -31 -35 -27 -14 9
[ 8.618729] sec_ts 2-0048: [sec_input] Rx21 | 13 -6 -18 -20 -22 -26 -28 -30 -25 -27 -27 -29 -32 -32 -30 -28 -15 9
[ 8.618743] sec_ts 2-0048: [sec_input] Rx22 | 14 -9 -21 -24 -27 -25 -29 -31 -27 -29 -27 -31 -33 -33 -37 -31 -16 8
[ 8.618757] sec_ts 2-0048: [sec_input] Rx23 | 13 -10 -20 -25 -28 -28 -32 -33 -29 -27 -31 -31 -34 -33 -36 -30 -14 8
[ 8.618772] sec_ts 2-0048: [sec_input] Rx24 | 13 -13 -21 -25 -29 -29 -33 -33 -32 -32 -30 -32 -38 -40 -37 -31 -18 9
[ 8.618786] sec_ts 2-0048: [sec_input] Rx25 | 13 -13 -23 -27 -30 -31 -36 -37 -33 -33 -34 -34 -39 -39 -39 -31 -20 6
[ 8.618801] sec_ts 2-0048: [sec_input] Rx26 | 11 -14 -27 -31 -33 -35 -37 -41 -38 -36 -35 -35 -39 -41 -41 -33 -16 5
[ 8.618816] sec_ts 2-0048: [sec_input] Rx27 | 9 -13 -26 -33 -33 -37 -38 -41 -38 -36 -38 -36 -41 -41 -43 -32 -19 9
[ 8.618831] sec_ts 2-0048: [sec_input] Rx28 | 11 -18 -29 -33 -37 -39 -42 -41 -42 -40 -41 -38 -43 -45 -44 -36 -21 7
[ 8.618845] sec_ts 2-0048: [sec_input] Rx29 | 4 -19 -32 -36 -38 -42 -44 -44 -43 -42 -40 -42 -45 -45 -45 -37 -24 6
[ 8.618859] sec_ts 2-0048: [sec_input] Rx30 | 7 -19 -31 -39 -42 -44 -46 -43 -40 -42 -42 -42 -48 -46 -46 -40 -23 5
[ 8.618873] sec_ts 2-0048: [sec_input] Rx31 | 8 -21 -30 -37 -40 -41 -45 -43 -41 -39 -39 -41 -46 -46 -45 -41 -23 5
[ 8.618886] sec_ts 2-0048: [sec_input] Rx32 | 3 -19 -31 -34 -40 -40 -40 -36 -36 -36 -35 -39 -42 -45 -43 -37 -26 2
[ 8.618900] sec_ts 2-0048: [sec_input] Rx33 | 6 -17 -31 -32 -36 -34 -30 -28 -29 -27 -25 -29 -38 -40 -39 -36 -23 1
[ 8.618914] sec_ts 2-0048: [sec_input] Rx34 | -2 -18 -28 -32 -28 -23 -20 -26 -23 -24 -24 -14 -25 -32 -38 -33 -22 -1
[ 8.618927] sec_ts 2-0048: [sec_input] Rx35 | -24 -26 -34 -32 -32 -26 -14 -18 -18 -18 -15 -14 -27 -35 -43 -42 -38 -27
[ 8.618941] sec_ts 2-0048: [sec_input] Rx36 | -41 -19 -21 -21 -29 -41 -11 -11 -11 -13 -11 -13 -41 -34 -30 -34 -43 -42
[ 8.619339] sec_ts 2-0048: [sec_input] sec_ts_release_tmode
[ 9.868305] google_charger: l=17 vb=3721 vc=3686 c=48 fv=4200000 t=429 s=Fast usb=1 wlc=0
[ 9.868329] google_charger: failed to get POWER_SUPPLY_PROP_VOLTAGE_NOW from 'usb', ret=-61
[ 9.868460] google_charger: usbchg=USB usbv=0 usbc=483 usbMv=5000 usbMc=500
[ 9.868469] google_charger: MSC_DSG vbatt_idx:0->0 vbatt=3721562 ibatt=48750 fv_uv=4200000 cv_cnt=3 ov_cnt=0
[ 10.933377] sec_ts 2-0048: [sec_input] sec_ts_fw_update_work: Beginning firmware update after probe.
[ 10.933775] sec_ts 2-0048: [sec_input] sec_ts_read_calibration_report: count:6, pass count:6, fail count:0, status:0xA2
[ 10.933779] sec_ts 2-0048: [sec_input] sec_ts_firmware_update_on_probe: initial firmware update s6sy761.fw, cal:A2
[ 10.935781] ueventd: firmware: loading 's6sy761.fw' for '/devices/platform/soc/888000.i2c/i2c-2/2-0048/firmware/s6sy761.fw'
[ 10.936020] ueventd: firmware: could not find firmware for s6sy761.fw
[ 10.936086] sec_ts 2-0048: [sec_input] sec_ts_firmware_update_on_probe: firmware is not available
[ 10.936107] sec_ts 2-0048: [sec_input] sec_ts_fw_update_work: firmware update was unsuccessful.
[ 10.936113] ueventd: loading /devices/platform/soc/888000.i2c/i2c-2/2-0048/firmware/s6sy761.fw took 0ms

There's a line at the Kernel that i think is connected to the problem -

But have no idea how to fix it, i have tried almost everything, any ideas?