Now, when you will connect your turned off MTK device to the Windows 10 computer by USB, the device will be recognized either trough a MediaTek Preloader USB VCOM Port interface or as a MTK USB port if it is bricked or it has bad/corrupt firmware. The SP Flash Tool will be able to transfer the firmware to your device trough this interfaces.
Set a debug app in your devleoper options on your phone and tell it to wait for debugger. Then launch it and you can attach the debugger from Android Studio and all works well. Settings -> System and Updates -> Developer Options. Under Debugging find 'Select debug app' and choose your app. Tick ON 'Wait for debugger'. Step 1 Open the Control Panel on your computer. Locate and access " Programs and Features ". Step 2 Go to " Windows Features on or off " and opt for " CIFS File Sharing Support ". Activate both "File Sharing" and " Network Discovery ". Step 3 On your Huawei phone, go to " Settings ". Navigate to " Device Connection ". . 372 430 446 358 465 111 14 439