Can we really restore such a backup with fastboot flash?
I backup my phone into an image file like this in linux as root (but advised is to use sudo instead of being root):
Also keep in mind A WRONG MANIPULATION/COMMND CAN RUIN YOUR PHONE or at least YOUR OS !!!
- Turn off the phone
- Insert an ext3/4 formatted uSD >= 32GB
- Hold upper Vol key while plugging to the computer
- cd to the directory where you unpacked SFOS when you flashed it
fastboot boot ./hybris-recovery.img
# boot your phone in recovery mode- Wait some seconds
telnet 10.42.66.66
# Connect to your phone- Choice #3
- Agree you void the warranty
- Enter your device lock
mount /dev/mmcblk1p1 /mnt
#mount the uSD
Depending on your phone, the partition will be different.
Here, mmcblk0p76 is for XA2.
dd if=/dev/mmcblk0p76 of=/mnt/the_file_name_you_want.img bs=16M
# takes 20-30 minutes
In the case of the XA2, the output at the end of dd operation is:
1280+0 records in
1280+0 records out
21474836480 bytes (20.0GB) copied, 797.893119 seconds, 25.7MB/s
- umount /mnt
- Choose 6 to exit
- Hold Vol Up + Power to reboot your phone
Now, you have the image containing the rootfs with encrypted home on your uSD.
Can really this image be flashed instead of doing all the above (but reversed) to restore?