Teach you a simple way to extract the system image from the mobile phone to make a line to save the brick package

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) 


Hide the contents of this post

Method 1: Card swipe package transfer line swipe package
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 )
  1. adb shell "ls -l /dev/block/platform/*/*/by-name"
copy code
The query partition path is:
  1. lrwxrwxrwx root     root              2014-01-01 09:42 DDR -> /dev/block/mmcblk0p19

  2. lrwxrwxrwx root     root              2014-01-01 09:42 aboot -> /dev/block/mmcblk0p4

  3. lrwxrwxrwx root     root              2014-01-01 09:42 abootbak -> /dev/block/mmcblk0p5

  4. lrwxrwxrwx root     root              2014-01-01 09:42 boot -> /dev/block/mmcblk0p22

  5. lrwxrwxrwx root     root              2014-01-01 09:42 cache -> /dev/block/mmcblk0p24

  6. lrwxrwxrwx root     root              2014-01-01 09:42 config -> /dev/block/mmcblk0p28

  7. lrwxrwxrwx root     root              2014-01-01 09:42 fsc -> /dev/block/mmcblk0p16

  8. lrwxrwxrwx root     root              2014-01-01 09:42 fsg -> /dev/block/mmcblk0p20

  9. lrwxrwxrwx root     root              2014-01-01 09:42 hyp -> /dev/block/mmcblk0p10

  10. lrwxrwxrwx root     root              2014-01-01 09:42 hypbak -> /dev/block/mmcblk0p11

  11. lrwxrwxrwx root     root              2014-01-01 09:42 keystore -> /dev/block/mmcblk0p27

  12. lrwxrwxrwx root     root              2014-01-01 09:42 misc -> /dev/block/mmcblk0p15

  13. lrwxrwxrwx root     root              2014-01-01 09:42 modem -> /dev/block/mmcblk0p1

  14. lrwxrwxrwx root     root              2014-01-01 09:42 modemst1 -> /dev/block/mmcblk0p13

  15. lrwxrwxrwx root     root              2014-01-01 09:42 modemst2 -> /dev/block/mmcblk0p14

  16. lrwxrwxrwx root     root              2014-01-01 09:42 oem -> /dev/block/mmcblk0p29

  17. lrwxrwxrwx root     root              2014-01-01 09:42 pad -> /dev/block/mmcblk0p12

  18. lrwxrwxrwx root     root              2014-01-01 09:42 persist -> /dev/block/mmcblk0p25

  19. lrwxrwxrwx root     root              2014-01-01 09:42 recovery -> /dev/block/mmcblk0p26

  20. lrwxrwxrwx root     root              2014-01-01 09:42 rpm -> /dev/block/mmcblk0p6

  21. lrwxrwxrwx root     root              2014-01-01 09:42 rpmbak -> /dev/block/mmcblk0p7

  22. lrwxrwxrwx root     root              2014-01-01 09:42 sbl1 -> /dev/block/mmcblk0p2

  23. lrwxrwxrwx root     root              2014-01-01 09:42 sbl1bak -> /dev/block/mmcblk0p3

  24. lrwxrwxrwx root     root              2014-01-01 09:42 sec -> /dev/block/mmcblk0p21

  25. lrwxrwxrwx root     root              2014-01-01 09:42 splash -> /dev/block/mmcblk0p18

  26. lrwxrwxrwx root     root              2014-01-01 09:42 ssd -> /dev/block/mmcblk0p17

  27. lrwxrwxrwx root     root              2014-01-01 09:42 system -> /dev/block/mmcblk0p23

  28. lrwxrwxrwx root     root              2014-01-01 09:42 tz -> /dev/block/mmcblk0p8

  29. lrwxrwxrwx root     root              2014-01-01 09:42 tzbak -> /dev/block/mmcblk0p9

  30. lrwxrwxrwx root     root              2014-01-01 09:42 userdata -> /dev/block/mmcblk0p30
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 :



  1. adb shell su -c "dd if=/dev/block/mmcblk0p23" of=/sdcard/system.img
copy code



recovery mode:
  1. adb shell "dd if=/dev/block/mmcblk0p23" of=/sdcard/system.img
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





Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324696412&siteId=291194637