Refresh Android mediastore using adb

前端 未结 5 943
鱼传尺愫
鱼传尺愫 2020-12-04 08:42

I\'m using adb to sync music on an android phone. Essentially, I rm the existing music directory and push replacement music files.

I\'d like to be able to use adb to

5条回答
  •  -上瘾入骨i
    2020-12-04 09:13

    The rescan apps use a media mount intent to kick off the media scanner. You can use am broadcast to send the same intent.

    The command is:

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

提交回复
热议问题