Thank you very much for your answer, so do you know how the automatic restoration of the default configuration after a game is over is implemented in Android?
QGO and QGT may be using ADB global commands to take effect for a particular game, but if the game is exited, it automatically restores the adb defaults, and I don't know how to detect if the game is exited and how to send a notification to indicate this after exiting.