[Magisk] badabing2003:
No shame in copying FOSS code and crediting the author :)

By the way I bootloop with this classes.dex

06-11 09:24:26.554 3185 3185 W system_server: Failed to upload odrefresh metrics: Unable to open or parse metrics file /data/misc/odrefresh/odrefresh-metrics.xml (error: Error=XML_ERROR_FILE_NOT_FOUND ErrorID=3 (0x3) Line number=0: filename=/data/misc/odrefresh/odrefresh-metrics.xml)
06-11 09:24:26.555 3185 3185 E system_server: Not starting debugger since process cannot load the jdwp agent.
06-11 09:24:26.561 3185 3185 D SystemServerTiming: InitBeforeStartServices
06-11 09:24:26.561 662 780 D BootAnimation: Playing files = /product/media/bootanimation-dark.zip/part3, Requested repeat = 0, playUntilComplete = false
06-11 09:24:26.562 3185 3185 I SystemServer: Entered the Android system server!
06-11 09:24:26.598 3185 3185 E Zygote : System zygote died with fatal exception
06-11 09:24:26.598 3185 3185 E Zygote : java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
06-11 09:24:26.598 3185 3185 D AndroidRuntime: Shutting down VM
06-11 09:24:26.598 3185 3185 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
06-11 09:24:26.598 3185 3185 E AndroidRuntime: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
06-11 09:24:26.599 3185 3185 E AndroidRuntime: Error reporting crash
06-11 09:24:26.599 3185 3185 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'void android.app.IActivityManager.handleApplicationCrash(android.os.IBinder, android.app.ApplicationErrorReport$ParcelableCrashInfo)' on a null object reference
06-11 09:24:26.599 3185 3185 E AndroidRuntime: at com.android.internal.os.RuntimeInit$KillApplicationHandler.uncaughtException(RuntimeInit.java:160)
06-11 09:24:26.599 3185 3185 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1071)
06-11 09:24:26.599 3185 3185 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1066)
06-11 09:24:26.599 3185 3185 E AndroidRuntime: at java.lang.Thread.dispatchUncaughtException(Thread.java:2306)
06-11 09:24:26.599 3185 3185 I Process : Sending signal. PID: 3185 SIG: 9
06-11 09:24:26.607 3004 3004 E Zygote : Zygote failed to write to system_server FD: Connection refused
06-11 09:24:26.607 3004 3004 I Zygote : Process 3185 exited due to signal 9 (Killed)
06-11 09:24:26.607 3004 3004 E Zygote : Exit zygote because system server (pid 3185) has terminated
06-11 09:24:26.645 728 1014 W ServiceManagerCppClient: Waited one second for android.frameworks.stats.IStats/default (is service started? Number of threads started in the threadpool: 0. Are binder threads started and available?)
06-11 09:24:26.829 1451 1451 I update_engine: [INFO:cleanup_previous_update_action.cc(112)] Executing task 13
06-11 09:24:26.831 1093 2422 W ServiceManagerCppClient: Waited one second for android.frameworks.stats.IStats/default (is service started? Number of threads started in the threadpool: 0. Are binder threads started and available?)
06-11 09:24:26.835 1093 2534 I sensors-hal: [DPInfo]file_contents_parse:176, _status = 0
06-11 09:24:26.835 1093 2534 I sensors-hal: [ssc_utils]get_qmi_debug_flag:243, support_qmi_debug : false

[process exited with code 255 (0x000000ff)]