Is it possible to determine whether the designer ' s treatment is programmed?



  • Please indicate if there is a possibility of a software application to determine whether the developer ' s treatment is on the device or not?

    For example, any request for a returning boulder variable similar to android.os.Build.devModeEnable()?



  • Try this.

    int adb = Settings.Secure.getInt(this.getContentResolver(),
                    Settings.Global.DEVELOPMENT_SETTINGS_ENABLED , 0);
    

    For API 16, you can skim: Settings.Secure.DEVELOPMENT_SETTINGS_ENABLED

    article https://developer.android.com/reference/android/provider/Settings.Global.html#DEVELOPMENT_SETTINGS_ENABLED and https://developer.android.com/reference/android/provider/Settings.Global.html#pubmethods




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2