I am trying to modify AOSP to run a specific shell command on boot.
I tried to modify init.rc
in system/core/rootdir/
to run a command on boot, but I could not make it work.
I know that I should use exec so I tried all these variations but none of them worked for me:
exec mkdir /data/local/tmp/test_directory
exec "mkdir /data/local/tmp/test_directory2"
exec -- mkdir /data/local/tmp/test_directory3
exec -- "mkdir /data/local/tmp/test_directory4"
I also tried all solutions on this page on Android 6.0 without any luck.
Anybody have an idea about what I am doing wrong?