# oasisfeng/condom

一个超轻超薄的Android工具库，阻止三方SDK中常见的有害行为，而不影响应用自身的功能。（例如严重影响用户体验的『链式唤醒』）

Repository: https://github.com/oasisfeng/condom
Canonical: https://ross.abutalabs.com/products/condom
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2023-10-09T09:48:42+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": 3447, "days_push": 1059, "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 2480, forks 168 (observed 2026-08-28T04:06:55.280947+00:00)

## What it is
Project Condom is an ultra-lightweight Android library that wraps the app Context before passing it to third-party SDKs, blocking harmful behaviors like chained background process wake-ups. It requires only minimal code changes, wrapping SDK initialization calls with CondomContext.wrap().

## Use cases
- prevent third-party push SDKs from launching massive background processes
- stop chain wake-ups between apps with similar SDKs
- improve app startup speed on low-end devices
- control when SDKs may launch external apps via OutboundJudge
- protect app components in separate processes from unwanted SDK behavior

## When to choose
- your app embeds third-party SDKs known for aggressive background behavior
- you want minimal-code protection against SDK process spam
- you need fine-grained control over outbound component launches

## When to avoid
- your SDK core functionality depends on specific external apps like Facebook SDK or Google Play services
- you need full permission management rather than behavior blocking

## Facets
- artifact type: library
- maturity: maintenance
- function: security, developer-tools, middleware
- domain: android-tools, mobile-development, security, developer-tools
- platform: jvm
- tags: android, sdk-hardening, context-wrapping, background-process-prevention, third-party-sdk-protection

## Member repositories
- oasisfeng/condom (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:55.280947+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:28:16.285132+00:00, confidence not recorded.
  - readme: https://github.com/oasisfeng/condom (fetched 2026-08-28T04:06:55.280947+00:00, sha 9635c169a667)
- Data as of 2026-08-30T08:39:29.467469+00:00.
