[HTC Desire 510] Someone7070:
Hello. I am writing this message to this forum after hours of searching. During all that searching, the most promising leads for a solution to my problem kept bringing me back to this forum, so I figured I'd make a post here and hope for the best.

I recently relocated to China. I brought my phone with me, which was a prepay HTC Desire 510 with Sprint. Awhile ago, I rooted the phone by putting TWRP on it. I basically only did it in an attempt to remove some of the bloatware on the phone, because otherwise, I see very little point in rooting the phone. Much to my displeasure, rooting the phone seemed to have very little effect on what I could do about the bloatware due to write protection, but I was able to manage to (barely) deal with the stupidity that is this phone's storage space. I mention this detail in case anyone thinks it is related to my problem.

So obviously the phone doesn't work in China, so I decide to buy an unlock code off the internet for $8.99. I get the code in a few hours, and the instructions tell me to put in a different SIM card, and I will be prompted with an unlock request from the phone after a reboot. However, that doesn't happen. All I got is a message saying "Invalid Card Please contact customer care" and "Invalid SIM Card 4G services are unavailable as the sim/uicc is invalid".

In the instructions I was provided, they did say make sure your phone has been factory reset, but I was unable to do this due to the TWRP rooting. What I instead did was factory reset it from inside the bootloader menu. This did perform a factory reset of sorts, but I still never got any SIM unlock prompt.

I am basically at the end of my rope. I don't want to have to buy a phone here in China, but if I can't get this unlocked, I will be forced to. If anyone can provide me with a stock ROM image for the HTC Desire 510 Sprint, or tell me some method to input an unlock code I am unaware of, or at least tell me if I am s*** out of luck because of x, y z, then I would greatly appreciate it. I think I have read and clicked on every single link on the first 3 pages of yahoo, searching multiple things like "htc no unlock prompt" and "htc desire stock ROM" with no real solutions to this problem.

EDIT: This was the message the people who sold me the unlock code sent regarding factory resets:

--------

Dear customer,

we got the code for your phone IMEI directly from Sprint server and this code is

in 100% working condition, it`s official code generated by the official carrier employees.

Seems like the problem on your side. Here is some useful recommendations.

Very often unlock code is not working because our customers flashing on

their phones custom ROM`s which includes custom basebands. These

changes in the structure of the radio module (baseband) are not acceptable

to unlock and this may be the reason why our code is not working. So

please make sure that your phone using original stock ROM and original

baseband firmware and your phone never was modified before.

----------

So it looks like I need help finding a stock ROM. I tried downloading what I found on this site:

****htc.com/us/support/rom-downloads.html

But it doesn't work in Linux. Wine gets to a certain point, and the program just dies. If anyone has a stock ROM for the HTC Desire 510 (Sprint) out there, I would greatly appreciate it.