Posted on

How to pull your own Stock Android Firmware off of your device with TWRP recovery and a couple little tricks click show more to see all the links needed below

Check out PhonLab E-Campus, if you want to learn tons more about Phone repairs tips and tricks to help you repair smartphones. Use coupon code rootjunky9 at check out to get a nice discount.

Unlocked bootloader
TWRP recovery
adb and fastboot files on your computer.

Example of Commands
dd if=/dev/block/mmcblk0p15 of=/sdcard/boot.img
dd if=/dev/block/mmcblk0p16 of=/sdcard/recovery.img
dd if=/dev/block/mmcblk0p19 of=/sdcard/system.img

exit adb shell then run

adb pull /sdcard/boot.img
adb pull /sdcard/recovery.img
adb pull /sdcard/system.img

Link to adb and fastboot files if needed

Link to matts system info pulling tool and notepad++

link to official TWRP recovery page you can download it for your device here

Check out my RootJunky android app here at Google Play store

5 Things you need to know before rooting or hacking your android device

How to install Android Device drivers
Why Root Android devices video
Universal UnRoot App for all Devices
My New Downloads Page is here
Warning… do this at your own risk. I am not responsible for what you do to your device.
I am happy to help with any problems my subscribers are having on their android devices. I am going to need lots of info from you to be able to help. Because of the large amount of messages I get every day I will not answer any questions that do not include this info in the message thanks for understanding. 1. What device you have. 2. What android version you are running. 3. What rom stock or custom rom / build number in about phone. 4. What you have done to the device. 5. Recovery stock, TWRP. CWM . With this info I will be able to help. 


45 Replies to “How to pull your own stock Android firmware from your device”

  1. For me the information.bat wasn't working but this worked to get partitions —-> ls -la /dev/block/platform/soc/1da4000.ufshc/by-name/
    Check which file is in the folder /dev/block/platform/soc/?????.ufshc/ and replace with the filename in the code above then add /by-name/ after. For me it was 1da4000.ufshc in the soc folder

  2. on Samsung all stock recovery and settings on default and firmware stock too. no developer option etc no custom recovery and stuck on boot logo can i save my data ? not even rooted too

  3. my user data is more than 16 gb and cant be save to sd card i want it to directly store in c pc i tried this command but not working kindly tell me command to save in pc folder directly or zip compress the file dd if=/dev/block/mmcblk0p29 > C:pawan.img

  4. saving file in internal memory dd if=/dev/block/mmcblk0p20 of=/sdcard/boot.img not on sd card do we have to mount it or any other command

  5. i have android lolipop 5.1 urgent help i want to change default installation location to sd card its currently internal memory or format sd card as internal memory i have founded the commands of SM FOR DOING it for it do i have to root the mobile can it be possible with same trick to run sm and root coomand with fastboot boot recovery.img i need su rights for that how to do if u have some video on it plz do help me

  6. nice successful have to edit and changed ls command in batch file for the device location
    thanx superb way without rooting

  7. adb shell of recovery SU command is not working its showing su:not found is the reason that its not working should we load su if yes then how we can add su in the recovery file

  8. URGENT kindly help When i run batch file i get all data pulled but in the folder moreinfo file msm_partitions.txt show only one line ls: /dev/block/platform/msm_sdcc.1/by-name/: No such file or directory i debugged batch file and found in adb shell of recovery SU command is not working its showing su:not found is the reason that its not working should we load su if yes then how we can add su in the recovery file

  9. hello, i use android box device, could you please give me some intructions for pulling firmware, bootloader and recovery from the box. Thank you very much

  10. Hi. I have an issue… Need help !!!

    Have a oneplus one, LineageOS 15.1, twrp

    Need to make full backup, but no enough free memory. Try to twrp direct to pc(win 10)

    Did adb device, and I see my phone..OK

    But when I try:
    adb backup –twrp

    Did not work. Shows back a error:

    adb unable to connect for backup: device '(null)' not found


    need help !!!

  11. when i run 'fastboot boot recovery.img', it only displays 'USB Transmission OK' but doesn't boot TWRP. phone got disconnected from PC even though i didn't unplug it, so i cannot do 'adb' nor 'fastboot' unless i restart the phone.

    anyone has any idea how to resolve this?

  12. I hope to add TVs and digital Seinish I have two devices Navori stix3500 one of them has damage in Android and I can not pull the Android from the other device because of lack of information in the Internet

  13. thank you for all that you do to keep us informed ..ive wanted to root my galaxy prime SM-G530T1 for some time now , but have been nervous that i m ay not be able to restore it if i messed up .. .. i will be following the steps in this video , it will be great to have the original system already in place / saved .. your videos / website have been a big help in the past .. thanks again ..

  14. Is it possible to use these stock firmwares to root if there is no custom onesout yet for a newer device

  15. hi, i tried booting twrp via your method, on my unlocked bootloader HTC U11 with Android 7.1.1, failed….How to solve this problem ?

  16. So I want to clone either my Note4 or Note8 to revive my non-charging Note7 (All ATT). Is this a viable approach? Please PM at Gmail. Thx

  17. i need to recover my stock recovery for Y7 Prime 2017 ( trt-l21ac185b184) i want to delete custom recovery so i need ur help from where i get recovery.img & how i backup everything & firmware download can u help

  18. You need a prerequisitment statement for your tutorial, because the majority of devices cannot be easily used.
    1. Is your bootloader unlocked? if yes continue.

  19. Can't we pull boot img directly by giving this command….
    adb pull /Dev/block/mmcblk0p15
    & Skip the extra line goes saving it to sdcard.

  20. Junkyroot
    Pretty good video but difficult to follow step I like your all video Thanks.
    I have Lenovo k8 note working can i clone with my other Lenovo K8 note phone?
    Thanks A lot

  21. Excellent thanks man. I knew that you'd have this info the moment I found myself in need. You cone thru everytime. Appreciate it.

  22. I would like to ask if you pull out your boot.img via adb fastboot need root access or not? thanks if you reply 🙂

  23. It was really awesome. It is in next level.All videos regarding pulling of stock are shit if this video is considered of this. It was the best video. I loved it

  24. Hi Rootjunky, Just to let you and other people know: I copied the pulled system.img back to my tablet with the reverse of the procedure demonstrated by you above (i.e. dd if=/sdcard1/system.img of=/dev/block/mmcblk0p25). This was needed after the tablet came back from a hardware repair with the factory android image installed on it, which was one version lower. This all worked like a charm. For the pulled boot.img and recovery.img I had successfully used fastboot, e.g. fastboot flash boot boot.img (both Android 8). However, now the tablet wouldn't start the System, since the System (Android 7) apparently wasn't compatible with new flashed boot. Trying to flash system.img however, it appeared that fastboot does not accept such a big file (even using fastboot -S 512M flash system system.img does not do the job). Fastboot complains that there is an invalid sparse file header, so you need to provide a correct sparse file. For creating one, I tried using SparseConverter (the software you demonstrated in another of your tech video's) and I just zipped the output. This also produced an error message, so apparently it's a lack of knowledge of how to go about it and I got stuck… Then I did the above mentioned dd exercise, for which someone else had written that it had bricked his phone. But with your TWRP procedure it just works fine !

    Rootjunky, Would you happen to know how to use the output of SparseConverter correctly, or any other procedure to create a sparse file from a pulled system.img file ?

    Thanks again for providing us with all these wonderful tools and tricks, with which we are able to get ourselves out of nasty situations !

Leave a Reply

Your email address will not be published. Required fields are marked *