Edit Default Contact Image / Picture / Avatar (Need Root w/ADB+BusyBox)

Discussion in 'Android Hacks and Help' started by adbnist, Jan 21, 2010.

  1. adbnist
    Offline

    adbnist New Member

    Joined:
    Jan 18, 2010
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    Got the Motorola Droid last week and I'm already a little tired of the tiny droid dude that takes the place of contacts without images. I searched around online a lot and couldn't find any other solutions. Here's how I went about changing it.

    * Used Root, ADB, and BusyBox to accomplish this *

    Grab the .apk's to edit
    Code:
    adb pull /system/app/Contacts.apk .
    adb pull /system/app/Phone.apk .
    Add .zip extension to pulled filenames then unzip them

    Contacts.apk

    The default image file is "res\drawable-hdpi-finger\ic_contact_list_picture.png" There's also ic_contact_picture.png, ic_contact_picture_2.png, and ic_contact_picture_3.png, but I couldn't find where they're used.
    Edit the png and save it.

    Phone.apk
    The default image file is "res\drawable-hdpi\picture_unknown.png" Edit the png and save it.

    Recreate the zips and remove .zip extension
    * Note: The pulled .apk's are compressed, but when I rezip them, the newly created file is smaller than the original. I'm using 7zip (fastest compression). For example:
    Phone.apk Original: 535,262 bytes
    Phone.apk Unzipped: 784,165 bytes
    Phone.apk Rezipped: 516,249 bytes
    Everything works fine, but I'm new to this and unsure if this is an issue.

    Install files onto phone
    Code:
    adb push Contacts.apk /data/local
    adb push Phone.apk /data/local
    
    adb shell
    su
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    mv /system/app/Contacts.apk /system/app/Contacts.apk.bak
    mv /system/app/Phone.apk /system/app/Phone.apk.bak
    ./BusyBox mv /data/local/Contacts.apk /system/app/Contacts.apk
    ./BusyBox mv /data/local/Phone.apk /system/app/Phone.apk
    mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
    sync
    reboot
    I prefer to leave a backup in the folder, hence the "mv .apk .apk.bak"
    I was getting errors trying to move the files without BusyBox. YMMV

    Worked for me. Hope this helps one of you.
  2. voydas
    Offline

    voydas New Member

    Joined:
    Jan 2, 2010
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    0
    Beautiful. Will be doing this -- thanks for your time and concise explanation :)
  3. ogzer707
    Offline

    ogzer707 New Member

    Joined:
    Dec 31, 2009
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    0
    +1 to that good stuff there bud. much appreciated.
  4. KingZee
    Offline

    KingZee New Member

    Joined:
    Nov 8, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    I know this reply is month's later, but where can I find Root, ADB and BusyBox?

    Thanks!
Search tags for this page
android change default caller picture
,

android change default contact image

,
android change default contact picture
,
android contact avatar
,

change contact picture android

,

change default avatar android

,
change default caller image of android phone without root
,
change default contact picture android
,
contact picture root
,
default contact image
,

delete default contact image in android

,
how to change default contact picture android
,
how to set multi default contact pic on android
,
picture unknown.png on android phone
,
s4 default caller image