# KeepSafe/android-resource-remover

A simple utility to remove unused resources in your Android app to lower the size of the APK. It's based on the Android lint tool output.

Repository: https://github.com/KeepSafe/android-resource-remover
Canonical: https://ross.abutalabs.com/products/android-resource-remover
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2026-04-21T20:41:01+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 78, release rhythm 35, longevity 100
- inputs: {"age_days": 4584, "days_push": 134, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1281, forks 159 (observed 2026-08-28T04:04:13.929465+00:00)

## What it is
A Python command-line utility that removes unused resources from Android projects based on Android Lint output, reducing APK size. It parses lint results and deletes the reported unused resource files, runnable repeatedly until no unused resources remain.

## Use cases
- reduce my android apk size by removing unused resources
- clean up unused drawables and layouts in an android project
- delete resources flagged by android lint automatically
- shrink app size before release
- run lint and remove unused resource files in one step
- clean unused resources in a gradle android project

## When to choose
- you have an Android project with lint configured and want to automatically delete unused resources
- you want a simple scriptable way to shrink APK size by pruning dead resources

## When to avoid
- you need a GUI-based resource analyzer or interactive review before deletion
- your project does not use Android lint or you cannot generate lint XML output
- you need actively maintained tooling with modern Python support

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: developer-tools, cli
- domain: android-tools, developer-tools
- platform: cli, cross-platform, python
- tags: android, apk-size, lint, unused-resources, cleanup, automation

## Member repositories
- KeepSafe/android-resource-remover (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:13.929465+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-30T04:58:17.094277+00:00, confidence not recorded.
  - readme: https://github.com/KeepSafe/android-resource-remover (fetched 2026-08-28T04:04:13.929465+00:00, sha a73f3437cd9d)
  - registry_pypi: https://pypi.org/pypi/android-resource-remover/json (fetched 2026-08-29T12:13:00.928556+00:00, sha 36e922b19a43)
- Data as of 2026-08-30T08:39:29.467469+00:00.
