# GCX-HCI/tray

a SharedPreferences replacement for Android with multiprocess support

Repository: https://github.com/GCX-HCI/tray
Canonical: https://ross.abutalabs.com/products/tray
Language: Java
License: Apache-2.0
License Family: permissive
Topics: sharedpreferences, android, multiprocess
Archived: true
Last push: 2021-03-16T13:37:45+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4227, "days_push": 1996, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2268, forks 272 (observed 2026-08-28T04:06:32.877631+00:00)

## What it is
Tray is an Android library that replaces SharedPreferences with a ContentProvider-backed key-value storage that works reliably across multiple processes. It adds metadata tracking, modular preferences, versioned upgrade/migration hooks, and SharedPreferences import support.

## Use cases
- store key-value preferences safely across multiple Android processes
- replace SharedPreferences in a multiprocess Android app
- migrate existing SharedPreferences data to a new storage layer
- version and upgrade app preferences between app releases
- manage app settings in modular preference groups

## When to choose
- your Android app accesses preferences from multiple processes
- you need migration and versioning for stored preferences
- you want SharedPreferences import and auto-backup support

## When to avoid
- you need an actively maintained library (project is deprecated)
- your app is single-process and standard SharedPreferences suffices
- you prefer modern alternatives like DataStore

## Facets
- artifact type: library
- maturity: abandoned
- function: database, configuration-management
- domain: mobile-development, android-tools, developer-tools
- platform: jvm
- tags: sharedpreferences, multiprocess, key-value-storage, contentprovider, deprecated, android, mobile

## Member repositories
- GCX-HCI/tray (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:32.877631+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:42:01.069982+00:00, confidence not recorded.
  - readme: https://github.com/GCX-HCI/tray (fetched 2026-08-28T04:06:32.877631+00:00, sha 0df81b676414)
- Data as of 2026-08-30T08:39:29.467469+00:00.
