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

Root [Q] [SOLVED] Problem with restoring with RUU. Error 131 and 151

Dear All

My first post here is sadly a problem.
But I'm a bit desperate.

I need to flash an original RUU on to my device because its going for repairs in 2 days.

I have extracted original-signed-stock boot.img and recovery.img from RUU and flashed

Device model: Z520e/Z520m -> One S S4 (1,5 GHz)

Bootloader is currently: RELOCKED _ TAMPERED

So far i have tried: Mostly I get error 131 and 151

The getvar all output:
[HIGH] version: 0.5
version-bootloader: 2.15.0000
version-baseband: 0.16.31501S.17_2
version-cpld: None
version-microp: None
version-misc: PVT SHIP S-ON
serialno: HT26JW****
imei: 3599****
product: vle
platform: HBOOT-8960
modelid: PJ4010000
cidnum: HTC__102
battery-status: good
battery-voltage: 4087mV
partition-layout: Generic
security: on
build-mode: SHIP
boot-mode: FASTBOOT
commitno-bootloader: dirty-64bedd38
hbootpreupdate: 11
gencheckpt: 0[/HIGH]
Hi axxess, and welcome to AF.

I don't know this handset, so this is generic HTC advice.

Unless you've modified the cid you need to use an RUU for the same network or region/branding the phone originally had. Otherwise it will refuse to run. It also won't let you downgrade, so RUUs with say older hboot won't run. Probably your errors are due to one or other of these - I don't recall the codes offhand.

In any case, I don't think the RUU will clear the unlock flag, though I'd be happy to be corrected. I think you probably need S-Off to do that.
Upvote 0
What network are you currently using? Also since HTC now allows you to unlock the bootloader from htcdev, most people that I've come across haven't had an issue getting service directly from HTC unless it's obvious that you damaged the device by improperly flashing, if it's an obvious hardware failure you shouldn't have any issues because they flash the phone stock to put it in a known state for troubleshooting purposes. What exactly is your issue?
P.S. You might need to make a goldcard to get this done, I was forced to do it with my Wildfire a couple of years ago, you can find information on that here: http://forum.xda-developers.com/showthread.php?t=1549636
Good luck.
  • Like
Reactions: axxess
Upvote 0
Hmm, I've searched shipped-ROMs and don't see any plausible RUUs you've not tried. 131 seems to be a CID error (wrong RUU for the phone). 151 is odd - that's an image update error, but it seems like that's the one you get if you run the RUU without relocking first, and as you are relocked I don't know why you would see that. If you got that from some RUU before relocking, try that RUU again I guess.

As for goldcards, I think the equivalent here involves S-Off and changing the cid. But as I say, I don't know this handset, so don't feel qualified to advise on stuff like that. You would think this would be possible without.
  • Like
Reactions: axxess
Upvote 0
Sorry was going by my own past experience, should have noticed all of the ville references in the RUU's, you're correct that a goldcard isn't an option for you, did you purchase your device with the bootloader already unlocked? I'm confused,, both the original ville and the ville c2 take micro sims but you stated that your device is sim free, could you please post the model number under the battery and also everything that the bootloader screen says, I've had absolutely no luck with an ruu that matches the information provided.
Upvote 0
Sim-free = no simlock
I have unlocked bootloader myself.. had CM10 on it
HTCDEV method.

Yes this model has micro-sim.. As far as I know the MicroSD card goes intro the microSD cards lot and not in the micro-sim slot.Correct me if I'm wrong! :?

All the output above (fastboot getvar all) is same if i go into hboot.

The model is Z520e/Z520m -> One S S4 (1,5 GHz)
Upvote 0


We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.