• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Gizmo Advices

Gizmo Advices

Gizmo Advices is a tech blog on Google Android OS, Apple iOS, Windows Phone etc. It provides latest news and How to Tutorials & Guides.

  • Downloads
    • Android USB Drivers
    • Apps
    • Gapps
    • Wallpapers
  • How to
    • Bootloader
    • Custom Recovery
    • Custom ROM
    • Root
    • Stock Firmware
    • Screenshot
    • iOS
    • Tips and Tricks
  • Best List
  • Best Deals
  • Reviews
  • Contact Us
How to

How to Enable Qualcomm Diagnostic Mode on any Android Phone

Last Updated: August 25, 2020 by Alpesh

Qualcomm Diagnostic Mode or DIAG Mode is useful for changing the IMEI or repair baseband on your phone using QPST, WriteDualIMEI, and other tools. If you are facing "cannot find DIAG COM Port" or similar error, then follow the steps listed in this tutorial to enable Qualcomm Diagnostic Mode or activate DIAG Mode.

Enable Diag Mode - Activate Qualcomm Diagnostic Mode

Table of Contents

  • 1 What is DIAG Mode?
  • 2 How to Enable/Activate Qualcomm Diagnostic Mode on Android
  • 3 Enable Diag Mode using Secret Code
  • 4 Enable / Activate Diag Mode from ADB
  • 5 Enable Qualcomm Diagnostic Mode using Terminal APK

What is DIAG Mode?

Qualcomm DIAG Mode is a special diagnostic mode available on Qualcomm Snapdragon processor powered smartphones. When the Qualcomm Diagnostic Mode is enabled on your phone, it opens the DIAG port that helps to write or repair IMEI number using tools like QPST Tool, QFIL Tool, and other tools.

It is worth mentioning that for MediaTek (MTK) chipset powered devices, we use the Miracle Box tool to repair IMEI number, and DIAG COM Port is not required to repair IMEI on MediaTek and other processors like Spreadtrum, etc. But if you want to repair IMEI on any Qualcomm devices like Samsung, Oppo, Vivo, Xiaomi, OnePlus, Nokia, Lenovo, LG, and Motorola, then the diag port is required.

PLEASE NOTE

DIAG Port (Qualcomm HS-USB Android Diag 901D) and Qualcomm HS-USB QDLoader 9008 are separate things. Android DIAG 901D is a diag port, and HS-USB QDLoader is an EDL Mode (Emergency Download Mode).

To fix IMEI or repair baseband, it is required that your device has proper root permissions. So, make sure your device is rooted and have proper Root permissions.

How to Enable/Activate Qualcomm Diagnostic Mode on Android

There are three different methods to enable Qualcomm Diag port on your Qualcomm device. Check out all the methods below, and if one method doesn't work, then follow the other method.

[A.] Activate Qualcomm Diagnostic Mode using Diag Port Code (Dial Number)
[B.] Enable DIAG port using ADB diag Command Method
[C.] Activate Diag port using Terminal Emulator App (APK)

Enable Diag Mode using Secret Code

Some phones support activating Diag mode using the secret code. Follow the below steps to see if this method works on your device.

Open phone dialer app on your device and type #*#717717#*#*. It should enable Diag Mode, and fix cannot find DIAG COM Port error. If nothing happens, then try other methods listed below.

Enable / Activate Diag Mode from ADB

In this method, we will make use of ADB commands to enable Diag Mode. It requires that you have rooted your device and have proper root permissions.

  1. Install ADB and Fastboot drivers on your PC from here. Also, make sure to install the suitable Android USB Driver for your device model.
  2. Enable USB Debugging on your device from Settings > Developer Options. If Developer Options are missing, enable them from Settings > About Phone and tap on Build Number for about 7-10 times.
  3. Connect your device to PC and enter the below command.
    adb devices

    Enable qualcomm diagnostic modeThis command lists the devices connected to PC with USB Debugging enabled. If your device doesn't show up in the list, then make sure you have installed ADB, Fastboot, and USB Drivers properly.

  4. Now, type the below command and hit enter:
    adb shell

    This command enables Android Debug Shell. Using ADB Shell, we can perform several system actions.

  5. Now, enter the below command in CMD window and hit enter:
    su

    This command requests superuser / Root permissions. Once the permissions are allowed, all the commands will run as the superuser.

  6. Finally, enter the below command to enable the Diag mode or Qualcomm DIAG port.
    setprop sys.usb.config diag,adb
  7. Now, your device should be detected as Qualcomm HS-USB Android DIAG 901D in Device Manager.Qualcomm HS-USB Android Diag 901D (Qualcomm Diagnostic Mode)

