Skip to content

Commit

Permalink
sdm845-common: cleanup for passing SELinux neverallows
Browse files Browse the repository at this point in the history
  • Loading branch information
oobaboo committed Jan 15, 2024
1 parent 0607a67 commit 6f9e93c
Show file tree
Hide file tree
Showing 77 changed files with 405 additions and 2,731 deletions.
2 changes: 1 addition & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ $(BDWLAN_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "BDWLAN firmware link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /mnt/vendor/persist-lg/wifi/qcom/$(notdir $(basename $@)_cache.bin) $@
$(hide) ln -sf /vendor/etc/wifi/$(notdir $@) $@

WCNSS_INI_SYMLINK := $(TARGET_OUT_VENDOR)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini
$(WCNSS_INI_SYMLINK): $(LOCAL_INSTALLED_MODULE)
Expand Down
20 changes: 11 additions & 9 deletions BoardConfigCommon.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@

COMMON_PATH := device/lge/sdm845-common

# inherit from common lge
-include device/lge/common/BoardConfigCommon.mk
BOARD_VENDOR := lge

# Inherit from the proprietary version
include vendor/lge/sdm845-common/BoardConfigVendor.mk

# Architecture
TARGET_ARCH := arm64
Expand Down Expand Up @@ -95,6 +97,9 @@ USE_DEVICE_SPECIFIC_GPS := true
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true

# Health
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH := /sys/class/power_supply/battery/battery_charging_enabled

# HIDL
DEVICE_MANIFEST_FILE += $(COMMON_PATH)/manifest.xml
DEVICE_MATRIX_FILE += $(COMMON_PATH)/compatibility_matrix.xml
Expand Down Expand Up @@ -171,12 +176,12 @@ ENABLE_VENDOR_RIL_SERVICE := true
#TARGET_PROVIDES_QTI_TELEPHONY_JAR := true
TARGET_RIL_VARIANT := caf

# Sepolicy
# SELinux
include device/qcom/sepolicy_vndr-legacy-um/SEPolicy.mk
include hardware/lge/sepolicy/SEPolicy.mk
BOARD_VENDOR_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/vendor
PRODUCT_PRIVATE_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/private
PRODUCT_PUBLIC_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/public
SELINUX_IGNORE_NEVERALLOWS := true
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/private
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/public

# Soong namespaces
PRODUCT_SOONG_NAMESPACES += $(VENDOR_PATH)
Expand Down Expand Up @@ -212,6 +217,3 @@ WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true
# Broken R
BUILD_BROKEN_PREBUILT_ELF_FILES := true
BUILD_BROKEN_VINTF_PRODUCT_COPY_FILES := true

# Inherit from the proprietary version
-include vendor/lge/sdm845-common/BoardConfigVendor.mk
18 changes: 9 additions & 9 deletions gps/gps.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
ERR_ESTIMATE=0

#NTP server
NTP_SERVER=time.xtracloud.net
NTP_SERVER=2.android.pool.ntp.org

#XTRA CA path
XTRA_CA_PATH=/usr/lib/ssl-1.1/certs

# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
# If DEBUG_LEVEL is commented, Android's logging levels will be used
DEBUG_LEVEL = 3
DEBUG_LEVEL = 2

# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
INTERMEDIATE_POS=1

# supl version 1.0
SUPL_VER=0x10000
# supl version 3.0
SUPL_VER=0x30000

# Emergency SUPL, 1=enable, 0=disable
SUPL_ES=1
Expand All @@ -45,7 +45,7 @@ CAPABILITIES=0x17

# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
# ACCURACY_THRES=5000
ACCURACY_THRES=1

################################
##### AGPS server settings #####
Expand Down Expand Up @@ -146,7 +146,7 @@ SGLTE_TARGET=0
# 0x1: RRC CPlane
# 0x2: RRLP UPlane
# 0x4: LLP Uplane
A_GLONASS_POS_PROTOCOL_SELECT = 0
A_GLONASS_POS_PROTOCOL_SELECT = 0x4

##################################################
# Select technology for LPPe Control Plane
Expand All @@ -155,7 +155,7 @@ A_GLONASS_POS_PROTOCOL_SELECT = 0
# 0x2: WLAN AP Measurements for LPPe CP
# 0x4: SRN AP measurement for CP
# 0x8: Sensor Barometer Measurement LPPe CP
#LPPE_CP_TECHNOLOGY = 0
LPPE_CP_TECHNOLOGY = 0x10

##################################################
# Select technology for LPPe User Plane
Expand All @@ -164,7 +164,7 @@ A_GLONASS_POS_PROTOCOL_SELECT = 0
# 0x2: WLAN AP Measurements for LPPe UP
# 0x4: SRN AP measurement for UP
# 0x8: Sensor Barometer Measurement LPPe UP
#LPPE_UP_TECHNOLOGY = 0
LPPE_UP_TECHNOLOGY = 0x10

##################################################
# AGPS_CONFIG_INJECT
Expand Down
4 changes: 2 additions & 2 deletions gps/izat.conf
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ VENDOR_ENHANCED_PROCESS=0

PROCESS_NAME=xtwifi-inet-agent
PROCESS_ARGUMENT=
PROCESS_STATE=ENABLED
PROCESS_STATE=DISABLED
PROCESS_GROUPS=inet gps
PREMIUM_FEATURE=1
IZAT_FEATURE_MASK=0xc03
Expand All @@ -201,7 +201,7 @@ VENDOR_ENHANCED_PROCESS=1

PROCESS_NAME=xtwifi-client
PROCESS_ARGUMENT=
PROCESS_STATE=ENABLED
PROCESS_STATE=DISABLED
PROCESS_GROUPS=wifi inet gps system oem_2904
PREMIUM_FEATURE=1
IZAT_FEATURE_MASK=0xd03
Expand Down
31 changes: 0 additions & 31 deletions light/Android.bp

This file was deleted.

191 changes: 0 additions & 191 deletions light/Light.cpp

This file was deleted.

Loading

0 comments on commit 6f9e93c

Please sign in to comment.