summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/RandomBlock.java
Commit message (Collapse)AuthorAgeFilesLines
* Move some system services to separate directoriesAmith Yamasani2013-12-191-101/+0
| | | | | | | | Refactored the directory structure so that services can be optionally excluded. This is step 1. Will be followed by another change that makes it possible to remove services from the build. Change-Id: Ideacedfd34b5e213217ad3ff4ebb21c4a8e73f85
* Reduce EntropyMixer seed size from 4096 to 512 bytes.Alex Klyubin2013-10-031-2/+2
| | | | | | | The suggested seed size from Linux drivers/char/random.c is 512 bytes rather than the 4096 bytes currently used. Change-Id: I3dd55105f0a95ce9cda34b4cf08987b8a28c4ac9
* You can't fsync(2) /dev/urandom...Elliott Hughes2011-04-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | ...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
* Switch the services library to using the new SlogJoe Onorato2010-03-011-4/+4
|
* Work on issue #2163789: Way too much loggingDianne Hackborn2009-10-041-2/+3
| | | | | | Dr.No from mcleron. Change-Id: Iaca2268684f83fe8757e64db0b0e047a19755311
* Update RandomBlock to use RandomAccessFile. This helpsNick Kralevich2009-06-181-7/+17
| | | | | | prevent certain unusual conditions from corrupting the entropy file. (for example, if Android should happen to crash while a write is in progress)
* load entropy data at boot. Periodically write entropy data to disk.Nick Kralevich2009-06-181-0/+90