jeroentrappers/flutter_jailbreak_detection

isDevMode() method bug

Opened this issue · 0 comments

Hello, the implementation of the method isDevMode*() has a bug:

    private fun isDevMode(): Boolean {
        return Settings.Secure.getInt(
            context.contentResolver,
            Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0
        ) != 0
    }

should be:

    private fun isDevMode(): Boolean {
        return Settings.Global.getInt(
            context.contentResolver,
            Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0
        ) != 0
    }