frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Shell toolkit for custom Android OS builds on 100GB+ source trees

1•thinkbigx•2h ago
https://github.com/orgs/rebrand-grapheneos

I've been working on this for a while and wanted to share it.

The problem is simple. Android source trees are over 100GB. If you want to maintain your own custom build, forking those repos to GitHub is basically impossible without LFS. And even with LFS, it's a mess.

So I built a set of shell tools around what I call "git2". The idea is you keep the upstream repo in .git/ as usual, but your own changes live in a separate .git2/ directory. It's like a thin overlay. A typical upstream project might be 2GB, but your overlay tracking just the files you touched is maybe 50KB.

But git2 alone isn't enough when you're dealing with a full Android build. You also need to wire everything together with Android's repo tool and local_manifests system. That's where the rest of the toolkit comes in.

There's a script called make-repo.sh that scans all your git2 overlays, figures out the project names from paths, grabs commit hashes, and spits out a proper default.xml manifest. No hand-editing XML. Another one, git2-all.sh, lets you run push, pull, status, or any git command across every modified project at once. git2-setup.sh finds all projects with a .git2config and initializes them automatically after repo sync. And link-setup.sh handles the symlink mess that Android's build system expects.

On the release side, there are scripts for per-device key generation, signing on tmpfs so keys never touch disk unencrypted, OTA packaging, and a reference update server you can self-host.

The whole thing is demonstrated on GrapheneOS but the approach is generic. Any AOSP-derived project with a massive source tree could use the same overlay and manifest pattern.

Curious what people think. Is the overlay approach better than just maintaining patch files? Anyone doing something similar for large source tree customization?

Show HN: Stop Overpaying for Digital Services, Find Cheap App Subscription Price

https://www.findcheapsubs.com
1•tatefinn•1m ago•0 comments

Labor Secretary's Top Aides Forced Out

https://www.nytimes.com/2026/03/03/us/politics/labor-secretarys-top-aides-forced-out.html
1•duxup•2m ago•0 comments

Schema Diagrams: Bi-Di Visualization for the Schema Languages That Need It Most

https://www.chiply.dev/post-schema-diagrams
1•chiply•2m ago•0 comments

Compassdle

https://compassdle.blendaddict.com/
1•blendaddict•2m ago•0 comments

Cold Comforts

https://asenseofwander.substack.com/p/cold-comforts
1•herbertl•3m ago•0 comments

API for ring-lwe/module-lwe post-quantum

https://docs.open-encrypt.com
1•jacksongwalters•3m ago•1 comments

Show HN: Free SEO checker for structured data, meta tags and Core Web Vitals

https://seo.codequest.work/en
1•imai_director•4m ago•0 comments

DMX – A Cognitive Compiler for Enterprise Infrastructure [pdf]

https://devmatrix.dev/DMX_Breaking_The_Compiler_Wall.pdf
1•aeghysels•4m ago•1 comments

Thoughts on the Witness (2016)

https://fgiesen.wordpress.com/2016/01/30/thoughts-on-the-witness/
1•Tomte•5m ago•0 comments

Show HN: Demucs music stem separator rewritten in Rust – runs in the browser

https://github.com/nikhilunni/demucs-rs
1•nikhilunni•5m ago•0 comments

Show HN: Herniated disc made me build a back-safe kettlebell app

https://kbemom.com/
1•blacktarmac•5m ago•0 comments

Why Your BI Stack Knows More About Your Processes Than You Think

https://www.exasol.com/blog/process-mining-with-exasol/
2•exagolo•5m ago•0 comments

Are We Engineers?

https://www.hillelwayne.com/post/are-we-really-engineers/
1•alpaylan•8m ago•0 comments

I replaced grep-based code exploration with a knowledge graph – 10x less token

https://github.com/DeusData/codebase-memory-mcp
1•DeusData•8m ago•1 comments

How to protect your privacy at a protest

https://proton.me/blog/how-to-protect-privacy-at-protests
2•mikece•9m ago•0 comments

The digital grass isn't greener. It isn't grass

https://architectelevator.com/transformation/digital-grass-greener/
1•saikatsg•9m ago•0 comments

Show HN: I built a skill that lets your OpenClaw call you on the phone

https://clawr.ing
2•thisismyswamp•10m ago•1 comments

Book Notes: Anything you want (Derek sivers)

https://faizank.substack.com/p/anything-you-want-a-tiny-book-with
2•fazkan•11m ago•0 comments

Iran Is Only the Beginning

https://sphera.substack.com/p/iran-is-only-begging
2•KyleVlaros•11m ago•0 comments

Show HN: SEL Deploy – Tamper-evident deployment timeline (Ed25519, hash-chained)

1•chokriabouzid•13m ago•0 comments

Show HN: Scanning 277 AI agent skills for security issues

https://www.clawdefend.com/
1•pakmania•13m ago•1 comments

Why glibc is faster on some GitHub Actions Runners

https://codspeed.io/blog/unrelated-benchmark-regression
4•art049•13m ago•0 comments

Show HN: A text-to-motion-graphics engine

1•Vraj911•13m ago•0 comments

Federal Reserve ACH System Is Down

https://www.frbservices.org/app/status/serviceStatus.do
3•BitWiseVibe•14m ago•0 comments

Show HN: MoodJot – Mood tracker mobile app with community feed, built with KMP

https://moodjot.app
1•cosmicmeta•15m ago•0 comments

Show HN: A visual sitemap generator for planning site structure

3•epic_ai•16m ago•5 comments

Biosynthetic platform for orsellinic acid-derived meroterpenoids in E. coli

https://www.sciencedirect.com/science/article/pii/S1096717625001983
1•PaulHoule•17m ago•0 comments

Agentic RL hackathon this weekend in SF

https://cerebralvalley.ai/e/openenv-hackathon-sf
1•benburtenshaw•18m ago•0 comments

Show HN: TeamTalk – Instead of asking one AI, let a whole team debate it

https://github.com/Higangssh/teamtalk
2•swq115•18m ago•0 comments

Show HN: I made an AI Agent to dig everything out of your CSV

https://datakid.org/
1•tigerkid•19m ago•0 comments