Skip to content

Instantly share code, notes, and snippets.

View chenqian-dev's full-sized avatar

phelps chenqian-dev

  • hongkong
  • 13:46 (UTC -10:00)
View GitHub Profile
@chenqian-dev
chenqian-dev / edit-init-rc.md
Created March 13, 2024 07:22 — 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