Enable Qualcomm Diagnostic Mode using Terminal APK

  1. Make sure your device is rooted and have proper root permissions.
  2. Install Terminal Emulator app from here.
  3. Connect your device to PC.
  4. Open Terminal Emulator App and enter the below commands:Terminal Emulator Enable Diag Mode
    su
    setprop sys.usb.config diag,adb
  5. Now, your device should be detected as Qualcomm HS-USB Android DIAG 901D in Device Manager.Qualcomm HS-USB Android Diag 901D (Qualcomm Diagnostic Mode)

These are the three methods using which we can enable Diag Mode and fix cannot find the DIAG COM Port problem on Android.

Have any queries? Ask them in the comment section below.

Related

How to Repair IMEI on Snapdragon Powered Device [Xiaomi, OnePlus, ZTE, etc.]

How to Enable Qualcomm Diagnostic Mode on any Android Phone was last modified: August 25th, 2020 by Alpesh

This page may contain affiliate links so we earn a commission. Please read our affiliate disclosure for more info.

FacebookTwitterWhatsAppRedditPin It

👇👇Latest Video on YouTube 👇👇

RELATED POSTS

  • How to Setup ADB and Fastboot drivers on Windows PC [Guide]

    How to Setup ADB and Fastboot drivers on Windows PC [Guide]

  • How to Setup ADB and Fastboot drivers on Windows PC within Seconds

    How to Setup ADB and Fastboot drivers on Windows PC within Seconds

  • How to Install and Setup ADB and Fastboot Drivers on Mac

    How to Install and Setup ADB and Fastboot Drivers on Mac

Reader Interactions

COMMENTS

  1. Loriane

    Hello,

    Thank you for all of these useful information. I have a sony experia J 8010 phone and i want to root it in order to enable its diag com port…unfortunately i do not know how to do…i tried several APK found on the net but it did not work. Can you help me please ? Thank you in advance

    Reply
    • Alpesh

      Follow the instructions provided in the above tutorial to enable DIAG Mode.

      Reply

JOIN THE DISCUSSION: Cancel reply

We never share our visitor/user details. For more info, Please read our privacy policy before submitting your comment.

Primary Sidebar

YOU MIGHT ALSO LIKE…

  • How to Fix Message+ Keeps Stopping? Solutions to Verizon Message+ Crashing How to Fix Message+ Keeps Stopping? Solutions to Verizon Message+…
  • How to Fix “adb not recognized” Error on Windows How to Fix “adb not recognized” Error on Windows
  • How to Setup ADB and Fastboot drivers on Windows PC [Guide] How to Setup ADB and Fastboot drivers on Windows PC…
  • How to Setup ADB and Fastboot drivers on Windows PC within Seconds How to Setup ADB and Fastboot drivers on Windows PC…
  • How to Install and Setup ADB and Fastboot Drivers on Mac How to Install and Setup ADB and Fastboot Drivers on…

Recent Posts

  • Download Latest ADB and Fastboot SDK Platform Tools [Windows, Linux & Mac] Download Latest ADB and Fastboot SDK Platform Tools [Windows, Linux…
  • Complete List of ADB Commands and Fastboot Commands Complete List of ADB Commands and Fastboot Commands
  • What is ADB Sideload? How to Install OTA / Sideload ROMs and Mods on Android What is ADB Sideload? How to Install OTA / Sideload…

Latest Video

Find us on Facebook

Gizmo Advices Facebook Page

AMAZON PRIME DAY DEALS!!!

Amazon Daily Deals Banner

This page may contain affiliate links so we earn a commission. Please read our affiliate disclosure for more info.

  • About Us
  • Contact Us
  • Affiliate Disclosure
  • Privacy Policy
  • Sitemap

Copyright © 2021 Gizmo Advices | All Rights Reserved

This site uses cookies to deliver services and provide best experience. By using our site, you acknowledge that you have read and understand our Privacy Policy and agree to the use of cookies.

X