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\" \;

Backups

   1 # Immediately trigger backup to Google Drive
   2 adb shell bmgr backupnow --all


CategoryCheatSheet

SamatsWiki: CheatSheet/Android (last edited 2018-08-17 05:07:10 by SamatJain)