yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] jgkim:
enable diag mode : Boot_with_diag.img

- bbs.gfan.com/android-6953114-1-1.html

- pan.baidu.com/s/1sxMe1
[Nexus 5 Q&A, Help & Troubleshooting] prometheusZ:
use fastboot command to flash this image
[Nexus 5 Q&A, Help & Troubleshooting] jumkey:
大神 能否详细描述下修改源码过程
[Nexus 5 Q&A, Help & Troubleshooting] mwuahjaan:
Solved

For our ENGLISH speaking friends :highfive:

Install Lg United Mobile Driver

Put your device into FASTBOOT mode (Volume down key + Power) and use the following command : fastboot boot boot.img. The device will reboot itself and you will see homescreen.

To open DIAG MODE :

adb devices (you should see it shows device as connected and serial #)

adb shell

su

setprop sys.usb.config diag,adb

Nothing will happen on device but you would see the pc is busy installing various drivers and in Device Manager-Ports (there will LGE AndroidNet USB Serial Port (ComXX))

Assuming you already have MSL/SPC code of the device just go ahead and connect the device with your software .:D

Thanks
[Nexus 5 Q&A, Help & Troubleshooting] Raymond_W:
Possible to work on VZW

We succeeded in using our N5 on China Telecom network here in China.

I assume the VZW users will use their N5 on VZW soon. :laugh:
[Nexus 5 Q&A, Help & Troubleshooting] bigshotrob22:
Good job guys
[Nexus 5 Q&A, Help & Troubleshooting] leblvin:
I installed LG United Mobile Driver (LGUnitedMobileDriver_S50MAN310AP22_ML_WHQL_Ver_3.10.1.zip was the latest I found)

I had my bootloader unlocked and root

I used fastboot boot boot.img (making sure I'm targeting the right file)

My Nexus 5 did reboot and I could enter all the other commands without issue

However, My computer did not install the LG drivers.

I'm using Koush's universal ADB drivers to access USB debugging/ABD/Fastboot.

Should I be using something else?
[Nexus 5 Q&A, Help & Troubleshooting] mwuahjaan:
I used this : LGUnitedMobileDriver_S4981MAN37AP22_ML_WHQL_Ver_3.7.2

If your pc doesn't install LG drivers, are you getting COMXX port under device manager?
[Nexus 5 Q&A, Help & Troubleshooting] leblvin:
Under what category should I be seing COMXX port ? I looked under every category, but there's a lot of devices so I don't know if I might've skipped it. Also, getprop.sys.usb.config returns diag.adb, so there's that at least.

If I remove all my Nexus drivers (including those that allow me to access through ADB) and replug the phone, would it install the drivers? Then I would only have to reinstall my ADB ones?

I'll try that and see what I get. I'll also uninstall my LG drivers and install the one you used.
[Nexus 5 Q&A, Help & Troubleshooting] mwuahjaan:
There is no need to remove Nexus ADB drivers, at least I didn't do it. You should see Device Manager---->Ports there will LGE AndroidNet USB Serial Port (ComXX)

:good:
[Nexus 5 Q&A, Help & Troubleshooting] leblvin:
nvm
[Nexus 5 Q&A, Help & Troubleshooting] leblvin:
delete
[Nexus 5 Q&A, Help & Troubleshooting] lafester:
Worked great.. thanks for the instructions and boot.img :)

Successfully changed prl on sprint.
[Nexus 5 Q&A, Help & Troubleshooting] lilotimz:
Got the exact steps you did to change the PRL?
[Nexus 5 Q&A, Help & Troubleshooting] lafester:
http://xdaforums.com/showthread.php?t=2521276
[Nexus 5 Q&A, Help & Troubleshooting] nerubius:
I'm attempting write a prl on a sprint device as well. Everything has gone just as expected up to writing the prl. DFS errors out when trying to write the prl, as indicated in the thread you linked to when asked for instructions for writing the prl. When using "Basic Flasher" everything seems to go according to plan, but upon reboot after writing, my prl is still listed as 55016, same one it was on before attempting to write 16016. I have verified the MSL I'm using is correct by enabling triband LTE via hidden menus.

Any suggestions? Any known methods to force roaming on this device as well?
[Nexus 5 Q&A, Help & Troubleshooting] Raymond_W:
Did you try CDMA WORKSHOP? I also failed writing PRL by DFS but succeeded by CDMA WORKSHOP (ver.3.9).
[Nexus 5 Q&A, Help & Troubleshooting] nerubius:
I haven't tried CDMA workshop. I was really hoping for a solution that didn't carry a price tag with it.
[Nexus 5 Q&A, Help & Troubleshooting] VictorML:
<deleted>
[Nexus 5 Q&A, Help & Troubleshooting] VictorML:
Awesome work guys!!

Just one final question:

What are the implications of flashing the G2's image into our Nexus 5? Will this break anything at all? (any compatibility issues, OTAs, etc.)

After my experience with my Galxay Nexus, I plan to keep my N5 as stock-y as possible this time around... so I'd just like to make sure I know all the tradeoffs.
[Nexus 5 Q&A, Help & Troubleshooting] stepw:
For one, NAND partitions structure is very much different between the two, so could be the memory and IO map. I'd stay away from flashing G2 image to N5.
[Nexus 5 Q&A, Help & Troubleshooting] nerubius:
I was ultimately able to get a prl write to stick using QPST 2.7 build 422. I've also found that the prl is stored in the EFS Partition which can be backed up and restored via custom recovery. By writing one of the modded vzw prls for forced roaming with 3g data, then backing up the EFS partition in this state. I have effectively made a work around solution for forced roaming with 3g on verizon that can be implemented on the fly without a computer to do the dirty work. Just a quick boot to recovery and a restore of the EFS partition with the modded PRL and it's done. I've done the same thing again with one of the 3g enabled corporate sprint prls to have on hand as well. Switching back to the standard PRL is as simple as performing a PRL update through the mobile carrier settings. I'd much rather have a working solution to just force roaming on the latter PRL, but this works for now. Don't forget to back up your original EFS partition before trying this stuff if you haven't already.

VictorML -- The method shown here for enabling diag mode access does not flash anything to your phone. It simply boots it using the boot.img designated in the fastboot command instead of with the contents of the phone's actual boot partition. After you're finished with these procedures and the phone is rebooted, it defaults right back to booting from its own boot partition. I don't mean to say that there aren't inherent risks with this whole process, but by following the instructions contained in this thread to enable diag mode you are not actually writing any data to your boot partition in the process.
[Nexus 5 Q&A, Help & Troubleshooting] Raymond_W:
Steps of modification by DFS

Here are the steps of modification for enabling China Telecom network by DFS. Hope this could give those VZW users some inspirations.

Step 1: Root and unlock.

You can use Nexus Root Toolkit v1.78. Please follow the instructions in it.

Step 2: Flash the boot with DIAG enabled.

Under DOS environment:

fastboot flash boot boot_with_diag.img

Step 3: Open DIAG port and install driver for it.

Under DOS environment:

adb shell

su

setprop sys.usb.config diag,adb

you will find new COM port, install driver for it and then get "LGE AndroidNet USB Serial Port (COM XX)"

Step 4: Modify the configuration by DFS (you will need MSL/SPC for unlock the device in DFS. please refer to: http://xdaforums.com/showthread.php?t=2530061 to get MSL/SPC)

a. Find the diag port in DFS -- concect -- Input SPC to unlock device

b. Click Programming -- General; Change Rruim config from "NV only" to "Ruim only". WRITE it into device. (this make the device read data from UIM card but not NV in device)

c. Click Programming -- Nam; Preferred Setting -- Pref Mode, change it from any mode to "CDMA-HDR". WRITE it into device. (this step is just force N5 work on CDMA 3G network, you know, without Sprint SIM/UIM card, the device will just work on GSM mode but not CDMA mode. it will be different for VZW 4G network)

d. Click Programming -- Data; change the PAP UID/PWD and PPP UID/PWD. In my attached picture, it shows content for CT. Please fill it with your own information.

e. Click Programming -- Mobile IP; change "Mobile IP" to "Simple IP". I'm not sure if you need to change this item.

Step 5: PRL

We found someone need to update PRL but someone doesn't. You can decide if update it up to your own status. DFS or CDMA workshop is available for this.

That's it. Hope it helps.
[Nexus 5 Q&A, Help & Troubleshooting] bigshotrob22:
If I still had my nexus 5 I would be trying stuff but I sold it. Hopefully someone can give this a try on VZW.
[Nexus 5 Q&A, Help & Troubleshooting] VictorML:
Ohh, sorry... I was at work and read it too quickly. Didn't even know you could boot from an external image!

So just to clarify...

When you do this, the phone's USB interface will be set to "diag,adb" (which means you lose the MTP one). You could set it to diag, mtp I guess... but then you lose ADB. Point being, eventually you'll need to revert back the changes to recover normal USB functionalities. So I assume, for this you'll need to boot from the G2's boot image again, right? Or maybe only to enable diag mode, but not to disable it?
[Nexus 5 Q&A, Help & Troubleshooting] nerubius:
To be clear, after booting the phone via "fastboot boot boot.img" and then enabling diag mode per the setprop command described and performing whatever you need to via diag mode, all one must do to revert back to a normal boot with normal USB functionalities is reboot the phone normally. Nothing more.

Since I last posted there have been additional step by step instructional posts on modifications that can be made via DIAG mode and associated tools. There is a small difference present in the command for performing one of the necessary steps for getting DIAG mode working between these instructional posts. For clarification, please note that these two commands do different things to achieve the goal intended and you should consider the implications before choosing one over the other.

fastboot boot boot_with_diag.img << boots the phone with the diag enabled kernel WITHOUT writing it to the phone's boot partition

fastboot flash boot boot_with_diag.img << FLASHES the boot image to the boot partition WRITING to it and causing the phone to boot this kernel under normal conditions.
[Nexus 5 Q&A, Help & Troubleshooting] VictorML:
Thanks, yeah I do know the last part. I had just misread yesterday's post and thought that you were flashing the G2's image into the N5, not just booting from it.

Ok, if a reboot resets the behaviour of the USB port then everything's clear.

Thanks!
[Nexus 5 Q&A, Help & Troubleshooting] devz3r0:
I was able to get mine to flash the PRL using QPST 2.7 402 (the 422 one was full of trojans - at least the ones that I found).

Anyways, after I flashed the PRL I go into status and I see that the PRL version is now "1" as expected, but it's not roaming. Is there anything else I need to do or do I have the wrong PRL loaded?
[Nexus 5 Q&A, Help & Troubleshooting] nerubius:
Try dialing *2 and listen for the greeting to see what network you're on. I'm using 00003.prl to roam when needed and roaming status is not shown in spite of being connected via vzw. 00001 might behave the same way.
[Nexus 5 Q&A, Help & Troubleshooting] devz3r0:
Thanks for your time.

I figured out shortly after I made the post that it is in-fact connected to vzw (I tried to dial a number without the area code and it said while roaming on Verizon I had to).

What I don't get is that I've tried 00001 and the 00003 PRL(s) and I still get very bad service. A friend that's local has full bars throughout my house on his Verizon phone. Downloaded and installed Roaming Control and noticed that the PRL listed for the phone is still 310120, even though in status it says it's "1". Have any of you guys experienced something similar?
[Nexus 5 Q&A, Help & Troubleshooting] nerubius:
I've not experienced anything like this. Any time I've ever needed to force roaming on vzw due to unusable sprint voice or data has worked out fine.
[Nexus 5 Q&A, Help & Troubleshooting] devz3r0:
When you say "force roaming" do you mean flashing a VZW prl? or use something like roaming control (does it even work on the N5?).

Could you summarize the steps that you took to flash the prl? I did notice after using QPST 2.7 402 to flash it gave an error after it was done flashing:
[Nexus 5 Q&A, Help & Troubleshooting] nerubius:
I received the same error when writing prl with qpst, the prl did write successfully in spite of the error however.

Have you checked the phones status to see if the write was successful?

When I mentioned forced roaming, I did so generally and was referencing my experiences across multiple android devices and occasional 3g roaming on vzw. Where the nexus 5 is concerned, I am forcing vzw roaming on demand by restoring an EFS partition backup via recovery which was created while a modified roam only vzw prl was written to the device. I have not yet found any method of force roaming via roam control or any similar utilities or tweaks.

If you plan on giving this method a go, don't forget to backup your original EFS partition data and save it in a safe place.
[Nexus 5 Q&A, Help & Troubleshooting] cezar1:
Thanks for Good method. Just one question. What recovery do you use to backup/restore an EFS partition?
[Nexus 5 Q&A, Help & Troubleshooting] nerubius:
TWRP
[Nexus 5 Q&A, Help & Troubleshooting] mill1321:
Thanks guys. I appreciate you guys figuring this out big time. :good: Got roaming on Verizon working.
[Nexus 5 Q&A, Help & Troubleshooting] MysticMouse:
EVDO

Hello every one!

I did all, thanks a lot for boot with diag, it fully change the situation with flashing.... BUT... the is an issue with Enabling EVDO... It locked in modem/radio... maybe somebody know something about it??? or how to pull from phone rom of modem and edit it

thanks!!
[Nexus 5 Q&A, Help & Troubleshooting] nerubius:
I don't understand what you're asking or having trouble with.

---------- Post added at 07:45 AM ---------- Previous post was at 07:35 AM ----------

The latest version of Roam Control added support for the Nexus 5. This support comes with one caveat. The method used by the app to force roaming restricts the cdma radio band to the 800mhz range. Markets in which vzw operates their cdma/evdo network in the 1900mhz PCS band would be inaccessible using this force roaming technique. One would need to fall back to the forced roam PRL EFS backup discussed in this thread in those areas.
[Nexus 5 Q&A, Help & Troubleshooting] MysticMouse:
evdo - internet

i try to say, that internet(evdo) is locked by sprint... seems modem locked... there is configuration in cdma parameter, as name as CHAP/PAP, and i cant change it...this line is by default by Sprint....it looks like

my_meid@hcm.sprintpcs.com
[Nexus 5 Q&A, Help & Troubleshooting] nerubius:
Understood. There were instructions posted a few pages back explaining the steps necessary to program the n5 to work on a Chinese carrier and it looks like it includes working evdo. I might suggest sending the author a pm to track down some detail and troubleshoot your roadblock.
[Nexus 5 Q&A, Help & Troubleshooting] manny1110:
I have tried evdo programming on nexus 5 flashed to cricket wireless in the us. It's true some items either don't change or revert on boot. I have tried several different modem versions to no avail. what I have so far is nexus 5 flashed with talk text and 1x web some of the time and spc changed to 000000. Thanks for all the info so far and hopefully a modem unlock comes up soon in order to get full 3G support on cricket, page plus etc...
[Nexus 5 Q&A, Help & Troubleshooting] mandaman2k:
Hi all,

First of all, thanks to everyone who has contributed to this thread.

quick background, here in Mexico my service provider (iusacell) has both CDMA and GSM, since i got my N5 a month ago, i've been on the GSM network, the only problem is that GSM is the worst in iusacell, almost no coverage anywhere, and I want to configure my phone to use CDMA (i have all the required info to this and i've done it in the past with cdma only phones) since it has a much more and better coverage and stable 3G data.

But my question is, will GSM still be 100% functional or will it stop working? I tend to travel a lot to USA and there i have my ATT chip which I use a lot. So basically what i would like to do is when I'm in Mexico = CDMA and USA = GSM. is this possible?

Thanks in advanced.

Cheers
[Nexus 5 Q&A, Help & Troubleshooting] nerubius:
I believe that what you intend to do should work. I have not toyed with getting the N5 to work on a cdma carrier other than sprint in the US, but upon removal of my sprint LTE SIM and insertion of an ATT or TMobile SIM, the phone immedately switches to GSM. Unless your method for getting CDMA working with your Mexico carrier somehow forces the device to use CDMA regardless of what is in the SIM slot (I don't even know if this is possible), it should work just fine.

Maybe try getting the phone working on your carrier's CDMA network, then if you're successful, try popping in that GSM sim you have for the same carrier and see what happens. That should give you a pretty good indication of what to expect.
[Nexus 5 Q&A, Help & Troubleshooting] madroamer:
Plz chk ur PM
[Nexus 5 Q&A, Help & Troubleshooting] madroamer:
i flashed the device. i can see nexus 5 under devices in ddevice manager. all drivers installed. no issue.

i opened command prompt and type adb shell... den su...

wen i type setprop sys.usb.config diag,adb nexus 5 disappears in devices but doesnt show in any ports/com ...!!!!!!! y so ? how to rectify this
[Nexus 5 Q&A, Help & Troubleshooting] kenshin33:
there's something missing from the kernel, you need the modified one from this thread (if you;re running rooted stock)
[Nexus 5 Q&A, Help & Troubleshooting] javed91214:
Google N5 CDMA Flashing

Thanks a lot all,

I got the msl also change it to 000000 & also sim slot activated .i am using Indian CDMA sim card on it. but DATA is not working.

pl help me to enable data on RUIM mode or how to write prl on NV mode.

Thanks in advanced.

JK
[Nexus 5 Q&A, Help & Troubleshooting] madroamer:
So u did for reliance CDMA or MTS CDMA ? not getting data ?

after setprop where u able to get ports connected ? did u use cdma work shop ?
[Nexus 5 Q&A, Help & Troubleshooting] javed91214:
it was on NV mode , created port using setprop & now it is on RUIM mode.

i am using it for Reliance on RUIM mode , but not able to get DATA. i used DFS & Workshop both.
[Nexus 5 Q&A, Help & Troubleshooting] madroamer:
plz chk ur PM
[Nexus 5 Q&A, Help & Troubleshooting] Mechashiva:
First, big thanks to everyone who's contributed to this thread, it's been supremely useful to connect my phone this way.

However, I've hit a wall, I can use DFS, EFS Pro, NV reader-writer, CDMA Tools, or QPST to read and backup NV items, but I can't manage to write anything. In DFS, for example, any changes I make in the NV tab seem to write successfully, when I check them after, they've returned to their original values. If I make a change in the programming tab then hit write, it seems to write successfully (no error messages and the log returns "complete"). Upon hitting read, however, the value has returned to the stock value.

I have similar issues using the other programs mentioned (NV r/w, CDMA Tools, QPST). With all of them I can read and make backups of NV data, but any writing fails. I have my SPC number and it's accepted in all programs, so I'm not sure what the issue is. I can get to step 4a above without any trouble. I suspect there's some obvious reason I can't write these changes, but I've been trying at this for a good week, and I'm stuck.

I've tried:

the above programs

adding a SIM card (didn't have one that would fit at first)

different versions of LG driver settings, currently using the drivers recommended earlier in this thread

Other info:

I have the US Play Store Nexus 5.

I seem to be able to connect successfully to all these programs. I see a port in Device Managers, same port being used in DFS et al. I also see an MTP device, although I've unchecked MTP in storage under my phone's settings.

I've flashed back to stock, diagnostic mode didn't work without.

Phone is rooted, SU and busybox installed.

Phone shows up in adb devices from command prompt

I've backed up my EFS partitions using this TWRP and this useful tool, and have the backups stored off the phone.

If anyone can give any advice on what I'm doing wrong, I'd be very grateful.
[Nexus 5 Q&A, Help & Troubleshooting] Bloodykiller86:
If it keeps changing back usually that means that the phone is still in ruim mode. switch it to nv only and it should stick. I flash phones to metro with ask the programs like qpst, workshop, dfs and that's what it usually is. If it's something more then you're probably going to need to get the 16 digit code
[Nexus 5 Q&A, Help & Troubleshooting] Mechashiva:
Thanks for your help. When I read the config settings in the programming -> general tab, it shows the RUIM config as NV_ONLY, so it seems that's not the issue. In case it matters, the Voice Priv. is set to Enabled, USB config, BT and MAC settings are blank.

Soooo, what's this 16 digit code I need to find? I'm guessing it would go in the field next to SPC code in DFS, that's populated with F's currently. Is it related to CAVE settings? I noticed today I can't read those in DFS.

Thanks again.
[Nexus 5 Q&A, Help & Troubleshooting] kaushal.doshi555:
sir even i am unable to use data can you please help me
[Nexus 5 Q&A, Help & Troubleshooting] cyanin:
Can you tell me what you've done to the kernel, does the AOSP kernel need a patch, or just change default configuration, what are those options?
[Nexus 5 Q&A, Help & Troubleshooting] MdKb88:
Hi everybody

im trying to enable cdma on my nexus 5. Im stuck with the step of installing lg androodnet usb serial driver

After i hit the code. .the phone diconnects and then nothing happens.

I don't see any com port in device manager.

what should I do? Im on cm11 now...should I try with a rooted stock?

Thanks a lot

Edit:

It did work now after i used the stock version. The problem now is the msl/spc cose.

I'm not able to use any of the codes with the dialer to enter into the diag mode.

can anyone help me please? i tried all possible apps but none was able to read the spc/msl.

Ps.im not im the us so i cant use sprint sims..but i do have a cdma sim
[Nexus 5 Q&A, Help & Troubleshooting] Masaker514:
Anyone having a problem of QPST to writing to phone? It stops at 9% and says command line... I also experienced a similar matter with a note 3. I think 4.4 and + blocks QPST from writing. Also tried Cdma workshop and EFS Professional with the same result.
[Nexus 5 Q&A, Help & Troubleshooting] kinko21:
I found a solution to the PRL issue, well mostly.

Follow earlier guides to get QPST (build 402 but others probably work) connected to the phone.

From the QPST Config Screen launch the EFS Browser

Put in the SPC (MSL) in the bottom left, and launch the browser

In about 30-45 seconds the EFS partition will be mounted and you can browse the files.

WARNING MAKE EFS BACKUP!

In /sd/ there is a file "mmss_eqprl" , this is the PRL data.

Copy the file out, and then rename your new PRL as that and copy from PC to device. The default properties are fine except the last option is "Discard"

Reboot and the PRL will still be listed incorrectly in the status, but I verified 3g roaming on VZW with Sprint.