I want to test App standby mode. The devices I use is Galaxy S7 edge and virtual device with an Android 6.0 (API level 23).
I use:
$ adb shell dumpsys battery unplug
$ adb shell am set-inactive <packageName> true
When I test if the app is actually in standby using adb shell am get-inactive <packageName>
I always obtain the following result Idle=false
. Did anyone else experience the same behavior?
it's too late, but i had same problem.
i was figure it out, just remove <>
.
it means -> adb shell am set-inactive packageName true
like
adb shell am set-inactive com.abc.abcd true
not
adb shell am set-inactive <com.abc.abcd> true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With