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

后端 未结 13 1733
南笙
南笙 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:08

    You are trying to write to system folders. With ADB you have root (admin) access so you see the system folders of which sdcard is one of them so to send a picture you could use

    D:\Program Files\Android\sdk\platform-tools\adb push am files\android sdk\adb.exe push C:\Downloads\anand.jpg /sdcard/pictures/

    NB: C:\Downloads\anand.jpg replace with path and name to picture..

提交回复
热议问题