Add new script on Android Startup

Hi All,
I have the SC66 Android 10 module. I want to run the script file I wrote when android is opened. How can I do this? I am adding it to the init.rc file but nothing happens. I’m waiting for your help.

what is the script file? could you share the type of the file with me ? let me check

I wrote a simple led lighting program using the Sysfs interface.

File name and type:

The content of the file:


echo | su

echo 73 > /sys/class/gpio/export

echo out > /sys/class/gpio/gpio73/direction

while :
echo 1 > /sys/class/gpio/gpio73/value
sleep 5s
echo 0 > /sys/class/gpio/gpio73/value
sleep 5s

Now, SC66 havent published GPIO operating User Guide file.
actually, you could refer to the LCD user guide to try config specific GPIO.
have you ever got the LCD user guide? you could get it from local FAE or in our website of home page of Quectel.