Diag

 *#*#717717#*#* 
  • Root access is required.

  • Enable USB Debugging on your phone from Developer Options.

adb devices

adb shell

su

setprop sys.usb.config diag,adb

su
setprop persist.usb.eng 0
setprop usb.rndis.enable 0
echo 0 > /sys/class/usb_composite/modem/enable

6b. If you have enabled RNDIS + DM + Modem mode already, skip to step 7. If you have an LGE phone, try the dialer codes here and change the USB mode from AP to CP (Modem mode). If that doesn't work, then it has been reported that the following commands will also enable diagnostic mode for you: Code: su echo 1 > /sys/devices/platform/lg_diag_cmd/diag_enable setprop sys.usb.config acm,diag,mtp,adb 6c. If you have enabled RNDIS + DM + Modem mode already, skip to step 7. If you have an HTC phone, this diagnostic driver may work for your phone. 6d. If you have enabled RNDIS + DM + Modem mode already, skip to step 7. If you have an Opo phone, it been reported that the following commands will enable diagnostic mode for your phone. Code: su setprop sys.usb.config diag,adb 6e. If you have enabled RNDIS + DM + Modem mode already, skip to step 7. If you have a custom kernel installed (which has permissive permissions) then you can probably enable diagnostic USB mode from the EFS Professional program menu. 6f. If you have enabled RNDIS + DM + Modem mode already, skip to step 7. If you cannot find out how to access the USB settings on your phone anywhere, you may be able to force diagnostic mode by installing the Windows USB drivers for your phone in advance. You can download Motorola /Sony/ LG/ HTC/ ASUS/ Huawei /Google, etc drivers here. Otherwise do a Google /XDA search to find USB drivers for your phone. Install the USB driver. 7. Enable USB debugging on your phone. This is a hidden menu. Look for Settings menu > System > About Device > Developer. If you don't see a Developer option, then tap on the firmware build number about ten times to unhide it. 8. Connect your phone to your phone to an USB port on your PC. Do not use an USB hub, connect directly to your computer. Windows will install a diagnostic driver. 9. Open the Windows (Control panel) Device Manager and confirm that you see something like "Samsung Mobile USB Serial Port" listed there. If you see a yellow triangle there > right click and update the driver. 10. Open the "QPST Configuration" program > Ports > Add new port > choose the port labeled diagnostic > OK. If you do not see a diagnostic port listed and you were not able to explictly able to set USB diagnostic mode earlier, then right click on the driver that Windows has assigned to your phone in the Windows (Control panel) Device Manager > Update Driver Software > Browse. Choose the folder where you extracted the USB driver that you downloaded for your phone. This forces Windows to use the downloaded driver. 11. Now select the QPST Start Clients > Software download > Backup > Start. This saves a backup copy of your phone's stock NV memory to your computer in case you need it later. 12. Navigate to the C:/Program Files/Qualcomm/QPST/bin folder. 13. Right click on ServiceProg.exe > run as administrator. 14. Choose Phone > Read from phone > UMTS System. This will show which 3G bands are currently enabled. Add checkmarks to the additional 3G bands that you would like to add. Resist the temptation to check everything unless you are prepared to troubleshoot possible issues with non-existant bands, slow boot times and other issues. Just add specific bands that you need for another carrier or are missing in the areas you travel. If you aren't sure what to add, then don't check any extra bands for now - you can always come back later after you find out which 3G bands you can actually make use of. Either way, do not click write to phone yet. And do not close the Service Programming window either. 15. Before we write anything to your phone, we need to write enable the locations we are going to edit. Navigate to the C:/Program Files/Qualcomm/QXDM/bin folder. 16. Right click on QXDM.exe > run as administrator. If you are not adding any new 3G bands at this time, skip to step 21. 17. In the NV Browser window, scroll down to ID 01877 (aka NV 1877) > Read. Then write "0" to NV 01877 with QXDM. This initializes (write enables) the item for QPST. We need to do the same for several more NV items. 18. Select ID 00441 > Read. > Write "0" to NV 00441 with QXDM. This initializes (write enables) the item for QPST. 19. Select ID 00946 > Read. > Write "0" to NV 00946 with QXDM. This initializes (write enables) the item for QPST. 20. Select ID 02954 > Read. > Write "0" to NV 02954 with QXDM. This initializes (write enables) the item for QPST. 21. If you do not intend to add any new LTE bands, skip to step 24. Otherwise, Select ID 06828 > Read. > Write "0" to NV 06828 with QXDM. This initializes (write enables) the item for QPST. 22. Select ID 06829 > Read. > Write "0" to NV 06829 with QXDM. This initializes (write enables) the item for QPST. 23. If you wish to add LTE bands and have already calculated a custom value from the instructions in the thread, then use QXDM to write that value to both ID 06829 and ID 06829, writing one item at a time. Otherwise, write (decimal) "17592185995263" to both ID 06828 and ID 06829, writing one item at a time. This will enable all LTE bands. Note that LTE edits will only work if your firmware has an LTE modem. If you already have at least one LTE band active, then you are OK. If your current firmware is from a carrier that does not use LTE at all, then you'll also need to update your modem to an LTE capable version as well. 24. Now go back to the Service Programming window that you left open. If you added any new 3G bands, click on write to phone to write the current selection of 3G bands to your phone. Otherwise do not click write, simply continue on to the next step. 25. You are now finished editing the NV values in your phone. 26. Reboot your phone. 27 In the Service Programming screen, choose Phone > Read from phone > UMTS System to confirm that your new 3G band selection are persistent. If they revert and you don't have a custom kernel installed, this confirms that you will need a custom kernel for this mod to work. 28. In the QXDM NV Browser screen, scroll down to ID 06828 > Read. Note the value. 29. In the QXDM NV Browser screen, scroll down to ID 06829 > Read. Note the value. ID 06828 and ID 06829 should both show the custom value that you wrote. i.e. "17592185995263" (or hex "0xFFFFFFF3FFF") or the custom value, if you had used one. 30. Remember to change your USB settings back to normal mode, e.g. on the S5, dial *#0808# again and choose USB = AP and USB Settings = MTP + ADB > Click OK. 31. Celebrate! And let us know about your success (or sticking points). 32. You can test your results by checking whether your phone uses the new bands when you roam onto other systems that use them. Or if you have a SIM card for an alternate carrier. To tell if your phone is using the new bands, you can look at the current band being used in the Service menu or with various apps, e.g. LTE Discovery. Your device should be rooted. 1. Enter into diag mode from *#0808# dial pad command. If a direct dial doesn't get you to the menu then use any Secret Code explorer app from Google Market, e.g. Phone Info Samsung by @vndnguyen. AP RMDIS + DM + MODEM 2. Enter into USB debug mode, 3. In Terminal Emulator ran su setenforce 0 4. Connect to PC 5. In device manager enable hidden devices. You should see your Sammy in ports like COMxx 6. Run QPST 7. In QPST, add the COM port where you see your device. If one port won't work, try the next one. Now you should be able to run NV manager or QXDM. NV values responsible for GSM are 00441, 00946, 02954 and 01877 NV values responsible for LTE bands are 06828 and 06829. The correct values that you would write in these NV can be derived by using Qualcomm NV Calculator app by @vndnguyen. Further details on the values are in this thread http://xdaforums.com/andr...lcomm-t2950491 courtesy of @yakapa40 --------------- Another important aspect of controlling the phone network behaviour is through the hidden menu. Use with extreme care & do this at your own risk. Here's how you can check you existing LTE bands: Open the dial pad Type: *#0011# to enter Service Mode (Be very careful with what you do here) Note: You need to be rooted for this to work Once in Service Mode, do the following: Tap the menu button and tap Back Tap the menu button again and select "Key Input" and enter an upper case Q and press OK Tap the menu button again and select "Key Input" and enter 4 zeroes (0000) and press OK Wait 5 - 15 seconds. You'll see the Main Menu Choose option [2]: UE SETTING & INFO Choose option [1]: SETTING Choose option [1]: PROTOCOL Choose option [2]: NAS Choose option [1]: NETWORK CONTROL Choose option [4]: BAND SELECTION Choose option [4]: LTE Band Preference Choose option [7]: LTE ALL (Or you can choose any band instead) If you want to go back then tap the menu button and choose Back (Don't press the back key) Press the back key to exit

References

Last updated

Was this helpful?