yashsingh1/xdaforums huggingface dataset:
[HTC Desire 500] dummie999:
[How to]Root your HTC Desire 500

Once you have your recovery installed, you can actually root your phone.

Reboot your phone, then download SuperSU, and put it on your sdcard. Then boot into your new recovery another time. Select either "Install" or "Install zip", then install zip from sdcard, and select the SuperSU.zip you downloaded earlier.

Congrats! You now have (partial) root!

Yes, you are not done yet. As an extra layer of security, htc prevents you from editing the system partition, with something called system write protection. To get it away, you need to install a custom kernel.

First, check your software version. You can do this by going to "Settings"->"About Phone"->"Software version".

Mine, for example, is: 1.32.401.3

Now, if your software version starts with 1.20 or something lower, then you must install the Kangbang kernel, else, install the Ultimate kernel.

To install the Kangbang kernel, go here. But the installation instructions are slightly different, basically the only thing you have to do is mount /system, and then flash the zip. Don't forget to mount system!

For installation instruction on flashing the Ultimate Kernel, go here.

Remember, you already flashed a superuser app.

Troubleshoot:

Problem: After installing the kernel I cannot make phone calls

Solution: Install the right kernel, according to your software version

Once you have one of the kernels installed, then your phone is fully rooted!
[HTC Desire 500] dummie999:
wip install rom
[HTC Desire 500] dummie999:
[How to]Install an ota upgrade

After unlocking your bootloader, the installation of ota (over the air) upgrades fails, because it requires a locked bootloader.

Steps to install the upgrade anyway:

Part 1:

First, you need to download the ota. Next, pull the zip to your computer, it should be located in your downloads folder.

Next, open the zip and remove the file firmware.zip, you will need it later. Next, open in the zip the file META-INF/com/google/android/updater-script. There, you need to remove this part:

ifelse( is_ship_bootloader(getprop("ro.bootloader")) == "t" ,
assert(check_cid(getprop("ro.cid"), "00000000" , "11111111" ,
"22222222" , "33333333" , "44444444" , "55555555" , "66666666" ,
"77777777" , "88888888" , "99999999" , "HTC__001" , "HTC__E11" ,
"HTC__102" , "HTC__032" , "HTC__Y13" , "HTC__M27" , "HTC__A48" ,
"HTC__J15" , "HTC__203" , "HTC__304" , "HTC__N34" , "HTC__405") == "t");
);
ifelse( is_ship_bootloader(getprop("ro.bootloader")) == "t" ,
assert(check_mid("full", "0P3Z11200") == "t");,
assert(check_mid("simple", "0P3Z11200") == "t");
);
assert(getprop("ro.product.device") == "z4u" ||
getprop("ro.build.product") == "z4u");

What you find might slightly different. For example, z4u might be z4dug, if you are on dual sim. But it usually starts at the second line of the file, so it should be to hard to find.

Then, restore the first nandroid back-up you made, because the ota checks if the files on your system partition are modified.

Next, you push the zip back to the sdcard again, and then flash it via your custom recovery.

Part 2:

While you are still in your recovery, make a backup of only your data partition! Don't make a backup of your complete system!

Now, to flash the firmware.zip, you need to lock your bootloader. Because you will have to re-unlock your bootloader after you are done, you will lose all your data again. If you are S-off, then you don't have to relock your bootloader, you can skip this.

How to re-lock your bootloader:

1. In recovery, select: Reboot Bootloader

2. Connect your phone to fastboot

3. Type: fastboot oem lock

That was easy! Your phone, however, might not boot. Don't worry about that, we will fix that later.

Now, type:

fastboot oem rebootRUU
fastboot flash zip firmware.zip

This can take a short while.

Next:

fastboot reboot

You now have flashed the firmware.zip

Congrats, you have the ota installed.

It might be a good idea to keep your modified ota around, you might need it later on.

