Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
364 views
in Technique[技术] by (71.8m points)

android - How to use adb command to push a file on device without sd card

How to push a file from computer to an Android device having no SD Card in it. I tried:

C:anand>adb push anand.jpg /data/local
3399 KB/s (111387 bytes in 0.032s)

C:anand>adb push anand.jpg /data/opt
3199 KB/s (111387 bytes in 0.034s)

C:anand>adb push anand.jpg /data/tmp
3884 KB/s (111387 bytes in 0.028s)

Above commands to move a file anand.jpg to a device but I didn't get this jpg file in the device. I didn't get any success result on cmd prompt, I only got:

3399 KB/s (111387 bytes in 0.032s).
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

From Ubuntu Terminal, below works for me.

./adb push '/home/hardik.trivedi/Downloads/one.jpg' '/data/local/'

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...