I am using iMX8M EVK with Android 9.0 running on it. I downloaded and build the AOSP 9.0 for iMX8M and now using it with my EVK board.
I have created a executable and After Android boots up i can copy my executable into /data/local/tmp directory and run it using adb.
for e.g. - In data/local/tmp i can run my executable as => ./my_executable
But Now i want to run my executable during Android boot up time.
I mean to say instead of manually copying and running the executable i want to make it part of AOSP and when AOSP boot up that time only my executable should also run.
In below thread they given the solution to do changes in /etc/rc.local script for Linux
But for Android / AOSP how can i do that ??