Skip to content

Instantly share code, notes, and snippets.

View sbrosteanu's full-sized avatar

Stefan Brosteanu sbrosteanu

  • Oradea, Romania
View GitHub Profile
@sbrosteanu
sbrosteanu / edit-init-rc.md
Created October 11, 2023 08:41 — forked from ashutosh-mishra/edit-init-rc.md
How to run custom script from init.rc, How to Extract Android Kernel And Modify The Boot Ramdisk(Android 4+)

init.rc changes

init.rc changes to run any script Can be used to start any android application, service

on property:dev.bootcomplete=1
    exec - system system -- /system/bin/sh <custom script path>
    # exec - system system -- /system/bin/sh /data/local/bootscript/testservice.sh

Script can contains applications start, stop commands