[Q] mmap() failed when downgrading - Desire HD Q&A, Help & Troubleshooting

hey,
I am trying to downgrade from 1.82.x to 1.32.X version, so I can root my device and install cyanogenmod 7 but I am getting this error,
adb shell /data/local/tmp/psneuter
mmap() failed. Operation not permitted.
I live in India, so my device is not carrier branded.
Also I tried this earlier but was getting CID failed during bootloader so I did a goldcard, just to be sure and now getting the above mentioned problem.
can anyone plz help???

Try formatting the card again. I ran into the same problem. I don't know what causes it, but that fixed it for me.

And make sure that you did the chmod properly.
You do not need to run those commands twice, if you have already done them.

Related

None of the techniques helped rooting my Hero

Hi all,
I've been around xda since I got my htc 4350, everything was jolly well. And now I'm struggling with rooting my European Hero HTC 2.73.405.66.
I tried all the ways and workarounds I could find on the internet and nothing seems to work.
SDK fastboot gets denied, flashing a recovery image using apps does not work, instant rood does not work, nothing at all, did the goldcard twice, terminal emulator. I cannot even downgrade, although in my frustration at 6 in the morning I managed to flash a generic WWE rom I found on Modaco. It was the only thing that did anything HTC Generic 2.73.405.66- it seems to be exactly the same- in the end the result is the same as if I had wiped it.
I ended up at the point where I started.
Either I have me some nasty version of protected rom, or I'm missing something.
Any help would be greatly appreciated.
Cheers
what phone do you have orange, tmobile etc and where are you based
Sent from my Hero using Tapatalk
The phone is generic, unbranded, purchased from Meteor in Ireland. It came Sim unlocked.
i had to make my goldcard way mroe times than 2 persistance is the key!
People often make the mistake of NOT running the hex editor as ADMINISTRATOR <==not shouting, just emphasising.
I did run it as an administrator, twice, triple checked everything, still no go.
And now, on top of everything if I follow the instructions on:
showpost.php?p=4257045&postcount=38
I get the following:
C:\A\sdk\tools>adb shell mount /system
adb server is out of date. killing...
* daemon started successfully *
Usage: mount [-r] [-w] [-o options] [-t type] device directory
C:\A\sdk\tools>adb push su /system/bin/
failed to copy 'su' to '/system/bin//su': Read-only file system
I often do not understand why people with the latest official ROM are using the goldcard method. Just use the flashrec apk as all pointed out at http://theunlockr.com/2009/08/27/how-to-root-your-htc-hero-in-one-click/
Cheers...
I have similar problems try in to root my friend Hero from T-mobile uk he get this device about month ago.
Waiting for reply
r.boeters said:
I often do not understand why people with the latest official ROM are using the goldcard method. Just use the flashrec apk as all pointed out at http://theunlockr.com/2009/08/27/how-to-root-your-htc-hero-in-one-click/
Cheers...
Click to expand...
Click to collapse
Does not work for T-mobile
r.boeters said:
I often do not understand why people with the latest official ROM are using the goldcard method. Just use the flashrec apk as all pointed out at Unlockr
Cheers...
Click to expand...
Click to collapse
Thanks, but all versions of it did the same- gave me an error when attempting to back up and the install key was greyed out
Yes, I entered the name of the image correctly.
Did you format your sd card as prescribed? Lot of people forget that. Then it should definitely work.
Sarcastic said:
Thanks, but all versions of it did the same- gave me an error when attempting to back up and the install key was greyed out
Yes, I entered the name of the image correctly.
Click to expand...
Click to collapse
*sigh* Enable usb-debugging. Fixed the whole greyed-out button problem for me. Be sure to unplug your usb cable during this progress.
Ok, I finally got it, this Rom that I managed to flash (the only one of all that were supposed to downgrade my phone) finally accepted the flashrec thing
Thank you all for your help
Sorry for the fuss
Sarcastic said:
C:\A\sdk\tools>adb shell mount /system
adb server is out of date. killing...
* daemon started successfully *
Usage: mount [-r] [-w] [-o options] [-t type] device directory
C:\A\sdk\tools>adb push su /system/bin/
failed to copy 'su' to '/system/bin//su': Read-only file system
Click to expand...
Click to collapse
its mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
I had the same problem until I downgraded the rom. My Hero is from 3UK. Nothing seemed to work, after downgrading I could root my phone, have already tried a few Roms. I will probably go back to the 3UK stock Rom and wait for the official upgrade at the end of April. I was just curious to see how rooting is done and to get a glimpse of Android 2.1 with Live Wallpapers and Google Maps with Navigation. They are all nice features, but my phone is much slower, no matter what Rom I use. I tried wiping the phone, but it is still slow, I wasn't able to find one to match the latest Rom from 3UK.

[Q] Downgrade Problems

