On Sat, Apr 9, 2011 at 8:45 PM, Kevin Kowalewski <[email protected] > 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 [email protected] 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

