jail-monkey icon indicating copy to clipboard operation
jail-monkey copied to clipboard

Expose android rooted detection methods results to JS

Open Almouro opened this issue 2 years ago • 0 comments

This is a proposal to deal with issues like https://github.com/GantMan/jail-monkey/pull/102

In our case, we'd like to keep using this lib but keep some granularity on root beer methods, to be able to ignore those that seem to trigger most false positive cases.

Not entirely sure this is the best solution, but it should be retro-compatible (keeping the default isJailBroken value) and continues to expose constant values. The caveat is that it still runs all the checks, even the ones we don't use. One way to deal with that would be to completely change the lib behavior and expose async function to execute the detection methods instead of storing them in constants.

Almouro avatar Jun 29 '22 14:06 Almouro