title: Refresh Android mediastore using adb
body: <p>I'm using adb to sync music on an android phone. Essentially, I rm the existing music directory and push replacement music files.</p>
  
  <p>I'd like to be able to use adb to force a rescan, so that the google music player (and other apps) works properly with the new songs and playlists.</p>
  
  <p>According to <a href="https://stackoverflow.com/questions/3300137/how-can-i-refresh-mediastore-on-android">How can I refresh MediaStore on Android?</a> you can force a rescan by broadcasting an appropriate intent.</p>
  
  <p>adb provides 'shell am broadcast', which would seem to allow me to force a rescan from adb.</p>
  
  <p>Alternatively I could run a rescan app or reboot, but I'd like to trigger the rescan from adb</p>
  
  <p>What adb command should I issue?  The music files and playlists are all in /sdcard/music.</p>