Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

“adb shell am set-inactive <packageName> true “ does't work

Tags:

android

adb

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?

like image 818
kkk Avatar asked Jun 23 '16 10:06

kkk


1 Answers

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
like image 134
kmm Avatar answered Oct 01 '22 19:10

kmm