Now, you can unlock your bootloader again (htc dev, second post), check your hboot version again, install a custom recovery again (make a new backup. Don't throw away your old backup), root your phone again etc.

You can now install The Ultimate Kernel!

Credits go to [MENTION=3567206]ricardo-nl[/MENTION], this post http://xdaforums.com/showthread.php?t=2597314&page=45

To do: Make a cool bash/awk script that removes all the assert(), so the updating won't fail if you have deleted some system files.
[HTC Desire 500] dummie999:
[How to]Simunlock

To sim unlock your device, you need to have CWM on your device and you need to have adb installed.

It doesn't work with twrp, because adb doesn't work.

Boot your device into cwm. Connect your device to your computer (with the cable:p), and connect with:

adb shell

then, type:

strings -n 8 /dev/block/mmcblk0p7

The output will be a lot of rubbish, but you need to

And In the case of ATRAC3, it was K65151479, so his unlock code was 65151479. I haven't tested this myself, because my device was never sim locked, but it should work.

Full credits for this go to @ATRAC3, this post.
[HTC Desire 500] dummie999:
[How to]Install busybox and Xposed

Requires: full root (custom kernel!)

Install busybox:

Easy: Install this app. Then open it, and click install.

Told you it was easy!

Xposed framework:

Well, this is basically outlined here: http://xdaforums.com/xposed/xposed-installer-versions-changelog-t2714053. I can't bring it easier. But remember it requires full root!
[HTC Desire 500] dummie999:
[How to]Get a logcat and a dmesg

Well, everything is done and working. You have rooted your phone, installed a custom kernel and a custom rom, and everything is working fine.

But, then, at once, you get: "unfortunately camera has stopped" and your camera app refuses to start. And now, when you tell the dev that the camera is not working, he replies:

So, I'll explain what they both are:

dmesg - This is basically a print of /devlog/kernel_log. All the messages from the kernel get stored there. If you think a problem is kernel related, you should at least include this.

logcat - This is a print of /devlog/system_log. All other messages get stored there. If you think something is related to a rom, you should at least include it.

It requires you to have adb installed.

How to get one:

1. Enable adb on your phone. Go to Settings->Developer Options->enable it->enable USB-debugging

2. Next, connect your phone with a cable, and type (on the computer cmdline): adb devices

You should see something like: SH3BRWE00258	device. This means your phone is succesfully connected.

If you want a logcat, now type: adb logcat > logcat

This stores all the logs in logcat. You have to let this run for a few seconds, and then hit ctrl+c. Then, there should be a file called logcat, containing, well, your logcat.

If you want a dmesg, type: adb shell

Then, you need to check, whether the text you see ends with a #. If it doesn't, type: su, and then unlock your phone. You might see a warning, asking for superuser access, grant it.

If you are sure it ends with #, then type: dmesg > storage/sdcard0/dmesg

The dmesg is then stored on your sdcard (called dmesg), pull it to your computer and post it on the forums.
[HTC Desire 500] dummie999:
Tips for further reading

Some places where you might want to look for more info:

1. http://xda-university.com/ is a good start. Read the "As a user", and perhaps the "As a developer" as well.

2. http://xdaforums.com/showthread.php?t=1877040 a good guide on github

3. http://xdaforums.com/showthread.php?t=1680928 and http://www.htcdev.com/bootloader/about_unlock_process Some info about S-off and why you probably don't need it.

A word about posting a proper question:

be short, but post everything, for example:

bad:

ok:

better:

This way I don't have to ask "what is your hboot version" etc.
[HTC Desire 500] SpliFFdu95240:
Thank you for this topic .

It s time for me to try the custom rom and kernel .

Just for that : "Next install fastboot. I'm not gonna hold your hand here, there are 400+ tutorials on installing fastboot, for every OS you can think of. Search for one and install it."

It s in the video of Fliwatt ( 3,40 ). Everything is explain . With your post and the video , everybody can do that . (So don t need to install sdk tool ? It s just for the adb files , right ? )

Thank you

And, Htc sync is htc sync manager ? ( the link is broken on htc : www.htc.com/www/help/ )
[HTC Desire 500] dummie999:
Yes, htc sync is htc sync manager

Sorry for my late reply

Yes, with fliwatts video everyone can do it!
[HTC Desire 500] hamedkh:
?

how can install an update after phone is unlocked? u said its hard not imossible,right?

---------- Post added at 09:39 PM ---------- Previous post was at 09:13 PM ----------

actually i just unlocked my phone and now i want update software from 1.20 to 1.32. is there any hope? what can i do?
[HTC Desire 500] dummie999:
It is not impossible. The 6th post on the first page is a tutorial about installing the ota. Follow that tutorial, and you should be fine.
[HTC Desire 500] hamedkh:
and how can i download ota? or when phone download ota update,before instal it,where does save the file? can i find the ota update that downloaded in my phone?
[HTC Desire 500] dummie999:
Go to Settings->Info->Software Updates, then a screen should pop up, about 1.32/1.20, then you can download it. If a screen does not popup, then you cannot install any update, and I don't recommend trying to install one
[HTC Desire 500] hamedkh:
i mean where does the file save? so as u said i can find and pull it in pc and edit it
[HTC Desire 500] dummie999:
Depends, whether your downloads are saved on the sdcard or on the phones internal storage.

Try /storage/sdcard0/Downloads

/storage/emmc/Downloads

Sth like that
[HTC Desire 500] blackviory:
great guide

thank you!

i have a problem...

well

when i go in recovery - install zip from sdcard i have only sd card not fount

i try to mount by menu but nothing to do.

sdcard works well in android

any idea?

thanks

Stefano

edit: i solve my problem. i had 2 partitions on sdcard and fat32 one was 2nd. i moved fat32 partition forward and now it's all ok
[HTC Desire 500] Fliwatt:
You do not need full root to install the Xposed Framework anymore, they now provide a flashable zip for the recovery.
[HTC Desire 500] SpliFFdu95240:
How update ClockWorkMod ? I can t partition sdcard

I m on Hboot 1.02
[HTC Desire 500] isark:
Need help

Hello guys i am stuck on the Entering Recovery... screen and just won't go into recovery mode. Vibrated a few times and stuck !! i have tried with bouth recovery's but just won't work !!
[HTC Desire 500] dummie999:
1. You have a sdcard?

2. more info: exact steps, hboot version etc.
[HTC Desire 500] isark:
First of all thanx for the quick answer,

Yes i have an sd card, and this is the whole info

***Unlocked***

Z4U PvT SHIP S-ON RL

HBOOT- 1.03.0001

RADIO- 14.16.36Q4.22

OS- 1.34.401.1

eMMC- boot

Jul 12 2014, 02:16:56.0

Everything i have done step by steb, but i have tried also with the other recovery but non sucessfull.
[HTC Desire 500] dummie999:
This one is hard to debug, one last thing: The command output. What command (fastboot flash etc.) did you use and what was the output?
[HTC Desire 500] isark:
I have used fastboot flash recovery recovery.img

and the output is

sending 'recovery' (6992 KB)...

OKAY [ 1.371s]

writing 'recovery'...

OKAY [ 2.182s]

finished. total time: 3.553s

Editted: Also i would like to imply that it when it says Entering Recovery its doest nothing for 1-2 seconds and then starts to vibrate for lik 5-6 times and stops the screen stays with the htc logo and the Entering Recovery text.

One other thing am doing this without the sd card installed !!
[HTC Desire 500] dummie999:
The recovery will only boot if you have an sdcard in your phone.
[HTC Desire 500] isark:
I have also tried everything with the sd card on but still nothing !! But i forgot to mention that then i install the recovery and the phone does not reboot !!

i really cant figure it out what is the problem >> !!

i have tried diffrend formats sd cards to see if this is the problem but no !! .. one other thing my sd card is blank and i have to say that i have begun this whole procedure because my htc didn;t want to boot it was stuck on htc logo and i wanted to re-install the stock rom, up to this point everything is as planed but here am stuck
[HTC Desire 500] ufonek:
which version of recovery are you using?
[HTC Desire 500] dummie999:
Your htc didn't boot? Where you trying to root it (one click), or did it do so by itself?

I don't have much more ideas. The only thing you can try is relock the bootloader and flash the firmware.zip, which will hopefully fix your phone.
[HTC Desire 500] isark:
Am using the one from the thread 1st page fot Hboot 1.03

---------- Post added at 09:18 AM ---------- Previous post was at 09:15 AM ----------

From an update and then on it doest boot stuck on htc logo reboots and then back again !! I have done nothing more but unlocking my bootloader a haven't got any further! Could please give me a guid on how to do it and were to find firmware.zip.
[HTC Desire 500] charbelaj71:
1.01.0001

Hi,where is the link to download the 1.01.0001 recovery. thx
[HTC Desire 500] dummie999:
:rolleyes: Read the thread, for hboot 1.02 and below install hboot 1.02 recovery.

It's in the thread, the part about the ota.
[HTC Desire 500] isark:
Okay i get it i have found and read the thred but i didn't saw a link on to downloading the ota ? the whole zip file !! Were can i get it from .
[HTC Desire 500] charbelaj71:
Ohhh yeah thx man. Finaaalyyyyyyy ROOOTED HTC DESIRE 500 :) Thx MAN !!
[HTC Desire 500] isark:
I have fixed my problem now boots normaly !! I have done it by booting the firmware.zip and everything is okay now :) thanks you very much for everything
[HTC Desire 500] dummie999:
Glad it's working :good:
[HTC Desire 500] dumbl3:
Thanks for your guide, now fully rooted and ready to install a custom ROM ;).
[HTC Desire 500] dove_g:
Tnx for instructions,

