Use adb to backup your stock rom
(Make sure to have enabled usb debugging
)
How to:
- Run adb shell and then su and accept the root access dialog
- Then run 'ls -al /dev/block/platform/msm_sdcc.1/by-name' to get the partition table (we need to find the location of boot and system)
- Run 'dd if=/dev/block/mmcblk0px of=/sdcard/boot.img' replace the x in mmcblk0px with the corresponding number of the boot partition, for example, for my device it is 14. Now we have backed up the kernel (boot).
- Run 'dd if=/dev/block/mmcblk0px of=/sdcard/system.img' and replace the x in mmcblk0px with the corresponding number of the system, for example, for my device it is 23. Now we have backed up the system.
How to restore:
- You can use fastboot flash (fastboot flash boot boot.img and fastboot flash system system.img)
- You can use adb (dd if=/sdcard/boot.img of=/dev/block/mmcblk0px and replace x with the corresponding partition bla bla you know
)
Good luck