Through 'filesDir.path' we can easily detect cloning apps like Dual Space, Multi Space, and Parallel space apps. Detection of the virtual environments offers by Xiamoi devices, One Plus and Samsung devices are also possible by 'filesDir.path'.
Recently I come across these two apps Virtual Android - Game Emulator & Dual Space and VPhoneGaGa. They claim that their apps create an independent virtual operating system on users' devices.
filesDir.path solution doesn't work on these apps. When my app runs on the virtual environment by these apps, the fileDir.path returns the original file path as if no there is no middle app in between.
I want to detect and block my app to run in these virtual environments. I didn't find any working solution other than searching for systems apps: Gmail, Maps, Youtube, etc.