everything works fine for 2 months.

Then I get annoying daily notice about update, so I did it again, follow instructions for updating and it seems that everything is OK, but then it isn't.

There is no problem when you firstly boot up with all wiped (erased) data and cache, only if battery die or you make first reboot, then HTC Desire 500 starts to behave strange. Boot and reboot from itself. On and on again. Boot up, and after few seconds autoreboot, then again boot up, after few seconds, auto reboot etc... Mobile starts to heat up, drain battery...

Only solution is to pull out battery, put it back, enter to recovery, wipe all data and cache, boot up and never manually reboot and to watch that battery doesn't drain

Is there any solution for that?

Did I do something wrong?

My HTC Desire 500 (single sim):

Android version: 4.1.2

HTC Sense version: 5.0

Software number: 1.34.401.1

HTC SDK API Level: 5.26

Kernel version: 3.4.0-g194e107
[HTC Desire 500] dummie999:
Do you have the ultimate kernel installed? Are you sure flashing firmware.zip went well?

Try flashing stock 1.34 from here: http://xdaforums.com/desire-500/development/rom-htc-desire-500-android-4-1-2-t2849467
[HTC Desire 500] dove_g:
Just before your post, I start super SU app, and for now it seems OK. I can reboot and mobile works normally.

Anyway, firmware.zip went ok as far as I remember (update was done 3 weeks ago), also I dind't install ultimate kernel. Didn't change kernel at all. Is this necessary, to change kernel?

