Posts tagged “Android”

Import a contact list from a CSV file to your Android

If you keep a spreadsheet file with all your contacts you can easily import them to your phone. This is done by uploading the CSV file to your gmail account where you import it.

First step: Save a CSV file

Follow the Gmail Help page, which describes what your columns are supposed to be called and so on. Save the file to a CSV file.

Second step: Importing the CSV file to Gmail

  1. Sign in to Gmail
  2. Click Contacts (located below your list of views) on any Gmail page.
  3. Click Import in the top portion of the Contact Manager.
  4. Click the Browse… or Choose File button and locate the CSV file you’d like to upload.
  5. Select the file and click the Import button.

If some of the fields in the CSV file are left out Gmail will tell you why. Also a smart thing is to make a Category for your contacts, this way you can delete them all again if you made a big mistake.

Many thanks to Google Android Bruger Blog!

Change the animated boot screen on HTC Magic (Google builds)

NOTICE, some autosigners and sign programs do not work on Vista and Windows 7, either use Windows XP, MacOS or Linux for signing.

The other thread about changing the animated boot screen on HTC Magic, seems to only work on HTC builds, which implement the ability to have animated boot screens through a simple gif image. This does unfortunately not apply to the Google build ROMs, therefore we need to avail ourselfs of another method of changing the boot screen, which also is more complicated.

First we need to pull the framework-res.apk which resides in /system/framework/ from a update.zip for a full ROM.

Next unpack the file somewhere, inside the folder assets/images there should be two or more png images. They are called:

android-logo-mask.png

android-logo-mask

android-logo-shine.png

android-logo-shine

And can look like the images above. Those are the two files we need to edit or remake to our likings.

As you maybe can se the letters and the android in the first image are transparent, which means the shine will be shown on the phone it self as background image. This is as far as I know the only possibility of having a animated boot screen on the Google build ROMs, which is not as fancy as the animated gif images that you can make for the HTC build ROMs.

For this guide I will use the same splash image I am using for the first non animated splash screen.

As you can see it does not contain any transparent areas, I am going to turn the outline of the android and the lettering transparent and change the color of the shine. You can do that in any photo editing program such as GIMP, photoshop and Paint.net, and I will not guide you through that. The result is as follows.

transparentandroid

android-logo-shine

Now that I have to two images, I overrite the images in framework-res/assets/images, zip the file and rename it back to framework-res.apk and put it back in the update.zip, then sign it according to android developers. Now flash it to your phone and you should be seeing it next time you boot your phone.

Fixing accelerometer on HTC Magic

From time to time when you change ROM’s on your HTC Magic the accelerometer goes crazy and won’t read any values, which means no rotation of the screen and the compas will not respond either. This is fixed by deleting the file that contains previous data about the positioning. The reason for this is when you sometimes forget to wipe before applying new ROM’s old data is stored and messes up the accelerometer.

Reboot your phone in Recovery mode (home+end/power)

adb shell
mount -o rw /dev/block/mtdblock5 /data
rm /data/misc/akmd* /data/misc/rild*

Now reboot the phone and everything should be working again.

Change the animated boot screen on HTC Magic (HTC Builds)

You might have noticed that the first bootscreen, the one we changed in the previous guide on how to change the Android Splash, changes into some other boot image, which is animated. You might want to change that, which is super simple. This only works for HTC builds of the Android ROMs.

See this post for Google Builds

The second boot screen has quite alot of possibilities, it can be animated and it can have sound. It can be made of two seperate images, one where the animation happens and a background image. You can found some of these bootscreens here: 2nd splash images

Now when you have the image(s) and the sound file we need to edit the boot_animation.xml file to contain the file names of the images and the soundfile you want to show up upon boot. Here is an example of how it can look:


<BootConfiguration>
 <BootAnimation
    image="/system/media/boot.gif"
    audio="/system/media/boot.mp3"
    image2="/system/media/boot2.gif"
    image3="/system/media/boot3.gif"
    screenX="100"
    screenY="130"
    image_bg = "/system/media/boot_bg.gif"
    useAudio="1" // 1: true ; 0:false
 />
</BootConfiguration>

Everything except the image entry is optional. So if you don’t want to have sound you do not need to have it in the file. The screenX and screenY are offsets if you are using image_bg along with a smaller image that doesn’t fit the whole screen, it is for positioning it on the screen.

When you are done editing the file save it as boot_animation.xml and now we can push all the files to the phone. Remember to remount the /system partition with the rw option

adb shell mount -o rw,remount /dev/block/mtdblock3 /system
adb push boot_animation.xml /system/media/
adb push boot.gif /system/media/

Do so with every file mentioned in the boot_animation.xml file and reboot your phone to see the final result.
Enjoy :)

EDIT:
Apparently some ROM’s have their bootscreen stuff in /system/media/bootscreen/ rather than just in the media folder.

Change splash screen on HTC Magic

Some of these phones are branded and come with an ugly splash screen from the carrier, and you might want to change that into your own. The only things you need is a Engeneering SPL or a Hard SPL, which you should how to get from the previous blog posts I made, and either a Linux operating system with Imagemagick installed and this application for Windows or this application for Linux (has to be build from source) to create your own splash images.

