I'm trying to find a way to disable or to close the Quick Panel with my app to limit the ability to switch modes on devices. My device is Samsung Galaxy Watch 4 (SM-R860).
With next the command:
adb.exe shell "dumpsys activity broadcasts |grep -iE ".+\.[0-9A-Z_\-]+:$" |sort"
I was able to get a list of intents, and the following lines can be found in it:
com.google.android.apps.wearable.systemui.CLOSE_QUICK_PANEL:
com.google.android.apps.wearable.systemui.DISABLE_EXPAND_QUICK_PANEL:
com.google.android.apps.wearable.systemui.ENABLE_EXPAND_QUICK_PANEL:
com.google.android.apps.wearable.systemui.OPEN_QUICK_PANEL:
com.google.android.apps.wearable.systemui.QUICK_PANEL_STATE_CLOSED:
com.google.android.apps.wearable.systemui.QUICK_PANEL_STATE_OPENED:
I see that it is possible to disable and to close the panel, but how can I implement it from my application?