Is there an Android shell command that can get the current status of Immersive Mode (i.e. immersive.full
, immersive.status
, immersive.navigation
, or immersive.off
)?
Immersive mode can be set via the shell command settings put global policy_control immersive.full=*
, and other system statuses can be queried via shell (e.g. get current brightness level with settings get system screen_brightness
). However, I can't figure out what command would return the current status of immersive mode. The goal is to programmatically detect if an app is currently in immersive mode (for use with automation apps like Tasker and Macrodroid).
I've tried various combinations of commands that sound likely, like: settings get system immersivemode
, settings get system immersive_mode
, settings get global policy_control
, but most of these return syntax errors, as I don't really know what I'm looking for. Any suggestions?