[Motorola Droid RAZR] fujcru:
Verizonifed MIUI v5 3.11.22 XT912 CDMA

Sorry it took me a while to post this, I've been messing around with the testing CM 11 that was posted. And then I had some problems getting data on this ROM, but finally got it all worked out. I think I've been pretty descriptive in my posts about how to Verizonify this ROM but it looks like people have had problems doing it on their own, so I'll go through it again. Basically as I understand it, those who have a global XT912 have no trouble with this ROM. It's just us poor Americans who have Verizon that need some help because Verizon does some strange things with their phones where there are certain system apps that are required as well as different settings that need to be set in the build.prop file.

Step 1 is to acquire Cyanogenmod 10.1.3 since this ROM is based off of that ROM and that ROM already works on our Verizon XT912's. cm-10.1.3-spyder.zip

Step 2 is to copy the 5 Verizon system apps from CM 10.1.3 into MIUI. The files are:

\system\app\appdirectedsmspermission.apk

\system\app\VerizonSSOEngine.apk

\system\app\VZWAPNLib.apk

\system\app\vzwapnpermission.apk

\system\app\VZWAPNService.apk

Step 3 is optional. GPS tries to sync your time before it connects to the satellites and this ROM is set to use north-america.pool.ntp.org as the NTP Pool time server; however since I know I am in the United States, I can further localize myself and possibly get a faster and more accurate time sync by changing this value to us.pool.ntp.org. The file that you would need to edit is at: \system\etc\gps.conf

Step 4 is to fix the APN's. Here there are two options. You can simply grab the APN's from CM 10.1.3. Copy the file \system\etc\apns-conf.xml from CM 10.1.3 to MIUI and overwrite the MIUI version (the MIUI version contained no references to Verizon at all so it's okay to just wipe it out). If you want to further optimize your APN's, you can take the APN's from your stock ROM. In my case, I used APN Backup & Restore and backed my APN's up. Then I copied that file to my computer. The APN's in the .XML file that APN Backup & Restore generates are almost the same as how they are listed in the apns-conf.xml file. So you can copy them from your backup and replace the ones in the apns-conf.xml file. The one major difference is that the apns-conf.xml file lists the name of each entry as "apn carrier=" and the backup file has each entry as "apn name=." So after I pasted my backed up entries from the stock ROM into the apns-conf.xml file, I just did a find and replace and fixed all of the entries so they matched the format that MIUI should be expecting, "apn carrier=."

Step 5 is fixing the build.prop file: \system\build.prop. Once again, you can copy parts of it straight from CM 10.1.3. Starting at the value, ro.build.version.sdk=17, and ending at the value, ro.modversion=10.1.3-spyder, copy all of those settings/values from the build.prop file in CM 10.1.3 and paste them into MIUI replacing the same block of settings/values (should be lines 6 through 286).

Congratulations, you now have a Verizonified MIUI v5 ROM. Now the trick is getting 4G to stick on boot. If you flash this file as I did, there are two problems stopping you from getting 4G. First, the ROM defaults to setting Data to disabled. This is a new quirk and had me stumped for a while since I never turn off my data so I just completely glossed over it. You can fix this by going to Settings -> General Settings -> Mobile networks and changing the toggle for "Data enabled" to enable data. The second problem is a bit harder to fix. By default, the settings.db file has the preferred_network_mode set to 7 and it needs to be set to 10. First go into the testing menu by dialing *#*#INFO#*#* with the phone dialer (this translates to *#*#4636#*#*). Under Phone information -> Set preferred network type the drop down menu is probably set to GSM/CDMA. Change that to LTE/GSM/CDMA. Now we need to address the settings.db file itself. I used SQLite Editor to do this but you all can use my patch file to fix both of the 4G problems. If you are using SQLite Editor, go into Settings Storage -> settings.db -> global and change the value of preferred_network_mode from 7 to 10. While you are at it, you can also change the value of mobile_data from 0 to 1 to enable data without having to go into the actual menus. Note that this is exactly what my patch does, it sets the values of preferred_network_mode and mobile_data to the ones we need. After setting these values, reboot and you should get 4G. Note that if you get 4G, do not go into the testing menu or the into Settings -> General Settings -> Mobile Networks or it will reset everything to the wrong values again and you will need to repeat the process again (testing menu and select LTE/GSM/CDMA, then reboot and flash the patch file).

I've simplified the process by uploading my files to Dev-Host. You can grab the version you want. One version has the default CM 10.1.3 APN's and the other has the APN's from my stock ROM. The APN's from the stock ROM should be better than the ones from CM 10.1.3. Some people have reported stronger signals and possibly fixed MMS when using a ROM with the transferred stock APN's. Follow the instructions in the OP to flash the ROM. If you don't get wifi on the first boot, reboot to recovery and flash the ROM again. This always seems to work and I don't really know why because wifi always seems to come up after the reflash. After you have completed the initial setup, go to the testing menu as described above and change the preferred network type to LTE/GSM/CDMA. Then reboot to recovery and flash my patch. When you reboot and wait a minute or two you should get 4G. Once again if you have a working 4G connection, do not go into the testing menu or Settings -> General Settings -> Mobile Networks as doing so will reset everything back to how it was at the beginning when you had no working 4G. It's not the end of the world, you just need to repeat the process to get 4G working. Testing menu, LTE/GSM/CDMA, reboot to recovery, flash my patch, and reboot with working 4G.

miui_xt912_santajin_3.11.22_c21f0a0984_4.2_Modified_Verizon.zip

miui_xt912_santajin_3.11.22_c21f0a0984_4.2_Modified_Verizon_Stock_APN.zip

miui_xt912_Verizon_patch.zip

Good luck and please let people know if this worked for you!