Hi,
Thanks for the response. This is for an embedded platform and not for an
application that is going to be released to market. So how would I go
about setting the system time and rebooting the device?
Hope to hear from you soon,
Kevin
On 4/10/2011 8:25 PM, Dianne Hackborn wrote:
On Sat, Apr 9, 2011 at 8:45 PM, Kevin Kowalewski
<kowalewski.ke...@gmail.com <mailto:kowalewski.ke...@gmail.com>> wrote:
1. Setting the date with date 134355500 sets the date in the local
shell, but running date in another shell does not see the change. If I
execute the same command into adb shell, the change does seem to
persist. What is the correct way to set the system date / time using
the shell provided by getRuntime().exec?
Third party applications can't change the global date like this.
2. Trying to reboot the device using /system/bin/reboot will lock up
the application (ANR) and no other shell commands will work (using
getRuntime().exec) until the device is restarted. Shell commands still
work via adb shell.
Third party applications can not reboot the device.
The application already requests both perimssions of RESTART and
SET_TIME. A good number of commands do work fine, like ls and netcfg
but restarting (and hopefull powering off with the -p flag) and
setting the time are two that I need that don't work correctly.
Please understand, the shell is *not* a part of the SDK. Nothing you
do with it is supported, and any app relying on its behavior is likely
to break on different devices and platforms.
--
Dianne Hackborn
Android framework engineer
hack...@android.com <mailto:hack...@android.com>
Note: please don't send private questions to me, as I don't have time
to provide private support, and so won't reply to such e-mails. All
such questions should be posted on public forums, where I and others
can see and answer them.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en