Archive for June, 2010
- install Android SDK, download and unpack archive, then run ‘./android’ from tools/ subdirectory and install all SDK options
- also, it might be a good idea to add the path to sdk/tools to your $PATH
- start Eclipse, open Help -> “Install new software” and enter URL: https://dl-ssl.google.com/android/eclipse
- select all options (ADT and DDMS) and press Next
- accept all license agreements until there’s a “Finish” button, press “Finish” and let Eclipse restart itself.
In my case (Eclipse 3.5) there were errors at the step 4, like
Missing requirement: Android Development Tools 0.9.4.v200910220141-17704
requires ‘org.eclipse.wst.sse.core 0.0.0′ but it could not be found
If you encounter the same errors, try to open Help -> “Install new software” again and add the following URLs:
In my case installation went smoothly after I added the first two.
After the Eclipse reloads…
it’s necessary to define SDK installation path in preferences. Open Window -> Preferences, and click “Android”. There might be message about SDK path, anyway push “Browse” button and navigate to the SDK installation path. When you press “Apply” all SDK options (Google API and Android versions) should appear in the selection box.
Press OK and you are ready to create Android applications!
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.
- 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.
- download AnyKernel template by koush and unpack it somewhere
- copy your zImage file to the template /kernel directory, there supposed to be another zImage file there — just replace it
- go back to the template directory, you will see three subdirectories: META-INF, kernel & system
- zip them all (zip -r ../update.zip *)
- sign the update.zip and flash it to your device
- scripts included in the template will unpack your current boot.img, keep ramdisk, but replace the kermel
Big thanks to Bartosz Ponurkiewicz, who gave me nice advices and warned about common problems on the way!
I’ve read about nice utility to extract rom.zip from RUU update and could not believe someone really have spent time to write a program, which might be easily obsoleted with new version of installshield.
Here’s a quick and dirty, but very reliable approach which does not care about installshield version and relies only on expected file name (rom.zip)
- install wine
- open terminal and change directory to .wine (cd ~/.wine)
- in the terminal type (but don’t press <enter> just yet) : cp `find -name rom.zip` ~/
- run RUU update file in another window and change back to the terminal
- as soon as the progress bar reaches about 70-80%, press <enter> in the terminal
- enjoy rom.zip in your home directory (but don’t forget to check zip integrity and checksums just in case)
Worked for me as a charm and did not require any 3rd-party software.
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.
Recently HTC released the kernel source for HTC Desire. Here’s how to compile the kernel source under Ubuntu:
- download and unpack source code
- install android SDK and NDK
- get kernel config from your device (adb pull /proc/config.gz; gunzip config.gz; mv config .config)
- put .config into the root directory where you unpacked kernel source
- run “make oldconfig”
- optionally, if you plan any changes, run “make menuconfig”
- 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
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.
/sys/class/power_supply/battery has batt_id, batt_vol, batt_temp, batt_current and many other interesting items:
$ cat batt_attr_text
I’m kinda puzzled, because my softbank phone totally refuses to send any SMS messages to any other providers (DoCoMo, Au), however it works absolutely perfectly with international phone numbers and sends SMS overseas just fine.
There are a few parameters, which might result in better battery life, so I copied them from Softbank ROM to 1.21 WWE, rebuilt and battery life went back to normal. Just in case, here are those parameters:
Still, no idea what do they mean, especially “enable.sbm.feature” (SBM probably means SoftBank Mobile).
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.