• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Quick PRL Swap in CM7 (updated 4/5)

thangfish

Android Expert
This is not a complete prl swap how-to!

Ok, I didn't come up with this (kyouko did) but it works.

You still have to have your MSL (stock ROM, run alogcat, filter for sec_code, dial ##33284# , enter 000000 when asked for MSL, read your real MSL number from sec_code line in alogcat log)
Write it down and you won't need to flash back to stock anymore to swap prl files.

*How to get your MSL Code*
First, you must be on stock ROM for ##dialer codes to work!
Download and install aLogcat (free) from the
Android Market.
Run aLogcat and set it to filter for "sec_code"
Go to your Phone dialer and dial ##33284#
When prompted for the MSL, type 000000.
Now, go to aLogcat. And it should have found
a "sec_code:" line with your MSL code at the
end of it. It's 6 digits.

Motorola Drivers Page
Extracted adb drivers (may help if the above give you trouble)
If you have a hard time installing the Motorola .msi package, like I did, Wobblethehut took the time to extract the drivers, here: http://androidforums.com/triumph-all-things-root/415058-extracted-triumph-adb-drivers.html

In CM7, open Terminal Emulator and type:
su (to get super user access) and hit enter.
then type:
Code:
 echo 1 > /dev/qct_diag_enable
And hit enter.

You're now in diagnostic mode and you can plug in and use QPST as normal.

When you're done writing the prl (don't worry about the nv error... just click through it), the phone will reboot. Just unplug and leave the qpst window open and you won't have to enter your msl every time, if you're testing several prl files. Just plug back in. Diagnostic mode survives a reboot.

* Please use OpenSignal (free app) before and after swap to verify tower usage and changes (if any) :D

Also, adding the evdo only line to your build.prop file does nothing. If you truly used evdo only, you would loose SMS and voice. You can change to evdo only in network settings, but why??

---
MSL - Master Subsidy Lock (think of it as the password for the internal workings of your phone)
PRL - Preferred Roaming List (list of allowed roaming partners, by geographical region)
QPST - Qualcomm Product Support Tool - is a Windows program that allows you to read, backup, and change (ie: ruin :D) the internal settings of your device.
QCT - Qualcomm CDMA Technologies - company that makes our chipset
---

CM9 - There is no way at present to change prl in CM9. QPST will see and read from the phone without this command, but prl cannot be written. Also, CM9 will not display correct prl in About Phone. Stock prl number is hard-coded. Flashing (or restoring) roms will not alter your prl.
 
This is not a complete prl swap how-to!

Ok, I didn't come up with this (kyouko did) but it works.

You still have to have your MSL (stock, alogcat, sec_code, etc.) Write it down and you won't need to flash back to stock every time.

In CM7, open Terminal Emulator and type:
su (to get super user access) and hit enter.
then type:
Code:
 echo 1 > /dev/qct_diag_enable
And hit enter.

You're now in diagnostic mode and you can plug in and use QPST as normal.

When you're done writing the prl, the phone will reboot. Just unplug and leave the qpst window open and you won't have to enter your msl every time, if you're testing several prl files. Just re-enter diagnostic mode in terminal emulator (you lose it on reboot) and plug back in.

* Please use OpenSignal (free app) before and after swap to verify tower usage and changes (if any) :D

Also, adding the evdo only line to your build.prop file does nothing. If you truly used evdo only, you would loose MSM and voice. You can change to evdo only in network settings, but why??

sweet find "thug" making it easy
 
Thanks for the info!!

I have SManager on my phone, why couldn't this be in a script, run as root??

Works fine as a script, but this may be a moot issue.
Was just doing some testing and found that my phone has retained diagnostic mode, so you only need run this once per ROM install. :D

Just updated the OP to reflect this.
This may be something the devs could enable in the ROM, if they choose, and if it doesn't cause any issues. I haven't seen any yet. If anybody else notices anything weird because of this, please let us know here.
 
Works fine as a script, but this may be a moot issue.
Was just doing some testing and found that my phone has retained diagnostic mode, so you only need run this once per ROM install. :D

Just updated the OP to reflect this.
This may be something the devs could enable in the ROM, if they choose, and if it doesn't cause any issues. I haven't seen any yet. If anybody else notices anything weird because of this, please let us know here.

How about a 2nd script with:
echo 0 > /dev/qct_diag_enable

to disable debugging? Just a thought...:D
 
How about a 2nd script with:
echo 0 > /dev/qct_diag_enable

to disable debugging? Just a thought...:D

You need usb debugging enabled to be able to swap the PRL and you can just as easily turn it off and on in settings> applications> developement> usb debugging. That is if you are talking about USB debugging.
 
You need usb debugging enabled to be able to swap the PRL and you can just as easily turn it off and on in settings> applications> developement> usb debugging. That is if you are talking about USB debugging.

Silly me, I meant usb diagnostic mode vs mass storage mode. From the stock ROM you can use Anycut to create a shortcut to set it. I just put Anycut on CM7, but the Select COM Port Mode option is not there. Difference in GB vs Froyo? :confused:
 
Silly me, I meant usb diagnostic mode vs mass storage mode. From the stock ROM you can use Anycut to create a shortcut to set it. I just put Anycut on CM7, but the Select COM Port Mode option is not there. Difference in GB vs Froyo? :confused:

Oh. I actually think it's the difference between stock and any non stock based rom. If VM ever updated the MT to GB (lol I made a joke...) it would still have that option with anycut just as you would also be able to activate it.
 
Oh. I actually think it's the difference between stock and any non stock based rom. If VM ever updated the MT to GB (lol I made a joke...) it would still have that option with anycut just as you would also be able to activate it.

haha i've heard that joke before! :D its always funny!


vm + updating a phone that really needs/deserves it = laughter
 
Silly me, I meant usb diagnostic mode vs mass storage mode. From the stock ROM you can use Anycut to create a shortcut to set it. I just put Anycut on CM7, but the Select COM Port Mode option is not there. Difference in GB vs Froyo? :confused:

But it's not an either/or thing now. Mass storage mode still works with qct diagnostic mode enabled.
The previous theory, (maybe it was tickerguy?) on why the anycut selection was not there, was that CM7 was always in diagnostic mode, yet we couldn't find a way to make qpst see the phone. Thus it was flashing back to stock that made testing numerous prl files a pain in the ass.

So, does anyone see any issues with just leaving diagnostic mode enabled? Security risk of some kind, maybe?
 
What does the PRL Swap do for our phones?

[clears throat, ducks down, cups hand to mouth, and whispers]

Usually *nothing*

It can make you loose data, voice or both.
Fun to experiment though. :D

I did lock onto an Alltel tower, digital roaming, 3g, no voice/MSM. At least I'm assuming it was an old Alltel tower. It was unknown to Open Signal's data base and all of the Sprint and Verizon towers in my area are in there. It was and old Alltel prl. Data was no faster so no biggey.

It's possible, in some geographical areas it *may* get you on other towers, that Sprint had/has arrangements with
 
Well im pretty sure all of them have US Virgin Islands, the very last one: http://www.batonrougebroadband.info/Sprint_60676.txt
and the very first one: http://www.batonrougebroadband.info/Sprint_60686.txt

Both have US Virgin Islands, and both have the same

Oh yes, they would all have it in there. You would be looking for one that lists another provider as a possible roaming partner. You'd have to check them all.

If you browse other areas, you'll see stuff like Verizon, Alltel, Us Cellular...
 
Back
Top Bottom