Skip to content
This repository was archived by the owner on Jun 5, 2018. It is now read-only.

iMilnb/RcRun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RcRun, a simple init system for the Android OS

RcRun aims at starting services just like UNIX init would do. While some ROMs implement a real init system, many official ROMs just don't allow the user to start their own services. This is where RcRun enters the game.

Obviously, this software needs a rooted ROM, embedding something like SuperSU in order to start root-only services.

Quickstart

Simply drop your scripts on a rc.d directory located in your primary sdcard, possibly the internal one. RcRun will start every file located in that directory following alphabetical order. I.e.

shell@jgedlte:/ $ ls /storage/sdcard0/rc.d/                                    
0dummy
99dropbear
shell@jgedlte:/ $ cat /storage/sdcard0/rc.d/99dropbear                         
#!/system/bin/sh

/data/dropbear/bin/dropbear -A -N shell -U 1000 -G 1000 -R /data/dropbear/etc/authorized_keys

Invoke RcRun manually

RcRun is a service called at boot time, or more precisely, when the BOOT_COMPLETED broadcast message is received, so if you'd like to start the service straight after installation, you'll have to send this message using adb:

$ adb -s <device> shell am broadcast -a android.intent.action.BOOT_COMPLETED -c android.intent.category.HOME -n net.imil.rcrun/.OnStartupRecv

When called the first time, RcRun will copy a template rc script to the rc.d directory. From there, you could think of many complex scenarios.

TODO

Lots of stuff. Please be indulgent, this is actually my first ever Android app.

About

A simple init system for the Android OS - Moved to https://gitlab.com/iMil

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages