From 589e1d8d8931b6a800ccaeed63615dafa2798089 Mon Sep 17 00:00:00 2001 From: chenpaul Date: Sat, 20 Feb 2021 10:28:10 +0800 Subject: [PATCH] wifi - Give execute permission to data/vendor/wifi for pixelLogger In hostapd, there have hostapd.android.rc and make /data/vendor/wifi with permission 770 when the device boots up. It will overwrite the permission from slider specific rc, which makes this folder without "+x" permission. In order to make Pixel Logger can write config files in this folder. This change will make sure "/data/vendor/wifi" have +x permission Bug: 159650456 Test: wifi is workable data/vendor/wifi with 771 permission Change-Id: I5b396fc41a4eddefc04d43f8e3d276787d722726 --- conf/init.gs101.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index c5739f56..cdf992f0 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.rc @@ -271,6 +271,10 @@ on post-fs-data mkdir /data/vendor/hal_neuralnetworks_darwinn 0770 system system mkdir /data/vendor/hal_neuralnetworks_darwinn/checksum_cache 0770 system system +on zygote-start + # For PixelLogger configuration file. + chmod 0771 /data/vendor/wifi + on post-fs-data # Create the directories used by the Wireless subsystem mkdir /data/vendor/wifi 0771 wifi wifi