How to Open Diag Port on OnePlus, Realme, or OPPO Smartphones

Among the popular Android devices in the market are OnePlus, Realme, and OPPO smartphones, which come in two variants – one with Qualcomm and the other with MediaTek chips. Both variants offer excellent features and performance, but what sets Qualcomm devices apart from the rest is their ability to open a diagnostic port. With this port, users can access a range of diagnostic tools to troubleshoot their device effectively.

How to Open Diag Port

What is Diag Port?

A Diag port is a special diagnostic port used to test and troubleshoot electronic equipment. This port is typically found on computers and other electronic devices. It allows technicians to connect special diagnostic equipment to the device to test its functionality. It is used for various purposes, including system troubleshooting, debugging, and performance analysis.

Diag Port on smartphones is used to repair the IMEI number of Qualcomm Snapdragon-powered smartphones, including the ones from OnePlus, Realme, and OPPO. However, it’s worth mentioning that the MediaTek processor-powered smartphones do not require opening the Diag port for IMEI repair.

Note: Before proceeding further, ensure you have a rooted device with proper root permissions for these to work.

Open Diag Port on OnePlus, Realme, or OPPO Smartphones

OnePlus, Realme and OPPO smartphones all have a feature called “Diag Port.” This feature lets you access diagnostic information about your phone’s hardware and software. This information can be helpful if you’re having problems with your phone or trying to diagnose a problem or restore something like IMEI.

There are three ways you can open the diag port on your smartphone. This guide has compiled a list of these three ways to help you.

  1. Open Diag Port Using Secret Dialer Code
  2. Open Diag Port Using ADB
  3. Open Diag Port Using Terminal APK

Open Diag Port Using Secret Dialer Code

If you own a Realme, OnePlus, or OPPO smartphone, then you can open the diagnostic port by following these steps:

  1. First, open the dialer on your smartphone and type the following code:
  2. Type this code *#812#
  3. Now, tap the Call button to open the Service menu.
  4. In the Service menu, tap the Hardware Testing option.
  5. Here, tap the Diag option.
  6. Finally, tap the Enable button to open the diagnostic port.

Open Diag Port Using ADB

You need to follow some steps to open a diag port using ADB in Realme, oppo, and OnePlus.

  1. Firstly, install an ADB driver on your computer.
  2. Then connect your phone to the computer using a USB cable.
  3. Now open the ADB interface on your computer.
  4. In the ADB interface, type the following command and press Enter: adb devices
  5. Now you will see a list of devices connected to your computer.
  6. Find your phone in the list and note the number next to it.
  7. Now type the following command in the ADB interface and press Enter:
    adb -s <device number> shell
  8. You will now be able to access the phone’s shell.
  9. To enable the diag port, type the following command in the shell and press Enter:
    setprop sys.usb.config diag,adb
  10. Now type the following command to restart the phone:
  11. Once the phone has restarted, you can access the diag port.

Open Diag Port Using Terminal APK

Make sure you have the proper root permissions before proceeding with this method.

  1. Install the Terminal Emulator app on your smartphone.
  2. Connect your smartphone to a PC.
  3. Now, open the Terminal Emulator app, type the following commands, and hit enter after each one.
    setprop sys.usb.config diag,adb

After following these steps, you can open the diag port on your OnePlus, Realme, or OPPO smartphone.

Conclusion

After reading this article, you should know how to open the diag port on your OnePlus, Realme, or OPPO smartphone. We hope you find our article helpful. We also hope you know how to open the diag port on your OnePlus, Realme, or OPPO smartphone. If you have any other questions related to this article, then leave them in the comment section.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.