Post Reply

[Q]the right way to backup system.img, boot.img & recovery.img?

18th June 2014, 07:55 AM   |  #1  
OP Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: Aug 2013
Well I got a device named K-touch w95 which is not pop enough to get support from net. I'm trying to customize my own ROM (just simply add boot animation & remove some unnecessary software from system) by using kitchen.

this is my method to backup.
i worked on with "adb shell" follow by "su" (of course I rooted the device)

2 /system ext4 /dev/block/platform/sdhci.1/by-name/system (null) 0
6 /boot emmc /dev/block/platform/sdhci.1/by-name/boot (null) 0
7 /recovery emmc /dev/block/platform/sdhci.1/by-name/recovery (null) 0
This is the info that i get from recovery last log, so I just simply use
"cat /dev/block/platform/sdhci.1/by-name/system > /sdcard/system.img"
"cat /dev/block/platform/sdhci.1/by-name/boot > /sdcard/boot.img"
"cat /dev/block/platform/sdhci.1/by-name/recovery > /sdcard/recovery.img"
to backup my system boot & recovery. Am I doing right?

Quote:

shell@android:/ # cat /cache/recovery/last_log
cat /cache/recovery/last_log
Starting recovery on Sun Jan 2 19:19:59 2000
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null) 0
1 /sdcard vfat /dev/block/mmcblk1p1 (null) 0
2 /system ext4 /dev/block/platform/sdhci.1/by-name/system (null) 0
3 /data ext4 /dev/block/platform/sdhci.1/by-name/userdata (null) -16384
4 /cache ext4 /dev/block/platform/sdhci.1/by-name/cache (null) 0
5 /misc emmc /dev/block/platform/sdhci.1/by-name/misc (null) 0
6 /boot emmc /dev/block/platform/sdhci.1/by-name/boot (null) 0
7 /recovery emmc /dev/block/platform/sdhci.1/by-name/recovery (null) 0
8 /u-boot emmc /dev/block/platform/sdhci.1/by-name/u-boot (null) 0
9 /dt-blob emmc /dev/block/platform/sdhci.1/by-name/dt-blob (null) 0
10 /cp-boot emmc /dev/block/platform/sdhci.1/by-name/cp-boot (null) 0
11 /cp-image emmc /dev/block/platform/sdhci.1/by-name/cp-image (null) 0
12 /dsp-dram emmc /dev/block/platform/sdhci.1/by-name/dsp-dram (null) 0
13 /dsp-pram emmc /dev/block/platform/sdhci.1/by-name/dsp-pram (null) 0
14 /sys-parm-ind emmc /dev/block/platform/sdhci.1/by-name/sys-parm-ind (null)
0
15 /parm-spml-ind emmc /dev/block/platform/sdhci.1/by-name/parm-spml-ind (null
) 0
16 /kernel-dtb emmc /dev/block/platform/sdhci.1/by-name/kernel-dtb (null) 0

locale is [zh_CN]
can't open /dev/tty0: No such file or directory
framebuffer: fd 3 (480 x 854)
ioctl(): blank: Invalid argument
ioctl(): blank: Invalid argument
installing_text: zh_CN (240 x 38 @ 1818)
erasing_text: zh_CN (128 x 38 @ 1521)
no_command_text: zh_CN (92 x 38 @ 1521)
error_text: zh_CN (98 x 38 @ 1521)
Command: "/sbin/recovery"

