yashsingh1/xdaforums huggingface dataset:
[Verizon HTC Droid Incredible 4G LTE] mclaser:
Ok, in my ignorance I may have stumbled on something. After locating the Bug notes from mdmower and re-re-reading, then reading your advice about the CID possibly being used to register the phone client (or something to that effect), I did the following and it appears to have resolved my android.phone crashing as well as Touchdown not being able to complete a sync:

reset CID back to VZW__001, factory reset:

- adb shell, dd if=/sdcard/mmcblk0p4 of=/dev/block/mmcblk0p4

- adb reboot recovery, factory reset

Hope this helps someone. Thanks for all your help! Viper ROM is NICE!
[Verizon HTC Droid Incredible 4G LTE] CaptainRewind:
Right! As you have found, you have to set your CID back to what it should be after you've achieved the unlock. This is likely going to hold true for all future ROMs released here.

In my case, I haven't done that yet (still on stock with my own modifications), but had been thinking that I'd need to do that sooner or later, or at least before I flash a new ROM.

Glad to hear you got unlocked successfully.
[Verizon HTC Droid Incredible 4G LTE] mdmower:
Thanks for sharing. It looks like you did not re-lock your bootloader before resetting the CID (i.e. you never issued the command: fastboot oem lock). Can you confirm this?

If you don't need to re-lock the bootloader before reverting the CID, we could probably just include this as another step in the standard unlock procedure to maximize compatibility for everyone.
[Verizon HTC Droid Incredible 4G LTE] mclaser:
That's correct: I did NOT relock. Of course it hasn't exactly been running for a long time yet! ...but I think I'm ok. I've reloaded a ton of apps and data and everything seems fine. Yes, it would be good to add that to the instructions:)

You guys usually relock right away, is that right? Is that basically to minimize potential damage from malicious apps?
[Verizon HTC Droid Incredible 4G LTE] mdmower:
Actually no, once unlock is applied few users ever re-lock. The risks are minimal and usually related to flashing buggy packages (which can typically be fixed). I only performed the step because I wasn't sure if the unlocked bootloader would perform consistency checks on the CID.
[Verizon HTC Droid Incredible 4G LTE] mclaser:
Ok, good to know. I unlocked my Inc2 and never re-locked it but hearing about potential Wallet issues made me wonder if that should be a concern. So I guess I'm the only guy that didn't know to reset the CID! ...baby steps Ellie...
[Verizon HTC Droid Incredible 4G LTE] CaptainRewind:
I personally would recommend staying unlocked if possible, but if it's a requirement for custom ROMs, it's fine to do. As long as you have either a rooted system or a custom recovery, getting back to an unlocked state, should you ever need it in the future, would be easy. It might not be documented here exactly, but it would be very close to what is here, and I could assist if it comes to it.

This unlock process is only so kludgy because you can only get temproot, and you need those permissions to make the needed CID changes.

Of course, once S-OFF happens, we will have FULL control of the device (more than we have now). You'll be able to change partitions sizes, most importantly, but some other low-level operations will also be possible. Getting there always comes with the risk of somebody having a bricked phone along the way, though. :silly:
[Verizon HTC Droid Incredible 4G LTE] jamminjon82:
Just out of curiosity, from the unlimited tool for the evo,has anyone tried using the rabies shot exe to get s off after unlocking with this tool? Its in the last step of dirty racun
[Verizon HTC Droid Incredible 4G LTE] jose51197:
Dont try it, messing with bootloader is dangerous, even worse if it comes from another device
[Verizon HTC Droid Incredible 4G LTE] jamminjon82:
I had only wondered because that was the one originally that was to be used on our device before all the hooplah
[Verizon HTC Droid Incredible 4G LTE] CaptainRewind:
Actually, I'm thinking the most practical need for S-OFF will be to flash newer radio versions.

Also, mclaser, if you are really worried about security, you should proceed with the relock, disable USB debugging, go back to stock recovery, and set a security code to lock your device. Then, your risk if somebody stole your phone is lowered (but not eliminated). You might also want to try Lookout, which supports remote wipe of your data partition and SD card.
[Verizon HTC Droid Incredible 4G LTE] nitsuj17:
radios, splash images, flashing unsigned RUU's (and reverting to older ones), modded hboots

