GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: bake rootAVD and use tar.gz storage for addon payloads by Shmayro · Pull Request #52 · Shmayro/dockerify-android

Conversation

@Shmayro

@Shmayro Shmayro commented May 29, 2026

Copy link
Copy Markdown
Owner

Drops the runtime git clone https://gitlab.com/newbit/rootAVD.git from install_root — the last external download in the rooting flow. While at it, switches ndk_translation from pre-extracted to the same shape so both addons store their upstream tar.gz verbatim at /opt/<name>.tar.gz and the install code extracts on demand.

Changes

Dockerfile

  • Replace the previous wget + tar -xzf -C /opt/ndk-translation with just wget -q -O /opt/ndk-translation.tar.gz — no build-time extraction.
  • New step that does the same for rootAVD: wget -q -O /opt/rootavd.tar.gz from gitlab.com/newbit/rootAVD.

first-boot.sh

  • install_root: drop git clone, extract /opt/rootavd.tar.gz to /tmp/rootavd with --strip-components=1, pushd /tmp/rootavd, run rootAVD.sh + Magisk env bootstrap there, rm -rf /tmp/rootavd at the end.
  • install_arm_translation wrapper: extract /opt/ndk-translation.tar.gz to /tmp/ndk-translation (with --strip-components=2 --wildcards '*/prebuilts/*' to flatten the github archive structure), call the appropriate _system or _magisk_module branch, clean up.
  • install_gapps: stage under /tmp/gapps/ instead of cwd-relative gapps-11/ — same pattern as the other two.
  • install_arm_translation_{system,magisk_module} and install_gapps_{system,magisk_module} now reference /tmp/<name>/... consistently.

Result

  • No runtime gitlab.com dependency for rooting (previously a full-history git clone ~84.7 MB → now a build-time ~12 MB tar.gz, Docker-layer-cached).
  • ~26 MB smaller image disk footprint after pull (/opt holds compressed .tar.gz instead of decompressed trees).
  • Lazy work: an addon that isn't enabled never gets extracted.
  • Symmetric install layout: install_root, install_arm_translation, and install_gapps all stage their payload under /tmp/<name>/.

Verified

Fresh tmp data dir, ROOT_SETUP=GAPPS_SETUP=ARM_TRANSLATION=1:

  • All four markers land
  • /data/adb/modules/ contains gapps + ndk_translation
  • adb shell getprop ro.product.cpu.abilist → x86_64,x86,arm64-v8a,armeabi-v7a,armeabi
  • Google services visible at /system/priv-app/ (via Magisk overlay)
  • adb install /extras/v2rayNG_2.1.7_arm64-v8a.apk → Success

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Shmayro
chore: bake rootAVD and use tar.gz storage for addon payloads
f4ab698
Drop the runtime `git clone https://gitlab.com/newbit/rootAVD.git` (the
last remaining external download for the rooting flow). The rootAVD
repo (rootAVD.sh + bundled Magisk.zip) is now downloaded as a tarball
at image build time. While at it, switch the existing ndk_translation
bake to the same shape so both addons store their upstream tar.gz
verbatim at /opt/<name>.tar.gz instead of pre-extracted trees.

install_root, install_arm_translation, and install_gapps all extract
their payload into /tmp/<name>/ at the top of the install, work from
there, and clean up at the end — same pattern across the three.

Why:
- No runtime gitlab.com dependency for rooting (previously 84.7 MB git
  clone with full history, now a ~12 MB tar.gz baked at build time).
- ~26 MB smaller image disk footprint after pull (the upstream tar.gz
  files are still LZMA/gzip-compressed in /opt; we only pay
  decompression on install).
- Lazy work: an addon that isn't enabled never gets extracted.
- Symmetric layout — install_root, install_arm_translation, and
  install_gapps all stage under /tmp/<name>/ now.

Verified end-to-end on a fresh AVD with ROOT_SETUP=GAPPS_SETUP=
ARM_TRANSLATION=1: all four markers land, /data/adb/modules/ contains
gapps and ndk_translation, ABI list advertises arm64-v8a, Google
services visible at /system/priv-app/ via Magisk overlay, and an
arm64-v8a-only APK installs cleanly.
@Shmayro
Shmayro merged commit 376844e into main May 29, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Shmayro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.