Sorry for the Cyrillic in the previous post, I corrected it.
I don't know how these functions are implemented in QGO and QGT. You can talk to the developers, I talked to the author of KUGO on another topic, he is a wonderful person.
As for the functions, I would personally do it this way: before the game and when launching the QGO or QGT programs, save the current headset settings in the default profile, and restore them when the game returns.
Almost all the settings are described here:
https://developers.meta.com/horizon/documentation/spatial-sdk/ts-systempropertie...
You can also download the Kvass source code from GitHub and see what commands I use:
https://github.com/Varsett/Quas
If you have any questions, I will be happy to explain.
Unfortunately, I don't have any knowledge of Android, so I can't say how exactly to determine that the game is finished, but I think there are many options to determine the end of the process.