From f491631f89e830e098fcd32dd647953ed2b6a6e4 Mon Sep 17 00:00:00 2001 From: Jeff Vander Stoep Date: Thu, 30 Nov 2017 12:47:48 -0800 Subject: wifi_supplicant: deprecate entropy.bin Wpa_supplicant's random pool is not necessary on Android. Randomness is already provided by the entropymixer service which ensures sufficient entropy is maintained across reboots. Commit b410eb1913 'Initialize /dev/urandom earlier in boot' seeds /dev/urandom with that entropy before either wpa_supplicant or hostapd are run. Bug: 34980020 Test: Use wifi and wifi tethering on Taimen Change-Id: Ib85b8335635546da61fe9a98150fdc423226a753 --- init.fugu.rc | 1 - sepolicy/hostapd.te | 1 - 2 files changed, 2 deletions(-) diff --git a/init.fugu.rc b/init.fugu.rc index c41f1c0..eb7bd49 100644 --- a/init.fugu.rc +++ b/init.fugu.rc @@ -190,7 +190,6 @@ service wpa_supplicant /system/vendor/bin/hw/wpa_supplicant \ -m/data/misc/wifi/p2p_supplicant.conf \ -puse_p2p_group_interface=1p2p_device=1use_multi_chan_concurrent=1 \ -O/data/misc/wifi/sockets \ - -e/data/misc/wifi/entropy.bin \ -g@android:wpa_wlan0 class main socket wpa_wlan0 dgram 660 wifi wifi diff --git a/sepolicy/hostapd.te b/sepolicy/hostapd.te index 15064a0..fdf6f51 100644 --- a/sepolicy/hostapd.te +++ b/sepolicy/hostapd.te @@ -1,5 +1,4 @@ # hostapd can read and write WiFi related data and configuration. -# For example, the entropy file is periodically updated. allow hostapd wifi_data_file:file rw_file_perms; r_dir_file(hostapd, wifi_data_file) -- cgit v1.2.3