2

Does adb pull verify files automatically? For instance, does it check the hash/checksum of pulled files to see whether they were pulled correctly? I'm guessing it does, but I haven't found an answer online.

If not, I can write a bash script (Linux) for it and post it in an answer.

  • 3
    This link about verify your file's MD5 checksums! might be helpful for verifying your file integrity after the adb pull command. As mentioned on that post, You can actually view a file's MD5 checksum using Astro File Manager (i.e., via viewing a file's details) and the command adb shell md5sum FILE also seems to be helpful to check the checksum of a file. Read more on the above mentioned link for other methods too ;) – Lucky Jul 28 '15 at 18:16
2

From what I have seen so far (and I use adb pull very often), there is no verification process going on.
If a file, that has been pulled, is corrupted, you will get no notification about it whatsoever.

2

I wrote a Bash (Linux) script that runs adb pull and then compares the md5sums of the pulled files with the original files. If the md5sums don't match, the script will automatically remove the corrupted pulled files and then retry adb pull again. I put the script on Pastebin here (thanks to the tip from GiantTree).

  • 1
    Could you upload it to pastebin as well, so users can see the script instantly without downloading it first? – GiantTree Jul 29 '15 at 15:00
  • Hey I can't believe I didn't think to do that! Sure! – GreenRaccoon23 Jul 30 '15 at 2:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.