# gyf-dev/Cactus

Android Keep Alive(安卓保活)，Cactus 集成双进程前台服务，JobScheduler，onePix(一像素)，WorkManager，无声音乐

Repository: https://github.com/gyf-dev/Cactus
Canonical: https://ross.abutalabs.com/products/gyf-dev-cactus
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: alived, keepalived, keep, keepalive, alive, android, kotlin
Last push: 2022-08-25T10:07:24+00:00

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

## Adoption (not part of the score)
Stars 1644, forks 243 (observed 2026-08-28T04:05:16.109338+00:00)

## What it is
Cactus is an Android keep-alive library that helps apps stay running in the background. It combines dual-process foreground services, JobScheduler, WorkManager, one-pixel activities, and silent music playback to resist process death.

## Use cases
- keep my android app alive in the background
- prevent android from killing my service
- run a background task continuously on android
- implement a foreground service that survives doze mode
- android keep alive with workmanager and jobscheduler
- restart my app automatically after a crash

## When to choose
- you need an Android app to persist in the background despite system optimizations
- you want a ready-made combination of keep-alive strategies (dual-process, one-pixel, silent music)
- your app targets older Android versions where these techniques are effective

## When to avoid
- you target only modern Android versions where aggressive keep-alive is restricted or against policy
- you plan to publish on Google Play, where keep-alive tricks may violate policies
- your project uses crash reporting libraries that conflict with Cactus's crash handling

## Facets
- artifact type: library
- maturity: maintenance
- function: sdk
- domain: android-tools, mobile-development
- platform: -
- tags: keep-alive, background-service, foreground-service, jobscheduler, workmanager, kotlin, android

## Member repositories
- gyf-dev/Cactus (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:16.109338+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-30T03:45:49.594136+00:00, confidence not recorded.
  - readme: https://github.com/gyf-dev/Cactus (fetched 2026-08-28T04:05:16.109338+00:00, sha 4b55bc23dda4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
