How to root HTC Desire

This is a brief tutorial for all of you who want to hear your root-Desire with Unrevoked3 and Windows. The method that we describe in the rest of the text is by far the easiest to root-ing of HTC Desire models.


Before you begin this process be sure you understand all the consequences that root-ing the phone in turn results in (loss guarantees, etc.). Also, read this tutorial in full and obtain all necessary applications and drivers before you in the process of root-ing.

Required software:

a) Android USB driver that download from the following link. After downloading extract the contents of the archive somewhere on your computer.

b) Unrevoked3 can be downloaded from the following link.

Root procedures:

1. Uninstall HTC Sync if you have ever installed on the computer you are working on root-ing.

2. Turn off the phone, and then turn it on while holding the power button and mute button.


3. After this your phone should show HBOOT menu (similar to Figure 3).



4. Now connect the phone USB cable to your computer. Your computer will probably install some drivers for your Android phone automatically.

5. On your computer go to Device Manager and find the "Android Phone" or ADB (depends on which Windows drivers installed in the previous step).

6. Try to update the driver by right click context menu to open it and select Update Driver Software. Choose whether you want to install the driver from the site that you created in step a) of this tutorial. After that the steps should you installed bootloader Android Interface.
If Windows does not want to install this driver (you'll get a message like: Windows has determined ...) you'll need to delete the currently installed driver, unplug the phone, disable computer access, and then connect your phone to your computer and repeat the process described in this step.

7. On the phone, where he still HBOOT menu, choose Reboot (through the menu to navigate Volume up or Volume down buttons, and select Power On button work).

8. When the Android build must include a USB debugging mode (Settings-> Applications-> Development).

9. Start Unrevoked the location you chose in step b)

10. Unrevoked3 should detect your phone and you open the screen with the classic "Are you sure ..." work. Here click on "OK" and the root-ing begins. It is very important that after this you do not touch the phone and let Unrevoked to do its job. Expect you two automatic reboot and after that the message that everything went successfully:)

Your phone is after this rooted. This can be checked by the application program to search for Superuser permissions (popularly known as the Ninja:)
After this you can install all the applications you want. You can also put the custom ROM.

How to change boot screen on Android

If you've ever wanted to change the boot animation on your android, this short guide will help get someone to help. If you are creative, make your animation to personalize this part of your phone.


1. Preparation:



a) Create your boot screen, or find one that you like. I usually use Flash.

b) Now the animation into a series. png frames. If you use flash: File -> Export Movie and choose "PNG Sequence".

c) Now all frames need to rename the mysql. I use Total Commander for Multi File Rename. Rename thumbnails in sequence like. start_00001.png, start_00002.png etc..


2. Make bootanimation.zip


a) Create two folders for example. "first" and "second." In the folder "first" we will put an animation that runs only once, and "second" animation that spins in circles while the system is not up.

b) Now create a text file "desc.txt" and add data to your model of Android. A complete description of this size have the third part of the tutorial. Please see below for two examples:


320 480 30
p 1 0 first
p 0 0 second

example for the G1


480 800 30
p 1 0 first
p 0 0 second

example of the model Nexus One


c) When you're all prepared to make. zip file. Zip file name must be "bootanimation.zip". When making sure that the zip does not contain any compression because our goal is for all those files just gather in one file. That means no compression.

The archive you create should have the following layout:

bootanimation.zip

first
second
desc.txt

d) after that switch on your zip file to  Android in the following folder "/ system / media" but I think that the "/ data / local" should do the job too.


3. Description desc.txt size

320 480 15
p 1150 android
p 50000 1 last

The first line contains three numbers which are: width, height and number of frames per second animation

The second line (and every other) begins with the letter "p" and contains three parameters:

- Count: the number of times the first animation repeats
- Pause: the number of milliseconds how long pause between two repetitions
- Path: location of the folder in which the animation is

There is another way to change boot animation on android and that is via Boot Changer GUI 2.5.1.
That is windows application that write/read to system partition on Android.


Problems with boot screen animation:
If you get this error, that bootanimation.zip is system read only you need to mount your android system partition for read write permissions.

Mount a filesystem on Android

Very often when you want to write files to a particular partition on ADP1, you will get a "Permission Denied" if the partition is mounted read-only.
To get around this, you need to mount the partition read-write. Typically this is done with /system partition

$ adb shell
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

(Replace /dev/block/mtdblock3 & /system with appropriate device path and mount point, as obtained from cat /proc/mounts)

if you have busybox in your device then 1 line for this:
grep " /system " /proc/mounts | awk '{system("mount -o rw,remount -t "$3" "$1" "$2)}'