would be nice :laugh:
[Verizon HTC Droid Incredible 4G LTE] bberryhill0:
I'll wait a while longer to see if we get S-off. This phone runs pretty well stock. Ads are my main issue.
[Verizon HTC Droid Incredible 4G LTE] mclaser:
I'm not that worried about ATM. I was considering putting on GWallet (if that's even possible now on VZ), and if I did I thought it would be good to lock things down as much as possible. Probably implementing encryption, with security code, would be the way to go. The more I read about the wallets the less appealing they sound! I think I'll just leave it unlocked for now.
[Verizon HTC Droid Incredible 4G LTE] bberryhill0:
Having my phone spend money for me is not in my future. I tend to use cash.
[Verizon HTC Droid Incredible 4G LTE] mdmower:
New script v3

I've overhauled the script to allow for new options, see the screenshot:

This should make it easier for everyone to change their CID if problems arise with SuperCID. A bit more automation has been put into the unlock process as well to prevent user error. I have tested processes 1-3 on my phone with success, but I haven't done testing beyond this, so the standard disclaimer applies: I am not liable for problems that may arise with your phone due to usage of this tool.

Also, I've removed recovery and other unneeded files from the package to trim down the size (only 213KB now). You can follow the directions in Post 2 to flash a recovery like TWRP.

Special Note: If you run the script multiple times, be sure to remove mmcblk0p4 and mmcblk0p4.backup from the directory each time. I purposely leave these in case you want to make a backup. mmcblk0p4 corresponds to SuperCID and mmcblk0p4.backup corresponds to VZW__001.

EDIT: Scripts are now located in this thread.
[Verizon HTC Droid Incredible 4G LTE] jamminjon82:
You should probably create your own thread for this

---------- Post added at 06:33 PM ---------- Previous post was at 06:31 PM ----------
[Verizon HTC Droid Incredible 4G LTE] fwhite42:
Just confirming that I've set CID back to original value and remained unlocked and all is running well...over 24 hours now.

Note: I was previously experiencing the unable to compete calls issue with the spoofed CID.
[Verizon HTC Droid Incredible 4G LTE] binaryhat:
Please add the install recovery feature to the new script. It will help noobs.
[Verizon HTC Droid Incredible 4G LTE] ZooDad:
OK, feel like a new noobe..

Which directory for the back up deletes.

I think that is why I can not proceed from the restore. It starts then ends, but never reboots.

I have factory reset 4 times now, 2 in HBOOT and 2 with OS.

Thanks in advance.

ZooDad
[Verizon HTC Droid Incredible 4G LTE] mdmower:
The same directory where you extracted Inc4GUnlockV3.zip. If those files don't exist, then the script never successfully made it that far.

Are you running the latest update on your phone, 2.17.605.2? (It's required.) Some more details of how far you get would be helpful. When you say it never reboots, does the script hang at:

Also, have you made sure that you

do not

have a backup password set on your phone?
[Verizon HTC Droid Incredible 4G LTE] ZooDad:
mdmower,

Thanks for the quick response.

I an currently dl the 2.17. Was trying to unlock while waiting... slow on my side.

So that is it then.

When I first started it it went through to changing the CID then stalled.

So I will run the RUU and start over.

This is device #2. I got #1 early and was able to unlock via HTCDev before the block.

Thanks again.

ZooDad
[Verizon HTC Droid Incredible 4G LTE] bigdaddyblues:
mdmower v3 far as i get

mdmower,

trying to add screenshot.

debugging is on and also went into security and allowing other programs.

In the screenshot i see some code for file mmcblk0p4???

My cid is VZW__001

what next
[Verizon HTC Droid Incredible 4G LTE] mdmower:
Just to confirm, are you running the latest update on your phone, 2.17.605.2? (It's required.) And did you try to factory reset? (The unlock will wipe your data anyways, so its advised for best results)

Looks like the phone never reached a temproot shell. After you accepted the restore on your device, did your phone automatically reboot? If so, when it rebooted, did it start up like normal or did it boot to a stage that looks almost loaded but isn't actually usable (no ring lock)?
[Verizon HTC Droid Incredible 4G LTE] bigdaddyblues:
Latest Update - Yes

Factory Reset - Yes

Did reboot with ring lock.

Will try again later

thanks
[Verizon HTC Droid Incredible 4G LTE] mdmower:
If it rebooted normally, this implies the restore process didn't complete properly. Can you make sure that you do not have a password set under: Settings > Developer options > Desktop backup password?
[Verizon HTC Droid Incredible 4G LTE] jose51197:
Definetly right the only reason we needed temp root is for that to be writeable
[Verizon HTC Droid Incredible 4G LTE] bigdaddyblues:
It says "Desktop full backups aren't currently protected.

It shouldn't matter what the name of the directory I unzip the v3 unlocker into?

After I use the cmd prompt as an administrator, i cd to that directory and run the bat file.

I am going to try and run it again.

---------- Post added at 09:37 PM ---------- Previous post was at 09:11 PM ----------

I finally got it to work. The only thing I did was started from the beginning and double checked everything.

Big Thanks.......
[Verizon HTC Droid Incredible 4G LTE] ZooDad:
Mdmower,

Got it to go.

Thanks far all the help and a great work around.

ZooDad

Sent DInc4g ViperLTE 2.0 via Tapatalk 2
[Verizon HTC Droid Incredible 4G LTE] CaptainRewind:
Good to hear you are all set. Timing was essential to gain temproot, which as mdmower said it looked like you weren't getting, so good of you to try starting over from scratch.
[Verizon HTC Droid Incredible 4G LTE] rpc180:
Jose51197, CaptainRewind, and everyone else who helped with this one you guys are awesome for pulling this off!

I just got around to trying this out this weekend and since I didn't use the script, it took a few times to read through to really figure out how you all were approaching it but it made sense after a round or two (temproot, pull down and mod phone identifier file, send back, fakeout HTC dev for an unlock.bin, then perm root).

Had two main hangups 1) the decompressed Android SDK path and 2) a gotcha about the "ADB server out of date - killing" issue that I ran into. First, the current Android SDK seems to insist its folder to default to \adt-bundle-windows. I wasn't sure if there were hard-code dependencies to this location so I when I updated the system path variable I made it reflect that and the \sdk\platformtools and \sdk\tools folder which is different from some of the other write-ups. Second, I found when I tried to run adb restore fakebackup.ab from the \stuff subfolder it caused the "ADB server out of date - killing" error and wouldn't start the restore. Running adb from another directory and then adding the \stuff path to the fakebackup.ab file allowed the use of the SDK version of adb from the system path which worked.

