In fact, in the process of making the flash package, sometimes there is no official or third-party
rescue brick
package (wire brush), what should I do?
There are two conventional methods: (here is the conventional method, the way of reading back is not explained)
1. Card swipe package to wire swipe package
2. dd command to export partition image (requires ROOT permission)
Normal card swipe package decompression and open such a file:
Actually, it is very simple, refer to Tutorial :
Card swipe package to line swipe package tool, new support for 6.0 and above
, you can generate what you want The required system.img image
Method
2, dd command to export the partition image (requires ROOT permission) Assuming there is no official card to swipe the package, you can still export it through the dd command, first make sure that your phone has ROOT permission or a third-party recovery
first , if you have ROOT permission, you will be in boot mode. If you have flashed a third-party recovery, you will enter recovery mode.
Then
. Open the CMD command line and enter: ( The actual path of /dev/block/platform/*/*/by-name may be different, you can manually cd to check the exact path )
copy code
The query partition path is:
copy code
Query the partition path of the system partition as /dev/block/mmcblk0p23. If you want to export the system partition, execute the boot status from the command line :
copy code
recovery mode:
copy code
Finally, the phone selects MTP mode, that is, as long as the computer can recognize your internal storage, you can copy the system.img image file in the phone
There are two conventional methods: (here is the conventional method, the way of reading back is not explained)
1. Card swipe package to wire swipe package
2. dd command to export partition image (requires ROOT permission)
Hide the contents of this post
Method 1: Card swipe package transfer line swipe packageNormal card swipe package decompression and open such a file:
Actually, it is very simple, refer to Tutorial :
Card swipe package to line swipe package tool, new support for 6.0 and above
, you can generate what you want The required system.img image
Method
2, dd command to export the partition image (requires ROOT permission) Assuming there is no official card to swipe the package, you can still export it through the dd command, first make sure that your phone has ROOT permission or a third-party recovery
first , if you have ROOT permission, you will be in boot mode. If you have flashed a third-party recovery, you will enter recovery mode.
Then
. Open the CMD command line and enter: ( The actual path of /dev/block/platform/*/*/by-name may be different, you can manually cd to check the exact path )
- adb shell "ls -l /dev/block/platform/*/*/by-name"
- lrwxrwxrwx root root 2014-01-01 09:42 DDR -> /dev/block/mmcblk0p19
- lrwxrwxrwx root root 2014-01-01 09:42 aboot -> /dev/block/mmcblk0p4
- lrwxrwxrwx root root 2014-01-01 09:42 abootbak -> /dev/block/mmcblk0p5
- lrwxrwxrwx root root 2014-01-01 09:42 boot -> /dev/block/mmcblk0p22
- lrwxrwxrwx root root 2014-01-01 09:42 cache -> /dev/block/mmcblk0p24
- lrwxrwxrwx root root 2014-01-01 09:42 config -> /dev/block/mmcblk0p28
- lrwxrwxrwx root root 2014-01-01 09:42 fsc -> /dev/block/mmcblk0p16
- lrwxrwxrwx root root 2014-01-01 09:42 fsg -> /dev/block/mmcblk0p20
- lrwxrwxrwx root root 2014-01-01 09:42 hyp -> /dev/block/mmcblk0p10
- lrwxrwxrwx root root 2014-01-01 09:42 hypbak -> /dev/block/mmcblk0p11
- lrwxrwxrwx root root 2014-01-01 09:42 keystore -> /dev/block/mmcblk0p27
- lrwxrwxrwx root root 2014-01-01 09:42 misc -> /dev/block/mmcblk0p15
- lrwxrwxrwx root root 2014-01-01 09:42 modem -> /dev/block/mmcblk0p1
- lrwxrwxrwx root root 2014-01-01 09:42 modemst1 -> /dev/block/mmcblk0p13
- lrwxrwxrwx root root 2014-01-01 09:42 modemst2 -> /dev/block/mmcblk0p14
- lrwxrwxrwx root root 2014-01-01 09:42 oem -> /dev/block/mmcblk0p29
- lrwxrwxrwx root root 2014-01-01 09:42 pad -> /dev/block/mmcblk0p12
- lrwxrwxrwx root root 2014-01-01 09:42 persist -> /dev/block/mmcblk0p25
- lrwxrwxrwx root root 2014-01-01 09:42 recovery -> /dev/block/mmcblk0p26
- lrwxrwxrwx root root 2014-01-01 09:42 rpm -> /dev/block/mmcblk0p6
- lrwxrwxrwx root root 2014-01-01 09:42 rpmbak -> /dev/block/mmcblk0p7
- lrwxrwxrwx root root 2014-01-01 09:42 sbl1 -> /dev/block/mmcblk0p2
- lrwxrwxrwx root root 2014-01-01 09:42 sbl1bak -> /dev/block/mmcblk0p3
- lrwxrwxrwx root root 2014-01-01 09:42 sec -> /dev/block/mmcblk0p21
- lrwxrwxrwx root root 2014-01-01 09:42 splash -> /dev/block/mmcblk0p18
- lrwxrwxrwx root root 2014-01-01 09:42 ssd -> /dev/block/mmcblk0p17
- lrwxrwxrwx root root 2014-01-01 09:42 system -> /dev/block/mmcblk0p23
- lrwxrwxrwx root root 2014-01-01 09:42 tz -> /dev/block/mmcblk0p8
- lrwxrwxrwx root root 2014-01-01 09:42 tzbak -> /dev/block/mmcblk0p9
- lrwxrwxrwx root root 2014-01-01 09:42 userdata -> /dev/block/mmcblk0p30
Query the partition path of the system partition as /dev/block/mmcblk0p23. If you want to export the system partition, execute the boot status from the command line :
- adb shell su -c "dd if=/dev/block/mmcblk0p23" of=/sdcard/system.img
recovery mode:
- adb shell "dd if=/dev/block/mmcblk0p23" of=/sdcard/system.img
Finally, the phone selects MTP mode, that is, as long as the computer can recognize your internal storage, you can copy the system.img image file in the phone