From: ivanmeler Date: Fri, 10 Sep 2021 16:14:16 +0000 (+0000) Subject: Unfuckup 8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e63c55063eb7a7600d30422a9459d44108112d95;p=GitHub%2Fexynos8895%2Fandroid_device_samsung_universal8895-common.git Unfuckup 8 --- diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index d8e5f1f..f77f16f 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -56,6 +56,7 @@ DEXPREOPT_GENERATE_APEX_IMAGE := true # Extracted with libbootimg BOARD_CUSTOM_BOOTIMG := true +TARGET_KERNEL_ADDITIONAL_FLAGS := HOSTCFLAGS="-fuse-ld=lld -Wno-unused-command-line-argument" BOARD_CUSTOM_BOOTIMG_MK := hardware/samsung/mkbootimg.mk BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 BOARD_KERNEL_BASE := 0x10000000 diff --git a/bluetooth/libbt_vndcfg.txt b/bluetooth/libbt_vndcfg.txt index 64a3aa8..5efc426 100644 --- a/bluetooth/libbt_vndcfg.txt +++ b/bluetooth/libbt_vndcfg.txt @@ -1,4 +1,5 @@ BLUETOOTH_UART_DEVICE_PORT = "/dev/ttySAC1" +BTHW_FW_EXTENDED_CONFIGURATION = TRUE FW_PATCHFILE_LOCATION = "/vendor/firmware" FW_PATCH_SETTLEMENT_DELAY_MS = 100 UART_TARGET_BAUD_RATE = 921600 diff --git a/configs/audio/audio_policy_configuration.xml b/configs/audio/audio_policy_configuration.xml index 08a6133..5901d86 100644 --- a/configs/audio/audio_policy_configuration.xml +++ b/configs/audio/audio_policy_configuration.xml @@ -72,6 +72,10 @@ + + + + @@ -104,7 +108,10 @@ samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_IN_VOICE_UPLINK,AUDIO_CHANNEL_IN_VOICE_DNLINK"/> - + + + + @@ -124,9 +131,13 @@ sources="primary-out,fast"/> + + + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,Bt Sco Headset Mic,Voice Call Mic,FM Mic,USB Device In,USB Headset In"/> @@ -135,7 +146,26 @@ - + + + + + + + + + + + + + + + + + diff --git a/device-common.mk b/device-common.mk index 755d2d3..ff64fb3 100644 --- a/device-common.mk +++ b/device-common.mk @@ -181,7 +181,7 @@ PRODUCT_PACKAGES += \ NfcNci \ Tag \ com.android.nfc_extras \ - libclang_rt.ubsan_standalone-aarch64-android + android.hardware.nfc@1.2-service.samsung # Power PRODUCT_PACKAGES += \ @@ -328,6 +328,7 @@ PRODUCT_PACKAGES += \ wifilogd \ wlutil \ libwpa_client \ + TetheringConfigOverlay \ wpa_supplicant \ wpa_supplicant.conf \ android.hardware.wifi@1.0-service \ diff --git a/manifest.xml b/manifest.xml index 0242979..52db021 100644 --- a/manifest.xml +++ b/manifest.xml @@ -166,15 +166,6 @@ default - - android.hardware.nfc - hwbinder - 1.1 - - INfc - default - - android.hardware.power hwbinder @@ -268,15 +259,6 @@ default - - vendor.samsung.hardware.nfc - hwbinder - 1.1 - - ISecNfc - default - - vendor.samsung.hardware.radio hwbinder diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 35c15f7..fcd3092 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -57,43 +57,10 @@ "7,1" - - - rndis\\d - - true - - - "wlan0" - "swlan0" - "softap.*" - - - - - bt-pan - - - - - - 0 - 1 - 5 - 7 - - rmnet4 @@ -242,11 +209,6 @@ Add a comment to this line true - - true - - true - GSM|WCDMA|LTE diff --git a/proprietary-files.txt b/proprietary-files.txt index e855f38..950bc2c 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -233,13 +233,6 @@ vendor/lib64/libMcClient.so # NFC etc/libnfc-nci.conf -etc/nfc_key -etc/nfcee_access.xml -lib64/android.hardware.nfc@1.0.so -lib64/android.hardware.nfc@1.1.so -lib64/vendor.samsung.hardware.nfc@1.1.so -vendor/bin/hw/sec.android.hardware.nfc@1.1-service -vendor/etc/init/sec.android.hardware.nfc@1.1-service.rc vendor/etc/libnfc-sec-vendor.conf vendor/etc/nfc/SGP/sec_s3nrn82_rfreg.bin vendor/etc/nfc/sec_s3nrn82_rfreg.bin diff --git a/ramdisk/etc/init.samsung.rc b/ramdisk/etc/init.samsung.rc index e2fad04..495747d 100644 --- a/ramdisk/etc/init.samsung.rc +++ b/ramdisk/etc/init.samsung.rc @@ -268,12 +268,8 @@ on post-fs-data mkdir /efs/sec_efs/nfc 0700 nfc nfc mkdir /efs/nfc 0700 nfc nfc - # NFC KEY + # NFC: create data/vendor/nfc for nv storage mkdir /data/vendor/nfc 0770 nfc nfc - mkdir /data/nfc_log 0750 nfc system - copy /system/etc/nfc_key /data/nfc/Key - chmod 660 /data/nfc/Key - chown nfc nfc /data/nfc/Key # TAD mkdir /data/tad 0770 system system diff --git a/rro_overlays/TetheringOverlay/Android.bp b/rro_overlays/TetheringOverlay/Android.bp new file mode 100644 index 0000000..4c0b325 --- /dev/null +++ b/rro_overlays/TetheringOverlay/Android.bp @@ -0,0 +1,6 @@ +runtime_resource_overlay { + name: "TetheringConfigOverlay", + theme: "TetheringConfigOverlay", + sdk_version: "current", + product_specific: true +} diff --git a/rro_overlays/TetheringOverlay/AndroidManifest.xml b/rro_overlays/TetheringOverlay/AndroidManifest.xml new file mode 100644 index 0000000..b349a84 --- /dev/null +++ b/rro_overlays/TetheringOverlay/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + diff --git a/rro_overlays/TetheringOverlay/res/values/config.xml b/rro_overlays/TetheringOverlay/res/values/config.xml new file mode 100644 index 0000000..a5b8794 --- /dev/null +++ b/rro_overlays/TetheringOverlay/res/values/config.xml @@ -0,0 +1,55 @@ + + + + + + + rndis\\d + + + + + "wlan\\d" + "swlan0" + + + + + bt-pan + + + + + "p2p\\d" + + + + false + diff --git a/rro_overlays/WifiOverlay/res/values/config.xml b/rro_overlays/WifiOverlay/res/values/config.xml index 5a9ca48..c08aaab 100644 --- a/rro_overlays/WifiOverlay/res/values/config.xml +++ b/rro_overlays/WifiOverlay/res/values/config.xml @@ -52,5 +52,8 @@ 3600 - Samsung Galaxy S7 + Samsung Galaxy + + + false diff --git a/system_prop.mk b/system_prop.mk index fd119f0..7995dac 100644 --- a/system_prop.mk +++ b/system_prop.mk @@ -83,7 +83,8 @@ PRODUCT_PROPERTY_OVERRIDES += \ # Wifi PRODUCT_PROPERTY_OVERRIDES += \ wifi.direct.interface=p2p-dev-wlan0 \ - persist.debug.wfd.enable=1 + persist.debug.wfd.enable=1 \ + ro.vendor.wfdsupport=1 # Configstore PRODUCT_PROPERTY_OVERRIDES += \ @@ -92,3 +93,8 @@ PRODUCT_PROPERTY_OVERRIDES += \ # HWC PRODUCT_PROPERTY_OVERRIDES += \ debug.sf.disable_hwc=1 + +# Telephony +PRODUCT_PRODUCT_PROPERTIES += \ + ro.telephony.default_network=10,10 +