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?
-
3What kinds of app tampering are you concerned about? I'm not sure I understand how there is any more risk with the app running on Windows.Tenfour04– Tenfour042021-07-30 13:37:46 +00:00Commented Jul 30, 2021 at 13:37
-
"How can we prevent our app from running on a Windows 11 device?" -- primarily, don't distribute the app via Windows 11 channels.CommonsWare– CommonsWare2021-07-30 13:56:32 +00:00Commented Jul 30, 2021 at 13:56
-
Android App is not restricted to channel as APKs are openly available on many websites. more risk in the sense its a financial app and people can go a greate extents to exploit itrockhack– rockhack2021-08-01 04:29:51 +00:00Commented Aug 1, 2021 at 4:29
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.
1 Comment
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)