Search code examples
adb

How can I push multiple files using ADB?


I had pulled the whole /data/ directory onto %USERPROFILE%\Desktop\DATA, and now would like to put it back in. How would I push all the files in \DATA to /data/ on my phone? I certainly could do it one at a time, but that is very slow.

Wildcards do not work, such as:

adb push * /data/


Solution

  • To push all the files back in /data/ just use:

    adb push %USERPROFILE%\Desktop\DATA /data/
    

    This will push all the files in the %USERPROFILE%\Desktop\DATA folder in the destination specified.