Young Desire's Course
I was prompted to write a similar article by the fact that for a person who joined the slender ranks of Desire's water, information about the Android platform is very fragmented. On the one hand, the platform for all Android devices is one, on the other hand, each device has its own nuances and subtleties. In addition , there is a lot of information on forums such as w3bsit3-dns.com and forum.xda-developers.com , but as a rule it is spread over all topics. One has to wade through hundreds of pages in an attempt to extract valuable pieces of information.
The architecture of memory on the fingers
Our smartphone has four types of memory:
- RAM, random access memory (576 Mb).
- ROM, built-in flash memory (512 MB).
- Removable flash memory, it is also an SD card (up to 32 GB). Mounts to the / mnt / sdcard directory.
- Flash memory chip radio controller. We do not have direct access to it.
Like any other Unix smartphone, HTC Desire in ROM contains the kernel of the OS, the file system, and the rest of the OS.
The flash memory of the ROM is divided into sections, which, if necessary, can be updated separately and independently:
- splash1 - logo when loading the phone (image 480x800);
- bootloader - responsible for finding and launching the OS kernel; consists of two parts IPL and SPL;
- recovery - a program used to perform various maintenance functions - flashing, backup, etc.
- system - the operating system itself; mounted read-only in the / system directory; during operation does not change.
- data - user data (contacts, programs, etc.); mounted in the / data directory;
- cache - used for temporary storage of data.
Bootloader, as noted above, consists of IPL (Initial Program Loader) and SPL (Second Program Loader, aka HBOOT). IPL is implemented in hardware and its change, in fact, is not possible. This is an analogue of the BIOS chip in terms of PC.
SPL is responsible for preparing the phone hardware for launching, loading and executing the OS kernel. In addition, it allows you to flash the phone and communicates via USB from the PC before loading the phone OS (the so-called fastboot mode). It is important to remember that SPL firmware is critical and in case of violation of the firmware process or damage for any other reason, you will get the so-called "brick", it is also a brick, that is, an absolutely useless piece of hardware for 20,000 rubles. The SPL firmware must necessarily correspond to the firmware of the radio controller chip (radiofirmware).
So we got to the next section of memory - recovery. Outwardly, this is a small menu that allows you to carry out all kinds of serving functions. Currently, the most common “recovery” for Desire are the following: ClockworkMod, Amon_RA and psfMod.
For the possibility of flashing recovery, it is necessary to unlock the possibility of flashing unsigned (almost all third-party firmware is not signed) recovery firmware (do the so-called S-OFF). You must download the image for the disk (http://alpharev.nl/). Burn it to a CD disc, boot from it and follow the instructions.
For any work related to flashing the phone you need a root.
Ruth, meaningful and merciless
And so what we have: PC, HTC Desire, USB cable.
The first step towards "ennoblement" of our smartphone is to get the root.
What is a root and why do we need it so much? In simple words, this is an administrator account that will allow you to do whatever your heart desires over the system:
- flashing the phone;
- Get full access to the file system (remove the read-only restriction);
- modify system files (themes, applications, scripts, etc.);
- run applications that require root privileges;
- Perform full and partial backups;
- move the cache (system and user) to the SD card.
Set the next checkmark in the phone “Settings> Applications> Development> USB Debugging” and “Settings> Applications> Unknown sources”.
Run the previously downloaded reflash_package.exe in administrator mode (right-click> Run as administrator). We connect the phone to the PC. We are waiting for a few minutes until the rutting process is completed. The superuser icon should appear in the list of installed programs.
3rd party firmware
Third-party firmware can be based either on official firmware with HTC Sense (the marking for example is FRF91), or on source codes from Google (AOSP, Android Open Source Project) or the CyanogenMod project.
Unlike official firmware, third-party firmware, as a rule, is already rutted. In addition, they may contain a changed interface, have a certain set of pre-installed programs and all kinds of "chips":
- A2SD - the ability to create a partition on the memory card (formatted as ext2, ext3 or ext4) into which programs will be installed. This avoids the problem of a lack of internal flash memory.
- A2SD + is the same as A2SD, plus the ability to transfer the cache (this mode is not recommended, as it reduces the SD card resource).
- The possibility of theming using built-in applications.
- Ability to change the processor clock speed.
- WakeUp and Unlock - the ability to wake up and unlock a device by pressing a specific key other than Power.
- Odexing \ Deodexing - optimization \ de-optimization of packages.
- and much more...
If you have comments, corrections or additions to the table, please write to me on Google profile.
For any work on flashing and working with the phone via USB, I recommend using the following program - QtADB. It will allow you to take screenshots of the screen, view statistics on occupied memory, install / uninstall programs, and much more.
You can download it either on the project website or already configured here .
PS You perform any actions on phone firmware at your own peril and risk. No one except you is responsible for this!