$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# CHMOD 777 /SYSTEM

and then you can modify anything in /SYSTEM

I used this trick to replace my boot animation, because I had enough perms to modify after doing the CHMOD above.

cp /SDCARD/bootscreen/* /SYSTEM/MEDIA/bootscreen/*

The HTC HERO with 2.1 will boot with either a BOOTANIMATION.ZIP or a BOOTSCREEN folder in /System/Media/

I used terminal emulator from Android Market.

OR you can install Root Explorer from Android Market and click mount R/W

How to soft restar HTC Desire

In the case that the phone freezes (or get very slow ) and you want to restart, much like you would on a PC, try the following procedure.
For now, we have tried the HTC Desire HD, but it may work on other models, try and answer.

Key combination is Power  + mute button + trackpad.

With this combination you do not have to remove the battery and return it to reboot the phone. Keep in mind that this is not a regular process of launching and recovering the system, but only so-called "hard" reset which should be used only in situations when yourphone is not responding to other commands.

How to delete and backup system apps on Android


If you have rooted your Android and for some reason your apps that comes with your phone or ROM bother you or you don't need them, following this tutorial you will be able to delete them. Finally there is a short tutorial on how to restore deleted application, if you want to retrieve your old apps.


So get started. You must have:

  • Rooted Android phone
  • ADB driver installed on your computer
Instructions:
1. Enable writing to the system partitionDo not worry, this change is only temporary, until you delete applications you do not want.

a) Connect your phone to computer using USB cable.b) Open the Command Prompt (Start -> Run -> cmd and then press ENTER)c) In the command window, type: adb reboot recoveryThe phone will reset into recovery mode.d) Then, type: adb shellThe first character in the command window will become #e) Then type: mount-o rw-t yaffs2 / dev/block/mtdblock3 / systemThis order you get access to reading and writing to the system partition.

2. Backup applicationsBefore deleting, it is good practice to back up system applications in order to get them back if you change your mind.

a) In the command window type: exitThis will leave the shell mod-a.b) Type: adb shell ls system / dataYou should now see a list of all applications that are in the system directory.c) For the application you want to backup, type:adb pull system / app / <full_name_of_app.apk> <puno_ime_aplikacije.apk><puno_ime_aplikacije.apk> the name of the application you want to back up. Find the name in the result from step b).d) After this  apk file applications backup you just need to be located in the folder from which you run command prompt.

3. Deleting applicationsThis is where once again you must complete step 2 before moving to delete the application. Also, it is important not to delete any of the important system applications, such as, for example. Sense (called Rosie).

a) Re-enter the mode by typing shell: adb shellb) Type: cd system / appc) Type: lsThis will suggest. Apk Application files in the system directory.d) Type: rm <full_app_name.apk>This application is permanently deleted from your phone.e) If you are turning the pages and noticed applications fail <full_app_name>. ODEX delete that file too.

4. ResetWhen you finish deleting all unwanted applications, reset the phone. If everything went well, the system will be free of the applications that you delete this method.
5. Restore Deleted application (optional step)
a) Repeat the entire Step 1 in this tutorial.b) Find the application you want to go among those who have backup in step 2 this tutorial.c) Type: adb push <full_app_name.apk> system / app / <full_app_name.apk>


How to install apps on SD card - Android Froyo

We are sure that you're like me at least once experienced the problem of lack of space in internal memory. This usually happens because Andoid OS install applications on the internal memory, and only the version Froyo, you have the possibility that some of the installed applications switch to your SD card. Some apps, because there are still a large number of applications from the market is not yet updated to usethis feature in this version of Android OS.



Following the instructions in this tutorial, configure your phone to all the applications you have installed, are installed on the SD card in your phone.


Requires:


  • Android Phone with Froyo
  • ADB installed


Instructions:


1. Turn on debugging on your phone (Settings-> Applications-> Development-> Debugging USB)
2. Connect your phone and PC
3. Open a Command Prompt (on the PC Start-> Run, type cmd and then press ENTER)
4. In the command prompt type: adb shell am setInstallLocation 2
5. Press Enter


Potential problems and frequently asked questions


Q: Widgets are installing, you can put on your desktop.
A: Widgets can not work with SD cards. We need to move them to the phone's internal memory.

Q: How do I transfer applications to the phone memory?
A: Go to Settings-> Applications-> Manage Applications, select On SD card, and find a widget or application you want to switch to internal memory. When you select it, click Move to Phone.

Q: I do not like this change, can I restore the settings that were originally on the phone.
A: Yes. Repeat the steps in the tutorial, but you will in step 4 At the command prompt type: adb shell am setInstallLocation 0