load entropy data at boot. Periodically write entropy data to disk.

This commit is contained in:
Nick Kralevich
2009-06-17 16:03:22 -07:00
parent 3f4263fac6
commit 4fb256117c
3 changed files with 194 additions and 0 deletions

View File

@@ -97,6 +97,9 @@ class ServerThread extends Thread {
// Critical services...
try {
Log.i(TAG, "Starting Entropy Service.");
ServiceManager.addService("entropy", new EntropyService());
Log.i(TAG, "Starting Power Manager.");
power = new PowerManagerService();
ServiceManager.addService(Context.POWER_SERVICE, power);