Ok, then your daemon will be very intrusive to the system. Like android (IMHO useless) antiviruses, which are asking pretty much all the authorizations it can grab from the user... Now it is up to you to check that Android currently available authorizations are filling your requirements. Or if you need more (root access, custom ROM).
Emeric On Thu, Feb 21, 2013 at 1:06 PM, Tom <[email protected]> wrote: > Emeric, Thanks for the reply. So basically I need this service / > backgroud task to do some sort of security monitoring if you will of the > device to insure security measures . So maybe be able to monitor things > like network traffic / file system / maybe even some sort of wrapper > around the Delvik VM to monitor data coming in and out to moonitor maybe > suspicious activity. Things like this. Is this to broad? Any input is much > appreciated. Thank you. > Tom > > > > On Wed, Feb 20, 2013 at 9:54 PM, Emeric VIGIER <[email protected]>wrote: > >> Hi Tom, >> >> Android apps have access to >> services<http://developer.android.com/reference/android/app/Service.html>and >> AIDL. They are a lot of hardware devices (Java) services can access to >> (e.g. USB devices, wifi connection, sensors, ...). >> But you haven't described your service's purpose. Only some of its >> requirements. What is your service supposed to do effectively? >> Check that the hardware resources it needs to access are not yet >> available in Android (Java) API before deciding to go down in the >> application layers. >> Most of the time, there is no need to deal with Android init at all. >> >> Emeric >> >> >> On Wed, Feb 20, 2013 at 11:19 AM, Tom Johnson <[email protected]> wrote: >> >>> Emeric, Thanks for the response. Thats what I was thinking to. Can that >>> be accessed through the application layer? Or do I need to develop at the >>> system level and build my own rom / mod >>> Thanks, >>> Tom >>> >>> >>> On Tuesday, February 19, 2013 9:16:36 PM UTC-5, m-ric wrote: >>> >>>> Hi John, >>>> >>>> According to your requirements, you need to ask /init to start a new >>>> service for you. >>>> You can specify this in your /init.<yourboardname>.rc >>>> which is located in device/<manufacturer>/<device> in AOSP. >>>> To get into Android init language, have a look >>>> readme<https://android.googlesource.com/platform/system/core/+/master/init/readme.txt> >>>> and >>>> the code <http://androidxref.com/4.2.2_r1/xref/system/core/init/>. >>>> On elinux <http://elinux.org/Android_Booting>, there are valuable info >>>> about Android init sequence. >>>> >>>> Quick note: if your service is unstable (dev on-going), do not make it >>>> critical (yet): >>>> >>>> >>>> >>>> >>>> critical >>>> >>>> >>>> >>>> This is a device-critical service. If it exits more than four times in >>>> >>>> >>>> >>>> four minutes, the device will reboot into recovery mode. >>>> >>>> >>>> Good luck, >>>> Emeric >>>> >>>> >>>> On Sun, Feb 17, 2013 at 9:58 AM, Tom Johnson <[email protected]> wrote: >>>> >>>>> Hi, I'm some what new to Android Development, but have 20 + years of >>>>> software development experience, mostly in C and C#, little bit of Java. I >>>>> want to create daemon service and here are some of the requirements that >>>>> are needed. I'm not sure if all this can be done at application level or >>>>> if >>>>> I have to get down into the system level and build my own custom Android >>>>> OS. I have no problem doing that. I just need to know that and some basic >>>>> info on what I need. Can some one point me in the right direction or if >>>>> anybody has some knowledge on this that would like to share, I would >>>>> greatly appreciate it. Thanks. >>>>> >>>>> At this point I have a couple of different Environments setup, one on >>>>> Windows and one on Linux Centos. Have installed the ADT on each along with >>>>> eclipse and what ever else is needed to build apps. have done a couple >>>>> apps >>>>> and one service app to play around with. >>>>> >>>>> Requirements: >>>>> 1) Create Daemon service that runs in the background >>>>> 2) Can spawn/fork other Daemon services and restart them >>>>> 3) Services/processes have to be hidden from user(user cannot see in >>>>> task list or cannot uninstall) >>>>> 4) Has to start when Android boots up >>>>> 5) Can throw up alert messages to user >>>>> 6) user cannot uninstall this service/application >>>>> 7) Probably will need root permissions >>>>> >>>>> -- >>>>> -- >>>>> unsubscribe: android-kerne...@**googlegroups.com >>>>> >>>>> website: >>>>> http://groups.google.com/**group/android-kernel<http://groups.google.com/group/android-kernel> >>>>> --- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Android Linux Kernel Development" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to android-kerne...@**googlegroups.com. >>>>> >>>>> For more options, visit >>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>>>> . >>>>> >>>>> >>>>> >>>> >>>> -- >>> -- >>> unsubscribe: [email protected] >>> website: http://groups.google.com/group/android-kernel >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Android Linux Kernel Development" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- >> -- >> unsubscribe: [email protected] >> website: http://groups.google.com/group/android-kernel >> --- >> You received this message because you are subscribed to the Google Groups >> "Android Linux Kernel Development" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-kernel > --- > You received this message because you are subscribed to the Google Groups > "Android Linux Kernel Development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel --- You received this message because you are subscribed to the Google Groups "Android Linux Kernel Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
