Prevent Android app from running on Windows 11

Viewed 133

As new Windows 11 has Android app support, it also increases the risk of app tempering. How can we prevent our app from running on a Windows 11 device?

2 Answers

You're taking the wrong approach. If you're concerned about your app's security, write your app securely. Limiting what OSes it runs on won't help. Especially since you seem to think its more of a concern on Windows than it is on Android, an open source OS anyone can build a customized version of and can have APIs lie to the app.

check out Build.VERSION class, in there you can find e.g. Build.VERSION.SDK_INT which is API lvl of OS running app (different across devices). I'm very curious what it return on Windows... maybe you will find in there some other useful variable, basing on it you can disable your app UI and functionalities (I very doubt you can prevent installation itself)

Related