The only other thing which I was uncertain of at the time was the modification of the mmcblk0p4 file where VZW__001 had a few other values right after it (IMEI I assume), I wasn't sure if I had to remove just the VZW__001 and leave the remaining values intact or change it all. In the end, I left the remaining values (which is how its supposed to be) but it might not have been totally clear in the first post directions.

Thanks to everyone now unlocked and rooted with SU working like a charm :) Can't wait for some custom ROMs to come along with Sense stripped out!
[Verizon HTC Droid Incredible 4G LTE] mdmower:
Thanks for reporting back, and I'm glad you're successfully unlocked. With regards to your concerns:

Since the team provides an all inclusive package of tools needed (i.e. you don't need to have the android-sdk installed), I think your issues with adb and paths are not relevant to most users.

From the OP, "Look for offset 00000210 and you should see VZW__001 with your imei on the right ... Change VZW__001 to 11111111 and save the file as mmcblk0p4MOD". I don't see the ambiguity about what needs alteration. Additionally, if users use the automated script this becomes a non-issue.

Your comments are appreciated, but I don't think changes are needed to the instructions.
[Verizon HTC Droid Incredible 4G LTE] dodgerinNH:
Re-Running the Automated Script

Hello, wondering if anyone can give me any insight on this:

I unlocked and rooted according to the instructions and everything was fine. Thanks a million for that!!! The problems I ran into was when I flashed Viper 2.0. The Dialer wouldn't work and numerous other apps either crashed or were unavailable and google contacts wouldn't sync. So I re-downloaded Viper and re-flashed, still no-go. I saw option #3 on the automated script as being a potential fix for this, so when I re-ran the script (after deleting the two backup files), and chose option #3, it unexpectedly put me right back into Option #1- temproot. However, since I was already unlocked and rooted, I stopped, not sure if I should restart the whole process?

Should this have happened, or should I have been just directed to option #3, and then allowed to exit once the CID had reverted?
[Verizon HTC Droid Incredible 4G LTE] jcpowell:
Option #3 sends you into temproot to change your CID back and this will fix your issues for I lost all connectivity to VZW until I did this now all is as supposed to be.

Sent from my all powerful Inc4G
[Verizon HTC Droid Incredible 4G LTE] mdmower:
prairiedragon is correct. The procedures for 1, 2 and 3 are very similar with the exception that the step for unlock is not performed in procedure 2 or 3. The reason for using temproot again is that it's not guaranteed that a user who unlocks will have superuser installed (i.e. access to root user). I agree this is the usual reason for unlocking, it's just not something that can be assumed for everyone.

---------- Post added at 11:39 AM ---------- Previous post was at 11:23 AM ----------

jose51197, CaptainRewind, andybones, or anyone with experience creating fastboot packages or packages that can be flashed through recovery,

EDIT: The following question assumes unlock has already been achieved:

Is it possible to create a package for installation through recovery (or something that can be flashed with fastboot) that modifies a file rather than overwrites? If this is the case we could probably make the cid change easier by having people flash a zip rather than relying on the temproot procedure again.

And one more thought. Has anyone tried using unlock_code.bin when their cid is back to VZW__001? I wonder if it's actually tied to SuperCID?

(I'm constantly looking for ways to streamline the process)
[Verizon HTC Droid Incredible 4G LTE] jose51197:
Zip cannot be flashed without custom recovery, neither fastbot without unlocked bootloader, custom recovery needs unlocked bootloader, so no, only modifying partitions from system with root was our best bet
[Verizon HTC Droid Incredible 4G LTE] dodgerinNH:
So, go ahead and just go with it and it won't actually go through all the initial steps of attempting to unlock bootloader?
[Verizon HTC Droid Incredible 4G LTE] mdmower:
About 90% of the procedure to unlock your phone is unrelated to the unlock. The first several steps just get your phone to a state that files can be modified. So, when you run procedure 3, these are the steps you're actually seeing, they're not really "unlock modifications" per say. (so yes, "go ahead and just go with it")

To clarify, I was considering the case of the bootloader already being unlocked. My interest is in streamlining the cid-modification needed after unlock is performed.
[Verizon HTC Droid Incredible 4G LTE] jose51197:
for that well need the cid file and even if recovery could access the partiton the imei would change to the one the cid on zip says
[Verizon HTC Droid Incredible 4G LTE] mdmower:
Right this is why I was asking whether these types of packages can be made to modify files rather than overwrite. My guess has been that they are strictly capable of deleting, writing, and overwriting, and not so much modifying, but I wanted to make sure.
[Verizon HTC Droid Incredible 4G LTE] Aldo101t:
ok, they say to remove the backup files before running the option to set CID back, where are these files and which ones, i have 2 files on my sdcard, one is the mod file aNd the other is the original cid, remove these???
[Verizon HTC Droid Incredible 4G LTE] mdmower:
Technically, this refers to the directory from which you ran the script, and if they aren't there you're set. Those files on your SD card actually are the same as the backup files mentioned and you can optionally copy them to your computer and save them as backups if you wish. The commands used in the script and in the manual instructions, dd and adb push, will automatically overwrite files on your sdcard, so it's not crucial to remove them. It is safe to remove them if you like though.
[Verizon HTC Droid Incredible 4G LTE] Aldo101t:
thanks that answered my question.i haven't had any of those problems, yet, and i'm still on the mod cid, i just kinda wonder why??
[Verizon HTC Droid Incredible 4G LTE] mdmower:
I haven't pinned down exactly what starts triggering the problem yet; it's kind of irritating. Plenty of suspicions about something buried in HTC Sense, but not sure why some are affected and others not.
[Verizon HTC Droid Incredible 4G LTE] jose51197:
Well since we already found a fix is harmless
[Verizon HTC Droid Incredible 4G LTE] jcpowell:
I ran for two days stock with no issues with the fake cid but as soon as I flashed viper it was over and I had to revert, wondering if I stayed stock if it would of ever happened. Also I didn't get crashes I got a VZW message when attempting to call out but right there's a fix so it's harmless so for anyone waiting cause there worried about this don't all is fine.

Sent from my all powerful Inc4G
[Verizon HTC Droid Incredible 4G LTE] DavDoc:
I have stayed with stock since unlocking and rooting and haven't had any problems, my CID until 2 days ago was 11111111. It seems to work just fine if you stay stock.
[Verizon HTC Droid Incredible 4G LTE] dodgerinNH:
SUCCESS!!

Re-ran the automated script last night and reverted my CID (procedure #3) - chose the option without Recovery, since I already had one), and it was absolutely seamless. It took around a minute, tops. Just wanted to let anyone know who was worried about running Viper that this will fix any problems. I want to thank everyone involved who took the time out to help a functioning illiterate noob, such as myself. You guys rock!!
[Verizon HTC Droid Incredible 4G LTE] Aldo101t:
error

i've tried to run this to revert cid and i get an error that /sdcard/mmcblk0p4/ does not exist

edit: nvermind i got it to go, forgot to select disk drive, A-OK now
[Verizon HTC Droid Incredible 4G LTE] CaptainRewind:
Hey everyone I just wanted to report that after reading through here about issues with leaving the CID as 11111111, I went ahead and repushed my original block back to my device without losing unlock or root. I did it manually (adb push, then used dd), so I can't speak to the script behavior (though others here are reporting success), but I would recommend everyone do it once unlocked and rooted to avoid any issues.
[Verizon HTC Droid Incredible 4G LTE] thegoofyweirdo:
SUCCESS!!! Had to roll back SuperCID after contacts wouldn't sync.

ONE REQUEST: The haptic feedback seems to be really strong on this phone, already went to the store and checked 2 others. Anyone else having a similar issue? Anyway to decrease it a little in the rom??? THANKS!!! :)
[Verizon HTC Droid Incredible 4G LTE] jose51197:
Ask on the thread of the rom you are using, if stock use qa forum
[Verizon HTC Droid Incredible 4G LTE] dcooterfrog:
i ran into thi problem when I tried to revert my cid

Your phone's CID is being reverted to its original state. Once

complete, your phone will reboot to the bootloader.

/sdcard/mmcblk0p4: cannot open for write: Read-only file system

remote object '/sdcard/mmcblk0p4' does not exist

cannot stat 'mmcblk0p4': No such file or directory

/sdcard/mmcblk0p4MOD: cannot open for read: No such file or directory

rm failed for /sdcard/mmcblk0p4MOD, No such file or directory

Could Not Find C:\Users\ZooKeeper\Desktop\ANDROID\incredible\fireballunlock3.5\mmcblk0p4

which menas this line failed

adb shell "dd if=/dev/block/mmcblk0p4 of=/sdcard/mmcblk0p4"

any siggestions other than a factory reset. if I have a fresh nandroid will that affect the unlock or the cid if I restore it after I recid
[Verizon HTC Droid Incredible 4G LTE] jose51197:
Nandroid wont revert cid, btw looks like you are not rooted
[Verizon HTC Droid Incredible 4G LTE] bigdaddyblues:
v3.5 download link

Where is the link for v3.5
[Verizon HTC Droid Incredible 4G LTE] jose51197:
3,5 is attached named recovery version
[Verizon HTC Droid Incredible 4G LTE] bigdaddyblues:
Sorry jose51197,

what page is the attachment on?

---------- Post added at 05:30 PM ---------- Previous post was at 05:28 PM ----------

I found it...
[Verizon HTC Droid Incredible 4G LTE] thegoofyweirdo:
Sorry about that, got too excited and combined my comment!! :silly:
[Verizon HTC Droid Incredible 4G LTE] CaptainRewind:
You should have "charge only" selected when you connect the phone to your computer, and make sure that you are at a root shell (the prompt will be # not $). If your adb shell prompt is $, type "su" and Enter to get root... Assuming you've already rooted.
[Verizon HTC Droid Incredible 4G LTE] dcooterfrog:
''hmm I am rooted and using the script which looks like it is past the temp root phase.

apps can get root but when I i type adb shell i get $

and then when I type su i do NOT get #
[Verizon HTC Droid Incredible 4G LTE] jose51197:
Can you see if you have mmcblk0p4 on sdcard?
[Verizon HTC Droid Incredible 4G LTE] Aldo101t:
i had the same problem, then i selected disk drive and all went well
[Verizon HTC Droid Incredible 4G LTE] mdmower:
Based on this, I think you should try and re-install superuser per the directions in Post 2. (This assumes you have already successfully unlocked your phone)
[Verizon HTC Droid Incredible 4G LTE] mdmower:
I have another script update. The temproot method is no longer used to change the cid after you're unlocked. Those procedures now assume you have superuser installed (root) and are much faster and more reliable.

My package still does not include a recovery image to reduce the size of the download, but I have included a menu option to install recovery - you simply need to download either CWM or TWRP and put recovery.img in the same directory as the script.

Special Note: If you run the script multiple times, be sure to remove mmcblk0p4 and mmcblk0p4.backup from the directory each time. I purposely leave these in case you want to make a backup. mmcblk0p4 corresponds to SuperCID and mmcblk0p4.backup corresponds to VZW__001.

EDIT: Scripts are now located in this thread.
[Verizon HTC Droid Incredible 4G LTE] mdmower:
Please stop recommending this. It's strange that it worked for you and in general "Charge Only" is the type of connection everyone should be using.

Edit: It really doesn't make sense how this helps rather than hinders, but one other reported success with this so I'm temporarily rescinding the above statement.
[Verizon HTC Droid Incredible 4G LTE] jose51197:
Posting right now thanks

edit: wrong quote
[Verizon HTC Droid Incredible 4G LTE] Aldo101t:
okey dokey, just stated what happened, sorry if it is incorrect.