lgxqf  
Extract Google's Android file system image from Android 1.5 SDK release

     Info of busybox http://www.loveandroid.com/viewthread.php?tid=53

     Download busybox http://benno.id.au/android/busybox

 

1.Uncompress ramdisk img.
    $cd ./Android/tools/lib/images/ramdisk.img
    $ gzip -cd ramdisk.img > ramdisk
    $ cpio -iv -F ramdisk
2.Open the emulator
    $ ./emulator &
3.Enter into Android shell and remount rootfs .
    (Since rootfs is mounted as read only, you need to remount.)
    $ ./adb shell
    # mount -o remount,rw rootfs /
    # mkdir /tmp
4.Push busybox in the tmp folder
    $ ./adb push busybox /tmp
5.Open a Android shell command window
    $ ./adb shell
    # chmod 555 /tmp/busybox
6. Create the tarball for /system and /data:
    # /busybox tar system 2. Open the emulator
    # ./busybox tar cvf /tmp/data.tar /data
    # ./busybox tar cvf /tmp/dev.tar /dev
7.Pull the tarball file from the Google Android
    $ ./adb pull /tmp/system.tar .
    $ ./adb pull /tmp/data.tar .
    $ ./adb pull /tmp/dev.
8.Get boot log of the emulator
    # mkdir /tmp
    # /system/bin/dumpstate
    # exit
    $ ./adb pull /tmp/state state.log
    $ more state.log
posted on 2010-01-20 10:28  Justin_Ma  阅读(565)  评论(0编辑  收藏  举报