History log of /frameworks/base/services/java/com/android/server/EntropyService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6907891b1f2d706fa2bd6c40b986f73e5666e00e 04-Apr-2011 Elliott Hughes <enh@google.com> You can't fsync(2) /dev/urandom...

...so don't even try. Doing so leads to this:

W/EntropyService( 1586): unable to load initial entropy (first boot?)
W/EntropyService( 1586): java.io.SyncFailedException: fsync failed: EINVAL (Invalid argument)
W/EntropyService( 1586): at java.io.FileDescriptor.sync(FileDescriptor.java:73)
W/EntropyService( 1586): at java.io.RandomAccessFile.write(RandomAccessFile.java:694)
W/EntropyService( 1586): at java.io.RandomAccessFile.write(RandomAccessFile.java:676)
W/EntropyService( 1586): at com.android.server.RandomBlock.toDataOut(RandomBlock.java:88)
W/EntropyService( 1586): at com.android.server.RandomBlock.toFile(RandomBlock.java:70)
W/EntropyService( 1586): at com.android.server.EntropyService.loadInitialEntropy(EntropyService.java:99)
W/EntropyService( 1586): at com.android.server.EntropyService.<init>(EntropyService.java:86)
W/EntropyService( 1586): at com.android.server.EntropyService.<init>(EntropyService.java:76)
W/EntropyService( 1586): at com.android.server.ServerThread.run(SystemServer.java:139)
W/EntropyService( 1586): Caused by: libcore.io.ErrnoException: fsync failed: EINVAL (Invalid argument)
W/EntropyService( 1586): at libcore.io.Posix.fsync(Native Method)
W/EntropyService( 1586): at libcore.io.BlockGuardOs.fsync(BlockGuardOs.java:39)
W/EntropyService( 1586): at java.io.FileDescriptor.sync(FileDescriptor.java:71)
W/EntropyService( 1586): ... 8 more

Change-Id: I598a9456eccec0ca087f1568d47b6b8e531de8a8
/frameworks/base/services/java/com/android/server/EntropyService.java
b91ec410c8ecd09390e7122115e2ab6b7aafefb8 27-Sep-2010 Nick Kralevich <nnk@google.com> squeeze a few more bits of randomness into /dev/random

Change-Id: Ida30c33985411f353c828b43ea26ca1b7e6502af
/frameworks/base/services/java/com/android/server/EntropyService.java
93a68398b661c02d6c417a2a04e64a6750a9a119 20-Mar-2010 Nick Kralevich <nnk@google.com> Unittests for EntropyService. Make EntropyService more testable.

I've been meaning to write these tests for a long time...

Use "runtest frameworks-services" to run these tests.

Change-Id: I3a3cb7eda547f4a790f38be884b4a583426c7326
/frameworks/base/services/java/com/android/server/EntropyService.java
8a9b22056b13477f59df934928c00c58b5871c95 27-Feb-2010 Joe Onorato <joeo@android.com> Switch the services library to using the new Slog
/frameworks/base/services/java/com/android/server/EntropyService.java
b8cba95ffd4d9be0edace7a9eb42286e668ef3e3 19-Jun-2009 Nick Kralevich <nnk@google.com> At boot time, add additional per-device information to the
kernel randomness pool. This helps increase the
quality / uniqueness of the random numbers, and is especially
important during the device's first boot, when insufficient
randomness is available.
/frameworks/base/services/java/com/android/server/EntropyService.java
4fb256117ca271e3e37284a19b663d116f6ec20c 18-Jun-2009 Nick Kralevich <nnk@google.com> load entropy data at boot. Periodically write entropy data to disk.
/frameworks/base/services/java/com/android/server/EntropyService.java