Skip to content

[shared_preference] Support 16KB Memory Page Size for Flutter Shared Preferences #194699

Closed
flutter/packages
#13334

Description

@camle83it

Use case

The AndroidX DataStore library has supported 16KB memory page sizes since version 1.2.1. Therefore, it is necessary to review and update the underlying dependencies or implementation of Flutter shared_preferences to ensure compatibility with this requirement.

Proposal

Since AndroidX DataStore 1.2.1 supports 16KB memory page sizes, updating the relevant dependencies or implementation in Flutter shared_preferences should be evaluated to provide equivalent compatibility where applicable.

https://developer.android.com/jetpack/androidx/releases/datastore#1.2.1

Activity

  1. changed the title [-]Support 16KB Memory Page Size for Flutter Shared Preferences[/-] [+][shared_preference] Support 16KB Memory Page Size for Flutter Shared Preferences[/+] on Oct 19, 2026
  2. saurabh-mirajkar commented on Oct 19, 2026

    @saurabh-mirajkar
    Contributor

    @camle83it Thanks for the proposal. #182744 tracked the 16 KB page-size warning from libdatastore_shared_counter.so introduced through the DataStore dependency used by shared_preferences_android. That regression was addressed by reverting the dependency.

    This looks like a follow-up to evaluate whether DataStore 1.2.1 can be used safely. The linked release notes don't explicitly confirm 16 KB page-size support, so this still needs verification. I'll label and route the issue to the Android team for evaluation.

    Related: #182744, #182898.

  3. added
    platform-androidAndroid applications specifically
    p: shared_preferencesPlugin to read and write Shared Preferences
    packageflutter/packages repository. See also p: labels.
    c: proposalA detailed proposal for a change to Flutter
    team-androidOwned by Android platform team
    fyi-ecosystemFor the attention of Ecosystem team
    and removed
    in triagePresently being triaged by the triage team
    on Oct 19, 2026
  4. camle83it commented on Oct 19, 2026

    @camle83it
    Author

    @saurabh-mirajkar Thanks for your replies.

    You could create an Android project using DataStore versions 1.2.0 and 1.2.1, then analyze the resulting APKs to verify this.
    I have tested it myself and confirmed that DataStore supports 16KB page sizes at version 1.2.1.

    However, I would still encourage you to verify this for yourself.

  5. github-actions commented on Nov 2, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  6. locked as resolved and limited conversation to collaborators on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: proposalA detailed proposal for a change to Flutterfyi-ecosystemFor the attention of Ecosystem teamp: shared_preferencesPlugin to read and write Shared Preferencespackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions