I want to push some files of the same type (.img) to the /sdcard partition of the phone with a single command. But the wildcard does not work:
adb push *.img /sdcard/
Is there any way I can achieve that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Copy the
*.imgfiles to an empty directory, then push the directory (adb push /tmp/images /storage/sdcard0).adbwill push all files in that directory to your designated location.BTW,
/sdcardas a path has been obsolete for quite some time, so please make sure you use a destination that exists and is supported by your device. Most Android 2.x/3.x/4.0 devices use/mnt/sdcard; Android 4.1 uses/storage/sdcard0.