[Magisk] Starvirus:
[MENTION=4470081]topjohnwu[/MENTION]

not sure where to post bug reports.

Device: Axon 7 (A2017G)

Firmware: Stock A03

Bootloader: unlocked

according to TWRP magisk is installing just fine, but when i try to start the magisk manager i get a forced closed (see attached screenshot and adb log file (cleared before starting magisk manager))

probable crash part of the adb log:

--------- beginning of crash
10-03 23:54:13.524 10483 10506 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
10-03 23:54:13.524 10483 10506 E AndroidRuntime: Process: com.topjohnwu.magisk, PID: 10483
10-03 23:54:13.524 10483 10506 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground()
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at android.os.AsyncTask$3.done(AsyncTask.java:309)
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at java.util.concurrent.FutureTask.run(FutureTask.java:242)
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at java.lang.Thread.run(Thread.java:818)
10-03 23:54:13.524 10483 10506 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.DataOutputStream.write(byte[])' on a null object reference
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at com.topjohnwu.magisk.utils.Shell.su(Unknown Source)
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at com.topjohnwu.magisk.utils.Shell.su(Unknown Source)
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at com.topjohnwu.magisk.utils.Async$constructEnv.doInBackground(Unknown Source)
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at com.topjohnwu.magisk.utils.Async$constructEnv.doInBackground(Unknown Source)
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at android.os.AsyncTask$2.call(AsyncTask.java:295)
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
10-03 23:54:13.524 10483 10506 E AndroidRuntime:	... 4 more
10-03 23:54:13.527 1691 1719 W ActivityManager: Force finishing activity com.topjohnwu.magisk/.SplashActivity
10-03 23:54:13.528 10483 10505 I DpmTcmClient: RegisterTcmMonitor from: com.android.okhttp.TcmIdleTimerMonitor
10-03 23:54:13.547 6007 6653 W NetGuard.JNI: TCP socket from 10.1.10.1/51594 to 103.235.46.149/80 FIN_WAIT1 socket -1 idle 31/30 sec
10-03 23:54:13.548 1691 1727 I Resources: curTheme=101318706, Theme_Holo=16973931, Default=16974120, curZte=101318703
10-03 23:54:13.551 1691 1727 I Resources: curTheme=101318895, Theme_Holo=16973931, Default=16974120, curZte=101318703
10-03 23:54:13.556 1691 1727 V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@80d8ce
10-03 23:54:13.556 1691 1727 V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@63f43ef
10-03 23:54:13.572 1691 2614 W BroadcastQueue: Permission Denial: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to de.amazon.mShop.android/com.amazon.mcc.crashreporter.android.CrashReportBroadcastReceiver requires android.permission.READ_LOGS due to sender android (uid 1000)
10-03 23:54:13.578 2279 4009 I ZteAppsSize: measureStorage-1, onGetStatsCompleted,succeeded=true,mRemaining=162

sadly there are not logs in /cache

Addionally i should say, it didn't work with V6 either, even though no FC.

Let me know how i can help/debug it more.

Thanks for your hard work