Hi guys. I have a brand new Desire HD, T-mobile (uk) branded.
Running Android 2.2.1
Build number 1.84.110.3 CL334589 Release-Keys
I am trying to downgrade to 1.32 so that i can root. I have made a goldcard, using various methods (HxD, goldcard helper, and goldcard tool)...Following the guides, everything seems to go to plan, no error messages or anything.
I then go through the process of....
adb push psneuter /data/local/tmp
adb push misc_version /data/local/tmp
adb shell chmod 777 /data/local/tmp/psneuter
adb shell chmod 777 /data/local/tmp/misc_version
adb shell /data/local/tmp/psneuter
adb shell
cd /data/local/tmp
./misc_version -s 1.31.405.6
Again no problems there.....When phone is rebooted into bootloader, it loads the PD98IMG.zip file, and after checking it, I always get the error "update failed, incorrect cid" I don't know where I'm going wrong, the goldcard tools are reversing the CIDs for me.....Any tips ?
Thanks
mrmcox said:
Hi guys. I have a brand new Desire HD, T-mobile (uk) branded.
Running Android 2.2.1
Build number 1.84.110.3 CL334589 Release-Keys
I am trying to downgrade to 1.32 so that i can root. I have made a goldcard, using various methods (HxD, goldcard helper, and goldcard tool)...Following the guides, everything seems to go to plan, no error messages or anything.
I then go through the process of....
adb push psneuter /data/local/tmp
adb push misc_version /data/local/tmp
adb shell chmod 777 /data/local/tmp/psneuter
adb shell chmod 777 /data/local/tmp/misc_version
adb shell /data/local/tmp/psneuter
adb shell
cd /data/local/tmp
./misc_version -s 1.31.405.6
Again no problems there.....When phone is rebooted into bootloader, it loads the PD98IMG.zip file, and after checking it, I always get the error "update failed, incorrect cid" I don't know where I'm going wrong, the goldcard tools are reversing the CIDs for me.....Any tips ?
Thanks
Click to expand...
Click to collapse
it can be by several thinks...
i would try to format the sd-card and re-do the goldcard again (goldcard tool works well) be sure about you have the correct CID in the sd card
SERGI.3210 said:
it can be by several thinks...
i would try to format the sd-card and re-do the goldcard again (goldcard tool works well) be sure about you have the correct CID in the sd card
Click to expand...
Click to collapse
I have tried the goldcard tool a few times now, with various micro SD cards (8GB samsung that was bundled with phone. 2gb sandisk. and 2gb kingston)
when I run it, selecting "mmc0" I get CID value as....
45010053454D3034479022CD0AA93E10
and it reverses it to...
003EA90ACD22904734304D4553000145 ...
Is that correct ? Then i fill in the details on PSAS and get my image emailed and load/patch the card with goldcard tool. If I try and get cid using "mmc1" I get messgae...
* daemon started successfully *
/sys/class/mmc_host/mmc1/mmc1:*/cid: No such file or directory
------------------------
Could not locate CID in output
And with gold card created, I o through the motions again, and keep getting Update failed, incorrect CID.
u can obtain temporary root???
i checked the commands of the first post and are ok...
really all the issues like this was solved formatting the sd again.. FAT for -2gb and fat 32 for 8gb sd card...
your troubble is weird...
mrmcox said:
when I run it, selecting "mmc0" I get CID value as....
Click to expand...
Click to collapse
Hmm, it might be useful to read the Downgrade guide again, mate Especially the bolded part after goldcard link..
jkoljo said:
Hmm, it might be useful to read the Downgrade guide again, mate Especially the bolded part after goldcard link..
Click to expand...
Click to collapse
Thanks for the reply. I tried to make the gold card again, using mmc2 with the gold card helper tool on the handset.
I get the reversed CID as
00b2003be96a721030303030304d531b Tired making gold card with HxD and with the gold card tool, but each time when I boot into bootloader on the phone, it loads the PD98IMG file and after checking it I get
CID incorrect!
Update fail
Press <power> to reboot
Any idea where I can be going wrong ?
Are you selecting physical disk and making sure write access is ticked in the hex editor?
Sent from my Motorola Startac running Atari 2600 software!
hey, need some help here.. i'm on stock froyo. the software version is 1.84.707.2. i downloaded the 2.36 and 1.32 version . but couldn't seem to flash both RUU at all. its an exe file. my phone entered into BOOTloader and while sending signature, the screen on pc says CID error 131. ask me to get the correct utility. my desire hd is unbranded and unrooted. its still new.. it is still S-ON. I had never rooted it or done anything to it . just wanted to make sure i have a functional RUU in backup in case i want to send for warranty.what should i do? i'm from malaysia btw
Any problems regarding CID Error mean you need a goldcard. If you've made one and you still get this error, your card isn't gold. Try using a different card.
thanks guys for all the help and replies.
I finally got my goldcard to work, ended up buying a new card and using that, and it worked first time.
I now have downgraded to 1.32, have perm root, radio s-off, and eng s-off. I've just upgraded radio to latest version, and I'm about to upgrade to android revolution HD 5.1.7.
Thanks again for all the help
andyharney said:
Any problems regarding CID Error mean you need a goldcard. If you've made one and you still get this error, your card isn't gold. Try using a different card.
Click to expand...
Click to collapse
Thanks. Even if my phone is unbranded and new, I still need a goldcard??
Sent from my HTC Desire using XDA App
dunstan92 said:
Thanks. Even if my phone is unbranded and new, I still need a goldcard??
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
if your phone is unbranded you don't need a gold card
I will repeat what I said just incase there is any confusion.
Any CID related errors while trying to downgrade mean you need a goldcard. No if's no but's, a goldcard will be required. Remember there are unbranded builds that will not have the WWE CID.
One example is builds found in the East. WWE = x.xx.405.x Indian = x.xx.720.x
They are both unbranded, however a goldcard is required to flash from 720 to 405. I hope I've cleared things up.
andyharney said:
I will repeat what I said just incase there is any confusion.
Any CID related errors while trying to downgrade mean you need a goldcard. No if's no but's, a goldcard will be required. Remember there are unbranded builds that will not have the WWE CID.
One example is builds found in the East. WWE = x.xx.405.x Indian = x.xx.720.x
They are both unbranded, however a goldcard is required to flash from 720 to 405. I hope I've cleared things up.
Click to expand...
Click to collapse
Thank you
Sent from my HTC Desire using XDA App
Yes, you have cleared things up. Thank you very much. So if I create a goldcard and flash the ruu 1.32.405.x ,will it cause any problem if I send it for warranty service? Because I can't find the ruu with 1.84.707.2 for my phone. Is there any ruu for Malaysia or Asia yet?
Sent from my HTC Desire using XDA App
Sent from my HTC Desire using XDA App
I'm pretty sure the 405 version WWE (World Wide English) will be Ok to return as it is an official HTC build.
Alright. Thanks. So do I still need to downgrade my stock rom even with a goldcard? Am planning to flash the 2.36.405.x ruu over my current rom.
Sent from my HTC Desire using XDA App
i need some help here, im getting to section B step 23 of the guide to rooting and flashing and then something not so good is happening with my phone.
In getting "process stopped unexpectedly" messages from (android.process.acore)
they are constantly popping up.
i've previously had the problem of incorrect CID as well, but it solve after i format the MMC to FAT 32 and redo the goldcard steps

