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

OnePlus, Realme and OPPO smartphones are some of the most popular Android devices on the market. They all come in two variants: the Qualcomm and the MediaTek chips. They all offer great features and performance, but one thing that sets Qualcomm devices apart from other devices is their ability to open a diagnostic port. This port allows you to access various diagnostic tools that can be used to troubleshoot your device.

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.

Talking about Diag Port on smartphones, it 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 allows you to 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.

Advertisements

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 out.

  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

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

  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.

Advertisements
  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 that 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.