This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can't run customised service at file init.rc when booting android.

Hi All!

I'm working on android 4.2.2 with jorjin racoon board. I have a question regrading to file init.rc.

I created a new service at the end of file  init.rc like the following:

service testmounter /system/bin/logwrapper /system/bin/mounter.sh
    class main
    user root
    group root
    oneshot

File mounter.sh likes the following:

#! /system/bin/sh
echo "Start Mounter"
/system/bin/am start -a android.intent.action.MAIN -n com.paragon.mounter/.Mounter

I changed mode mounter.sh to 765.

But I don't know why my service not run when booting android.

Looking forward for the suggestions.

Thanks