Disable & enable Android's media scanner

   1 # Disable
   2 adb shell
   3 su
   4 pm disable com.android.providers.media/com.android.providers.media.MediaScannerReceiver
   5 
   6 # Enable
   7 pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver

Source: http://geeknizer.com/fix-android-media-server-scanner-sdcard-cpu-battery-drain/

Create .nomedia files underneath a directory hierarchy

find ./ -mindepth 1 -type d -exec echo touch \"{}/.nomedia\" \;


CategoryCheatSheet

SamatsWiki: CheatSheet/Android (last edited 2016-03-02 00:00:18 by SamatJain)