Push a file to your Android device The format starts with the command adb push, then adds the local location of the file and the location on device you want to save to. To keep it absolutely simple, let's just put that video file back on the device. Hit enter, of course, and watch your files fly.
Open cmd type adb shell then press enter. Type ls to view files list.
From Ubuntu Terminal, below works for me.
./adb push '/home/hardik.trivedi/Downloads/one.jpg' '/data/local/'
I did it using this command:
syntax: adb push filename.extension /sdcard/0/
example: adb push UPDATE-SuperSU-v2.01.zip /sdcard/0/
Follow these steps :
go to Android Sdk then 'platform-tools' path on your Terminal or Console
(on mac, default path is : /Users/USERNAME/Library/Android/sdk/platform-tools)
To check the SDCards(External and Internal) installed on your device fire these commands :
now you will see the list of Directories and files from your android device there you may find /sdcard as well as /storage
you may see sdcard0 (generally sdcard0 is internal storage) and sdcard1 (if External SDCard is present)
to come out of adb shell
to copy file
Sometimes you need the extension,
adb push file.zip /sdcard/file.zip
run below command firstly
adb root
adb remount
Then execute what you input previously
C:\anand>adb push anand.jpg /data/local
C:\anand>adb push anand.jpg /data/opt
C:\anand>adb push anand.jpg /data/tmp
Try this to push in Internal storage.
adb push my-file.apk ./storage/emulated/0/
Works in One plus device, without SD card.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With