First step is to convert an existing image with the dimensions 320×480 pixels. The image file has to be supported by imagemagick, so it has to be either gif, jpg, png, bmp or whatever is supported. This image file has to be converted into a 256 colour 8-bit raw image file:

convert -depth 8 splash.png rgb:splash.raw

Check that the splash.raw file is exactly 460800 bytes.
When you have the raw with the correct size, we need to compile the rgb2565 application it is done by running:

gcc -O2 -Wall -Wno-unused-parameter -o rgb2565 to565.c

When you have the application compiled the raw image has to be converted to a format the phone understands:

rgb2565 < splash.raw > splash.raw565

Check that this new file is 307200 bytes, otherwise do not flash it to the phone. We have now created the splash image for the phone. You can do the same in a Windows environment with the application mentioned in the start of this blog post. It should be obvious how to use it.

Second step is to flash the splash image to the phone. Start the phone in fastboot mode by holding back+end/power, also make sure you have the AndroidSDK on you computer installed and have the tools in your PATH.

Then make sure that the fastboot device shows up on you computer:

fastboot devices

cd to the folder where the splash.raw565 is and execute the following commands:

fastboot flash splash1 splash.raw565
fastboot reboot

If you want it to show up for longer (only for pre-cupcake):

fastboot flash splash1 splash.raw565
fastboot flash splash2 splash.raw565
fastboot reboot

The phone reboots and you should now see your splashscreen, enjoy :)

This is how my current splash looks like:

Splash image on my HTC Magic

Splash image on my HTC Magic

My own converted splash screens can be found here: http://ostebaronen.dk/android/splash/

Credit goes to: Android-dls.com Wiki

HTC Magic APN settings for Bibob

Here are the settings I use for my carrier, Bibob.

Name: Bibob
APN: internet.bibob.dk
Proxy: 212.88.64.8
Port: 8080
MMSC: mms.sonofon.dk
MMS Proxy: 212.88.64.8
MMS Port: 8080
MCC: 238
MNC: 02

Username, password and server are not set. Seems to work fine, at least with 3g connection. Haven’t tried MMS yet.

Flashing new SPL on Vodafone HTC Magic

DO NOT FLASH DREAM SPL ON MAGIC DEVICES!

You might want to flash your SPL (bootloader) on your HTC Magic, to enable the usage of third party ROMs for your phone. This can be done easily but finding the correct SPL in the following thread: Magic SPL HBOOT Collection

When you have found a SPL that suits the motherboard on your phone, which you can find in the fastboot menu on your phone by booting the phone while holding Back and End/Power, you can now push the SPL update.zip to your phone.

adb push /path/to/update.zip

When you are done with pushing it, boot a rooted recovery rom. See Enabling root on a Vodafone HTC Magic for instructions. When you have booted the recovery rom, apply the update.zip – and thats it. You can now flash thrid party ROMs on your phone including Hero roms and so on.

I take no responsibility for bricked phones or whatsoever.

Enabling root on a Vodafone HTC Magic (Obsolete!)

THIS GUIDE IS OBSOLETE FOR SYSTEMS RUNNING WITH DONUT (1.6)

I find it quite confusing how there are so many guides on how to enable root, putting on a new ROM and how to flash other recovery images on the HTC Magic. So I will in the next couple of post explain how I have enabled root and flashed new ROMs and SPL (bootloader) on my HTC Magic, which is branded by Vodafone. In this howto/guide I assume that you already have installed the proper drivers for your phone and I take no responsibility for you bricking your phone. I will gladly help you recovering it if that happens though.

First you need to download Haykuro’s Root me ROM, which should be found here: Haykuro’s Root me ROM. Push the update.zip to your phone’s SD card:

adb push /path/to/update.zip /sdcard/update.zip

We need to make sure what kind of motherboard you have in your phone. You can do that by powering down your phone, and then hold the back button and then press the end/power button. You will now enter a utility called Fastboot, which you can identify by seeing three androids on skateboards. In the top of this utility you will find information about your phone. Look for something with 32A or 32B, these are the variations of motherboards. Remember which board you have, because we need this in the next step.

Just stay in the fastboot mode, and connect the phone to your computer. Download a rooted recovery image that fits your motherboard. You can find it the image here: Amon RA recovery image. Choose the image that supports your motherboard either 32A or 32B. After you have downloaded it you can boot the recovery image by executing the following command:

fastboot boot /path/to/recoveryimage/on/your/computer.img

This command should be the same on Windows and in a Linux based operating system. When this is done the phone should have booted the Amon RA recovery image, where you have the possibilities of making backups of your phone. I suggest that you do one now.

When the recovery is done we can start flash the Root me rom. This is done by saying apply:update.zip in the now booted Recovery image. When you are done you should now have the possibility of getting root on your phone. You might also want to flash the recovery image to have it boot when you press Home+End/Power. This is done like this:

adb shell mount -a
adb push /path/to/recovery/image.img /system/recovery.img

This is either the Amon RA’s H or G version of the recovery image. This needs to be pushed to the SDcard aswell.

adb push /path/to/recovery/image.img /sdcard/recovery-RAv1.1.1H.img

Now we need to flash it.

adb shell flash_image recovery /sdcard/recovery-RAv1.1.1H.img

You can now reboot your phone.