Differences between revisions 2 and 3
Revision 2 as of 2016-03-02 00:00:18
Size: 547
Editor: SamatJain
Comment:
Revision 3 as of 2018-08-17 05:07:10
Size: 670
Editor: SamatJain
Comment: How to trigger Google Drive backup
Deletions are marked like this. Additions are marked like this.
Line 20: Line 20:

== Backups ==

{{{#!highlight sh
# Immediately trigger backup to Google Drive
adb shell bmgr backupnow --all
}}}

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)