nx: Nuke wifi_reset from orbit
* New cypress-fmac works with sleep! Change-Id: I62655f9b4f6ac2b1f5240f28305eb0578f934bfd
This commit is contained in:
1 parent
4d434fb8c7
commit
bac88dd586
8 files changed
-52
No files matched your search
@@ -91,9 +91,7 @@ TARGET_RELEASETOOLS_EXTENSIONS := device/nintendo/nx/releasetools
|
||||
VENDOR_SECURITY_PATCH := 2022-04-05
|
||||
|
||||
# SELinux
|
||||
SELINUX_IGNORE_NEVERALLOWS := true
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += device/nintendo/nx/sepolicy/vendor
|
||||
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/nintendo/nx/sepolicy/private
|
||||
|
||||
# Treble
|
||||
BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
|
||||
|
||||
@@ -190,5 +190,4 @@ endif
|
||||
|
||||
# WiFi
|
||||
PRODUCT_PACKAGES += \
|
||||
wifi_reset \
|
||||
WifiOverlay
|
||||
@@ -101,15 +101,6 @@ LOCAL_MODULE_CLASS := EXECUTABLES
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
# Goes on system due to needing `settings` and `svc`
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := wifi_reset
|
||||
LOCAL_SRC_FILES := wifi_reset.sh
|
||||
LOCAL_MODULE_SUFFIX := .sh
|
||||
LOCAL_INIT_RC := wifi_reset.rc
|
||||
LOCAL_MODULE_CLASS := EXECUTABLES
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := nx_cec.rc
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
service wifi_reset /system/bin/wifi_reset.sh
|
||||
user root
|
||||
group root system
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:wlan.driver.status=unloaded
|
||||
start wifi_reset
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
user_state=$(/system/bin/settings get global wifi_on)
|
||||
if [ $user_state = "1" ]; then
|
||||
svc wifi enable
|
||||
fi
|
||||
@@ -1,2 +0,0 @@
|
||||
# wifi_reset.sh
|
||||
/system/bin/wifi_reset.sh u:object_r:wifi_reset_exec:s0
|
||||
@@ -1,6 +0,0 @@
|
||||
# wifi_reset.sh
|
||||
allow system_server wifi_reset:fifo_file rw_file_perms;
|
||||
|
||||
allow system_server wifi_reset:binder call;
|
||||
|
||||
allow system_server wifi_reset:fd use;
|
||||
@@ -1,18 +0,0 @@
|
||||
# /system/bin/wifi_reset.sh
|
||||
type wifi_reset, domain;
|
||||
type wifi_reset_exec, exec_type, file_type, system_file_type;
|
||||
|
||||
init_daemon_domain(wifi_reset)
|
||||
binder_use(wifi_reset)
|
||||
|
||||
allow wifi_reset settings_service:service_manager find;
|
||||
|
||||
allow wifi_reset system_server:binder {call transfer};
|
||||
|
||||
allow wifi_reset wifi_service:service_manager find;
|
||||
|
||||
# neverallow - to read #!/system/bin/sh
|
||||
allow wifi_reset shell_exec:file rx_file_perms;
|
||||
|
||||
# neverallow - read/open & execute_no_trans on /system/bin/settings
|
||||
allow wifi_reset system_file:file {r_file_perms execute execute_no_trans};
|
||||
Reference in new issue
Block a user