Re: Shell script to run automatically after booting android

2,758 views
Skip to first unread message

Shree Kumar

unread,
Nov 9, 2012, 11:36:20 AM11/9/12
to android-...@googlegroups.com
A quick and dirty way : run it as a service that runs one time. You can do this from init.rc. Make a "oneshot" service runs it once on boot.

If you want to log the output of the script for debugging purposes, run it using the "logwrapper" binary (typically in /system/bin)

HTH
-- Shree


On Fri, Nov 9, 2012 at 12:30 PM, kishoreSm Gowda <kishor...@gmail.com> wrote:
Hello, i am trying to run some commands automatically as soon as android OS is booted. TO achieve this i have come up with a shell acript, but i dont know how to run this automatically after every boot on Android OS. Can any one help with this?

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/Wh4y6NPMleMJ.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.



--
http://www.shreekumar.in/

Kristopher Micinski

unread,
Nov 9, 2012, 12:11:46 PM11/9/12
to android-...@googlegroups.com

Aaron Gascoigne

unread,
Nov 12, 2012, 2:28:45 PM11/12/12
to android-...@googlegroups.com
compile a ram disk with init.d support script and put the script there
Reply all
Reply to author
Forward
0 new messages