BR.
[HTC Desire 500] javsaca:
Sim unlock works

I want to say that it works... Tested in 2 devices single sim. (Thx a lot for this greate thread :good:)
[HTC Desire 500] hosseinb:
Stock Recovery

Hi everyone, specially dummie999

I have a rooted desire 500 dual and need to flash (or something like that...) a stock recovery on it. is the recovery.img at this link the right recovery for my phone and what are the exact steps?

my phone:

unlocked at htcdev

fastboot flash recovery recovery_cwm_hboot1.03.img

hboot: 1.03

software version: 1.26.401.2

kernel: dummie999@kernel #2 ( boot8_oc.img )

Thanks for your efforts.
[HTC Desire 500] dummie999:
I have no idea, where did you find that link?
[HTC Desire 500] hosseinb:
i found it here:

http://xdaforums.com/showpost.php?p=56098838&postcount=2169
[HTC Desire 500] dummie999:
No, it's cwm.
[HTC Desire 500] dove_g:
How to return mobile to its stock (everthing)?

Remove cwm, ultimate kernel and rom?

I need to return my mobile to service, so it will be good if have everything as it was.

Thank you.
[HTC Desire 500] dummie999:
If you are on single SIM, find the thread in android development. If you are on dual SIM, I can't help you.
[HTC Desire 500] dove_g:
I'm on single sim. Thanks.
[HTC Desire 500] booorinng:
Hi,

