Can app developer create their own JNI to call system timer and rtc timer?

18 views
Skip to first unread message

Andy Quan

unread,
Mar 6, 2016, 10:13:46 AM3/6/16
to android-platform
From current API, it seems that when app developers have to rely on AlarmManagerService to create and utilize wakeup timers if system suspends. My question is if app developers ignore AlarmManagerService and try creating JNI lib and things below to create their own timerfd call, is there any restriction on this? I really do not see any code having restriction that app can not use timerfd calls. The assumption is that we only need "wakeup function" and no need to set or modify RTC time, that is, there is no need to access /dev/ nodes.

--
Thanks,
Andy

Satish Patel

unread,
Mar 7, 2016, 12:54:03 AM3/7/16
to android-...@googlegroups.com
On Sun, Mar 6, 2016 at 10:27 AM, Andy Quan <andro...@gmail.com> wrote:
From current API, it seems that when app developers have to rely on AlarmManagerService to create and utilize wakeup timers if system suspends. My question is if app developers ignore AlarmManagerService and try creating JNI lib and things below to create their own timerfd call, is there any restriction on this? I really do not see any code having restriction that app can not use timerfd calls. The assumption is that we only need "wakeup function" and no need to set or modify RTC time, that is, there is no need to access /dev/ nodes.
​Only restriction might be "opening fd" in context for application user id..​
 


--
Thanks,
Andy

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
satish patel
Reply all
Reply to author
Forward
0 new messages