From: Jan Altensen Date: Fri, 15 May 2020 11:01:14 +0000 (+0200) Subject: exynos9610: import configuration files X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=16da8a040886313f0142a44486b29dcf4f43a98d;p=GitHub%2Fmoto-9609%2Fandroid_device_motorola_exynos9610-common.git exynos9610: import configuration files Change-Id: Iaab7347758ebfef6cb325828d8d2cb6831edd6a6 --- diff --git a/common.mk b/common.mk index 89ab916..3d4fe74 100644 --- a/common.mk +++ b/common.mk @@ -39,6 +39,22 @@ AB_OTA_POSTINSTALL_CONFIG += \ FILESYSTEM_TYPE_system=ext4 \ POSTINSTALL_OPTIONAL_system=true + +# Audio +PRODUCT_COPY_FILES += \ + frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ + $(COMMON_PATH)/configs/audio/aov_ec_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/aov_ec_mixer_paths.xml \ + $(COMMON_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ + $(COMMON_PATH)/configs/audio/audio_ext_spkr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_ext_spkr.conf \ + $(COMMON_PATH)/configs/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \ + $(COMMON_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ + $(COMMON_PATH)/configs/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ + $(COMMON_PATH)/configs/audio/mixer_paths.retin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.retin.xml \ + $(COMMON_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ + frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ + frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ + frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml + # Update engine PRODUCT_PACKAGES += \ update_engine \ @@ -59,6 +75,11 @@ PRODUCT_PACKAGES += \ FMRadio \ libfmjni +# GPS +PRODUCT_COPY_FILES += \ + $(COMMON_PATH)/configs/gps/gps.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.cfg + + # Graphics # Device uses high-density artwork where available PRODUCT_AAPT_CONFIG := xlarge @@ -74,6 +95,18 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ $(COMMON_PATH)/configs/init/init.recovery.exynos9610.rc:$(TARGET_COPY_OUT_ROOT)/init.recovery.exynos9610.rc +# Media +PRODUCT_COPY_FILES += \ + $(COMMON_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ + $(COMMON_PATH)/configs/media/media_codecs_dolby_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_dolby_audio.xml \ + $(COMMON_PATH)/configs/media/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \ + $(COMMON_PATH)/configs/media/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \ + $(COMMON_PATH)/configs/media/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \ + $(COMMON_PATH)/configs/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ + $(COMMON_PATH)/configs/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \ + $(COMMON_PATH)/configs/media/media_profiles_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \ + $(COMMON_PATH)/configs/media/media_profiles_vendor_V1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor_V1.xml + # NFC PRODUCT_PACKAGES += \ NfcNci \ @@ -81,6 +114,10 @@ PRODUCT_PACKAGES += \ SecureElement \ com.android.nfc_extras +PRODUCT_COPY_FILES += \ + $(COMMON_PATH)/configs/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \ + $(COMMON_PATH)/configs/nfc/libnfc-sec-vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-sec-vendor.conf + # Permissions PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \ @@ -122,6 +159,32 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \ frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hcef.xml +# Public Libraries +PRODUCT_COPY_FILES += \ + $(COMMON_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt + +# Recovery +PRODUCT_PACKAGES += \ + android.hardware.boot@1.0-impl.exynos.recovery + +# Seccomp +PRODUCT_COPY_FILES += \ + $(COMMON_PATH)/configs/seccomp/configstore@1.1.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/configstore@1.1.policy \ + $(COMMON_PATH)/configs/seccomp/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy + +# Sensors +PRODUCT_COPY_FILES += \ + $(COMMON_PATH)/configs/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf \ + $(COMMON_PATH)/configs/sensors/mot_sensor_settings.json:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/mot_sensor_settings.json + +# Thermal +PRODUCT_COPY_FILES += \ + $(COMMON_PATH)/configs/thermal/exynos-thermal.conf:$(TARGET_COPY_OUT_VENDOR)/exynos-thermal.conf \ + $(COMMON_PATH)/configs/thermal/exynos-thermal.env:$(TARGET_COPY_OUT_VENDOR)/exynos-thermal.env \ + $(COMMON_PATH)/configs/thermal/exynos-thermal-kane.conf:$(TARGET_COPY_OUT_VENDOR)/exynos-thermal-kane.conf \ + $(COMMON_PATH)/configs/thermal/exynos-thermal-kane-retin.conf:$(TARGET_COPY_OUT_VENDOR)/exynos-thermal-kane-retin.conf \ + $(COMMON_PATH)/configs/thermal/exynos-thermal-troika.conf:$(TARGET_COPY_OUT_VENDOR)/exynos-thermal-troika.conf + # WiFi PRODUCT_PACKAGES += \ android.hardware.wifi@1.0-service \ @@ -132,3 +195,8 @@ PRODUCT_PACKAGES += \ libwpa_client \ wpa_supplicant \ wpa_supplicant.conf \ + +PRODUCT_COPY_FILES += \ + $(COMMON_PATH)/configs/wifi/p2p_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant.conf \ + $(COMMON_PATH)/configs/wifi/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf + diff --git a/configs/audio/a2dp_audio_policy_configuration.xml b/configs/audio/a2dp_audio_policy_configuration.xml new file mode 100644 index 0000000..7bcab5c --- /dev/null +++ b/configs/audio/a2dp_audio_policy_configuration.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/aov_ec_mixer_paths.xml b/configs/audio/aov_ec_mixer_paths.xml new file mode 100644 index 0000000..cebc69f --- /dev/null +++ b/configs/audio/aov_ec_mixer_paths.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/configs/audio/audio_effects.xml b/configs/audio/audio_effects.xml new file mode 100644 index 0000000..b988a7c --- /dev/null +++ b/configs/audio/audio_effects.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/audio_ext_spkr.conf b/configs/audio/audio_ext_spkr.conf new file mode 100644 index 0000000..8f7dd2b --- /dev/null +++ b/configs/audio/audio_ext_spkr.conf @@ -0,0 +1,27 @@ +global_config { + name Kane +} + +ring { + #dB to attenuate playback to meet safety level at each volume step + #16 steps total, 15...0. In case of truncated list, last attenuation + #given will be applied to all lower volume steps + attenuation 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 + knee_step 16 +} + +voice { + #dB to attenuate playback to meet safety level at each volume step + #16 steps total, 15...0. In case of truncated list, last attenuation + #given will be applied to all lower volume steps + attenuation 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 + knee_step 17 +} + +media { + #dB to attenuate playback to meet safety level at each volume step + #16 steps total, 15...0. In case of truncated list, last attenuation + #given will be applied to all lower volume steps + attenuation 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 + knee_step 16 +} diff --git a/configs/audio/audio_platform_info.xml b/configs/audio/audio_platform_info.xml new file mode 100644 index 0000000..16cd6a5 --- /dev/null +++ b/configs/audio/audio_platform_info.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/configs/audio/audio_policy_configuration.xml b/configs/audio/audio_policy_configuration.xml new file mode 100644 index 0000000..446698a --- /dev/null +++ b/configs/audio/audio_policy_configuration.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + Speaker + Earpiece + Telephony Tx + Built-In Mic + Built-In Back Mic + FM Tuner + Call Recording + + Speaker + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/audio_policy_volumes.xml b/configs/audio/audio_policy_volumes.xml new file mode 100644 index 0000000..6ac2593 --- /dev/null +++ b/configs/audio/audio_policy_volumes.xml @@ -0,0 +1,205 @@ + + + + + + + 0,-2700 + 33,-1800 + 66,-900 + 100,0 + + + 0,-2400 + 33,-1600 + 66,-800 + 100,0 + + + 0,-2400 + 33,-1600 + 66,-800 + 100,0 + + + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + + + + + + 1,-3570 + 33,-2010 + 66,-1020 + 100,0 + + + + + + + + + + + + 1,-2970 + 33,-2010 + 66,-1020 + 100,0 + + + + + + + 1,-3370 + 33,-2210 + 66,-1420 + 100,-400 + + + + + + 0,-4200 + 33,-2800 + 66,-1400 + 100,0 + + + 0,-2400 + 33,-1600 + 66,-800 + 100,0 + + + 0,-4200 + 33,-2800 + 66,-1400 + 100,0 + + + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + + + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/mixer_paths.retin.xml b/configs/audio/mixer_paths.retin.xml new file mode 100644 index 0000000..c2cdb8f --- /dev/null +++ b/configs/audio/mixer_paths.retin.xml @@ -0,0 +1,2807 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/mixer_paths.xml b/configs/audio/mixer_paths.xml new file mode 100644 index 0000000..90671e8 --- /dev/null +++ b/configs/audio/mixer_paths.xml @@ -0,0 +1,2808 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/r_submix_audio_policy_configuration.xml b/configs/audio/r_submix_audio_policy_configuration.xml new file mode 100644 index 0000000..dc2a5ec --- /dev/null +++ b/configs/audio/r_submix_audio_policy_configuration.xml @@ -0,0 +1,47 @@ + + + + + + Remote Submix In + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/usb_audio_policy_configuration.xml b/configs/audio/usb_audio_policy_configuration.xml new file mode 100644 index 0000000..a487ecb --- /dev/null +++ b/configs/audio/usb_audio_policy_configuration.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/gps/gps.cfg b/configs/gps/gps.cfg new file mode 100644 index 0000000..1ffdf3e --- /dev/null +++ b/configs/gps/gps.cfg @@ -0,0 +1,87 @@ +############################################ +#debug_enable=1 +GlueLayer_ToolConfigSelection=2 +#user_ports_tcp_name=Autotest +#user_ports_tcp_port=7555 +PosReq_Supl2Params_SuplNiUdpPort=7275 +Agnss_SuplUseCpNi=1 +debug_console=1 +debug_device=1 +############################################ +Sif_UseFwXtraInterface=0 +GlueLayer_YearOfHW=2019 +gf_enabled=0 +notifResponsivenessMs=20000 +firmware_run_flags=0x28 + +LocTech_Constraints=0x2f + +GlueLayer_IsGedKeyExist=1 + +Agnss_SuplUseApn=1 +Agnss_SuplUseApnNi=0 +Agnss_SuplUseFwDns=0 + +#Support A-GPS only in CP/UP +GlueLayer_IsCpGloAidingEnable=0 +Agnss_IsGloAidingEnable=0 +Agnss_IsGalAidingEnable=0 +Agnss_IsBdsAidingEnable=0 + +CP_LocTech_PrimaryConst=0 +CP_LocTech_Constraints=1 +CP_LocTech_Requirements=0 +GlueLayer_LtsTimeGuard=1 + +RfPathLossDb_Ap=0 +RfPathLossDb_Cp=5 + +#enabled IP2 cal with custom settings +# [6:2]: 19 AGC gain fixed value during ip2 cal +# [12:7]: 0 RF Cal bypass value. 0 for invalid +# [14:13]: 0 RO_COUPLING +# [16:15]: 0 MIX_LO_CM_SEL +# [19:17]: 5 MIX_IF_GM_TRIM +# [21:20]: 0 IP2_DAC_STEP +# [23:22]: 0 IP2_DAC_CONFIG +# [27:24]: 7 IP2_ACC_LENGTH +# [28]: 1 Use IP2 Cal override configuration + +Chip_Configuration_ChipCfgIp2Cal= 0x170A004C +scheduling_enabled=1 + +# force insample mode and sample rate +Chip_Configuration_IspTestConfig=0x28242C22 + +GlueLayer_IsCDMACpEnable=1 + +# To Enable LPP without LPPe +GlueLayer_IsLPPCpBitmask=7 +GlueLayer_IsCpLPPeEnable=0 + +SETCaps_IsOtdoa=1 + +######### +### uncomment line below for lab testing +#Sif_OperationMode=0 +#GlueLayer_isForceIPV6=1 +Agnss_ShaVariant=256 +Agnss_TlsVariant=1 +#Agnss_ServerAddress=slp.rs.de +#Agnss_IsCertiCheckBypass=1 +SETCaps_IsLpp=1 +#GlueLayer_IsMOReqIgnored=1 + +UP_LocTech_PrimaryConst=0 +UP_LocTech_Constraints=1 +UP_LocTech_Requirements=0 +#StartupConfiguration_StartMode=4 +GlueLayer_IsSlpIpCachingEnable=0 +Chip_Configuration_AidingConfiguration=0x0002004F + +SETCaps_SuplUT1=11 +SETCaps_SuplUT2=11 +SETCaps_SuplUT3=11 + +#3G_CP_SETCaps_IsMSA=0 +#4G_CP_SETCaps_IsMSA=0 diff --git a/configs/media/media_codecs.xml b/configs/media/media_codecs.xml new file mode 100644 index 0000000..d7a31b5 --- /dev/null +++ b/configs/media/media_codecs.xml @@ -0,0 +1,272 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_dolby_audio.xml b/configs/media/media_codecs_dolby_audio.xml new file mode 100644 index 0000000..1235428 --- /dev/null +++ b/configs/media/media_codecs_dolby_audio.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_google_audio.xml b/configs/media/media_codecs_google_audio.xml new file mode 100644 index 0000000..8899adc --- /dev/null +++ b/configs/media/media_codecs_google_audio.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_google_telephony.xml b/configs/media/media_codecs_google_telephony.xml new file mode 100644 index 0000000..5ad90d9 --- /dev/null +++ b/configs/media/media_codecs_google_telephony.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + diff --git a/configs/media/media_codecs_google_video.xml b/configs/media/media_codecs_google_video.xml new file mode 100644 index 0000000..829f403 --- /dev/null +++ b/configs/media/media_codecs_google_video.xml @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_performance.xml b/configs/media/media_codecs_performance.xml new file mode 100644 index 0000000..ecba9be --- /dev/null +++ b/configs/media/media_codecs_performance.xml @@ -0,0 +1,181 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_profiles_V1_0.xml b/configs/media/media_profiles_V1_0.xml new file mode 100644 index 0000000..02171bc --- /dev/null +++ b/configs/media/media_profiles_V1_0.xml @@ -0,0 +1,629 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_profiles_vendor.xml b/configs/media/media_profiles_vendor.xml new file mode 100644 index 0000000..74ca69b --- /dev/null +++ b/configs/media/media_profiles_vendor.xml @@ -0,0 +1,706 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_profiles_vendor_V1.xml b/configs/media/media_profiles_vendor_V1.xml new file mode 100644 index 0000000..9fd27ea --- /dev/null +++ b/configs/media/media_profiles_vendor_V1.xml @@ -0,0 +1,706 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/nfc/libnfc-nci.conf b/configs/nfc/libnfc-nci.conf new file mode 100644 index 0000000..0a0de92 --- /dev/null +++ b/configs/nfc/libnfc-nci.conf @@ -0,0 +1,90 @@ +########################## Start of libnfc-nci.conf ########################### +############################################################################### +# Application options +NFC_DEBUG_ENABLED=0 + +############################################################################### +# File used for NFA storage +NFA_STORAGE="/data/nfc" +PRESERVE_STORAGE=0x01 + +# Force tag polling for the following technology(s). +# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. +# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | +# NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 | +# NFA_TECHNOLOGY_MASK_B_PRIME | NFA_TECHNOLOGY_MASK_KOVIO | +# NFA_TECHNOLOGY_MASK_ACTIVE +# +# Notable bits: +# NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */ +# NFA_TECHNOLOGY_MASK_B 0x02 /* NFC Technology B */ +# NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */ +# NFA_TECHNOLOGY_MASK_ISO15693 0x08 /* Proprietary Technology */ +# NFA_TECHNOLOGY_MASK_KOVIO 0x20 /* Proprietary Technology */ +# NFA_TECHNOLOGY_MASK_ACTIVE 0x40 /* NFC Technology Active */ +POLLING_TECH_MASK=0x6F + +############################################################################### +# Force P2P to only listen for the following technology(s). +# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. +# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_F | +# NFA_TECHNOLOGY_MASK_ACTIVE +# +# Notable bits: +# NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */ +# NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */ +# NFA_TECHNOLOGY_MASK_ACTIVE 0x40 /* NFC Technology Active */ +P2P_LISTEN_TECH_MASK=0x44 + +UICC_LISTEN_TECH_MASK=0x07 + +#NFA_DM_CFG + +############################################################################### +# When screen is turned off, specify the desired power state of the controller. +# 0: power-off-sleep state; DEFAULT +# 1: full-power state +# 2: screen-off card-emulation (CE4/CE3/CE1 modes are used) +SCREEN_OFF_POWER_STATE=1 +############################################################################### + +############################################################################### +# Override the stack default for NFA_EE_MAX_EE_SUPPORTED set in nfc_target.h. +# The value is set assumeing discovery of 0x00(Host), 0xC0(Ese) and 0x80(UICC). +# If a platform will exclude and SE, this value can be reduced so that the stack +# will not wait any longer than necessary. +# Maximum EE supported number +NFA_MAX_EE_SUPPORTED=3 + +############################################################################### +# Default poll duration (in ms) +# The defualt is 500ms if not set (see nfc_target.h) +NFA_DM_DISC_DURATION_POLL=800 + +#POLL_FREQUENCY + +#NFA_AID_BLOCK_ROUTE + +#AID_FOR_EMPTY_SELECT + +############################################################################### +# Enable/Disable Block Route feature. +# Block Route will restrict routing to first matched rule +# Block Route enable 0x01 +# Block Route disable 0x00 +#NFA_BLOCK_ROUTE=0x00 + +############################################################################### +# AID_MATCHING constants +# AID_MATCHING_EXACT_ONLY 0x00 +# AID_MATCHING_EXACT_OR_PREFIX 0x01 +# AID_MATCHING_PREFIX_ONLY 0x02 +# AID_MATCHING_EXACT_OR_SUBSET_OR_PREFIX 0x03 +AID_MATCHING_MODE=0 + +############################################################################### +# AID Route power state for OffHost +OFFHOST_AID_ROUTE_PWR_STATE=0x3B +############################################################################### + +LEGACY_MIFARE_READER=1 diff --git a/configs/nfc/libnfc-sec-vendor.conf b/configs/nfc/libnfc-sec-vendor.conf new file mode 100644 index 0000000..d4e4a5e --- /dev/null +++ b/configs/nfc/libnfc-sec-vendor.conf @@ -0,0 +1,36 @@ +# Vendor common +NFA_POLL_BAIL_OUT_MODE=0 +PRESENCE_CHECK_ALGORITHM=5 +NFA_PROPRIETARY_CFG={00, 81, 82, 80, 8A, 81, 70, 74, F4} +DEFAULT_OFFHOST_ROUTE=0x03 +OFFHOST_ROUTE_ESE={82} +OFFHOST_ROUTE_UICC={83} +DEFAULT_NFCF_ROUTE=0x03 +############################################################################### +#Set the default Felica T3T System Code : +#This settings will be used when application does not set this parameter +DEFAULT_SYS_CODE={FE:FF} +#DEFAULT_SYS_CODE_ROUTE +#DEFAULT_SYS_CODE_PWR_STATE +DEFAULT_ROUTE=0x03 +#OFF_HOST_ESE_PIPE_ID +OFF_HOST_SIM_PIPE_ID=0x06 +ISO_DEP_MAX_TRANSCEIVE=261 +#DEVICE_HOST_WHITE_LIST +DEFAULT_ISODEP_ROUTE=0x83 + +# LSI +DEFAULT_SIMSLOT=1 +FW_CFG_CLK_SPEED=0x12 +FW_BASE_ADDRESS=0x2000 +WAKEUP_DELAY=20 +FW_DIR_PATH="/vendor/firmware" +FW_FILE_NAME="sec_s3nrn82_firmware.bin" +RF_DIR_PATH="/vendor/etc" +RF_FILE_NAME="sec_s3nrn82_rfreg.bin" +POWER_DRIVER="/dev/sec-nfc" +TRANS_DRIVER="/dev/sec-nfc" +TRACE_LEVEL=2 +DATA_TRACE=2 +SLEEP_TIMEOUT=1000 +FW_UPDATE_MODE=0 diff --git a/configs/public.libraries.txt b/configs/public.libraries.txt new file mode 100644 index 0000000..199bc1b --- /dev/null +++ b/configs/public.libraries.txt @@ -0,0 +1 @@ +libOpenCL.so diff --git a/configs/seccomp/configstore@1.1.policy b/configs/seccomp/configstore@1.1.policy new file mode 100644 index 0000000..937fddd --- /dev/null +++ b/configs/seccomp/configstore@1.1.policy @@ -0,0 +1,56 @@ +# Copyright (C) 2017 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +futex: 1 +# ioctl: arg1 == BINDER_WRITE_READ +ioctl: arg1 == 0xc0306201 +# prctl: arg0 == PR_SET_NAME || arg0 == PR_SET_VMA || arg0 == PR_SET_TIMERSLACK +# || arg0 == PR_GET_NO_NEW_PRIVS # used by crash_dump +# prctl: arg0 == 15 || arg0 == 0x53564d41 || arg0 == 29 || arg0 == 39 +# TODO(b/68162846) reduce scope of prctl() based on arguments +prctl: 1 +openat: 1 +mmap: 1 +mprotect: 1 +close: 1 +getuid: 1 +read: 1 +faccessat: 1 +write: 1 +fstat: 1 +clone: 1 +sched_setscheduler: 1 +munmap: 1 +lseek: 1 +sigaltstack: 1 +writev: 1 +setpriority: 1 +restart_syscall: 1 +exit: 1 +exit_group: 1 +rt_sigreturn: 1 +getrlimit: 1 +madvise: 1 +getdents64: 1 +clock_gettime: 1 +getpid: 1 + +# used during process crash by crash_dump to dump process info +rt_sigprocmask: 1 +rt_sigaction: 1 +# socket: arg0 == AF_LOCAL +socket: arg0 == 1 +connect: 1 +recvmsg: 1 +rt_tgsigqueueinfo: 1 diff --git a/configs/seccomp/mediacodec.policy b/configs/seccomp/mediacodec.policy new file mode 100644 index 0000000..d225e2c --- /dev/null +++ b/configs/seccomp/mediacodec.policy @@ -0,0 +1,3 @@ + +# for H/W Codec +getdents64: 1 diff --git a/configs/sensors/hals.conf b/configs/sensors/hals.conf new file mode 100644 index 0000000..82f6f8d --- /dev/null +++ b/configs/sensors/hals.conf @@ -0,0 +1,2 @@ +sensors.rp.so +sensors.chub.so diff --git a/configs/sensors/mot_sensor_settings.json b/configs/sensors/mot_sensor_settings.json new file mode 100644 index 0000000..9cd93c3 --- /dev/null +++ b/configs/sensors/mot_sensor_settings.json @@ -0,0 +1,30 @@ +{ + "chopchop params": { + "max_gyro_rotation": 102.0, + "max_chop_duration_ms": 350, + "first_accel_threshold": 36.0, + "second_accel_threshold": 20.0, + "min_magnitude_percentage": 0.25, + "max_xy_percentage": 0.45, + "gyroless": false + }, + "glance params": { + "motion_threshold": 0.04, + "cool_time": 3000, + "gesture_allow": 23, + "uncover_timeout": 900 + }, + "ltv params": { + "min_accel_rotation_deg": 19.0, + "accel_fast_alpha": 0.25, + "accel_slow_alpha": 0.0625, + "land_conv_cnt": 3, + "min_accel_rotation_wake_deg": 8.0, + "non_accel_rotation_ff_deg": 4.0, + "rearm_non_rotation_deg": 8.0, + "rearm_accel_rotation_deg": 30.0, + "rearm_forced_accel_rot_deg": 80.0, + "rearm_conv_cnt": 30, + "raw_accel_margin": 4.2 + } +} diff --git a/configs/thermal/exynos-thermal-kane-retin.conf b/configs/thermal/exynos-thermal-kane-retin.conf new file mode 100644 index 0000000..db94328 --- /dev/null +++ b/configs/thermal/exynos-thermal-kane-retin.conf @@ -0,0 +1,124 @@ +[REPORT-FRONT-TEMP] +algo_type monitor +sampling 300000 +sensor FRONT_TEMP +thresholds 45000 +thresholds_clr 43000 +actions report +action_info 1 + +[REPORT-BACK-TEMP] +algo_type monitor +sampling 300000 +sensor BACK_TEMP +thresholds 45000 +thresholds_clr 43000 +actions report +action_info 1 + +[SS-MSM-Cluster0] +algo_type ss +sampling 1000 +sensor therm_soc +device little_freq +set_point 46000 +set_point_clr 44000 +device_perf_floor 1326000 + +[MON-MSM-Cluster0] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 51000 +thresholds_clr 49000 +actions little_freq +action_info 1053000 + +[SS-MSM-Cluster1] +algo_type ss +sampling 1000 +sensor therm_soc +device big_freq +set_point 39000 +set_point_clr 37000 +device_perf_floor 1508000 + +[MON-MSM-Cluster1] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 49000 +thresholds_clr 47000 +actions big_freq +action_info 1352000 + +[MON-CHG-BATT] +algo_type monitor +sampling 1000 +sensor therm_chg +thresholds 44000 45000 46000 48000 49000 +thresholds_clr 42000 44000 45000 46000 48000 +actions charger charger charger charger charger +action_info 1 2 3 4 6 + +[CPU7_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 56000 +thresholds_clr 54000 +actions cpu_hotplug +action_info 7 + +[CPU6_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 57000 +thresholds_clr 55000 +actions cpu_hotplug +action_info 6 + +[CPU5_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 58000 +thresholds_clr 56000 +actions cpu_hotplug +action_info 5 + +[CPU4_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 59000 +thresholds_clr 57000 +actions cpu_hotplug +action_info 4 + +[MONITOR-LCD-BRIGHTNESS] +algo_type monitor +sampling 5000 +sensor therm_usb_con +thresholds 41000 43000 45000 46000 47000 48000 +thresholds_clr 40000 41000 43000 45000 46000 47000 +actions backlight backlight backlight backlight backlight backlight +action_info 240 225 210 200 190 180 + +[SS-GPU] +algo_type ss +sampling 1000 +sensor tmu_gpu +device gpu_freq +set_point 75000 +set_point_clr 65000 + +[REPORT-BIG-TEMP] +algo_type monitor +sampling 300000 +sensor tmu_big +thresholds 22000 +thresholds_clr 19000 +actions report +action_info 1 diff --git a/configs/thermal/exynos-thermal-kane.conf b/configs/thermal/exynos-thermal-kane.conf new file mode 100644 index 0000000..6b0138c --- /dev/null +++ b/configs/thermal/exynos-thermal-kane.conf @@ -0,0 +1,124 @@ +[REPORT-FRONT-TEMP] +algo_type monitor +sampling 300000 +sensor FRONT_TEMP +thresholds 45000 +thresholds_clr 43000 +actions report +action_info 1 + +[REPORT-BACK-TEMP] +algo_type monitor +sampling 300000 +sensor BACK_TEMP +thresholds 45000 +thresholds_clr 43000 +actions report +action_info 1 + +[SS-MSM-Cluster0] +algo_type ss +sampling 1000 +sensor therm_soc +device little_freq +set_point 46000 +set_point_clr 44000 +device_perf_floor 1326000 + +[MON-MSM-Cluster0] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 51000 +thresholds_clr 49000 +actions little_freq +action_info 1053000 + +[SS-MSM-Cluster1] +algo_type ss +sampling 1000 +sensor therm_soc +device big_freq +set_point 39000 +set_point_clr 37000 +device_perf_floor 1508000 + +[MON-MSM-Cluster1] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 49000 +thresholds_clr 47000 +actions big_freq +action_info 1352000 + +[MON-CHG-BATT] +algo_type monitor +sampling 1000 +sensor therm_chg +thresholds 45000 46000 48000 49000 50000 +thresholds_clr 43000 45000 46000 48000 49000 +actions charger charger charger charger charger +action_info 1 2 3 4 6 + +[CPU7_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 56000 +thresholds_clr 55000 +actions cpu_hotplug +action_info 7 + +[CPU6_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 57000 +thresholds_clr 56000 +actions cpu_hotplug +action_info 6 + +[CPU5_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 58000 +thresholds_clr 57000 +actions cpu_hotplug +action_info 5 + +[CPU4_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 59000 +thresholds_clr 58000 +actions cpu_hotplug +action_info 4 + +[MONITOR-LCD-BRIGHTNESS] +algo_type monitor +sampling 5000 +sensor therm_usb_con +thresholds 41000 43000 45000 46000 47000 48000 +thresholds_clr 40000 41000 43000 45000 46000 47000 +actions backlight backlight backlight backlight backlight backlight +action_info 240 225 210 200 190 180 + +[SS-GPU] +algo_type ss +sampling 1000 +sensor tmu_gpu +device gpu_freq +set_point 75000 +set_point_clr 65000 + +[REPORT-BIG-TEMP] +algo_type monitor +sampling 300000 +sensor tmu_big +thresholds 22000 +thresholds_clr 19000 +actions report +action_info 1 diff --git a/configs/thermal/exynos-thermal-troika.conf b/configs/thermal/exynos-thermal-troika.conf new file mode 100644 index 0000000..8368ac9 --- /dev/null +++ b/configs/thermal/exynos-thermal-troika.conf @@ -0,0 +1,124 @@ +[REPORT-FRONT-TEMP] +algo_type monitor +sampling 300000 +sensor FRONT_TEMP +thresholds 45000 +thresholds_clr 43000 +actions report +action_info 1 + +[REPORT-BACK-TEMP] +algo_type monitor +sampling 300000 +sensor BACK_TEMP +thresholds 45000 +thresholds_clr 43000 +actions report +action_info 1 + +[SS-MSM-Cluster0] +algo_type ss +sampling 1000 +sensor therm_soc +device little_freq +set_point 46000 +set_point_clr 44000 +device_perf_floor 1326000 + +[MON-MSM-Cluster0] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 51000 +thresholds_clr 49000 +actions little_freq +action_info 1053000 + +[SS-MSM-Cluster1] +algo_type ss +sampling 1000 +sensor therm_soc +device big_freq +set_point 39000 +set_point_clr 37000 +device_perf_floor 1508000 + +[MON-MSM-Cluster1] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 49000 +thresholds_clr 47000 +actions big_freq +action_info 1352000 + +[MON-CHG-BATT] +algo_type monitor +sampling 1000 +sensor therm_chg +thresholds 44000 46000 48000 +thresholds_clr 42000 44000 46000 +actions charger charger charger +action_info 1 4 6 + +[CPU7_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 56000 +thresholds_clr 54000 +actions cpu_hotplug +action_info 7 + +[CPU6_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 57000 +thresholds_clr 55000 +actions cpu_hotplug +action_info 6 + +[CPU5_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 58000 +thresholds_clr 56000 +actions cpu_hotplug +action_info 5 + +[CPU4_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 59000 +thresholds_clr 57000 +actions cpu_hotplug +action_info 4 + +[MONITOR-LCD-BRIGHTNESS] +algo_type monitor +sampling 5000 +sensor therm_usb_con +thresholds 41000 43000 45000 46000 47000 48000 +thresholds_clr 40000 41000 43000 45000 46000 47000 +actions backlight backlight backlight backlight backlight backlight +action_info 240 225 210 200 190 180 + +[SS-GPU] +algo_type ss +sampling 1000 +sensor tmu_gpu +device gpu_freq +set_point 75000 +set_point_clr 65000 + +[REPORT-BIG-TEMP] +algo_type monitor +sampling 300000 +sensor tmu_big +thresholds 22000 +thresholds_clr 19000 +actions report +action_info 1 diff --git a/configs/thermal/exynos-thermal.conf b/configs/thermal/exynos-thermal.conf new file mode 100644 index 0000000..6b0138c --- /dev/null +++ b/configs/thermal/exynos-thermal.conf @@ -0,0 +1,124 @@ +[REPORT-FRONT-TEMP] +algo_type monitor +sampling 300000 +sensor FRONT_TEMP +thresholds 45000 +thresholds_clr 43000 +actions report +action_info 1 + +[REPORT-BACK-TEMP] +algo_type monitor +sampling 300000 +sensor BACK_TEMP +thresholds 45000 +thresholds_clr 43000 +actions report +action_info 1 + +[SS-MSM-Cluster0] +algo_type ss +sampling 1000 +sensor therm_soc +device little_freq +set_point 46000 +set_point_clr 44000 +device_perf_floor 1326000 + +[MON-MSM-Cluster0] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 51000 +thresholds_clr 49000 +actions little_freq +action_info 1053000 + +[SS-MSM-Cluster1] +algo_type ss +sampling 1000 +sensor therm_soc +device big_freq +set_point 39000 +set_point_clr 37000 +device_perf_floor 1508000 + +[MON-MSM-Cluster1] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 49000 +thresholds_clr 47000 +actions big_freq +action_info 1352000 + +[MON-CHG-BATT] +algo_type monitor +sampling 1000 +sensor therm_chg +thresholds 45000 46000 48000 49000 50000 +thresholds_clr 43000 45000 46000 48000 49000 +actions charger charger charger charger charger +action_info 1 2 3 4 6 + +[CPU7_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 56000 +thresholds_clr 55000 +actions cpu_hotplug +action_info 7 + +[CPU6_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 57000 +thresholds_clr 56000 +actions cpu_hotplug +action_info 6 + +[CPU5_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 58000 +thresholds_clr 57000 +actions cpu_hotplug +action_info 5 + +[CPU4_HOTPLUG_MONITOR] +algo_type monitor +sampling 1000 +sensor therm_soc +thresholds 59000 +thresholds_clr 58000 +actions cpu_hotplug +action_info 4 + +[MONITOR-LCD-BRIGHTNESS] +algo_type monitor +sampling 5000 +sensor therm_usb_con +thresholds 41000 43000 45000 46000 47000 48000 +thresholds_clr 40000 41000 43000 45000 46000 47000 +actions backlight backlight backlight backlight backlight backlight +action_info 240 225 210 200 190 180 + +[SS-GPU] +algo_type ss +sampling 1000 +sensor tmu_gpu +device gpu_freq +set_point 75000 +set_point_clr 65000 + +[REPORT-BIG-TEMP] +algo_type monitor +sampling 300000 +sensor tmu_big +thresholds 22000 +thresholds_clr 19000 +actions report +action_info 1 diff --git a/configs/thermal/exynos-thermal.env b/configs/thermal/exynos-thermal.env new file mode 100644 index 0000000..00afe81 --- /dev/null +++ b/configs/thermal/exynos-thermal.env @@ -0,0 +1,114 @@ +[tmu_little] +type real +node_path /sys/class/thermal/thermal_zone1/temp +sampling 1000 + +[tmu_big] +type real +node_path /sys/class/thermal/thermal_zone0/temp +sampling 1000 + +[tmu_gpu] +type real +node_path /sys/class/thermal/thermal_zone2/temp +sampling 1000 + +[tmu_isp] +type real +node_path /sys/class/thermal/thermal_zone3/temp +sampling 1000 + +[therm_soc] +type real +node_path /sys/class/hwmon/hwmon0/temp1_input + +[therm_bat] +type real +node_path /sys/class/hwmon/hwmon1/temp1_input + +[charger] +type charger +node_path /sys/class/power_supply/battery/charge_control_limit + +[little_freq] +type cpufreq +node_path /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq +level_table 1638000 1534000 1456000 1326000 1118000 1053000 910000 806000 702000 598000 403000 + +[big_freq] +type cpufreq +node_path /sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq +level_table 2210000 2184000 2080000 1976000 1898000 1768000 1664000 1508000 1456000 1352000 1248000 1144000 1040000 936000 + +[gpu_freq] +type gpufreq +node_path /sys/devices/platform/11500000.mali/dvfs_max_lock +level_table 1053000 949000 839000 764000 683000 572000 546000 455000 385000 338000 260000 + +[cpu_hotplug] +type cpuhotplug +node_path /sys/power/cpuhp/set_online_cpu + +[camera] +type camera +node_path /sys/devices/platform/14490000.fimc_is/debug/fixed_sensor_fps + +[backlight] +type backlight +node_path /sys/class/panel/panel/max_brightness + +[report] +type report +node_path /data/vendor/exynos-thermal.log + +[therm_soc] +type real +node_path /sys/class/hwmon/hwmon0/temp1_input +sampling 1000 + +[therm_bat] +type real +node_path /sys/class/hwmon/hwmon1/temp1_input +sampling 1000 + +[therm_pa] +type real +node_path /sys/class/hwmon/hwmon2/temp1_input +sampling 1000 + +[therm_board] +type real +node_path /sys/class/hwmon/hwmon3/temp1_input +sampling 1000 + +[therm_usb_con] +type real +node_path /sys/class/hwmon/hwmon4/temp1_input +sampling 1000 + +[therm_chg] +type real +node_path /sys/class/power_supply/battery/charge_temp +sampling 1000 + +[FRONT_TEMP] +type virtual +trip_sensor therm_soc +set_point -18000 +set_point_clr -20000 +sensors therm_soc therm_bat +weights 110 85 +offsets -2000 -2000 +sampling 10000 +math 0 + +[BACK_TEMP] +type virtual +trip_sensor therm_soc +set_point -18000 +set_point_clr -20000 +sensors therm_soc therm_bat +weights 110 85 +offsets -1000 -1000 +sampling 10000 +math 0 diff --git a/configs/wifi/p2p_supplicant.conf b/configs/wifi/p2p_supplicant.conf new file mode 100644 index 0000000..4868606 --- /dev/null +++ b/configs/wifi/p2p_supplicant.conf @@ -0,0 +1,7 @@ +update_config=1 +ctrl_interface=/data/vendor/wifi/wpa/sockets +config_methods=physical_display virtual_push_button keypad +eapol_version=1 +ap_scan=1 +fast_reauth=1 +p2p_add_cli_chan=1 diff --git a/configs/wifi/wpa_supplicant.conf b/configs/wifi/wpa_supplicant.conf new file mode 100644 index 0000000..459e107 --- /dev/null +++ b/configs/wifi/wpa_supplicant.conf @@ -0,0 +1,11 @@ +update_config=1 +ctrl_interface=wlan0 +eapol_version=1 +ap_scan=1 +fast_reauth=1 +p2p_listen_reg_class=81 +p2p_listen_channel=1 +p2p_oper_reg_class=124 +p2p_oper_channel=149 +pmf=1 +bss_no_flush_when_down=1