When running
adb shell am set-idle package_name true
as suggested here, it returns
Error: unknown command 'set-idle'
What am I missing?
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