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

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

    Certain versions of android do not fire proper tasks for updating the state of file system. You could trigger an explicit intent for updating the status of the file system. (I just tested after being in the same OP's situation)

    adb shell am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///
    

    (You could pass a specific filepath instead of file:/// like file:///sdcard )

    0 讨论(0)
提交回复
热议问题