1. Download our Official Android App: Forums for Android!

Support How to disable media scan on KitKat?

Discussion in 'Android Help' started by cdl, Aug 2, 2016.

  1. cdl

    cdl Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    445
    Joined:
    Feb 4, 2010

    Feb 4, 2010
    445
    59
    53
    Is there a way to disable media scan on KitKat? I have a rooted Sony Z3 with an external microsd card.

    I know there was an app for Gingebread, but I understand it's not compatible with Android 4+.

    I understand it used to be common to place a .nomedia empty file in folders not to be scanned, but is this still possible/does it still work now that Kitkat has made it harder to write to external SD cards?

    I am asking the question because android.process.media is draining my battery. I use poweramp as a music app and I have disabled background scanning, but something else must be triggering it.

    Thanks!
     

    Advertisement

  2. Bg260

    Bg260  
    VIP Member
    Rank:
     #32
    Points:
    763
    Posts:
    3,538
    Joined:
    Apr 30, 2016

    Apr 30, 2016
    3,538
    3,666
    763
    Male
    Freelance Entrepreneur
    Lincoln
    .nomedia still works fine.

    You're rooted! There are many options: http://forum.xda-developers.com/z3
    First, go to Playstore and get this app: https://play.google.com/store/apps/details?id=nextapp.sdfix&hl=en
    Follow the directions and your sdcard write problem is fixed.

    I think there is a terminal command something like:
    Code (Text):
    1. su
    2. pm disable com.android.providers.media/com.android.providers.media.MediaScannerReceiver
    3.  
    This to undo:
    Code (Text):
    1. su
    2. pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver
    or:
    Code (Text):
    1. su
    2. pm hide com.android.providers.media
    This to undo:
    Code (Text):
    1. su
    2. pm unhide com.android.providers.media


    I would be careful with those codes. They are from some old notes I found.....One of them worked......on something....I think:D

    Edit: Found the thread with the codes. Not your device, but I think they are somewhat universal.
    http://forum.xda-developers.com/showthread.php?t=1409780
     
    #2 Bg260, Aug 2, 2016
    Last edited: Aug 2, 2016
    Noremon and cdl like this.
  3. Bg260

    Bg260  
    VIP Member
    Rank:
     #32
    Points:
    763
    Posts:
    3,538
    Joined:
    Apr 30, 2016

    Apr 30, 2016
    3,538
    3,666
    763
    Male
    Freelance Entrepreneur
    Lincoln
    @cdl Made some edits. Might want to look again.:)
     
  4. cdl

    cdl Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    445
    Joined:
    Feb 4, 2010

    Feb 4, 2010
    445
    59
    53
    Thanks! If I place a .nomedia file in a directory, are all the subdirectories excluded automatically, or do I have to manually place .nomedia in each subdirectory? If it's the latter, is there an app that can do it automatically? I noticed that the nomedia apps on the play store are all oldish (2+ years old) and most explicitly report they are incompatible with newer versions of Android.

    As for the codes, I understand that stopping the scanner would mean the gallery would no longer be updated. Is this correct?

    Thanks!
     
    Noremon likes this.
  5. Bg260

    Bg260  
    VIP Member
    Rank:
     #32
    Points:
    763
    Posts:
    3,538
    Joined:
    Apr 30, 2016

    Apr 30, 2016
    3,538
    3,666
    763
    Male
    Freelance Entrepreneur
    Lincoln
    Yes it shuts the media scanner off completely. You can put the ,nomedia in the root of the directory. As long as you want everything hidden. Also, so you know, the media scanner runs at every boot.


    Guess I'm wondering why you don't just slap a Slim Marshmallow or Lollipop ROM in.

    I may be a little jealous. It is a nice phone and I haven't seen a device so widely developed in a while.

    http://forum.xda-developers.com/z3/orig-development#romList
     
    #5 Bg260, Aug 2, 2016
    Last edited: Aug 2, 2016
  6. Bg260

    Bg260  
    VIP Member
    Rank:
     #32
    Points:
    763
    Posts:
    3,538
    Joined:
    Apr 30, 2016

    Apr 30, 2016
    3,538
    3,666
    763
    Male
    Freelance Entrepreneur
    Lincoln
    Some file manager apps like Solid Explorer have a hide function as well.
    Just don't hide them from yourself. ;)
     
  7. cdl

    cdl Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    445
    Joined:
    Feb 4, 2010

    Feb 4, 2010
    445
    59
    53
    To be honest, all these issues are prompting me to change device, something I was already considering because I cannot connect to my work email from my rooted phone.

    I wouldn't upgrade because I have heard many horror stories about lousy battery life after the update; I am particularly against Marshmallows, because upgrading to Marshmallows would mean giving up Sony's stamina functionality for Google's Doze - and the former seems so much better.
     
    Bg260 and Noremon like this.
  8. Bg260

    Bg260  
    VIP Member
    Rank:
     #32
    Points:
    763
    Posts:
    3,538
    Joined:
    Apr 30, 2016

    Apr 30, 2016
    3,538
    3,666
    763
    Male
    Freelance Entrepreneur
    Lincoln
    Have you heard about Systemless Root? Yes, I hear your dilemma. I have never had a problem with my bank. I don't use the applications though, just a wrapper for the mobile internet site.
     

Share This Page

Loading...