[Q] Can't root v10f

Hi, I just flash my phone with FW v10f from v10a. It work fine with some issue..no wifi and screen rotation. I try rooting the device to install CWM to flash CM9 or ICS. I am not able to root with any method. Superoneclickv2.3.2, Superoneclickv2.3.3, DooMLoRD_v4_, Unlockroot, SU640_ROOT, Gingerbreak, Z4root, manual method with adb shell... nothing work. I tried with formatted sd card and without sd. It is on debugging mod. I can communicate with the phone via adb but it say "permission denied" on su command. All root's program recognize my phone but it always end with "no luck..failed"
There is another kdz firmware that can be rooted?
Im on Android 2.3.5
Kernel 2.6.35.11+
Build GRj90
Software LGSU640-00-V10f
I think the most important part would be letting us know where it fails with the manual root for instance. I rooted that firmware yesterday with Doom's v4 after failed attempts with superoneclick, rootunlocker, and the manual method. I would recommend restarting your phone and pc if you havent tried to already. If all else fails, try a different computer or maybe just a different usb port.
I get "permission denied" on all command i put in adb shell. Itried everything, with another pc in all usb port and no luck..
Bad luck, root did not success. Its what i get on all root attempt.
how much times have you tried in a succession ?
i had unbricked my phone after flashing ics leak and to root v10f, it took around 11 attempts !
i tried superoneclick 8 times and then i goot root via unlockroot in 2-3 attempts !
so its completely uncertain when you would get rooted !
you just need to try till you get rooted !
also i have attached a zip file, extract it and try to root with that !
good luck..
I tried your files but it doesnt work. It keep saying me "permission denied" and "read only file system"
It is the 13 attempt now with TPSparkyRoot with no sign of change.
I think i 've just get it. I have superuser in app list. I cant understand why it can take x attemps to get root but i cant complaint....its works now!
It is not root at all. su=access denied. Im lost
when you connect you device to the pc, does it show in "adb devices" ?
i mean pls verify whether all drivers are installed properly !
Yes, it show "Androidnet sooner single adb interface". Now when i try to root i get "No such file or directory" on almost each line.
In manual root i get this:
adb shell rm /data/local/tmp/boomsh
rm failed for /data/local/tmp/boomsh, no such file or directory
adb shell ./data/local/zergRush
cannot copy boomsh : permission denied
Rush did it ! It's a GG, man !!!!!!
Now it's real!!!
Settings\Privacy\Factory data reset
Followed by this guide: http://forum.xda-developers.com/showthread.php?t=1407076
4.0.4
Thanks for the extra root option.
I had my LG Optimus SU640 (same as Nitro HD) rooted and running 2.3.5, and just updated firmware to Android v4.0.4 today on the LG website. I'm in Korea.
I have tried everything under the sun to root my updated OS but i'm not getting anywhere.
Is it not possible to root this phone with the updated Android 4.0.4 OS at the moment?

