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

后端 未结 13 1702
南笙
南笙 2020-12-04 07:44

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         


        
13条回答
  •  情深已故
    2020-12-04 08:00

    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 :

    • 1) ./adb shell (hit return/enter)
    • 2) cd -(hit return/enter)

    now you will see the list of Directories and files from your android device there you may find /sdcard as well as /storage

    • 3) cd /storage (hit return/enter)
    • 4) ls (hit return/enter)

    you may see sdcard0 (generally sdcard0 is internal storage) and sdcard1 (if External SDCard is present)

    • 5) exit (hit return/enter)

    to come out of adb shell

    • 6) ./adb push '/Users/SML/Documents/filename.zip' /storage/sdcard0/path_to_store/ (hit return/enter)

    to copy file

提交回复
热议问题