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: Ia0a8912d99274437ccdf255b9f6180963c3c8915
diff --git a/init.angler.rc b/init.angler.rc
index de6a38f..edb39f4 100755
--- a/init.angler.rc
+++ b/init.angler.rc
@@ -415,7 +415,7 @@
-O/data/misc/wifi/sockets \
-m/data/misc/wifi/p2p_supplicant.conf \
-puse_p2p_group_interface=1p2p_device=1 \
- -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
+ -g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
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)