explaingit

5ec1cff/injectrc

65C++

TLDR

InjectRC is a small tool that pushes extra startup commands into the Android init process while the phone is already running.

Mindmap

A visual breakdown will appear here once this repo is fully enriched.

In plain English

InjectRC is a small tool that pushes extra startup commands into the Android init process while the phone is already running. The init process is the very first program that Android starts when it boots, and it reads instructions from files called rc scripts to decide what services to launch and what permissions to set. Normally you would have to change those scripts and reboot the phone for the new commands to take effect. This project lets you feed a fresh rc script into init on a live device. The README notes one important limit: it only works on Android versions 11 and above, because the tool relies on init being a dynamically linked program, which earlier versions did not use. If you have an older Android, this will not run for you. To use it, you run the compiled binary on the phone and point it at the rc script you want injected. The command looks like this: ./injectrc followed by the path to the rc file. Building the tool yourself needs the Android NDK, which is the official toolchain for compiling C and C++ code that runs on Android, and Python 3 for the build script. There are two build commands, one that produces an output binary in a local folder, and another that uses adb to push the result straight onto a connected device under /data/local/tmp.

Open on GitHub → Explain another repo

Generated 2026-05-21 · Model: sonnet-4-6 · Verify against the repo before relying on details.