[Q] Root problem "Lack of heap" - SOLVED

Hi,
I had an issue with my phone and the motherboard had to be replaced with my permaroot fading. So I decided to root it again, as I have done that earlier, however, I got stuck as I (obviously) made a mistake on the way.
I tried to follow multiple guides, so there might be a combination of all (links below).
Current state:
Phone is Desire Z, however, it has a ROM for T-Mobile G2 (I have probably followed bad guide or downloaded bad file - that seems to be the clutch problem).
According to bootloader:
VISION PVT SHIP S-ON
HBOOT - 0.82.0000
MICROP - 0425
RADIO - 26.02.01.15_M2
eMMC - boot
Now my target is to flash it with Audacity b5 as I had that before. Not sure however what I need to do now.. When bootloading (I guess I have a correct stock ROM this time) it says "Lack of heap!", which (as I found out) probably is the result of having G2 ROM on my Desire Z.
My question is therefore how to get a stock DZ ROM instead of this G2 thing back on my phone?
Tried to follow these guides (and maybe found some more information here and there, but those are the main)
http://forum.xda-developers.com/showthread.php?t=1178912 - cant get past temp root step 7 - none of those intervals doesnt work
http://forum.xda-developers.com/wik...sion#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD - Command in part 2 adb shell chmod 755 /data/local/tmp/* throws an error "Unable to chmod /data/local/tmp/sh: Operation not permitted"
http://forum.xda-developers.com/showthread.php?t=905261 with these exceptions http://forum.xda-developers.com/showpost.php?p=15825944&postcount=27
http://forum.xda-developers.com/showthread.php?t=1453066 - fr3evo problem above
Thanks, any help appreciated - I know this problem is caused by my own failure, but I hope you can help a newbie out.
EDIT: found out I am able to get a temporary root with this:
adb push psneuter /data/local/tmp
adb push misc_version /data/local/tmp
adb shell
chmod 777 /data/local/tmp/psneuter
chmod 777 /data/local/tmp/misc_version
/data/local/tmp/psneuter
but I am unable to flash a stock rom as the bootloader still says "Lack of heap!"
2nd EDIT: I finally rooted and installed the requested ROM. All I needed was few more hours and a little use of my obviously tiny brain.
For possible future use, here is how I managed to solve the problem.
I followed this guide http://wiki.cyanogenmod.com/wiki/HTC_Desire_Z:_Firmware_Downgrade_(Froyo) and after step 6 combined with this guide http://wiki.cyanogenmod.com/wiki/TMobile_G2:_Rooting allowing me to first get there relevant hboot version for Desire Z (should be 84.2000). Then I permrooted and installed stock Desire Z ROM. It somehow did not run, but allowed me to enter Clockwork mod recovery through bootloader / fastboot / factory reset and installing my current custom ROM directly through here.
Sorry for spamming, I hope this helps someone else save some time solving the issue.
Thank you so much
I can't put into words how useful this was. I was in the exact same position, and I never thought that my hboot could be the issue.

Can't root, can't even open or delete Supersu

I own M8 Telstra AU version.
I tried to get S-off but it didn't seem to work. So I looked for some information and found a bypass PIE and I flashed it.
Since then, whenever I tried to get S-off by firewater the terminal in my MAC shows
JungSoos-MacBook-Air:download jungsoo$ ./adb shell
/system/bin/sh: j_init: setpgid failed: Invalid argument
/system/bin/sh: warning: won't have full job control
And also I can't open SuperSu app anymore and remove it neither.
Whenever I tried to install a custom rom, TWRP just restarts... What should I do?
Can't even find RUU for Telstra Lollipop 5.0.1 version.... I'm in deep **** now:crying:
Bypass PIE ? Not sure what you try to so exactly but you are way off and missing some critical info. If you browsed here and on "therootninja" website you would have seen that firewater will not work and never will again !
SUNSHINE is the only option to s-off the phone and it cost ya 25$.
Don't start the discussion about how much or not that is. It is what it is and won't change, discussions about that have been on endlessly already.

Categories

Resources