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

后端 未结 13 1713
南笙
南笙 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 07:53

    As there are different paths for different versions. Here is a generic solution:

    Find the path...

    1. Enter adb shell in command line.
    2. Then ls and Enter.

    Now you'll see the files and directories of Android device. Now with combination of ls and cd dirName find the path to the Internal or External storage.

    In the root directory, the directories names will be like mnt, sdcard, emulator0, etc

    Example: adb push file.txt mnt/sdcard/myDir/Projects/

提交回复
热议问题