您的位置:首页 > 移动开发 > Android开发

Extract google android file system image

2010-09-06 15:22 330 查看
To run google android on the truely hardware, you may need the google android
file system image.

Google android file system consists of two parts:
system and data.

You can find the google android file system image on benno's
website: Android
filesystem images

You can also extract the google android file system
by yourself from the android emulator by the following way:

1. download the
google android sdk and extract onto your platform

2. start up the google
android emulator

3. upload a busybox tool to the google android emulator, you
can find a busybox binary on benno's website: busybox
for android
, you can also find the cross-compiler
(select ARM GNU/Linux, and IA32 GNU/Linux)
and create a busybox tool by
yourself.

4. to upload files to the google android emulator, run the
following command:

# adb push filename
/target_folder/filename

the target_folder is the folder on the file system of
google android emulator. e.g. /system/bin/

put the busybox to /system/bin, so
you can see busybox tool in the extracted file system.

5. open a
google android shell command window:

# adb
shell

6. change the busybox mode to 555:

# chmod 555 /system/bin/busybox

7. create
the tarball for /system and /data:

#
busybox tar cvf /system.tar /system

# busybox tar cvf /data.tar /data

8. pull
the tarball file from the google android emulator:

# adb pull system.tar /system.tar

# adb pull data.tar /data.tar

a note:
when you want run google android on your truely hardware, the data.tar is not a
must.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: