Hi,
I will post there for more questions on this. However I did try to sign
my application with the platform certificate but a security exception
was thrown (but it no longer produces errors about not being allowed to
use the REBOOT permission). You mentioned in one of your posts to
support LOCAL_CERTIFICATE := platform (or something to that extent) to
the make file. Which make file were you referring?
Thanks,
Kevin
On 4/10/2011 8:34 PM, Dianne Hackborn wrote:
If you are doing a custom build of the platform, you can use the
normal internal mechanisms for doing this like is done in the Settings
app. Look at how the platform does this and do the same thing.
You'll need to be installed on the system image and/or be signed with
the proper cert.
Further questions should be on android-porting.
On Sun, Apr 10, 2011 at 5:28 PM, Kevin Kowalewski
<kowalewski.ke...@gmail.com <mailto:kowalewski.ke...@gmail.com>> wrote:
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.
--
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