Archive for category Desire

How to compile kernel — part 2

In the part 1 I explained how to compile a new kernel, and here’s the explanation how to upload the newly compiled kernel to your device.

  1. make sure you really have arch/arm/boot/zImage file (about 2MB in case of HTC Desire/Eclair) present after your kernel compilation was over.
  2. download AnyKernel template by koush and unpack it somewhere
  3. copy your zImage file to the template /kernel directory, there supposed to be another zImage file there — just replace it
  4. go back to the template directory, you will see three subdirectories: META-INF, kernel & system
  5. zip them all (zip -r ../update.zip *)
  6. sign the update.zip and flash it to your device
  7. scripts included in the template will unpack your current boot.img, keep ramdisk, but replace the kermel
  8. enjoy!

Big thanks to Bartosz Ponurkiewicz, who gave me nice advices and warned about common problems on the way!

, ,

No Comments

emoji (絵文字) on HTC Desire

It appears, there’s an easy way to see emoji (絵文字) on HTC Desire — just replace DroidSansFallback.ttf which can be downloaded from here.

Pictograms come out in black and white, but still readable and most of the time easy to understand.

, ,

No Comments

How to compile kernel — part 1

Recently HTC released the kernel source for HTC Desire. Here’s how to compile the kernel source under Ubuntu:

  1. download and unpack source code
  2. install android SDK and NDK
  3. get kernel config from your device (adb pull /proc/config.gz; gunzip config.gz; mv config .config)
  4. put .config into the root directory where you unpacked kernel source
  5. run “make oldconfig”
  6. optionally, if you plan any changes, run “make menuconfig”
  7. run “make ARCH=arm CROSS_COMPILE=~/android-ndk-r4/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-”, where long and complicated path points to the actual directory where you installed NDK

Wait about 10-20 minutes. You should get the following mesage:

Kernel: arch/arm/boot/zImage is ready

, ,

4 Comments

About that OTA upgrade

Please, be careful about getting OTA (off-the air) upgrades, if you plan to root your HTC Desire. All versions of software upto 1.21 (1.15, 1.16 ~ 1.21) can be rooted, however 1.22 and 1.23 cannot. So, root before the upgrade or forever forget about rooting.

,

No Comments

Battery info

/sys/class/power_supply/battery has batt_id, batt_vol, batt_temp, batt_current and many other interesting items:

$ cat batt_attr_text
batt_id: 1;
batt_vol(mV): 4167;
batt_temp(С): 306;
batt_current(mA): 151;
batt_current_avg(mA): 154;
level(%): 97;
charging_source: 1;
charging_enabled: 1;
acr(mAh): 1326;
active_empty(mAh): 177;
guage_status_reg: 81;
full_level(%): 100;
fake_temp: 0;
$

,

No Comments

Signal strength monitor

It looks like Softbank ROM does not include signal strength monitor (Settings -> About phone -> Network / signal strength), however there’s a secret code *#*#4636#*#* which allows access to phone internals when typed into the dialer — don’t press “call”, just type and wait, if nothing happens you’d better check if you put stars and sharps in correct order.

, ,

No Comments

Juice plotter

battery discharge curveI had wonderful battery life (about 3~4days on one charge) at the beginning, then upgraded to MCR r3.1 and noticed discharge rate about 10%/hour, it ate the whole battery in just few hours. Tried to go back to 1.15 — no difference, so now I have 1.21 with no modifications and have to recharge every night and hope it will live through the day. The phone is quite warm, when I touch it on the back.

Today I went out and drove about 70km to the another region with slightly different cellular provider. And here’s what I notices on my JuicePlotter — FLATLINE since 18:30 to 20:50 — almost exactly the time I was not at home. Phone went totally, surprisingly cold. After I came back home the battery drain started again. Currently my radio version is 32.36.00.28U_4.06.00.02_2 and I wonder if it’s possible to fix the battery situation.

, , ,

No Comments

ROM kitchen

Found very nice ROM kitchen on android.modaco.com, cooked myself a ROM without Office and twitter support. Tried to remove FaceBook as well, but this broke sync somehow, and I had to put it back.

Reflashing new images it kind of fun. Though, I would really advise against reflashing over USB — this might easily break your phone. Please, copy new ROM to SD card and reflash from the card.

ROM kitchen access costs about $10 a year, and pre-baked images are available for free.

,

No Comments

MMS fixed

Found someone’s blog, where people discuss MMS problem with the Softbank. Installed new Mms.apk — had some problem with FC (force close) at first because of old data left, reinstalled with wipe, everything normal. Sending/receiving MMS works like a charm.

Another good point was the message access. On my previous phones, messages were grouped by “Sent”, “Unsent”, “Undelivered” or something, which made it very difficult to follow a conversation. Android keeps messages in threads, so all messages from/to same person are together.

Please, don’t forget to change “User Agent” in MMS settings, otherwise you won’t be able to send/receive MMS.

2 Comments

Just in case

Here are links I used to root the phone. They might get old or broken, but at least I would like to save them here as a starting point for someone who would like to root his phone and has no idea where to begin:

  1. how to make a “golden card
  2. how to install a rooted ROM image
  3. how to setup internet and MMS access for Softbank

These three steps will install WWE (World Wide English) ROM with older version (1.15) of firmware, which may be replaces later with newer and/or modified ROM image.

I don’t assume any responsibility about this process. I did this once with my phone and it worked, that’s all.

No Comments