Hi, I think what you are trying to achieve is an init script. for that you need to have root level permissions. do you have access to the source of the device?
some pointer to start with is https://android.googlesource.com/platform/system/core/+/master/init/README.md you can listen for system properties as triggeres for your script to run. On Friday, October 8, 2021 at 9:54:45 AM UTC+5:30 [email protected] wrote: > Hi, I am a newbie in embedded Linux, I am able to toggle a gpio pin, as > well as initialize an i2c module on an android running device. I used adb > shell to access the device shell, and manage to initialise this module > manually, I want this to happen at startup/boot up, however, I cant edit > the init.rc for my android device since there is no Vim or nano editor, or > gedit to open the file so that I can add a new file to be executed at > startup. > > > > I manage to push a bash file to the android device using adb push, but I > can only run it manually eg: ./file.sh inside the device. > > > > I am thinking of building the adroid files and include the file that I > want to use to initialize the i2c device, but I don't know how to achieve > this. > > > > Any help would be appreciated. > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/9ed6104a-3f30-48b9-aaa1-41ed745c6b1dn%40googlegroups.com.
