I try to run a shell script that copies the file to a specific location when the phone is turned on, and I added the following to the init.rc file:
service test_copy /system/bin/sh /system/bin/test_copy.sh class pre-zygote_services oneshot user system group system
When the service name (test_copy) matches the name of the script, test_copy in this case, it does not execute the script, but if I changed the name of the service to another, for example start_test_copy , this works. I just want to know the reason why, when the service name matches the name of the script, it does not work or am I mistaken?
source share