Hi Punnet,

Create a script which does execute this command "echo rebooted >> 
/system/reboottest." and execute this script on each boot from android's 
init scripts.
Check init scripts "service" command. You can achieve with it. 
https://github.com/android/platform_system_core/blob/master/init/readme.txt#L51

Regards,
Pratik

On Thursday, 20 June 2013 13:16:10 UTC+5:30, Puneet B wrote:
>
> Hi Guys.
>
> I have working sd card which boots Android successfully.
>
> now i want to know, if because of any cause may android get rebooted.
>
> i want to know how many times it is rebooted. 
>
> i think if you put 
>
> echo rebooted >> /system/reboottest.
>  
> in any .rc file.
>
> it will append rebooted to /system/reboottest.
>
> by counting number of lines of rebooted ,we can say how many times it is 
> rebooted.
>
>
> but this win is not working. 
> so my question is 
> in which .rc file we can put this one?
> whic .rc file will mount the file system?
> is there any other way to count how many number of times android rebooted?
>  
> kindly  help me
>
> Thanks
> Punith
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to