-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathi5800backup
33 lines (21 loc) · 937 Bytes
/
i5800backup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
adb forward tcp:5555 tcp:5555
mkdir /sys_
mount -o rw -t ext4 /dev/block/mmcblk0p16 /sys_
cp /sys_/xbin/busybox /system
umount /sys_
/system/busybox nc -l -p 5555 -e /system/busybox dd if=/dev/block/mmcblk0
#restore
adb forward tcp:5555 tcp:5555
cat mmcblk0.raw | pv -i 0.5 | nc 127.0.0.1 5555
/system/busybox nc -l -p 5555 -e /system/busybox dd of=/dev/block/mmcblk0
/system/busybox nc -l -p 5555 -e /system/busybox dd of=/dev/block/mmcblk1;
/system/busybox nc -l -p 5555 -e /system/busybox dd of=/dev/block/mmcblk0
#backup i5800
busybox nc -l -p 5555 -e dd if=/dev/block/stl4
nc 127.0.0.1 5555 | pv -i 0.5 > efs.rfs
busybox nc -l -p 5555 -e dd if=/dev/block/stl6
nc 127.0.0.1 5555 | pv -i 0.5 > factoryfs.rfs
busybox nc -l -p 5555 -e dd if=/dev/block/bml5
nc 127.0.0.1 5555 | pv -i 0.5 > zImage
busybox nc -l -p 5555 -e dd if=/dev/block/bml10
nc 127.0.0.1 5555 | pv -i 0.5 > modem.bin