I have a bit of a problem with my recovery from my desire 500 single sim. I have unlocked the bootloader and installed first cwr. I tried to install a custom rom, but i couldn't because it said E:Unable to mount '/system. I then switched to TWRP. I again tried to install the same custom rom but i received the same error. I also cannot check the box with system in the mount section. Furthermore, now i cannot change the TWRP back to CWR. And now I cannot do anything with this recovery, but the phone works. I cannot uderstand how.

Do you think you have some idea about what happend or what to do?
[HTC Desire 500] dummie999:
.....

Check your recovery and your hboot version....
[HTC Desire 500] booorinng:
Team Win Recovery Project v2.6.3.0; hboot version 1.03.0001
[HTC Desire 500] dummie999:
a different hboot version requires a different recovery. If you have hboot 1.03, make sure you have the recovery for hboot 1.03
[HTC Desire 500] booorinng:
Great.. Unfortunately i have installed the recovery before reading this post, and i did not know about so many versions. The problem now is that i cannot change the recovery. If i try to flash a recovery from terminal with fastboot flash recovery recovery.img i have this error

fastboot flash recovery recovery_hboot1.03.img

sending 'recovery' (6680 KB)...

FAILED (command write failed (Bad file descriptor))

finished. total time: 0.000s
[HTC Desire 500] dummie999:
are you sure you are in fastboot and not in hboot?
[HTC Desire 500] booorinng:
Damn, I am stupid... Thank you very very much!! Indeed that was the problem. I have finally managed to install a custom ROM. Thanks a lot!
[HTC Desire 500] shivasrage:
[MENTION=5753275]dummie999[/MENTION]

Hi

I flashed your TWRP recovery for 1.03 hboot.

Now I´ve seen in bootloader that os-version is empty in bootloader.

So I made a check:

I reflashed firmware os- appears all is like it should be.

Flashed TWRP, booted once into TWRP--> rebooted into bootloader-->os- disappeared

I know this was a known bug from TWRP I had the same issue with m_7 and M_8

but on this Devices the (I think cosmetical) bug is allready fixed.

Do you think we can fix this also that way?

This is the solution for M_8:

http://xdaforums.com/showthread.php?p=54054835#post54054835

thanks
[HTC Desire 500] dummie999:
Check my thread in general, there is a thread with a fixed cwm version
[HTC Desire 500] mihule01:
Rooting/ROM installation problem

Hi, I've seen somebody in this thred has similar problem, however I couln't find the solution for my case.

I have a problem with recovery of my desire 500 single sim. I have unlocked the bootloader and installed first CWM Recovery for HBOOT 1.03 (all using tutorial here: youtube.com/watch?v=yWLK5XhsVAE). I tried to install SuperSu, but i couldn't because it said E:Unable to mount '/system.

Otherwise the phone works fine, but Iwould like to finish the procedure and install custom ROM to avoid problems with insuficient internal memory.

Please advise.
[HTC Desire 500] ufonek:
This is very old tutorial ;)

Try this:

http://xdaforums.com/showpost.php?p=53901911&postcount=3
[HTC Desire 500] Shrinivas.sharma1701:
Please someone help me

http://xdaforums.com/general/xda-assist/htc-desire-500-wont-start-t2992993
[HTC Desire 500] sensation199290:
i do like the instructions but my software number didnt change and nothing happend except i lose my signal and there is no imei for the 2sims so please help me

