PDA

View Full Version : Pulling System.img from the Galaxy Tablet



brandonc
02-26-2011, 07:28 PM
I am trying to pull the entire systems folder from the Galaxy Tab and build it into systems.img. This will allow me to have the full environment emulated through the emulator.

I have the device rooted and have spent hours going through countless guides to find how to do so.

Using yaffs2 and the following set of commands, it should be able to push the yaffs2 file to the device, run it and pull off the system image:

adb push mkfs.yaffs2 /data/misc/mkfs.yaffs2
adb shell
cd /data/misc
./mkfs.yaffs2 /system /system.img
adb pull /system.img ./system.img
PAUSE

I get permission errors when it tries to push the file over. If i use the local emulated device, it works just fine for pushing it over, but not pulling the systems img (probably because the local one is not rooted)

Can someone point me in the right direction to get the system folder properly extracted from the device?

Thanks!


Edit:
I rewrote the batch file and its working flawlessly on the emulator, but not on the actual device:


adb push mkfs.yaffs2 /data/misc/mkfs.yaffs2
adb shell chmod 777 /system
adb push emptysystem.img /system.img
adb shell chmod 777 /system.img
adb shell cd /data/misc
adb shell chmod 777 /data/misc/mkfs.yaffs2
adb shell ./data/misc/mkfs.yaffs2 /system /data/misc/system.img
adb pull /data/misc/system.img ./pulledsystem.img
PAUSE