I would Like to enable Diagnostic (DIAG) Mode on Android. I have the following questions about the same.
- How is DIAG mode helpful ?
- Is Rooting the Device necessary to enable DIAG Mode ?
- How to verify if DIAG mode is enabled ?
- Is it reversible ? Can i go back to Normal Mode ?
I'm using Google Nexus 5.
I'm fairly new to Android Development. Any help would be appreciated.
Diagnostics Mode can be used to change your device's radio band & modem settings and other stuff like changing IMEI address or MAC Address, if you have appropriate software like DFS CDMA Tool or QPST.
You can enable it only if your phone is rooted.
Make sure Qualcomm drivers for your phone are installed in computer.
Enter this in Terminal Emulator in your device:
Note: This will work only if your phone's ramdisk has the appropriate configs enabled for the 'diag,adb' property. If that didn't work, better open /init.xxxxxxx.usb.rc (xxxxxxx represents your device's codename or chipname or whatever) and check for properties related to 'diag'.
To verify if it's working, just check the Device Manager or the tool you're using & check if your phone gets connected.
Yes, it's reversible. To get back to normal mode, just type this in Terminal Emulator:
You'll get back to MTP mode :)
1- I personally use DM to collect and analyse the messages between a mobile (UE) and a network. I use it with Qualcomm QXDM and QPST tools to analyse wireless protocol stack messages. With commercial phones, usually the DM is blocked as a security measure as it allows you to decapsulate the messages sent/received by the UE. I haven't heard about another use for it until now.
2- Yes all the commercial UEs I worked with ( mostly with Sony Xperia and currently with Xperia Ray) are rooted.
3- If DIAG mode is enabled, you can see it in your Device Manager. Here is a snapshot of mine. That means you have to install the correct drivers for the device (which was tricky with many phones). The device should has Qualcomm Chipset!
4- Yes you can unroot the device. Never tried with Nexus myself.
Can I ask what is the purpose of using it for you? I mean it's strictly working with protocol stacks.
Hope it helps! Cheers
If you mean the developer options, then as of Android 4.2 I believe, one of the things about the developer options is that the menu is just hidden now. You have to purposely enable the menu to access the options.
I dont know much about DIAG mode but it's used when you want to read data from phone using qualcomm settings. To get into DIAG mode use ##3424# or *#7284#. And enable DM+MOdem+.. on.