I've been trying to write a simple NTP client for an Android device. I've got the networked portion down and am getting a good value from my SNTP server, but I'm having issues when trying to set the system time to this value. I've been trying to use the SystemClock.setCurrentTimeMillis() function, but am receiving a permissions error when my code hits this point. Specifically, my debugger is giving me the message "Unable to open alarm driver: Permission denied." I've poked around a bit on the android dev user groups and mailing lists, and see this issue referenced occasionally, but have yet to come across a solution. I'm running 2.2 (API level 8 ) and have given my application the SET_TIME, WRITE_SETTINGS, and WRITE_SECURE_SETTINGS permissions.
Any ideas what the issue might be?