Permalink
Browse files

Enable entropy feeding from the OMAP3 hardware random number generator

Change-Id: I363278ca1d317c0547f524b56887668a4cc54fee
  • Loading branch information...
nadlabak committed Jan 17, 2013
1 parent 7faee61 commit 7dcccd11fbea7cb1f22f990216e18c73f7998f83
Showing with 14 additions and 0 deletions.
  1. BIN prebuilt/bin/rngd
  2. +12 −0 prebuilt/etc/init.d/30rngd
  3. +2 −0 umts_sholes.mk
View
Binary file not shown.
View
@@ -0,0 +1,12 @@
+#!/system/bin/sh
+
+# Enable entropy feeding from the OMAP3 hardware random number generator
+#
+# Although it ( http://forum.xda-developers.com/showthread.php?t=1987032 ) seems
+# to be rather highly controversial subject (as discussed eg. here
+# https://code.google.com/p/android/issues/detail?id=42265 ), quite big drops
+# of the available entropy in the pool can be occassionaly seen despite this patch:
+# https://patchwork.kernel.org/patch/1745611/ .
+# So let's take the advantage of the omap3 hw rng and use it to seed the pool.
+rngd -r /dev/hw_random
+
View
@@ -151,6 +151,7 @@ PRODUCT_COPY_FILES += \
device/motorola/umts_sholes/prebuilt/etc/init.d/60autoboot_or:/system/etc/init.d/60autoboot_or \
device/motorola/umts_sholes/prebuilt/etc/init.d/12swap:/system/etc/init.d/12swap \
device/motorola/umts_sholes/prebuilt/etc/init.d/99cpufreq_stats:/system/etc/init.d/99cpufreq_stats \
+ device/motorola/umts_sholes/prebuilt/etc/init.d/30rngd:/system/etc/init.d/30rngd \
device/motorola/umts_sholes/prebuilt/etc/location.cfg:/system/etc/location.cfg \
device/motorola/umts_sholes/prebuilt/etc/powervr.ini:/system/etc/powervr.ini \
device/motorola/umts_sholes/prebuilt/etc/gpsconfig.xml:/system/etc/gpsconfig.xml \
@@ -159,6 +160,7 @@ PRODUCT_COPY_FILES += \
device/motorola/umts_sholes/prebuilt/bin/init_bp_nvm.sh:/system/bin/init_bp_nvm.sh \
device/motorola/umts_sholes/prebuilt/bin/init_early_bind_mounts.sh:/system/bin/init_early_bind_mounts.sh \
device/motorola/umts_sholes/prebuilt/bin/ttsmovetool.sh:/system/bin/ttsmovetool.sh \
+ device/motorola/umts_sholes/prebuilt/bin/rngd:/system/bin/rngd \
device/motorola/umts_sholes/prebuilt/bin/sh_hijack.sh:/system/bin/sh_hijack.sh \
device/motorola/umts_sholes/prebuilt/bin/tcmd:/system/bin/tcmd \
device/motorola/umts_sholes/prebuilt/usr/keychars/sholesp0b-keypad.kcm.bin:/system/usr/keychars/sholesp0b-keypad.kcm.bin \

0 comments on commit 7dcccd1

Please sign in to comment.