device_google_tangorpro/conf/init.tangorpro.rc
normanwhl ae0e8ef2fb Integrate wifi configuraions for tangorpro
1. Add supplicant service init
2. Add p2p and aware interface property
3. Force softap use wlan1 interface
4. verbose logging always on for userdebug build

Bug: 235906179
Test: 1. check supplicant can be started
      2. check property ro.vendor.wifi.sap.interface
      3. check property wifi.direct.interface
      4. check property wifi.aware.interface

Change-Id: I92d83db81e5260b8bb781e9263c0bef62fbf8d7a
2022-06-14 07:34:37 +00:00

77 lines
3.1 KiB
Text

# Tangorpro specific init.rc
import /vendor/etc/init/hw/init.gs201.rc
on init
# NFC streset tool name
setprop persist.vendor.nfc.streset libstreset21
setprop persist.vendor.se.streset libstreset21
# When ro.build.flavor=factory_tangorpro-userdebug, add vendor/bin/factory to default path
on init && property:ro.build.flavor=factory_tangorpro-userdebug
export PATH /product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin:/vendor/bin/factory
on early-boot
# Wait for insmod_sh to finish all common modules
wait_for_prop vendor.common.modules.ready 1
start insmod_sh_tangorpro
# Thermal
on late-init
setprop persist.vendor.disable.thermal.control 1
service insmod_sh_tangorpro /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.tangorpro.cfg
class main
user root
group root system
disabled
oneshot
on boot && property:ro.build.flavor=factory_tangorpro-userdebug
# FTM log folder
mkdir /data/ftmlog 0775 system system
# Audio test folder
mkdir /data/AudioTest 0775 system system
on property:vendor.mfgapi.touchpanel.permission=1
chmod 0600 /sys/devices/virtual/sec/tsp/cmd
chown system system /sys/devices/virtual/sec/tsp/cmd
# Touch
on property:vendor.device.modules.ready=1
chown system system /sys/devices/platform/10d10000.spi/spi_master/spi0/spi0.0/input/nvt_touch/force_touch_active
chown system system /sys/devices/platform/10d10000.spi/spi_master/spi0/spi0.0/input/nvt_touch/nvt_dttw_mode
chown system system /sys/devices/platform/10d10000.spi/spi_master/spi0/spi0.0/input/nvt_touch/nvt_fw_history
chown system system /sys/devices/platform/10d10000.spi/spi_master/spi0/spi0.0/input/nvt_touch/nvt_high_sensi_mode
on property:vendor.all.modules.ready=1 && property:persist.sys.tap_gesture=
write /sys/devices/platform/10d10000.spi/spi_master/spi0/spi0.0/input/nvt_touch/nvt_dttw_mode 1
write /sys/devices/platform/exynos-drm/primary-panel/force_power_on 1
on property:vendor.all.modules.ready=1 && property:persist.sys.tap_gesture=1
write /sys/devices/platform/10d10000.spi/spi_master/spi0/spi0.0/input/nvt_touch/nvt_dttw_mode 1
write /sys/devices/platform/exynos-drm/primary-panel/force_power_on 1
on property:vendor.all.modules.ready=1 && property:persist.sys.tap_gesture=0
write /sys/devices/platform/10d10000.spi/spi_master/spi0/spi0.0/input/nvt_touch/nvt_dttw_mode 0
write /sys/devices/platform/exynos-drm/primary-panel/force_power_on 0
# Fingerprint
on post-fs-data
chown system system /dev/goodix_fp
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g7.app
# Wifi
on post-fs-data
setprop wifi.direct.interface p2p-dev-wlan0
setprop wifi.aware.interface aware_nmi0
service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
-O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1p2p_device=1 \
-m/vendor/etc/wifi/p2p_supplicant.conf \
-g@android:wpa_wlan0 -dd
interface aidl android.hardware.wifi.supplicant.ISupplicant/default
socket wpa_wlan0 dgram 660 wifi wifi
class main
disabled
oneshot