ro.boot.console=ttyS0
ro.boot.mode=recovery
ro.boot.serialno=D5606A1271706923
ro.serialno=D5606A1271706923
ro.bootmode=recovery
ro.baseband=unknown
ro.bootloader=unknown
ro.hardware=w95_mb_p3
ro.revision=0
ro.factorytest=0
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
persist.sys.usb.config=mtp,adb
persist.brcm.log=auto
persist.brcm.cp_crash=auto
persist.brcm.ap_crash=auto
persist.brcm.force_ramdump=0
ro.build.id=JDQ39
ro.build.display.id=JDQ39
ro.build.version.incremental=3.26.0_BCM21664Garnet TK_CustomerRel_5.3.9_08
ro.build.version.sdk=17
ro.build.version.codename=REL
ro.build.version.release=4.2.2
ro.build.date=Tue Jul 9 05:44:12 PDT 2013
ro.build.date.utc=1373373852
ro.build.type=user
ro.build.user=mobcom_ec
ro.build.host=lc-sj1-4131
ro.build.tags=release-keys
ro.product.model=K-Touch W95
ro.product.brand=K-Touch
ro.product.name=hawaii_garnet_c_5606
ro.product.device=hawaii_garnet_c_5606
ro.product.board=hawaii
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=K-Touch
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=hawaii
ro.build.product=hawaii_garnet_c_5606
ro.build.characteristics=default
ro.max_fb_resolution=1280x720
rild.libpath=/system/lib/libbrcm_ril.so
ro.sf.lcd_density=240
ro.product.multi_touch_enabled=true
ro.product.max_num_touch=2
ro.wifi.band_2g_only=true
awesome.lateness=200
gralloc.use_sync_mode=true
nuplayer.eos.timeout=3
drm.service.enabled=true
sf.metadata_use_plat_sw_codecs=1
sf.metadata_retrv_hw_codecs=1
persist.audio.pcmout1.sweq=ON
persist.audio.pcmout2.sweq=ON
init.svc.adbd=running
persist.sys.pdp.FdnCtrl=false
persist.sys.panic.dump.debug=0
ro.config.builtin_cdrom=false
persist.sys.timezone=Asia/Shanghai
ro.config.ringtone_standby=Ring_Digital_02.ogg
ro.config.ringtone_2=Ring_Synth_04.ogg
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.notification_sound=pixiedust.ogg
persist.sys.language=zh
ro.storage.internal.reserved.mb=50
ro.config.fontscale=1
persist.sys.country=CN
ro.config.alarm_alert=Alarm_Classic.ogg
persist.sys.sms_spec_num=10655459,10655464
dalvik.vm.jniopts=warnonly
ro.bt.bdaddr_path=/data/misc/bluetooth/btmac.txt
ro.opengles.version=131072
wifi.interface=wlan0
wifi.supplicant_scan_interval=15
ro.com.android.dataroaming=false
dalvik.vm.heapstartsize=5m
dalvik.vm.heapgrowthlimit=48m
dalvik.vm.heapsize=128m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=2m
keyguard.no_require_sim=true
ro.com.android.dateformat=MM-dd-yyyy
ro.carrier=unknown
dalvik.vm.dexopt-flags=m=y
net.bt.name=Android
net.change=net.bt.name
dalvik.vm.stack-trace-file=/data/anr/traces.txt
init.svc.ueventd=running
ro.wap.push=1
persist.sys.cmas.enable=0
ro.dual.sim.phone=1
persist.sys.bpmsetting.enable=1
persist.sys.pt.psnr=36.0
persist.sys.pt.isl290xx_cal=25
persist.sys.pt.u460011729609975=1
persist.sys.pt.pregd=1
init.svc.recovery=running

I:Saving locale "zh_CN"

/res/string_utf8.txt

num:33
count1
count2
count3
count4
count5
count6
count7
count8
count9
count10
count11
count12
count13
count14
count15
count16
count17
count18
count19
count20
count21
count22
count23
count24
count25
count26
count27
count28
count29
count30
count31
count32

/res/string_utf8.txt

num:2
count1
I:Saving locale "zh_CN"

below is additional info from my device. perhaps it useful to you.

Quote:

shell@android:/ # df
df
Filesystem Size Used Free Blksize
/dev 232M 32K 232M 4096
/storage 256K 0K 256K 4096
/mnt/secure 232M 0K 232M 4096
/mnt/asec 232M 0K 232M 4096
/mnt/obb 232M 0K 232M 4096
/system 688M 507M 180M 4096
/cache 147M 5M 142M 4096
/data 1004M 141M 863M 4096
/storage/emulated/legacy 1G 1M 1G 4096
/mnt/secure/asec 1G 1M 1G 4096
/storage/sdcard1 3G 1M 3G 32768

Quote:

shell@android:/ # cat /proc/partitions
cat /proc/partitions
major minor #blocks name

179 0 3784704 mmcblk0
179 1 64 mmcblk0p1
179 2 64 mmcblk0p2
179 3 64 mmcblk0p3
179 4 128 mmcblk0p4
179 5 512 mmcblk0p5
179 6 64 mmcblk0p6
179 7 64 mmcblk0p7
179 8 64 mmcblk0p8
179 9 128 mmcblk0p9
179 10 32 mmcblk0p10
179 11 13312 mmcblk0p11
179 12 1024 mmcblk0p12
179 13 512 mmcblk0p13
179 14 2048 mmcblk0p14
179 15 1024 mmcblk0p15
179 16 256 mmcblk0p16
179 17 4 mmcblk0p17
179 18 4 mmcblk0p18
179 19 4 mmcblk0p19
179 20 10240 mmcblk0p20
179 21 8192 mmcblk0p21
179 22 256 mmcblk0p22
179 23 153600 mmcblk0p23
179 24 5120 mmcblk0p24
179 25 716800 mmcblk0p25
179 26 1046528 mmcblk0p26
179 27 2048 mmcblk0p27
179 28 1780736 mmcblk0p28
179 29 23552 mmcblk0p29
179 30 256 mmcblk0p30
179 31 512 mmcblk0p31
179 96 2048 mmcblk0rpmb
179 64 2048 mmcblk0boot1
179 32 2048 mmcblk0boot0
253 0 131072 zram0
179 128 3872256 mmcblk1
179 129 3868160 mmcblk1p1

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Q&A, Help & Troubleshooting by ThreadRank