Skip to content

Instantly share code, notes, and snippets.

View gassechen's full-sized avatar

gassechen gassechen

  • Argentina
  • 21:57 (UTC -03:00)
View GitHub Profile
@ashutosh-mishra
ashutosh-mishra / edit-init-rc.md
Last active April 5, 2025 18:02 — forked from azureru/extract android kernel.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