permission_auto_reset 0.1.0 copy "permission_auto_reset: ^0.1.0" to clipboard
permission_auto_reset: ^0.1.0 copied to clipboard

PlatformAndroid

A Flutter plugin to check and manage Android's unused-app auto-reset and hibernation feature for your app.

Changelog #

0.1.0 #

  • Fix (#1): checkRestrictionsStatus() returned the reverse value on Android (e.g. "ENABLED" while the user had "Manage app if unused" turned off). The plugin used hardcoded constants that were off-by-one against androidx.core.content.UnusedAppRestrictionsConstants; it now uses the official constants directly.
  • Removed unreliable manufacturer status fallback that read private Settings.Secure keys (app_auto_restriction_enabled, unused_app_hibernation_enabled, auto_revoke_permissions_mode). The plugin now trusts the official AndroidX API; if it fails the result is error rather than a fabricated value.
  • Renamed Android package from com.example.permission_auto_reset to com.mustafa.permission_auto_reset.
  • Bumped Android Gradle Plugin to 8.7.3, Kotlin to 2.0.21, androidx.core-ktx to 1.13.1, Guava to 33.x, JVM target to 17.
  • Cleaner Dart API (abstract final class, typed channel, switch expressions).
  • Rebuilt the example app with Material 3 and a clearer status card.

0.0.3 #

  • Handle iOS and other non-Android platforms (return featureNotAvailable).

0.0.2 #

  • Support older Android versions and manufacturer-specific settings screens.

0.0.1 #

  • Initial release.
3
likes
160
points
33
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to check and manage Android's unused-app auto-reset and hibernation feature for your app.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on permission_auto_reset

Packages that implement permission_auto_reset