Hi Gusarambula,
Thanks for your reply.
I am looking into the Links provided by you and doing some search on internet also for the same.
I just to want to update you that i am able to make some progress but still got stuck at some place.
here is the steps which i am doing -
1. I added following lines in init.rc file of AOSP /device/fsl/imx8m/evk_8mm ->
on property:dev.bootcomplete=1
exec u:r:shell:s0 shell shell input log adb sdcard_rw sdcard_r net_bt_admin net_bt inet net_bw_stats -- /system/bin/sh /system/bin/myScript start -n com.example.package/com.example.package.MainActivity
2. And i created a myScript file and added following line into it -
--------------------------------------------------------------------
#!/system/bin/sh
mkdir /data/local/tmp/DirFromMyScript
#Run My Application in background
exec helloApp &
---------------------------------------------------------------------
3. NOTE - I kept this myScript and helloApp executable files in AOSP /out/target/product/evk_8mm/system/bin directory.
4. After that i compiled the AOSP and flashed it on SDCARD.
5. When i Boot the AOSP on my iMX8M mini EVK i am able to see DirFromMyScript Directory in /data/local/tmp created by myScript
but i am not able to see 'helloApp' running.
when i run 'ps' command i dind't see my executable 'helloApp' name there. not with top command also.
NOTE - in my executable - helloApp i do lots of stuff like file creation, directory creation etc..
so i can see 1 or 2 file is created by 'helloApp' but after that i think its getting existed.
it means helloApp did run but it is getting terminated or existed hence not able to complete all the task.
6. NOTE - When I manually run myScript that time my executable 'helloApp' runs properly and it completes all the task. .
7. I want to run this executable in background from myScript during boot time. but i am not able to understand how to do that.
Any suggestion how can run executable binary from myScript ??
Thanks,
Maneesh