1. Are you ready for the Galaxy S20? Here is everything we know so far!

oom_adj value problem

Discussion in 'Android Lounge' started by naike, Jul 13, 2013.

  1. naike

    naike Lurker
    Thread Starter

    Hey guys, I have a slight problem.
    I need a way to detect the state of an app (if it's running in the background e.g.) and afaik the only way to check this is with the oom_adj value which is found in proc/(pid)/oom_adj.
    The problem is that every app I try returns the value 0, which means it's in the foreground, even if the app is not running or is running in the background.

    I'm using a i9505 with stock rooted/deoxed rom (I've tried 100% stock everything and get the same issue)
    Any help would be appreciated because I don't know what to do.

    1. Download the Forums for Android™ app!


  2. LilBit

    LilBit Extreme Android User


Share This Page