i lost my phone please help there is no signal
[HTC Desire 500] ufonek:
Why do not you read first before you destroy your phone? You flash to the phone firmware for singlesim. Search for DUALSIM firmware.
[HTC Desire 500] sensation199290:
where i can find dual sim firmware and even if i found it will not replace system file (i mean imei and something like that) or i am wrong?
[HTC Desire 500] sam20481005:
Urgent help needed

[/B]

So my Problem is after doing all the steps when i attach my mobile to the desktop and open the command prompt and type the above given command it keeps waiting for the device...

and shows the text "Waiting for device". What to do now.. help urgent..... thanks in advance
[HTC Desire 500] dummie999:
Are you windows 8(.1)? People report that adb doesn't work under windows 8.1, this is a generic problem, idk a fix, try googling.

Else

- broken cable?

- broken usb port?

What does "adb devices" list?
[HTC Desire 500] nsnobel2:
I have single sim with hboot 1.02 , after insall TWRP phone shows only "Entering reovery" in blue color and do not get into recovery, is there any solution for this?
[HTC Desire 500] dummie999:
Plz give me the exact steps, starting by unlocking the bootloader.
[HTC Desire 500] pavelcheto:
Dual sim

unlocked at htcdev

Software number 1.26.401

kernel 3.4.0-gaf27bf1-dirty dummie999

hboot 1.03.0001

cwm advanced edition 5

cwm Base version v6.0.3.7

phone reboots during backup of /data. So I can't make a backup. I noticed, the more backups I make, the further it gets before restarting. Now it restarted at. android_secure backup. /data completed.

update: now it crashed at generating md5sum
[HTC Desire 500] dummie999:
How old is your sdcard? This used to happen to me because my sdcard was way to slow. I bought a new one (10 euro, class 10) and the problem was solved for me.
[HTC Desire 500] pavelcheto:
It is a 8 month old Samsung card. It is 16gb class 6. I've never had problems with it. I'll try with another card and write back.
[HTC Desire 500] eu_andreiutz:
Hello,

I have a small-ish problem.

Sigle sim

unlocked at htcdev

Software number 1.10.401.8

kernel 3.4.0-g7344ab7-dirty gilles@gilles-optiplex-7010 #8 SMP PREEMPT

hboot 1.01.0001 S-ON simunlocked

CWM advanced edition 5

CWM base version v6.0.3.7

Lost first nandroid backup and now i am unable to install ota.

Can you help me with a system dump for 1.10.401.8 as when i try to install other system dumps it says md5 sum error.

Or maybe i can skip that step? but i installed the kernel in system partition.

Thank you.
[HTC Desire 500] NickMthesh:
Phone Bricked

I think i bricked my phone..

I flashed the stock firmware z4u and tried rooting it using this method

..when i turn it on it doesn't pass the white htc screen and whenever i try typing a command through fastboot its stuck at "waiting for device"...

Also when i try to enter into revovery its stuck at "entering recovery"

The phone is unlocked..

What do I do..

IS there any way i can flash a recivery or a rom using maybe adb or unbrick the phone even if it means loosing everything

PLEASE HELP ME
[HTC Desire 500] ufonek:
If your phone run in fastboot. Then flash correct recovery for Z4U (if you have singlesim)
[HTC Desire 500] NickMthesh:
Its stuck on fastboot

When i try to flash the recovery its stuck at "waiting for device "
[HTC Desire 500] ufonek:
Try reinstall drivers.
[HTC Desire 500] NickMthesh:
Phone not booting to bootloader

right now when i try to boot into bootloader it just vibrates and blinks yellow LED

also when i connect the charger it does the same

what do i do now?
[HTC Desire 500] ufonek:
Remove the battery for some time and try again. Otherwise, the phone is dead. Also, it happened to me. She had to replace the motherboard.
[HTC Desire 500] strangeFace:
Hi,

thanks for great tutorial.

Is it possible to flash newer version of SuperSu at the beginning (like 0.98) or should I stick to recommended version.?