Search code examples
adbandroid-6.0-marshmallow

adb shell am set-idle returns unknown command when testing app standby


When running

adb shell am set-idle package_name true

as suggested here, it returns

Error: unknown command 'set-idle'

What am I missing?


Solution

  • Ha! Found the answer right here

    There is an error in the documentation page. The correct command should be

    adb shell am set-inactive package_name true