Simple rooted/jailbroken device detection
complete
Dave Stubbs
We have a requirement to make some kind of attempt to block our app from jailbroken or rooted devices for security reasons.
This obviously can't be bullet proof, but some basic FS access checks, and searches for common rooting packages get you most of the way there.
There are already react-native libraries for this, such as https://github.com/beast/react-native-isDeviceRooted or https://github.com/GantMan/jail-monkey.
Exposing this to Javascript as a basic yes/no test would be really useful for us, and prevent us needing to detach.
Evan Bacon
complete
Check out expo-device Device.isRootedExperimentalAsync
Kendo
Hi.
|
Is there any updates on this request?
I think on SDK 32, we are allowed to access File system outside our app's sandbox. I wonder if that ability allow us to check whether our app is on the rooted device.
And if that the case, is there a library I can provide the simple function to use like jail-monkey?
Thank you in advance.
Dave Stubbs
Just to note that as of Expo 32 there's enough file system access in a standalone app to do these checks effectively, so this can be marked complete from my pov
👍
Kendo
Dave Stubbs: Do you have any public library?
b
bonham000
Would be great to see this or some suggestions for a sane workaround in the meantime!!!
Dave Stubbs
And thinking about this a bit more, most of these functions could be achieved from Javascript already, except that the FileSystem restricts the URIs you can access to your app's resources within the Expo app. We'd only need this on a standalone app so maybe just relaxing FileSystem permissions in that case would be enough.
Andy Nguyen
Dave Stubbs: Nice, have you manage to find a solution with the current version of expo?
S
Salman Ahmed Ansari
Andy Nguyen found any solution ?