Skip to content
Back to skills

Optimize Aab Size

ASecurity

Reduce Android AAB size from 50MB+ to below 20MB via ProGuard, R8, asset optimization, ABI filters. Use when the user says 'optimize aab size', 'shrink android app', 'reduce android download'.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 4, 2026
developmentbashreact

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 4, 2026

npx -y skills add khadinakbarlabs/expo-mobile-app-builder --skill optimize-aab-size --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Optimize Aab Size?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Optimize Aab Size
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/khadinakbarlabs-optimize-aab-size/badge)](https://www.skillsdirectory.com/skills/khadinakbarlabs-optimize-aab-size)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "optimize-aab-size"
description: "Reduce Android AAB size from 50MB+ to below 20MB via ProGuard, R8, asset optimization, ABI filters. Use when the user says 'optimize aab size', 'shrink android app', 'reduce android download'."
---

# Optimize AAB Size

Target: <20MB download for cellular install.

## Measure baseline
```bash
bundletool get-size total --apks=app.apks --dimensions=ABI,LANGUAGE,SCREEN_DENSITY
```

## Top size offenders

1. **Native binaries** (~25MB):
   - React Native core
   - Reanimated, Skia (if added)
   - Hermes (already enabled by default)
   - expo modules

2. **JS bundle** (~3-8MB):
   - Tree-shake imports
   - Don't bundle large data
   - Code-split where possible

3. **Assets** (~5-30MB):
   - WebP instead of PNG (50% smaller)
   - Don't bundle large images
   - Use expo-image for runtime decode

4. **Localization** (~1-3MB):
   - Use AAB language splits (Play delivers user's language only)

## Quick wins

```json
{
  "expo-build-properties": {
    "android": {
      "enableProguardInReleaseBuilds": true,
      "enableShrinkResourcesInReleaseBuilds": true,
      "abiFilters": ["arm64-v8a"]
    }
  }
}
```

ABI filter: drop armeabi-v7a, x86_64 → 30% smaller AAB. Devices won't be affected because almost all 2024+ are arm64.

## Audit
```bash
# Inspect AAB structure
bundletool dump manifest --bundle=app.aab

# List largest files
unzip -l app.aab | sort -nr | head -20
```

## Pair with
- `configure-aab-build`
- `add-image-android` (use expo-image)

Files in this skill

  • SKILL.md1.5 KB
  • agents/openai.yaml182 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…