diff --git a/Android.mk b/Android.mk index 77b026c..7cfd686 100644 --- a/Android.mk +++ b/Android.mk @@ -16,6 +16,6 @@ LOCAL_PATH := $(call my-dir) -ifeq ($(TARGET_DEVICE),dubai) +ifeq ($(TARGET_DEVICE),bangkk) include $(call all-makefiles-under,$(LOCAL_PATH)) endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk index 7020d32..59ac1d1 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -15,4 +15,4 @@ # PRODUCT_MAKEFILES := \ - $(LOCAL_DIR)/lineage_dubai.mk + $(LOCAL_DIR)/lineage_bangkk.mk diff --git a/BoardConfig.mk b/BoardConfig.mk index 1413dc6..515fb18 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -14,25 +14,25 @@ # limitations under the License. # -DEVICE_PATH := device/motorola/dubai +DEVICE_PATH := device/motorola/bangkk -# Inherit from motorola sm7325-common -include device/motorola/sm7325-common/BoardConfigCommon.mk +# Inherit from motorola sm6375-common +include device/motorola/sm6375-common/BoardConfigCommon.mk # Bootloader -TARGET_BOOTLOADER_BOARD_NAME := dubai +TARGET_BOOTLOADER_BOARD_NAME := bangkk # Fingerprint -TARGET_SURFACEFLINGER_UDFPS_LIB := //$(DEVICE_PATH):libudfps_extension.dubai +TARGET_SURFACEFLINGER_UDFPS_LIB := //$(DEVICE_PATH):libudfps_extension.bangkk SOONG_CONFIG_qtidisplay_udfps := true # HIDL -DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += $(DEVICE_PATH)/device_framework_matrix_dubai.xml -DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest_dubai.xml +DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += $(DEVICE_PATH)/device_framework_matrix_bangkk.xml +DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest_bangkk.xml # Kernel -BOARD_KERNEL_CMDLINE += androidboot.hab.product=dubai -TARGET_KERNEL_CONFIG += vendor/lineage_dubai.config +BOARD_KERNEL_CMDLINE += androidboot.hab.product=bangkk +TARGET_KERNEL_CONFIG += vendor/bangkk_defconfig # Kernel Modules BOARD_VENDOR_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load)) @@ -41,9 +41,8 @@ BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVIC BOOT_KERNEL_MODULES := $(BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD) # Partitions -BOARD_USERDATAIMAGE_PARTITION_SIZE := 116340535296 -BOARD_MOT_DP_GROUP_SIZE := 8921284608 # ( BOARD_SUPER_PARTITION_SIZE - 4MB ) -BOARD_SUPER_PARTITION_SIZE := 8925478912 +BOARD_MOT_DP_GROUP_SIZE := 6706692096 # (BOARD_SUPER_PARTITION_SIZE - 4MB) +BOARD_SUPER_PARTITION_SIZE := 6710886400 # Properties TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop @@ -52,8 +51,8 @@ TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop # Recovery TARGET_RECOVERY_UI_MARGIN_HEIGHT := 90 -# Security +# Security patch level VENDOR_SECURITY_PATCH := 2024-05-01 # inherit from the proprietary version -include vendor/motorola/dubai/BoardConfigVendor.mk +include vendor/motorola/bangkk/BoardConfigVendor.mk diff --git a/README.md b/README.md index d4e0d22..590811b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1 @@ -Device tree for the Motorola edge 30 - -Information about the device, build and install instructions can be found [here](http://wiki.lineageos.org/devices/dubai/) +# Device configuration files for Motorola moto g84 5G (bangkk) diff --git a/audio/audio_effects.xml b/audio/audio_effects.xml old mode 100755 new mode 100644 index 82dd738..c83e3a6 --- a/audio/audio_effects.xml +++ b/audio/audio_effects.xml @@ -2,7 +2,7 @@ - + @@ -10,13 +10,23 @@ + + + + + + + + + + + - @@ -25,9 +35,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/audio/audio_ext_spkr.conf b/audio/audio_ext_spkr.conf old mode 100755 new mode 100644 index c90b01e..c96fc74 --- a/audio/audio_ext_spkr.conf +++ b/audio/audio_ext_spkr.conf @@ -1,5 +1,5 @@ global_config { - name Dubai + name Bangkk sonification_pad 20 sonification_prox_timeout_sec 5 } diff --git a/audio/audio_io_policy.conf b/audio/audio_io_policy.conf new file mode 100644 index 0000000..5e283d8 --- /dev/null +++ b/audio/audio_io_policy.conf @@ -0,0 +1,80 @@ +# List of profiles for the output device session where stream is routed. +# A stream opened with the inputs attributes which match the "flags" and +# "formats" as specified in the profile is routed to a device at +# sample rate specified under "sampling_rates" and bit width under +# "bit_width" and the topology extracted from the acdb data against +# the "app_type". +# +# the flags and formats are specified using the strings corresponding to +# enums in audio.h and audio_policy.h. They are concatenated with "|" +# without space or "\n". +# the flags and formats should match the ones in "audio_policy.conf" + +outputs { + default { + flags AUDIO_OUTPUT_FLAG_PRIMARY + formats AUDIO_FORMAT_PCM_16_BIT + sampling_rates 48000 + bit_width 16 + app_type 69937 + } + voip_rx { + flags AUDIO_OUTPUT_FLAG_VOIP_RX + formats AUDIO_FORMAT_PCM_16_BIT + sampling_rates 48000 + bit_width 16 + app_type 69946 + } + direct_pcm_16 { + flags AUDIO_OUTPUT_FLAG_DIRECT + formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT + sampling_rates 44100|48000|88200|96000|176400|192000 + bit_width 16 + app_type 69936 + } + direct_pcm_24 { + flags AUDIO_OUTPUT_FLAG_DIRECT + formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT + sampling_rates 44100|48000|88200|96000|176400|192000|352800|384000 + bit_width 24 + app_type 69940 + } + direct_pcm_32 { + flags AUDIO_OUTPUT_FLAG_DIRECT + formats AUDIO_FORMAT_PCM_32_BIT + sampling_rates 44100|48000|88200|96000|176400|192000|352800|384000 + bit_width 32 + app_type 69942 + } + compress_offload_16 { + flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING + formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_16_BIT_OFFLOAD|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2|AUDIO_FORMAT_AAC_LATM_LC|AUDIO_FORMAT_AAC_LATM_HE_V1|AUDIO_FORMAT_AAC_LATM_HE_V2 + sampling_rates 44100|48000|88200|96000|176400|192000 + bit_width 16 + app_type 69936 + } + compress_offload_24 { + flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING + formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2|AUDIO_FORMAT_AAC_LATM_LC|AUDIO_FORMAT_AAC_LATM_HE_V1|AUDIO_FORMAT_AAC_LATM_HE_V2 + sampling_rates 44100|48000|88200|96000|176400|192000 + bit_width 24 + app_type 69940 + } + deep_buffer { + flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER + formats AUDIO_FORMAT_PCM_16_BIT + sampling_rates 48000 + bit_width 16 + app_type 69936 + } +} + +inputs { + voip_tx { + flags AUDIO_INPUT_FLAG_VOIP_TX + formats AUDIO_FORMAT_PCM_16_BIT + sampling_rates 48000 + bit_width 16 + app_type 69946 + } +} diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml old mode 100755 new mode 100644 index 066f820..58dcacc --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -45,11 +45,11 @@ samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + flags="AUDIO_OUTPUT_FLAG_DEEP_BUFFER"> - + + channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_IN_AMBISONIC,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/> + channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_IN_AMBISONIC,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/> + flags="AUDIO_OUTPUT_FLAG_VOIP_RX"> + samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> @@ -147,6 +147,15 @@ + + + + + + @@ -194,6 +203,14 @@ sources="primary output,deep_buffer,direct_pcm,voip_rx"/> + + + + - - + + + + + + + + + + + + + + + + + - - - - + + diff --git a/audio/audio_policy_volumes.xml b/audio/audio_policy_volumes.xml old mode 100755 new mode 100644 index 437824f..bac62cb --- a/audio/audio_policy_volumes.xml +++ b/audio/audio_policy_volumes.xml @@ -8,22 +8,28 @@ volume index from 0 to 100. --> - - 0,-3700 - 20,-2600 - 40,-1800 - 60,-1100 - 80,-500 - 100,0 - - - 0,-3000 - 33,-2000 - 66,-1000 - 100,0 - - + + 0,-3000 + 25,-2500 + 37,-2100 + 50,-1800 + 63,-1500 + 75,-1200 + 87,-900 + 100,0 + + + 0,-2500 + 25,-1880 + 37,-1450 + 50,-1250 + 63,-900 + 75,-650 + 87,-350 + 100,0 + @@ -32,8 +38,12 @@ volume index from 0 to 100. 66,-2200 100,-1800 - + + 1,-3600 + 33,-2700 + 66,-1800 + 100,-900 + - - 1,-6000 - 33,-3800 - 66,-1800 - 100,0 - + - + + 1,-3500 + 33,-2100 + 66,-1300 + 100,-500 + - 1,-4800 - 33,-3100 - 66,-1500 + 1,-3900 + 33,-2600 + 66,-1300 100,0 - 1,-4900 - 33,-3400 - 66,-2000 - 100,-700 + 1,-5300 + 70,-2390 + 84,-1010 + 100,0 @@ -41,9 +41,9 @@ - 1,-4800 - 34,-3200 - 67,-1600 + 1,-5400 + 34,-3600 + 67,-1800 100,0 @@ -62,9 +62,20 @@ - 1,-5400 - 33,-3000 - 66,-1200 + 1,-5600 + 13,-4200 + 20,-3900 + 27,-3400 + 33,-3100 + 40,-2800 + 47,-2500 + 50,-2200 + 60,-1900 + 66,-1650 + 73,-1450 + 80,-1250 + 86,-1050 + 90,-850 100,0 diff --git a/audio/sku_yupik/audio_platform_info.xml b/audio/sku_holi/audio_platform_info.xml old mode 100755 new mode 100644 similarity index 84% rename from audio/sku_yupik/audio_platform_info.xml rename to audio/sku_holi/audio_platform_info.xml index 8e75d0d..3fb058f --- a/audio/sku_yupik/audio_platform_info.xml +++ b/audio/sku_holi/audio_platform_info.xml @@ -38,11 +38,14 @@ + + + @@ -50,11 +53,14 @@ + + + @@ -77,9 +83,9 @@ - + - + @@ -92,11 +98,11 @@ - - + + - + @@ -104,7 +110,7 @@ - + @@ -134,7 +140,6 @@ - @@ -142,12 +147,23 @@ + + + + + + + + + + + @@ -156,32 +172,30 @@ - - - - + + - + + - @@ -191,7 +205,7 @@ - + @@ -204,7 +218,6 @@ - @@ -215,20 +228,17 @@ - + - - - - - - - - - + + + + - + + + @@ -243,48 +253,70 @@ - - - - + + + + + + - + - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + - + @@ -298,16 +330,14 @@ + + - - - - @@ -333,7 +363,6 @@ - @@ -348,34 +377,43 @@ + - - - + + + + + + + + - - - - - + + + + + + + + @@ -395,7 +433,6 @@ - diff --git a/audio/sku_holi/mixer_paths.xml b/audio/sku_holi/mixer_paths.xml new file mode 100644 index 0000000..3c9e5c2 --- /dev/null +++ b/audio/sku_holi/mixer_paths.xml @@ -0,0 +1,4055 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/audio/sku_yupik/mixer_paths.xml b/audio/sku_yupik/mixer_paths.xml deleted file mode 100755 index ba94e68..0000000 --- a/audio/sku_yupik/mixer_paths.xml +++ /dev/null @@ -1,2290 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/camera/Android.bp b/camera/Android.bp deleted file mode 100644 index 7d55c11..0000000 --- a/camera/Android.bp +++ /dev/null @@ -1,25 +0,0 @@ -// -// Copyright (C) 2023 ArrowOS -// -// SPDX-License-Identifier: Apache-2.0 -// - -android_app { - name: "DubaiCameraService", - srcs: [ - "src/**/*.java", - "src/**/*.aidl", - ], - certificate: "platform", - platform_apis: true, - privileged: true, - system_ext_specific: true, - required: ["privapp-permissions-dubaicameraservice.xml"], -} - -prebuilt_etc { - name: "privapp-permissions-dubaicameraservice.xml", - src: "privapp-permissions-dubaicameraservice.xml", - system_ext_specific: true, - sub_dir: "permissions", -} diff --git a/camera/AndroidManifest.xml b/camera/AndroidManifest.xml deleted file mode 100644 index 48e4de5..0000000 --- a/camera/AndroidManifest.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/camera/privapp-permissions-dubaicameraservice.xml b/camera/privapp-permissions-dubaicameraservice.xml deleted file mode 100644 index 0b11906..0000000 --- a/camera/privapp-permissions-dubaicameraservice.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - diff --git a/camera/src/com/arrow/dubaicameraservice/BootReceiver.java b/camera/src/com/arrow/dubaicameraservice/BootReceiver.java deleted file mode 100644 index 206385b..0000000 --- a/camera/src/com/arrow/dubaicameraservice/BootReceiver.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2023 ArrowOS - * - * SPDX-License-Identifier: Apache-2.0 - */ - -package com.arrow.dubaicameraservice; - -import android.content.BroadcastReceiver; -import android.content.Context; -import android.content.Intent; - -public class BootReceiver extends BroadcastReceiver { - - @Override - public void onReceive(final Context context, Intent intent) { - if (!intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) - return; - - DubaiCameraService.startService(context); - } -} diff --git a/camera/src/com/arrow/dubaicameraservice/DubaiCameraService.java b/camera/src/com/arrow/dubaicameraservice/DubaiCameraService.java deleted file mode 100644 index 9e4f01c..0000000 --- a/camera/src/com/arrow/dubaicameraservice/DubaiCameraService.java +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Copyright (C) 2023 ArrowOS - * - * SPDX-License-Identifier: Apache-2.0 - */ - -package com.arrow.dubaicameraservice; - -import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID; - -import android.app.Service; -import android.content.BroadcastReceiver; -import android.content.Context; -import android.content.Intent; -import android.hardware.camera2.CameraManager; -import android.os.Handler; -import android.os.HandlerExecutor; -import android.os.IBinder; -import android.os.Looper; -import android.os.UserHandle; -import android.telephony.SubscriptionManager; -import android.telephony.TelephonyCallback; -import android.telephony.TelephonyManager; -import android.util.Log; - -import java.util.Arrays; -import java.util.Set; -import java.util.concurrent.Executor; - -public class DubaiCameraService extends Service { - - private static final boolean DEBUG = false; - private static final String TAG = "DubaiCameraService"; - - private static final String FRONT_CAMERA_ID = "1"; - private static final int OFFENDING_NR_BAND = 78; - - private static final Set IGNORED_PACKAGES = Set.of( - "co.aospa.sense", // face unlock - "com.google.android.as" // auto rotate, screen attention etc - ); - - private CameraManager mCameraManager; - private SubscriptionManager mSubManager; - private TelephonyManager mTelephonyManager; - private QcRilMsgUtils mQcRilMsgUtils; - - private boolean mIsFrontCamInUse = false; - private int[] mActiveSubIds = new int[0]; - private int mDefaultDataSubId = INVALID_SUBSCRIPTION_ID; - - private final Handler mHandler = new Handler(Looper.getMainLooper()); - private final Executor mExecutor = new HandlerExecutor(mHandler); - - private final CameraManager.AvailabilityCallback mCameraCallback = - new CameraManager.AvailabilityCallback() { - @Override - public void onCameraOpened(String cameraId, String packageId) { - dlog("onCameraOpened id=" + cameraId + " package=" + packageId); - if (cameraId.equals(FRONT_CAMERA_ID) && !IGNORED_PACKAGES.contains(packageId)) { - mIsFrontCamInUse = true; - update5gState(); - } - } - - @Override - public void onCameraClosed(String cameraId) { - dlog("onCameraClosed id=" + cameraId); - if (cameraId.equals(FRONT_CAMERA_ID) && mIsFrontCamInUse) { - mIsFrontCamInUse = false; - update5gState(); - } - } - }; - - private final SubscriptionManager.OnSubscriptionsChangedListener mSubListener = - new SubscriptionManager.OnSubscriptionsChangedListener() { - @Override - public void onSubscriptionsChanged() { - dlog("onSubscriptionsChanged"); - final int[] subs = mSubManager.getActiveSubscriptionIdList(); - if (!Arrays.equals(subs, mActiveSubIds)) { - dlog("active subs changed, was: " + Arrays.toString(mActiveSubIds) - + ", now: " + Arrays.toString(subs)); - mActiveSubIds = subs; - update5gState(); - } - } - }; - - private class ActiveDataSubIdCallback extends TelephonyCallback implements - TelephonyCallback.ActiveDataSubscriptionIdListener { - @Override - public void onActiveDataSubscriptionIdChanged(int subId) { - dlog("onActiveDataSubscriptionIdChanged subId:" + subId); - if (subId != mDefaultDataSubId) { - mDefaultDataSubId = subId; - update5gState(); - } - } - }; - - private final TelephonyCallback mTelephonyCallback = new ActiveDataSubIdCallback(); - - @Override - public void onCreate() { - dlog("onCreate"); - mQcRilMsgUtils = new QcRilMsgUtils(this); - mCameraManager = getSystemService(CameraManager.class); - mSubManager = getSystemService(SubscriptionManager.class); - mTelephonyManager = getSystemService(TelephonyManager.class); - } - - @Override - public int onStartCommand(Intent intent, int flags, int startId) { - dlog("onStartCommand"); - mQcRilMsgUtils.bindService(); - mCameraManager.registerAvailabilityCallback(mCameraCallback, mHandler); - mTelephonyManager.registerTelephonyCallback(mExecutor, mTelephonyCallback); - mSubManager.addOnSubscriptionsChangedListener(mExecutor, mSubListener); - return START_STICKY; - } - - @Override - public void onDestroy() { - dlog("onDestroy"); - mQcRilMsgUtils.unbindService(); - mCameraManager.unregisterAvailabilityCallback(mCameraCallback); - mTelephonyManager.unregisterTelephonyCallback(mTelephonyCallback); - mSubManager.removeOnSubscriptionsChangedListener(mSubListener); - } - - @Override - public IBinder onBind(Intent intent) { - return null; - } - - public static void startService(Context context) { - Log.i(TAG, "Starting service"); - context.startServiceAsUser(new Intent(context, DubaiCameraService.class), - UserHandle.CURRENT); - } - - private void update5gState() { - if (mDefaultDataSubId == INVALID_SUBSCRIPTION_ID - || mActiveSubIds.length == 0) { - dlog("update5gState: Invalid subid or no active subs!"); - return; - } - if (mQcRilMsgUtils.setNrBandEnabled(mSubManager.getPhoneId(mDefaultDataSubId), - OFFENDING_NR_BAND, !mIsFrontCamInUse)) { - Log.i(TAG, (mIsFrontCamInUse ? "Disabled" : "Enabled") + " NR band " - + OFFENDING_NR_BAND + " for subId " + mDefaultDataSubId); - } else { - Log.e(TAG, "Failed to " + (mIsFrontCamInUse ? "disable" : "enable") + " NR band " - + OFFENDING_NR_BAND + " for subId " + mDefaultDataSubId); - } - } - - protected static void dlog(String msg) { - if (DEBUG) Log.d(TAG, msg); - } -} diff --git a/camera/src/com/arrow/dubaicameraservice/QcRilMsgUtils.java b/camera/src/com/arrow/dubaicameraservice/QcRilMsgUtils.java deleted file mode 100644 index 0db509c..0000000 --- a/camera/src/com/arrow/dubaicameraservice/QcRilMsgUtils.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright (C) 2023 ArrowOS - * - * SPDX-License-Identifier: Apache-2.0 - */ - -package com.arrow.dubaicameraservice; - -import android.content.ComponentName; -import android.content.Context; -import android.content.Intent; -import android.content.ServiceConnection; -import android.os.IBinder; -import android.os.RemoteException; -import android.util.Log; - -import com.qualcomm.qcrilmsgtunnel.IQcrilMsgTunnel; - -import java.nio.ByteBuffer; -import java.nio.ByteOrder; - -public class QcRilMsgUtils { - - private static final String TAG = "DubaiCameraService-QcRil"; - - private static final String PACKAGE_NAME = "com.qualcomm.qcrilmsgtunnel"; - private static final String SERVICE_NAME = "com.qualcomm.qcrilmsgtunnel.QcrilMsgTunnelService"; - - private static final int OEM_RIL_REQUEST_GET_BAND_PREF = 327723; - private static final int OEM_RIL_REQUEST_SET_BAND_PREF = 327724; - private static final int BAND_CONFIG_LENGTH = 168; - private static final int LTE_CONFIG_LENGTH = 4; - private static final int NR_CONFIG_LENGTH = 8; - - private IQcrilMsgTunnel mService; - private QcrilMsgTunnelConnection mServiceConnection; - private Context mContext; - - public QcRilMsgUtils(Context context) { - mContext = context; - mServiceConnection = new QcrilMsgTunnelConnection(); - } - - protected void bindService() { - dlog("bindService"); - if (!mContext.bindService(new Intent().setClassName(PACKAGE_NAME, SERVICE_NAME), - mServiceConnection, Context.BIND_AUTO_CREATE)) { - Log.e(TAG, "Failed to bind to QcrilMsgTunnelService!"); - } - } - - protected void unbindService() { - dlog("unbindService"); - mContext.unbindService(mServiceConnection); - mService = null; - } - - /* TODO: split this function */ - protected boolean setNrBandEnabled(int phoneId, int band, boolean enabled) { - if (mService == null) { - Log.e(TAG, "setNrSaBandEnabled: mService is null!"); - return false; - } - dlog("setNrSaBandEnabled: phoneId=" + phoneId + " band=" + band + " enabled=" + enabled); - - // get band config - byte[] reqData = new byte[8]; - ByteBuffer reqBuf = ByteBuffer.wrap(reqData) - .order(ByteOrder.BIG_ENDIAN) - .putInt(OEM_RIL_REQUEST_GET_BAND_PREF) - .putInt(0); - byte[] resp = new byte[BAND_CONFIG_LENGTH]; - try { - int ret = mService.sendOemRilRequestRaw(reqData, resp, phoneId); - if (ret < 0) - throw new Exception(); - } catch (Exception e) { - Log.e(TAG, "sendOemRilRequestRaw failed to get band config!", e); - return false; - } - ByteBuffer buf = ByteBuffer.wrap(resp) - .order(ByteOrder.nativeOrder()); - long nasConfig = buf.getLong(); - long[] lteConfigs = new long[LTE_CONFIG_LENGTH]; - for (int i = 0; i < LTE_CONFIG_LENGTH; i++) { - lteConfigs[i] = buf.getLong(); - } - long[] nrSaConfigs = new long[NR_CONFIG_LENGTH]; - for (int i = 0; i < NR_CONFIG_LENGTH; i++) { - nrSaConfigs[i] = buf.getLong(); - } - long[] nrNsaConfigs = new long[NR_CONFIG_LENGTH]; - for (int i = 0; i < NR_CONFIG_LENGTH; i++) { - nrNsaConfigs[i] = buf.getLong(); - } - - // modify band config - int row = (band - 1) / 64; - int col = (band - 1) % 64; - if (enabled) { - nrSaConfigs[row] |= (1 << col); - nrNsaConfigs[row] |= (1 << col); - } else { - nrSaConfigs[row] &= ~(1 << col); - nrNsaConfigs[row] &= ~(1 << col); - } - - // set band config - byte[] newData = new byte[BAND_CONFIG_LENGTH + 8]; - ByteBuffer newBuf = ByteBuffer.wrap(newData) - .order(ByteOrder.BIG_ENDIAN) - .putInt(OEM_RIL_REQUEST_SET_BAND_PREF) - .putInt(BAND_CONFIG_LENGTH) - .order(ByteOrder.nativeOrder()) - .putLong(nasConfig); - for (int i = 0; i < LTE_CONFIG_LENGTH; i++) { - newBuf.putLong(lteConfigs[i]); - } - for (int i = 0; i < NR_CONFIG_LENGTH; i++) { - newBuf.putLong(nrSaConfigs[i]); - } - for (int i = 0; i < NR_CONFIG_LENGTH; i++) { - newBuf.putLong(nrNsaConfigs[i]); - } - try { - int ret = mService.sendOemRilRequestRaw(newData, new byte[1], phoneId); - if (ret < 0) - throw new Exception(); - } catch (Exception e) { - Log.e(TAG, "sendOemRilRequestRaw failed to set band config!", e); - return false; - } - - return true; - } - - private class QcrilMsgTunnelConnection implements ServiceConnection { - @Override - public void onServiceConnected(ComponentName name, IBinder service) { - mService = IQcrilMsgTunnel.Stub.asInterface(service); - if (mService == null) { - Log.e(TAG, "Unable to get IQcrilMsgTunnel!"); - return; - } - try { - service.linkToDeath(new IBinder.DeathRecipient() { - @Override - public void binderDied() { - Log.e(TAG, "QcrilMsgTunnel service died, trying to bind again"); - mService = null; - QcRilMsgUtils.this.bindService(); - } - }, 0); - } catch (RemoteException e) { - Log.e(TAG, "linkToDeath failed", e); - } - Log.i(TAG, "QcrilMsgTunnel service connected"); - } - - @Override - public void onServiceDisconnected(ComponentName name) { - Log.i(TAG, "QcrilMsgTunnel service disconnected"); - mService = null; - } - } - - private static void dlog(String msg) { - DubaiCameraService.dlog(msg); - } -} diff --git a/camera/src/com/qualcomm/qcrilmsgtunnel/IQcrilMsgTunnel.aidl b/camera/src/com/qualcomm/qcrilmsgtunnel/IQcrilMsgTunnel.aidl deleted file mode 100644 index 7cedc3e..0000000 --- a/camera/src/com/qualcomm/qcrilmsgtunnel/IQcrilMsgTunnel.aidl +++ /dev/null @@ -1,11 +0,0 @@ -package com.qualcomm.qcrilmsgtunnel; - -interface IQcrilMsgTunnel { - - /** - * Sends a OEM request to the RIL and returns the response back to the - * Caller. The returnValue is negative on failure. 0 or length of response on SUCCESS - */ - int sendOemRilRequestRaw(in byte[] request, out byte[] response, in int sub); - -} diff --git a/configs/keylayout/fts_ts.kl b/configs/keylayout/fts_ts.kl new file mode 100644 index 0000000..2d03a1c --- /dev/null +++ b/configs/keylayout/fts_ts.kl @@ -0,0 +1,9 @@ +# +# FTS Touch sensor fod key event +# +# +# 704 finger touch down +# 705 finger touch up +# fts_ts "finger present" +key 704 SYSTEM_NAVIGATION_DOWN +key 705 SYSTEM_NAVIGATION_UP diff --git a/configs/keylayout/goodix_ts.kl b/configs/keylayout/goodix_ts.kl old mode 100755 new mode 100644 diff --git a/configs/thermal-engine-dubai-game-perf.conf b/configs/thermal-engine-dubai-game-perf.conf deleted file mode 100644 index 20a0640..0000000 --- a/configs/thermal-engine-dubai-game-perf.conf +++ /dev/null @@ -1,123 +0,0 @@ -[DETECT-STANDBY] -algo_type virtual -trip_sensor msm_therm -thresholds -18000 -thresholds_clr -20000 -sensors lcd_brightness_value -weights 20 -sampling 1000 -less_than -math 7 - -[OVERRIDE-CHG] -algo_type monitor -sampling 1000 -sensor DETECT-STANDBY -thresholds 1 -thresholds_clr 0 -actions internal_override -action_info 1 - -[FREEZE-CHG] -algo_type monitor -sampling 1000 -descending -sensor DETECT-STANDBY -thresholds 0 -thresholds_clr 1 -actions freeze_rule -action_info 1 - -[FRONT_TEMP] -algo_type virtual -trip_sensor msm_therm -thresholds -18000 -thresholds_clr -20000 -sensors pa_therm1 battery -weights 35 65 -offsets 0 0 -sampling 5000 -math 0 -sys_temp - -[REPORT-FRONT-TEMP] -algo_type monitor -sampling 300000 -sensor FRONT_TEMP -thresholds 42000 -thresholds_clr 40000 -actions report -action_info 1 - -[BACK_TEMP] -algo_type virtual -trip_sensor msm_therm -thresholds -18000 -thresholds_clr -20000 -sensors msm_therm battery -weights 50 50 -offsets -800 -sampling 5000 -math 0 -sys_temp - -[REPORT-BACK-TEMP] -algo_type monitor -sampling 300000 -sensor BACK_TEMP -thresholds 42000 -thresholds_clr 40000 -actions report -action_info 1 - - -[MON-PDPOWER1] -algo_type monitor -sampling 1000 -sensor quiet_therm -thresholds 43000 43500 44000 44500 46000 47500 48500 70000 -thresholds_clr 41000 41500 42000 42500 44000 45500 46500 68000 -actions battery battery battery battery battery battery battery battery -action_info 8 7 6 5 4 3 2 2 -freezing - -[MON-PDPOWER2] -algo_type monitor -sampling 1000 -sensor msm_therm -thresholds 41000 42000 43000 44000 46000 48000 50000 70000 -thresholds_clr 39000 40000 41000 42000 44000 46000 48000 68000 -actions battery battery battery battery battery battery battery battery -action_info 8 6 5 4 3 2 1 1 -override_c 15000 - - - - -[MON-MSM-CPU47] -algo_type monitor -sampling 1000 -sensor BACK_TEMP -thresholds 42000 43000 44000 45000 46000 47000 49000 70000 -thresholds_clr 39000 40000 41000 42000 43000 44000 47000 68000 -actions cpu4+cpu7 cpu4+cpu7 cpu4+cpu7 cpu4+cpu7 cpu4+cpu7 cpu4+cpu7 cpu4+cpu7 cpu4+cpu7 -action_info 21312000+2380800 2054400+2208000 1900800+2035200 1651200+1862400 1516800+1766400 1344000+1516800 1228800+1324800 1228800+1324800 - - -[MON-MSM-CPU0] -algo_type monitor -sampling 1000 -sensor BACK_TEMP -thresholds 43000 44000 45000 46000 47000 70000 -thresholds_clr 41000 42000 43000 44000 45000 68000 -actions cpu0 cpu0 cpu0 cpu0 cpu0 cpu0 -action_info 1651200 1516800 1324800 1152000 940800 940800 - -[MON-PA-FR1] -algo_type monitor -sampling 5000 -sensor BACK_TEMP -thresholds 60000 -thresholds_clr 58000 -actions modem_pa_fr1 -action_info 1 diff --git a/device.mk b/device.mk index afa5475..d165a69 100644 --- a/device.mk +++ b/device.mk @@ -29,24 +29,25 @@ PRODUCT_AAPT_CONFIG := normal PRODUCT_AAPT_PREF_CONFIG := 400dpi PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi -PRODUCT_SHIPPING_API_LEVEL := 31 +# Shipping API level +PRODUCT_SHIPPING_API_LEVEL := 33 -# Inherit from motorola sm7325-common -$(call inherit-product, device/motorola/sm7325-common/common.mk) +# Inherit from motorola sm6375-common +$(call inherit-product, device/motorola/sm6375-common/common.mk) # Overlay PRODUCT_PACKAGES += \ - FrameworksResDubai \ - LineageSystemUIDubai \ - SettingsResDubai \ - SettingsProviderResDubai \ - SystemUIResDubai \ - WifiResDubai + FrameworksResBangkk \ + LineageSystemUIBangkk \ + SettingsResBangkk \ + SettingsProviderResBangkk \ + SystemUIResBangkk \ + WifiResBangkk # Audio PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/audio/sku_yupik/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_yupik/audio_platform_info.xml \ - $(LOCAL_PATH)/audio/sku_yupik/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_yupik/mixer_paths.xml \ + $(LOCAL_PATH)/audio/sku_holi/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_holi/audio_platform_info.xml \ + $(LOCAL_PATH)/audio/sku_holi/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_holi/mixer_paths.xml \ $(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ $(LOCAL_PATH)/audio/audio_ext_spkr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_ext_spkr.conf \ @@ -55,12 +56,11 @@ PRODUCT_COPY_FILES += \ # Camera PRODUCT_PACKAGES += \ - DubaiCameraService \ libgui_shim_vendor # Fingerprint PRODUCT_PACKAGES += \ - android.hardware.biometrics.fingerprint@2.3-service.dubai + android.hardware.biometrics.fingerprint@2.3-service.bangkk # Init $(foreach f,$(wildcard $(LOCAL_PATH)/rootdir/etc/init/hw/*.rc),\ @@ -72,26 +72,31 @@ $(foreach f,$(wildcard $(LOCAL_PATH)/rootdir/bin/*.sh),\ # Keylayout PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/keylayout/fts_ts.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/fts_ts.kl \ $(LOCAL_PATH)/configs/keylayout/goodix_ts.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/goodix_ts.kl # NFC PRODUCT_PACKAGES += \ android.hardware.nfc@1.2.vendor \ - android.hardware.nfc@1.2-service.st \ + android.hardware.nfc@1.2-service.samsung \ + nfc_nci_samsung \ + SecureElement \ android.hardware.secure_element@1.2.vendor \ com.android.nfc_extras \ libchrome.vendor \ - Tag \ - nfc_nci.st21nfc.default + Tag # Permissions PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ + frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ + frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml # Sensors PRODUCT_PACKAGES += \ - sensors.dubai + sensors.bangkk PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf @@ -99,9 +104,5 @@ PRODUCT_COPY_FILES += \ # Soong namespaces PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH) -# Thermal -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/configs/thermal-engine-dubai-game-perf.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-dubai.conf - # Inherit from vendor blobs -$(call inherit-product, vendor/motorola/dubai/dubai-vendor.mk) +$(call inherit-product, vendor/motorola/bangkk/bangkk-vendor.mk) diff --git a/device_framework_matrix_dubai.xml b/device_framework_matrix_bangkk.xml similarity index 100% rename from device_framework_matrix_dubai.xml rename to device_framework_matrix_bangkk.xml diff --git a/extract-files.sh b/extract-files.sh index 2c68560..c1d9421 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -22,8 +22,8 @@ fi set -e -export DEVICE=dubai -export DEVICE_COMMON=sm7325-common +export DEVICE=bangkk +export DEVICE_COMMON=sm6375-common export VENDOR=motorola "./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@" diff --git a/fingerprint/Android.bp b/fingerprint/Android.bp index 8aff97d..19ec8c7 100644 --- a/fingerprint/Android.bp +++ b/fingerprint/Android.bp @@ -1,8 +1,8 @@ cc_binary { - name: "android.hardware.biometrics.fingerprint@2.3-service.dubai", + name: "android.hardware.biometrics.fingerprint@2.3-service.bangkk", defaults: ["hidl_defaults"], - init_rc: ["android.hardware.biometrics.fingerprint@2.3-service.dubai.rc"], - vintf_fragments: ["android.hardware.biometrics.fingerprint@2.3-service.dubai.xml"], + init_rc: ["android.hardware.biometrics.fingerprint@2.3-service.bangkk.rc"], + vintf_fragments: ["android.hardware.biometrics.fingerprint@2.3-service.bangkk.xml"], relative_install_path: "hw", srcs: [ "service.cpp", @@ -22,7 +22,7 @@ cc_binary { } cc_library_static { - name: "libudfps_extension.dubai", + name: "libudfps_extension.bangkk", srcs: ["UdfpsExtension.cpp"], include_dirs: [ "frameworks/native/services/surfaceflinger/CompositionEngine/include" diff --git a/fingerprint/BiometricsFingerprint.cpp b/fingerprint/BiometricsFingerprint.cpp index 01b5b01..d1f0351 100644 --- a/fingerprint/BiometricsFingerprint.cpp +++ b/fingerprint/BiometricsFingerprint.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#define LOG_TAG "android.hardware.biometrics.fingerprint@2.3-service.dubai" +#define LOG_TAG "android.hardware.biometrics.fingerprint@2.3-service.bangkk" #include "BiometricsFingerprint.h" diff --git a/fingerprint/android.hardware.biometrics.fingerprint@2.3-service.dubai.rc b/fingerprint/android.hardware.biometrics.fingerprint@2.3-service.bangkk.rc similarity index 71% rename from fingerprint/android.hardware.biometrics.fingerprint@2.3-service.dubai.rc rename to fingerprint/android.hardware.biometrics.fingerprint@2.3-service.bangkk.rc index fcb4488..190d1df 100644 --- a/fingerprint/android.hardware.biometrics.fingerprint@2.3-service.dubai.rc +++ b/fingerprint/android.hardware.biometrics.fingerprint@2.3-service.bangkk.rc @@ -1,4 +1,4 @@ -service fps_hal.dubai /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.3-service.dubai +service fps_hal.bangkk /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.3-service.bangkk # "class hal" causes a race condition on some devices due to files created # in /data. As a workaround, postpone startup until later in boot once # /data is mounted. diff --git a/fingerprint/android.hardware.biometrics.fingerprint@2.3-service.dubai.xml b/fingerprint/android.hardware.biometrics.fingerprint@2.3-service.bangkk.xml similarity index 100% rename from fingerprint/android.hardware.biometrics.fingerprint@2.3-service.dubai.xml rename to fingerprint/android.hardware.biometrics.fingerprint@2.3-service.bangkk.xml diff --git a/fingerprint/service.cpp b/fingerprint/service.cpp index 7a3b091..abf5dd5 100644 --- a/fingerprint/service.cpp +++ b/fingerprint/service.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#define LOG_TAG "android.hardware.biometrics.fingerprint@2.3-service.dubai" +#define LOG_TAG "android.hardware.biometrics.fingerprint@2.3-service.bangkk" #include #include #include "BiometricsFingerprint.h" diff --git a/lineage.dependencies b/lineage.dependencies index 76799e5..f8ef9af 100644 --- a/lineage.dependencies +++ b/lineage.dependencies @@ -1,6 +1,6 @@ [ { - "repository": "android_device_motorola_sm7325-common", + "repository": "android_device_motorola_sm6375-common", "target_path": "device/motorola/sm7325-common" } ] diff --git a/lineage_dubai.mk b/lineage_bangkk.mk similarity index 57% rename from lineage_dubai.mk rename to lineage_bangkk.mk index bd4d27d..556d083 100644 --- a/lineage_dubai.mk +++ b/lineage_bangkk.mk @@ -8,22 +8,22 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) -# Inherit from dubai device -$(call inherit-product, device/motorola/dubai/device.mk) +# Inherit from bangkk device +$(call inherit-product, device/motorola/bangkk/device.mk) # Inherit some common Lineage stuff. $(call inherit-product, vendor/lineage/config/common_full_phone.mk) -PRODUCT_NAME := lineage_dubai -PRODUCT_DEVICE := dubai +PRODUCT_NAME := lineage_bangkk +PRODUCT_DEVICE := bangkk PRODUCT_MANUFACTURER := motorola PRODUCT_BRAND := motorola -PRODUCT_MODEL := motorola edge 30 +PRODUCT_MODEL := moto g84 5G PRODUCT_GMS_CLIENTID_BASE := android-motorola PRODUCT_BUILD_PROP_OVERRIDES += \ - TARGET_PRODUCT=dubai_g \ - PRIVATE_BUILD_DESC="dubai_g-user 13 T1RDS33.116-33-15-6 e089e7-b95537 release-keys" + TARGET_PRODUCT=bangkk_g \ + PRIVATE_BUILD_DESC="bangkk_g-user 14 U1TC34M.22-64-18 48c0d4 release-keys" -BUILD_FINGERPRINT := motorola/dubai_g/dubai:13/T1RDS33.116-33-15-6/e089e7-b95537:user/release-keys +BUILD_FINGERPRINT := motorola/bangkk_g/bangkk:14/U1TC34M.22-64-18/48c0d4:user/release-keys diff --git a/manifest_dubai.xml b/manifest_bangkk.xml similarity index 100% rename from manifest_dubai.xml rename to manifest_bangkk.xml diff --git a/modules.blocklist b/modules.blocklist index b5e1237..dd62766 100644 --- a/modules.blocklist +++ b/modules.blocklist @@ -84,8 +84,6 @@ blocklist vmw_vsock_virtio_transport blocklist vmw_vsock_virtio_transport_common blocklist vsock_diag blocklist vsock -blocklist qca_cld3_wlan -blocklist qca_cld3_qca6390 blocklist torture blocklist locktorture blocklist rcutorture @@ -93,11 +91,20 @@ blocklist rcutorture # # Motorola platform module block list # - blocklist utags +blocklist watchdogtest +blocklist moto_f_usbnet # Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. # # Motorola product module block list # - +blocklist fpsensor_spi_tee +blocklist fpc1020_mmi +blocklist qpnp_adaptive_charge +blocklist nova_0flash_mmi +blocklist leds_aw99703 +blocklist leds_lm3697 +blocklist focaltech_0flash_v2_mmi +blocklist mmi_smbcharger_iio +blocklist mmi_parallel_charger_iio diff --git a/modules.load b/modules.load index cfb5e4c..9613c20 100644 --- a/modules.load +++ b/modules.load @@ -1,110 +1,66 @@ -stub_dlkm.ko -machine_dlkm.ko -fc2580.ko -mt2063.ko -tda9887.ko -apr_dlkm.ko -mxl5005s.ko -xc4000.ko -tuner-xc2028.ko -radio-i2c-rtc6226-qca.ko -max2165.ko -qt1010.ko -slimbus-ngd.ko -llcc_perfmon.ko -platform_dlkm.ko -wsa883x_dlkm.ko -tea5767.ko -msi001.ko -qm1d1c0042.ko -fc0013.ko -btpower.ko -tua9001.ko -m88rs6000t.ko -qcom_edac.ko -fc0011.ko -wcd937x_dlkm.ko pinctrl_lpi_dlkm.ko -fc0012.ko -aw882xx_k504.ko -mt20xx.ko -xc5000.ko -wcd9xxx_dlkm.ko -bt_fm_slim.ko -tea5761.ko -rx_macro_dlkm.ko -pinctrl_wcd_dlkm.ko -wsa_macro_dlkm.ko -adsp_loader_dlkm.ko -wcd938x_dlkm.ko -q6_dlkm.ko -hdmi_dlkm.ko -swr_haptics_dlkm.ko -tda18218.ko -msm_drm.ko -tda18212.ko +aw87xxx_dlkm.ko wcd937x_slave_dlkm.ko -mt2060.ko -q6_notifier_dlkm.ko -tuner-simple.ko -snd_event_dlkm.ko -mc44s803.ko -wcd_core_dlkm.ko -qm1d1b0004.ko -tda18250.ko -mbhc_dlkm.ko -tuner-types.ko -si2157.ko -mt2131.ko -slimbus.ko -native_dlkm.ko -va_macro_dlkm.ko -hid-aksys.ko -mt2266.ko -bolero_cdc_dlkm.ko -mxl5007t.ko -wcd938x_slave_dlkm.ko +platform_dlkm.ko +wcd938x_dlkm.ko +lzo_decompress.ko q6_pdr_dlkm.ko -e4000.ko -it913x.ko -swr_ctrl_dlkm.ko -mxl301rf.ko -swr_dlkm.ko -rdbg.ko -swr_dmic_dlkm.ko -r820t.ko -camera.ko +wcd_core_dlkm.ko +q6_dlkm.ko +mbhc_dlkm.ko tx_macro_dlkm.ko +swr_ctrl_dlkm.ko +swr_dlkm.ko +sec_nfc.ko +snd_event_dlkm.ko +aw882xx_acf.ko +rdbg.ko +zram.ko +wcd937x_dlkm.ko +camera.ko +machine_dlkm.ko +wsa881x_analog_dlkm.ko +lzo-rle.ko +native_dlkm.ko +lzo.ko +stub_dlkm.ko +aw882xx_k419.ko +wcd9xxx_dlkm.ko +btpower.ko +va_macro_dlkm.ko +bolero_cdc_dlkm.ko +adsp_loader_dlkm.ko +apr_dlkm.ko +lzo_compress.ko +q6_notifier_dlkm.ko +bt_fm_slim.ko +rx_macro_dlkm.ko +wcd938x_slave_dlkm.ko wlan.ko rmnet_core.ko rmnet_ctl.ko rmnet_offload.ko rmnet_shs.ko utags.ko +mmi_relay.ko mmi_info.ko mmi_annotate.ko sensors_class.ko -watchdogtest.ko exfat.ko -bm_adsp_ulog.ko -mmi_charger.ko -qti_glink_charger.ko -qpnp_adaptive_charge.ko -cirrus_wm_adsp.ko -cirrus_cs35l41.ko -cirrus_cs35l45.ko -aw862x.ko -mmi_info.ko -mmi_relay.ko -wl2864c.ko -cci_intf.ko -st21nfc.ko -nfc_i2c.ko -sx937x_sar.ko moto_f_usbnet.ko -touchscreen_mmi.ko -goodix_brl_mmi.ko +watchdogtest.ko +qpnp_adaptive_charge.ko +rbs_fod_mmi.ko +sx937x_sar.ko +awinic_sar.ko mmi_sys_temp.ko -rbs_fps_mmi.ko -mmi_info.ko -mmi_annotate.ko +ldo_vibrator_mmi.ko +touchscreen_mmi.ko +focaltech_v3.ko +goodix_brl_mmi.ko +cci_intf.ko +bq25980_mmi_iio.ko +mmi-smbcharger-iio.ko +mmi_parallel_charger_iio.ko +moto_mm.ko +moto_swap.ko diff --git a/modules.load.recovery b/modules.load.recovery index 399dce7..15f3819 100644 --- a/modules.load.recovery +++ b/modules.load.recovery @@ -1,7 +1,10 @@ +focaltech_v3.ko +goodix_brl_mmi.ko msm_drm.ko mmi_relay.ko -sensors_class.ko -touchscreen_mmi.ko mmi_annotate.ko mmi_info.ko -goodix_brl_mmi.ko +mmi_parallel_charger_iio.ko +mmi-smbcharger-iio.ko +touchscreen_mmi.ko +sensors_class.ko diff --git a/proprietary-files.txt b/proprietary-files.txt index 2b7f554..6c0c529 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,6 +1,6 @@ -# All unpinned blobs below are extracted from dubai_g-user 13 T1RDS33.116-33-15-6 e089e7-b95537 release-keys - RETAIL variant. +# All unpinned blobs are extracted from bangkk_g-user 14 U1TC34M.22-64-18 48c0d4 release-keys -# ACDB Data +# ACDB-data vendor/etc/acdbdata/Bluetooth_cal.acdb vendor/etc/acdbdata/General_cal.acdb vendor/etc/acdbdata/Global_cal.acdb @@ -13,16 +13,12 @@ vendor/etc/acdbdata/nn_ns_models/candidate__2.7.1.31__3.0.0__eai_1.10_enpu1.pmd vendor/etc/acdbdata/nn_ns_models/fai__2.0.0_0.1__3.0.0_0.0__eai_1.00.pmd vendor/etc/acdbdata/nn_ns_models/fai__2.2.0_0.1__3.0.0_0.0__eai_1.00.pmd vendor/etc/acdbdata/nn_ns_models/fai__2.6.1_0.0__eai_v1.10.pmd +vendor/etc/acdbdata/nn_ns_models/fai__2.6.3_0.0__3.0.0_0.0__eai_1.10.pmd vendor/etc/acdbdata/nn_ns_models/fai__2.6.3_0.0__3.0.0_0.0__eai_1.10_enpu1.pmd +vendor/etc/acdbdata/nn_ns_models/fai__2.6.3_0.0__3.0.0_0.0__eai_1.36_enpu2.pmd vendor/etc/acdbdata/nn_ns_models/fai__2.7.4_0.0__3.0.0_0.0__eai_1.10_enpu1.pmd vendor/etc/acdbdata/nn_vad_models/fai_3.0.0_0.0_eai_1.00.pmd -# Audio firmware -vendor/firmware/aw882xx_pid_1852_acf.bin -vendor/firmware/aw882xx_pid_2113_acf.bin -vendor/firmware/aw882xx_spk_reg.bin -vendor/firmware/aw_skt.bin - # Audio libraries vendor/lib/libacdbloader.so vendor/lib64/libacdbloader.so @@ -33,12 +29,10 @@ vendor/lib64/camera/fdconfigpreview.bin vendor/lib64/camera/fdconfigpreviewlite.bin vendor/lib64/camera/fdconfigvideo.bin vendor/lib64/camera/fdconfigvideolite.bin +vendor/lib64/camera/com.qti.flash.aw36514.so +vendor/lib64/camera/com.qti.flash.ocp81373.so vendor/lib64/com.qti.chiusecaseselector.so -vendor/lib64/com.qti.settings.kamorta.so -vendor/lib64/com.qti.settings.kodiak.so vendor/lib64/com.qti.settings.mannar.so -vendor/lib64/com.qti.settings.sdm865.so -vendor/lib64/com.qti.settings.sm8350.so vendor/lib64/com.qti.stats.common.so vendor/lib64/com.qualcomm.mcx.distortionmapper.so vendor/lib64/com.qualcomm.mcx.linearmapper.so @@ -46,23 +40,10 @@ vendor/lib64/com.qualcomm.mcx.policy.mfl.so vendor/lib64/com.qualcomm.qti.mcx.usecase.extension.so vendor/lib64/hw/camera.qcom.so vendor/lib64/hw/com.qti.chi.override.so -vendor/lib64/libFace3DTA.so -vendor/lib64/libFace3D_hlos.so -vendor/lib64/libQ6MSFR_manager_stub.so -vendor/lib64/libQnnHtp.so -vendor/lib64/libQnnHtpV68Stub.so -vendor/lib64/libaidenoiser.so -vendor/lib64/libaidenoiserv2.so +vendor/lib64/libBSTSWAD.so vendor/lib64/libarcsoft_chi_utils.so -vendor/lib64/libarcsoft_distortion_correction.so -vendor/lib64/libarcsoft_dual_sat.so -vendor/lib64/libarcsoft_dual_zoomtranslator.so -vendor/lib64/libarcsoft_hdr_detection.so -vendor/lib64/libarcsoft_high_dynamic_range.so -vendor/lib64/libarcsoft_portrait_distortion_correction.so -vendor/lib64/libarcsoft_portrait_super_night_raw.so +vendor/lib64/libarcsoft_low_light_shot.so vendor/lib64/libarcsoft_portrait_super_night_se_raw.so -vendor/lib64/libarcsoft_qnnhtp.so vendor/lib64/libarcsoft_super_night_raw.so vendor/lib64/libarcsoft_super_night_se_raw.so vendor/lib64/libbitmlengine.so @@ -75,21 +56,20 @@ vendor/lib64/libcamxfacialfeatures.so vendor/lib64/libcamxfdalgo.so vendor/lib64/libcamxfdengine.so vendor/lib64/libcamxifestriping.so +vendor/lib64/libcamxifestriping.so vendor/lib64/libcamximageformatutils.so vendor/lib64/libcamxqsatalgo.so vendor/lib64/libcamxstatscore.so vendor/lib64/libcamxswispiqmodule.so vendor/lib64/libcamxswprocessalgo.so vendor/lib64/libcamxtintlessalgo.so +vendor/lib64/libcapiv2svacnn.so +vendor/lib64/libcapiv2svarnn.so +vendor/lib64/libcapiv2vop.so vendor/lib64/libchilog.so vendor/lib64/libcom.qti.chinodeutils.so -vendor/lib64/libdualcam_optical_zoom_control.so -vendor/lib64/libdualcam_video_optical_zoom.so -vendor/lib64/libface3d_dev.so -vendor/lib64/libipebpsstriping.so -vendor/lib64/libipebpsstriping170.so vendor/lib64/libjpege.so -vendor/lib64/libmfec.so +vendor/lib64/libmctfengine_stub.so vendor/lib64/libmmcamera_bestats.so vendor/lib64/libmmcamera_cac3.so vendor/lib64/libmmcamera_faceproc.so @@ -101,39 +81,36 @@ vendor/lib64/libmmcamera_pdpc.so vendor/lib64/libmot_afd.so vendor/lib64/libmot_chi_desktop_helper.so vendor/lib64/libmot_engine_settings.so -vendor/lib64/libmotoisdataqueue.so vendor/lib64/libmpbase.so vendor/lib64/libofflinedump.so vendor/lib64/libofflinelog.so vendor/lib64/libopencv.so vendor/lib64/libopestriping.so -vendor/lib64/libos.so -vendor/lib64/libpowercore.so -vendor/lib64/libqll10.so -vendor/lib64/libqllengine.so vendor/lib64/libremosaic_wrapper.so +vendor/lib64/libsns_device_mode_stub.so +vendor/lib64/libsns_fastRPC_util.so +vendor/lib64/libsns_low_lat_stream_stub.so +vendor/lib64/libsnsdiaglog.so vendor/lib64/libswregistrationalgo.so -vendor/lib64/libsynx.so vendor/lib64/libtfestriping.so -vendor/lib64/libthreadutils.so +vendor/lib64/libundistort_impl.so vendor/lib64/libvideooptfeature.so vendor/lib64/libvidhance.so -vendor/lib64/libvidhance_active_ois.so -vendor/lib64/libvidhance_dmbr.so -vendor/lib64/libvidhance_face_stabilizer.so -vendor/lib64/libvidhance_fbc.so -vendor/lib64/libvidhance_horizon_correction.so -vendor/lib64/libvidhance_stabilizer.so -vendor/lib64/libvidhance_zoom_stabilization.so vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so +# Camera - Motorola +vendor/bin/hw/motorola.hardware.camera.desktop@2.0-service +vendor/etc/init/motorola.hardware.camera.desktop@2.0-service.rc +vendor/etc/init/motorola.hardware.camera.imgtuner@2.0-service.rc +vendor/lib64/motorola.hardware.camera.desktop@1.0.so +vendor/lib64/motorola.hardware.camera.desktop@2.0.so + # Camera - Components -vendor/lib64/camera/components/com.arcsoft.node.smooth_transition.so +vendor/lib64/camera/components/com.arcsoft.node.mfnr.so vendor/lib64/camera/components/com.arcsoft.node.supernightraw.so vendor/lib64/camera/components/com.mot.node.c2d.so vendor/lib64/camera/components/com.mot.node.dc_capture.so -vendor/lib64/camera/components/com.mot.node.hdr.so -vendor/lib64/camera/components/com.mot.node.scene_detect.so +vendor/lib64/camera/components/com.mot.node.dc_preview.so vendor/lib64/camera/components/com.qti.camx.chiiqutils.so vendor/lib64/camera/components/com.qti.eisv2.so vendor/lib64/camera/components/com.qti.eisv3.so @@ -156,8 +133,6 @@ vendor/lib64/camera/components/com.qti.node.stich.so vendor/lib64/camera/components/com.qti.node.swaidenoiser.so vendor/lib64/camera/components/com.qti.node.swbestats.so vendor/lib64/camera/components/com.qti.node.swcac.so -vendor/lib64/camera/components/com.qti.node.swec.so -vendor/lib64/camera/components/com.qti.node.swfusion.so vendor/lib64/camera/components/com.qti.node.swlsc.so vendor/lib64/camera/components/com.qti.node.swmctf.so vendor/lib64/camera/components/com.qti.node.swmfnr.so @@ -179,98 +154,74 @@ vendor/lib64/camera/components/com.qti.stats.hafoverride.so vendor/lib64/camera/components/com.qti.stats.pdlib.so vendor/lib64/camera/components/com.qti.stats.pdlibsony.so vendor/lib64/camera/components/com.qti.stats.pdlibwrapper.so -vendor/lib64/camera/components/com.qti.stats.tracker.so vendor/lib64/camera/components/com.qtistatic.stats.aec.so vendor/lib64/camera/components/com.qtistatic.stats.af.so vendor/lib64/camera/components/com.qtistatic.stats.awb.so vendor/lib64/camera/components/com.qtistatic.stats.pdlib.so vendor/lib64/camera/components/com.vidhance.node.ica.so vendor/lib64/camera/components/com.vidhance.node.processing.so -vendor/lib64/camera/components/com.vidhance.stats.aec_dmbr.so vendor/lib64/camera/components/libdepthmapwrapper_secure.so -# Camera - eeprom -vendor/lib64/camera/com.mot.eeprom.mot_dubai_gc02m1b_otp.so -vendor/lib64/camera/com.mot.eeprom.mot_gt24p128e_ov50a_eeprom.so -vendor/lib64/camera/com.mot.eeprom.mot_gt24p128e_s5kjn1_eeprom.so -vendor/lib64/camera/com.mot.eeprom.mot_gt24p64e_ov32b40_eeprom.so - -# Camera - etc -vendor/etc/camera/aec_golden_depth.bin -vendor/etc/camera/aec_golden_wide.bin -vendor/etc/camera/arcsoft_calibration_u_dc.bin -vendor/etc/camera/dual_golden_depth.bin -vendor/etc/camera/dual_golden_wide.bin -vendor/etc/camera/mot_engine_config.bin -vendor/etc/camera/vidhance_calibration - # Camera - feature2 vendor/lib64/com.qti.feature2.anchorsync.so vendor/lib64/com.qti.feature2.arcrawpro.so vendor/lib64/com.qti.feature2.demux.so -vendor/lib64/com.qti.feature2.derivedoffline.so vendor/lib64/com.qti.feature2.frameselect.so vendor/lib64/com.qti.feature2.fusion.so vendor/lib64/com.qti.feature2.generic.so -vendor/lib64/com.qti.feature2.gs.cedros.so -vendor/lib64/com.qti.feature2.gs.kamorta.so -vendor/lib64/com.qti.feature2.gs.kodiak.so vendor/lib64/com.qti.feature2.gs.mannar.so -vendor/lib64/com.qti.feature2.gs.sdm865.so -vendor/lib64/com.qti.feature2.gs.sm8350.so vendor/lib64/com.qti.feature2.hdr.so vendor/lib64/com.qti.feature2.mcreprocrt.so vendor/lib64/com.qti.feature2.memcpy.so vendor/lib64/com.qti.feature2.mfsr.so -vendor/lib64/com.qti.feature2.ml.so vendor/lib64/com.qti.feature2.mux.so -vendor/lib64/com.qti.feature2.qcfa.so vendor/lib64/com.qti.feature2.rawhdr.so vendor/lib64/com.qti.feature2.realtimeserializer.so vendor/lib64/com.qti.feature2.rt.so vendor/lib64/com.qti.feature2.rtmcx.so vendor/lib64/com.qti.feature2.serializer.so -vendor/lib64/com.qti.feature2.statsregeneration.so -vendor/lib64/com.qti.feature2.stub.so vendor/lib64/com.qti.feature2.swmf.so -# Camera - ICP -vendor/firmware/CAMERA_ICP_170.elf +# Camera - etc +vendor/etc/camera/SwadAIMod.bin +vendor/etc/camera/SwadCalib.bin +vendor/etc/camera/SwadParamList.txt +vendor/etc/camera/aec_golden_wide.bin +vendor/etc/camera/anc_detect_model +vendor/etc/camera/anc_track_model +vendor/etc/camera/dual_golden_wide.bin +vendor/etc/camera/vidhance.lic +vendor/etc/camera/vidhance_calibration -# Camera - Motorola -product/etc/permissions/com.motorola.camera3.dubai.xml:vendor/etc/permissions/com.motorola.camera3.dubai.xml -vendor/bin/hw/motorola.hardware.camera.desktop@2.0-service -vendor/etc/init/motorola.hardware.camera.desktop@2.0-service.rc -vendor/etc/init/motorola.hardware.camera.imgtuner@1.0-service.rc -vendor/lib64/motorola.hardware.camera.desktop@1.0.so -vendor/lib64/motorola.hardware.camera.desktop@2.0.so +# Camera - eeprom +vendor/lib64/camera/com.mot.eeprom.mot_bangkk_s5k4h7_otp.so +vendor/lib64/camera/com.mot.eeprom.mot_gt24p128f_s5kgn9_eeprom.so +vendor/lib64/camera/com.mot.eeprom.mot_gt24p64b_ov16a1q_eeprom.so -# Camera - OIS -vendor/firmware/mot_dw9781c.prog - -# Camera - sensor -vendor/lib64/camera/com.qti.sensor.mot_gc02m1b.so -vendor/lib64/camera/com.qti.sensor.mot_ov32b40.so -vendor/lib64/camera/com.qti.sensor.mot_ov50a.so -vendor/lib64/camera/com.qti.sensor.mot_s5kjn1.so -vendor/lib64/camera/com.qti.sensormodule.mot_dubai_gc02m1b_tsp.bin -vendor/lib64/camera/com.qti.sensormodule.mot_dubai_ov32b40_ofilm.bin -vendor/lib64/camera/com.qti.sensormodule.mot_dubai_ov50a_sunny.bin -vendor/lib64/camera/com.qti.sensormodule.mot_dubai_s5kjn1_qtech.bin +# Camera - sensors +vendor/lib64/camera/com.qti.sensor.mot_ov16a1q.so +vendor/lib64/camera/com.qti.sensor.mot_s5k4h7.so +vendor/lib64/camera/com.qti.sensor.mot_s5kgn9.so +vendor/lib64/camera/com.qti.sensormodule.mot_bangkk_ov16a1q_ofilm.bin +vendor/lib64/camera/com.qti.sensormodule.mot_bangkk_s5k4h7_qtech.bin +vendor/lib64/camera/com.qti.sensormodule.mot_bangkk_s5kgn9_ak7377.bin +vendor/lib64/camera/com.qti.sensormodule.mot_bangkk_s5kgn9_ofilm.bin # Camera - tuned vendor/lib64/camera/com.qti.tuned.default.bin -vendor/lib64/camera/com.qti.tuned.mot_dubai_gc02m1b.bin -vendor/lib64/camera/com.qti.tuned.mot_dubai_ov32b40.bin -vendor/lib64/camera/com.qti.tuned.mot_dubai_ov50a.bin -vendor/lib64/camera/com.qti.tuned.mot_dubai_s5kjn1.bin +vendor/lib64/camera/com.qti.tuned.mot_bangkk_ov16a1q.bin +vendor/lib64/camera/com.qti.tuned.mot_bangkk_ov16a1q_india.bin +vendor/lib64/camera/com.qti.tuned.mot_bangkk_s5k4h7af.bin +vendor/lib64/camera/com.qti.tuned.mot_bangkk_s5k4h7af_india.bin +vendor/lib64/camera/com.qti.tuned.mot_bangkk_s5kgn9.bin +vendor/lib64/camera/com.qti.tuned.mot_bangkk_s5kgn9_ak7377.bin +vendor/lib64/camera/com.qti.tuned.mot_bangkk_s5kgn9_ak7377_india.bin +vendor/lib64/camera/com.qti.tuned.mot_bangkk_s5kgn9_india.bin # Display calibration data -vendor/etc/qdcm_calib_data_mipi_mot_cmd_csot_1080p_dsc_655.xml -vendor/etc/qdcm_calib_data_mipi_mot_cmd_tm_1080p_dsc_655.xml -vendor/etc/qdcm_calib_data_nt36672e_60_Hz_fhd_plus_video_mode_panel_without_DSC.xml -vendor/etc/qdcm_calib_data_nt36672e_fhd_plus_120Hz_Video_panel.xml -vendor/etc/qdcm_calib_data_nt36672e_fhd_plus_144Hz_video_panel.xml +vendor/etc/qdcm_calib_data_mipi_moto_vid_csot_1080p_dsc_655.xml +vendor/etc/qdcm_calib_data_mipi_moto_vid_tm_1080p_dsc_655.xml +vendor/etc/qdcm_calib_data_mipi_moto_vid_tm_u8_1080p_dsc_655.xml # Fingerprint vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service-ets @@ -280,85 +231,36 @@ vendor/lib64/libets_teeclient_v3.so vendor/lib64/vendor.egistec.hardware.fingerprint@4.0.so vendor/lib64/vendor.qti.hardware.fingerprint@1.0.so +# Firmware - From Bangkk +vendor/firmware/aw87xxx_acf.bin +vendor/firmware/aw963xx_reg_0.bin +vendor/firmware/csot_focal_test_limits.ini +vendor/firmware/focaltech-csot-ft3681-26-0000-bangkk.bin +vendor/firmware/goodix-tm-gt9916S-23062705-649a9b6c-bangkk.bin +vendor/firmware/mot_aw86006.prog +vendor/firmware/mot_dw9784.prog +vendor/firmware/sec_s3nrn4v_firmware.bin +vendor/firmware/tm_goodix_cfg_group.bin + # HotwordEnrollment -product/priv-app/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND.apk -product/priv-app/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND.apk system_ext/etc/permissions/com.android.hotwordenrollment.common.util.xml system_ext/framework/com.android.hotwordenrollment.common.util.jar -# MotCamera4 - from dubai - dubai_g-user 13 T1RDS33.116-33-15-1 06f6d-c0e7b release-keys - RETAIL variant -product/app/MotCamera3AI/MotCamera3AI.apk;PRESIGNED|44b210e8a14092edf50396182eb37818c24a10e4 -product/etc/init/init.motcamera3.lens.rc|293260214b3b60496fb61709276295f17036f506 -product/priv-app/MotCamera4/MotCamera4.apk|8f945fa4439d7166536e7e2a8acff563d1aee334 -product/lib64/libAncHumanSegFigureFusion-jni.so|29b3f53abf695f59093fa789cffaf79771b49568 -product/lib64/libFNVfbEngineHAL_legacy.so|228508501f39e855c89df1463f4a44e2cb085540 -product/lib64/libNvBeautyEffect.so|cd80f5049b2f668379f1d3ecbf6e6206de20a46d -product/lib64/libSNPE.so|a90efc5216de3cc3f20fb70f3e1ee567729f02f0 -product/lib64/libSuperSensorCPU_v05052021.so|22378fd888fc13dac8f46a250f101dbcdb6d44bc -product/lib64/libSuperSensorProcessorCWrapper_v2.so|7e66994ee9b8c7d637afb58e0e341e5c94cf23a2 -product/lib64/libSuperSensorProcessor_v05052021.so|2c9204b230bddd089070e5b9238c85b9fe6d94f8 -product/lib64/libSuperSensor_v05052021.so|dfbfc247087c8f9dfc86401918c8026b06eaf4a5 -product/lib64/libarcsoft_dualcam_refocus.so|4e8778a48d5d9bb33ef85063ee4b9dbedfb858e2 -product/lib64/libarcsoft_frc.so|dab92e6bd066b44bb557f24c9cb2c587df2aab46 -product/lib64/libarcsoft_hdr_detection.so|b9c9d06189c7394c1a1780e7b434a58993035b49 -product/lib64/libarcsoft_hdr_scbokeh_image.so|2c2d9e9c173ed5516a7e425e6b1b1ee0b9f1d1a8 -product/lib64/libarcsoft_high_dynamic_range.so|5b377a50612bafb30af4cb271327053abfe88a32 -product/lib64/libarcsoft_multiframe_bokeh_image.so|a2ac6da70a9bc9d42ac5287127bb8faa7951a05c -product/lib64/libarcsoft_scbokeh_Generic.so|5f51996cb89299b9c222bc211a514db3b1d398b8 -product/lib64/libas-super-slow-motion.so|a323551fbfce86d4951e964a2e94f289c0190d79 -product/lib64/libbarhopper_v3.so|156387210e424f30d2642edeff2a549d77808abd -product/lib64/libbg-postproc-jni.so|8c9d3dc74ef641c5456640451c70cfb6507f56f2 -product/lib64/libc++.so|e8707820517ab7713b8ca6ac4462361e00629c26 -product/lib64/libc++_shared.so|dbbd9e4d06e2566c31bdc744dd7391536a780cc6 -product/lib64/libcamerax_extension_jni.so|58f91e63adf1a7642b9f2c5fc5be915a6896c111 -product/lib64/libdoc-util.so|4a81cced80dcce4869446f9970509ded771ca89b -product/lib64/libdynamic_depth.so|515f03132a086f15c565dd89b192ede5eeca7e29 -product/lib64/libfn-beauty-vfb-legacy-base.so|f0a72449ee71ed63aecbd5783576c2f3ad5fa5cb -product/lib64/libfoundation.so|fedb660a03cff0cd51a11be5472c550ad8f0482a -product/lib64/libgg-dynamic_depth.so|5019a87cd8795e5d5a498971cfa5cbcaa3b0fb1e -product/lib64/libgg-tensorflow-lite.so|339239bd3e9efbfa6379f07f0d2d7496b10a3d74 -product/lib64/libgif.so|310d708f0c9b60c065514c1e3f1534c8ba347c7d -product/lib64/libjpeg.so|a51f6dde2a6d7eb11378a2575a5e6bf625a15bbb -product/lib64/liblenovo_panorama.so|13c8b6cc2366eea46c5fcb7eb3665a5ba5d38ed4 -product/lib64/libmcf-base.so|879813b31805da7ea3f8cf6409b142a7b13cf66b -product/lib64/libmcf-jni.so|f65dd95befd29203caf6ad219c9cf580e15a05d0 -product/lib64/libmcf-qc-fd-offline_local.so|99d2dbab152e22d6ae3d552cee3a172fc886ba24 -product/lib64/libmcf-stand-alone-sm.so|dd8c3309f8835b20086c3f888a90031c7869fb77 -product/lib64/libmeishe-nv-effects-thumbnails.so|a98f88462d5e129c19d3007c73151cdf98f83cfa -product/lib64/libmmcamera_faceproc2.so|1c732d58bf24c939f568cda340318e5b873dce3b -product/lib64/libmorpho_cinema_graph.so|c689a3734f6963b6ad4be3a9ddfae00c1c82acb0 -product/lib64/libmorpho_panorama_gp3.so|239287acb6bbb790b793538030d219742a1ff5d0 -product/lib64/libmorpho_panorama_gp3_core.so|af05f89eb7d96b5980337361b4cd082eeb52d400 -product/lib64/libmorpho_sensor_fusion.so|bbbdfc2b980c3c5810a7d26f14c735c1b64a2af9 -product/lib64/libmot-cinemagraph-engine.so|436fec2e80ab8775e6337c42ddf0a4961dcde600 -product/lib64/libmot-util.so|db7ea99db0b906e6ef0ced21d10e5530b3bd106b -product/lib64/libmpbase.so|07021c39abbc5c8538f6df1876a3eb3015ff9c2a -product/lib64/libqc-snpe.so|d56cb26ade27bbd4f3ce3d193982fa33523394cb -product/lib64/libsmart_ppt.so|1ba24a17a049e175e5509a9ea1cba38940159efc -product/lib64/libtensorflowlite.so|17f94dc427220788db8f10d658d3a330488ac7d6 -product/lib64/libtensorflowlite_gpu_delegate.so|821bcbece27d47c49daac00a65fdf48213befad1 - -# MotCamera4 - Permissions -product/etc/permissions/com.motorola.camera3.content.ai.xml -product/etc/permissions/com.motorola.camera3.dubai.xml -product/etc/permissions/com.motorola.camera3.lens.xml -product/etc/permissions/com.motorola.camera3.xml -product/etc/permissions/deviceowner-configuration-com.motorola.camera3.xml -product/etc/permissions/privapp-permissions-com.motorola.camera3.xml -product/etc/sysconfig/hiddenapi-whitelist-com.motorola.camera3.xml - # NFC -vendor/bin/STFlashTool - -# NFC - configs -vendor/etc/libnfc-hal-st.conf -vendor/etc/libnfc-nci-st.conf -vendor/etc/st21nfc_conf_ds.txt -vendor/etc/st21nfc_conf_ss.txt - -# NFC firmware -vendor/firmware/st21nfc_fw.bin -vendor/firmware/st21nfc_fw7.bin +vendor/etc/libnfc-PN557.conf +vendor/etc/libnfc-SN220-UICC.conf +vendor/etc/libnfc-SN220.conf +vendor/etc/libnfc-mtp-SN100-UICC.conf +vendor/etc/libnfc-mtp-SN100.conf +vendor/etc/libnfc-mtp-SN100_38_4MHZ.conf +vendor/etc/libnfc-nxp-pnscr.conf +vendor/etc/libnfc-qrd-SN100.conf +vendor/etc/libnfc-qrd-SN100_38_4MHZ.conf +vendor/etc/libnfc-sec-nci.conf +vendor/etc/libnfc-sec-vendor.conf +vendor/etc/nfc_calibration.txt # OEM vendor/etc/vhw.xml @@ -367,17 +269,8 @@ vendor/etc/vhw.xml vendor/lib64/sensors.moto.so vendor/lib64/sensors.ssc.so -# Sensor - configs -vendor/etc/sensors/config/icm4x6xx.json -vendor/etc/sensors/config/kodiak_default_sensors.json -vendor/etc/sensors/config/kodiak_dynamic_sensors.json -vendor/etc/sensors/config/kodiak_irq.json -vendor/etc/sensors/config/kodiak_power_0.json -vendor/etc/sensors/config/lsm6dso_0.json -vendor/etc/sensors/config/mmc5603x_0.json +# Sensors Configs vendor/etc/sensors/config/mot_camgest.json -vendor/etc/sensors/config/mot_devorient.json -vendor/etc/sensors/config/mxg4300_0.json vendor/etc/sensors/config/sns_amd.json vendor/etc/sensors/config/sns_amd_sw_disabled.json vendor/etc/sensors/config/sns_amd_sw_enabled.json @@ -413,8 +306,13 @@ vendor/etc/sensors/config/sns_tilt_sw_disabled.json vendor/etc/sensors/config/sns_tilt_sw_enabled.json vendor/etc/sensors/config/sns_tilt_to_wake.json vendor/etc/sensors/config/sns_wrist_pedo.json -vendor/etc/sensors/config/stk3a5x_0.json -vendor/etc/sensors/proto/als_mastercal.proto +vendor/etc/sensors/config/strait_default_sensors.json +vendor/etc/sensors/config/strait_dynamic_sensors.json +vendor/etc/sensors/config/strait_lsm6dso_0.json +vendor/etc/sensors/config/strait_mmc56x3x_0.json +vendor/etc/sensors/config/strait_mn78xxx_0.json +vendor/etc/sensors/config/strait_power_0.json +vendor/etc/sensors/config/strait_qmc6308_0.json vendor/etc/sensors/proto/descriptor.proto vendor/etc/sensors/proto/mot_barocal.proto vendor/etc/sensors/proto/mot_camgest.proto @@ -432,7 +330,6 @@ vendor/etc/sensors/proto/mot_offbody.proto vendor/etc/sensors/proto/mot_probe.proto vendor/etc/sensors/proto/mot_proxcal.proto vendor/etc/sensors/proto/mot_stowed.proto -vendor/etc/sensors/proto/mot_tap.proto vendor/etc/sensors/proto/mot_vsync.proto vendor/etc/sensors/proto/nanopb.proto vendor/etc/sensors/proto/sns_accel.proto @@ -458,6 +355,7 @@ vendor/etc/sensors/proto/sns_ext_svc.proto vendor/etc/sensors/proto/sns_facing.proto vendor/etc/sensors/proto/sns_fmv.proto vendor/etc/sensors/proto/sns_formatter.proto +vendor/etc/sensors/proto/sns_formatter_notify.proto vendor/etc/sensors/proto/sns_fw.proto vendor/etc/sensors/proto/sns_game_rv.proto vendor/etc/sensors/proto/sns_geomag_rv.proto @@ -475,7 +373,6 @@ vendor/etc/sensors/proto/sns_mag_cal.proto vendor/etc/sensors/proto/sns_mot_factory_cal.proto vendor/etc/sensors/proto/sns_oem1.proto vendor/etc/sensors/proto/sns_offbody_detect.proto -vendor/etc/sensors/proto/sns_panel_status.proto vendor/etc/sensors/proto/sns_pedometer.proto vendor/etc/sensors/proto/sns_pedometer_wrist.proto vendor/etc/sensors/proto/sns_physical_sensor_test.proto @@ -502,35 +399,14 @@ vendor/etc/sensors/proto/sns_thermopile.proto vendor/etc/sensors/proto/sns_threshold.proto vendor/etc/sensors/proto/sns_tilt.proto vendor/etc/sensors/proto/sns_tilt_to_wake.proto -vendor/etc/sensors/proto/sns_trimag.proto vendor/etc/sensors/proto/sns_ultra_violet.proto vendor/etc/sensors/proto/sns_wrist_tilt_gesture.proto +vendor/etc/sensors/proto/tcs3708.proto vendor/etc/sensors/sns_reg_config -# Thermal engine - configs +# Thermal configs +vendor/etc/thermal-engine-bangkk-camera.conf +vendor/etc/thermal-engine-bangkk-game-normal.conf +vendor/etc/thermal-engine-bangkk-game-perf.conf +vendor/etc/thermal-engine-bangkk.conf vendor/etc/thermal-engine.conf - -# Touchscreen firmware -vendor/firmware/csot_goodix_cfg_group.bin -vendor/firmware/csot_goodix_test_limits_255.csv -vendor/firmware/goodix-csot-gt9916S-2202250f-62187be9-dubai.bin -vendor/firmware/goodix-tianma-gt9916S-2202250f-62187c3e-dubai.bin -vendor/firmware/tianma_goodix_cfg_group.bin -vendor/firmware/tianma_goodix_test_limits_255.csv - -# Vibration firmware -vendor/firmware/aw8622x_haptic.bin -vendor/firmware/aw8622x_osc_rtp_12K_10s.bin -vendor/firmware/aw8622x_rtp.bin - -# WPSS firmware - from S1RDS32.55-106-3 -vendor/firmware/wpss.b00|9214ea9be39a858849f2f854a13499d68208a659 -vendor/firmware/wpss.b01|e15f757c7a97f62a4d529e50769b75de7016588c -vendor/firmware/wpss.b02|ae11da8b635ded3ed976b7d32b5e088b86a3aeaa -vendor/firmware/wpss.b03|0590fe4f97d77dd110a8474f1219e40e9a26d6c2 -vendor/firmware/wpss.b04|a80736069f2e1a077c31ddedc04204479cf1650e -vendor/firmware/wpss.b05|e6492d98c65316c43bd20b2e79a69de28a15c00d -vendor/firmware/wpss.b06|3337d698242ca04332a65023b915b076f3ef6dfb -vendor/firmware/wpss.b07|0a8b713c17d486485c3b35eea4eed471e5330004 -vendor/firmware/wpss.mdt|50925b033c00324162fd708e9cda99c75d42efec -vendor/firmware/wpss.qdb|0684693df38ddc4647c62c386e4683c6a7aa9696 diff --git a/resource-overlay/dubai/Frameworks/Android.bp b/resource-overlay/bangkk/Frameworks/Android.bp similarity index 69% rename from resource-overlay/dubai/Frameworks/Android.bp rename to resource-overlay/bangkk/Frameworks/Android.bp index 2c2019a..6f9667c 100644 --- a/resource-overlay/dubai/Frameworks/Android.bp +++ b/resource-overlay/bangkk/Frameworks/Android.bp @@ -1,5 +1,5 @@ runtime_resource_overlay { - name: "FrameworksResDubai", + name: "FrameworksResBangkk", sdk_version: "current", vendor: true } diff --git a/resource-overlay/dubai/Frameworks/AndroidManifest.xml b/resource-overlay/bangkk/Frameworks/AndroidManifest.xml similarity index 89% rename from resource-overlay/dubai/Frameworks/AndroidManifest.xml rename to resource-overlay/bangkk/Frameworks/AndroidManifest.xml index 344a3bc..2f538b4 100644 --- a/resource-overlay/dubai/Frameworks/AndroidManifest.xml +++ b/resource-overlay/bangkk/Frameworks/AndroidManifest.xml @@ -4,6 +4,6 @@ SPDX-License-Identifier: Apache-2.0 --> + package="android.overlay.bangkk"> diff --git a/resource-overlay/dubai/Frameworks/res/values-land/dimens.xml b/resource-overlay/bangkk/Frameworks/res/values-land/dimens.xml similarity index 85% rename from resource-overlay/dubai/Frameworks/res/values-land/dimens.xml rename to resource-overlay/bangkk/Frameworks/res/values-land/dimens.xml index 8b2feaa..0b5a7c4 100644 --- a/resource-overlay/dubai/Frameworks/res/values-land/dimens.xml +++ b/resource-overlay/bangkk/Frameworks/res/values-land/dimens.xml @@ -7,5 +7,5 @@ - 24.0dip + 106.0dip diff --git a/resource-overlay/dubai/Frameworks/res/values/config.xml b/resource-overlay/bangkk/Frameworks/res/values/config.xml similarity index 93% rename from resource-overlay/dubai/Frameworks/res/values/config.xml rename to resource-overlay/bangkk/Frameworks/res/values/config.xml index 8e6ff12..8d25d54 100644 --- a/resource-overlay/dubai/Frameworks/res/values/config.xml +++ b/resource-overlay/bangkk/Frameworks/res/values/config.xml @@ -35,6 +35,9 @@ 1250 3500 5500 + 10000 + 50000 + 120000 - 2 + 3 7 10 12 @@ -60,8 +63,11 @@ 111 149 192 - 252 + 325 500 + 700 + 800 + 1000 - 0 - 1 - 4 - 5 - 6 - 12 - 48 - 57 - 76 - 98 + 9 + 27 + 35 + 38 + 55 + 106 + 113 129 + 147 + 183 + 228 + 239 + 244 255 @@ -91,8 +99,7 @@ This array should be equal in size to config_screenBrightnessBacklight --> - 0 - 2 + 3 7 10 12 @@ -101,8 +108,11 @@ 111 149 192 - 252 + 325 500 + 700 + 800 + 1000 - M -35,0 - L 35,0 - L 35,105 - L -35,105 - Z + M -38,0 + L 38,0 + L 38,106 + L -38,106 + Z 540 - 2164 + 2168 91 @@ -215,28 +225,19 @@ 0 - 67 + 60 0 - 67 + 50 - + 0 - 0 - 94 - - - - - 0 - 15 - 30 - 15 + 40 - motorolaedge30 + motog845g http://uaprof.motorola.com/phoneconfig/motov1/Profile/motov1.rdf diff --git a/resource-overlay/dubai/Frameworks/res/values/dimens.xml b/resource-overlay/bangkk/Frameworks/res/values/dimens.xml similarity index 67% rename from resource-overlay/dubai/Frameworks/res/values/dimens.xml rename to resource-overlay/bangkk/Frameworks/res/values/dimens.xml index 06a5743..81680af 100644 --- a/resource-overlay/dubai/Frameworks/res/values/dimens.xml +++ b/resource-overlay/bangkk/Frameworks/res/values/dimens.xml @@ -5,11 +5,11 @@ --> - 95.0px + 105.0px - 105.0px + 106.0px - 20.0px + 19.0px diff --git a/resource-overlay/bangkk/Frameworks/res/xml/power_profile.xml b/resource-overlay/bangkk/Frameworks/res/xml/power_profile.xml new file mode 100644 index 0000000..9488ec6 --- /dev/null +++ b/resource-overlay/bangkk/Frameworks/res/xml/power_profile.xml @@ -0,0 +1,82 @@ + + + 0 + 120.12 + 370.48 + 1.78 + 88.58 + 44.18 + 607.96 + 149.85 + 50.69 + 124.89 + 35 + + 35 + 30 + 25 + 20 + 15 + 10 + 5 + 1.090 + + + 6 + 2 + + + 300000 + 576000 + 691200 + 940800 + 1113600 + 1324800 + 1516800 + 1651200 + 1708800 + 1804800 + + + 691200 + 940800 + 1228800 + 1401600 + 1516800 + 1651200 + 1804800 + 1900800 + 2054400 + 2208000 + + + 22.1 + 24.3 + 25.3 + 30.3 + 33.2 + 36.6 + 43.2 + 50.2 + 52.2 + 55.8 + + + 49.6 + 67.2 + 90.7 + 112.0 + 127.9 + 149.2 + 168.4 + 187.2 + 200.6 + 228.3 + + 0.7 + 8.7 + 5.993 + 8.606 + 9.4 + 5000 + \ No newline at end of file diff --git a/resource-overlay/dubai/LineageSystemUI/Android.bp b/resource-overlay/bangkk/LineageSystemUI/Android.bp similarity index 79% rename from resource-overlay/dubai/LineageSystemUI/Android.bp rename to resource-overlay/bangkk/LineageSystemUI/Android.bp index ccb8db4..b10da46 100644 --- a/resource-overlay/dubai/LineageSystemUI/Android.bp +++ b/resource-overlay/bangkk/LineageSystemUI/Android.bp @@ -4,6 +4,6 @@ // runtime_resource_overlay { - name: "LineageSystemUIDubai", + name: "LineageSystemUIBangkk", vendor: true, } diff --git a/resource-overlay/dubai/LineageSystemUI/AndroidManifest.xml b/resource-overlay/bangkk/LineageSystemUI/AndroidManifest.xml similarity index 87% rename from resource-overlay/dubai/LineageSystemUI/AndroidManifest.xml rename to resource-overlay/bangkk/LineageSystemUI/AndroidManifest.xml index 307de26..083f7c0 100644 --- a/resource-overlay/dubai/LineageSystemUI/AndroidManifest.xml +++ b/resource-overlay/bangkk/LineageSystemUI/AndroidManifest.xml @@ -4,7 +4,7 @@ SPDX-License-Identifier: Apache-2.0 --> + package="com.android.systemui.bangkk.lineage"> + package="com.android.settings.overlay.bangkk"> diff --git a/resource-overlay/dubai/Settings/res/values/config.xml b/resource-overlay/bangkk/Settings/res/values/config.xml similarity index 79% rename from resource-overlay/dubai/Settings/res/values/config.xml rename to resource-overlay/bangkk/Settings/res/values/config.xml index f0e1a2e..37ba2fd 100644 --- a/resource-overlay/dubai/Settings/res/values/config.xml +++ b/resource-overlay/bangkk/Settings/res/values/config.xml @@ -16,10 +16,7 @@ - - true - - 65 + 70 diff --git a/resource-overlay/dubai/SettingsProvider/Android.bp b/resource-overlay/bangkk/SettingsProvider/Android.bp similarity index 65% rename from resource-overlay/dubai/SettingsProvider/Android.bp rename to resource-overlay/bangkk/SettingsProvider/Android.bp index b8c730b..956980a 100644 --- a/resource-overlay/dubai/SettingsProvider/Android.bp +++ b/resource-overlay/bangkk/SettingsProvider/Android.bp @@ -1,5 +1,5 @@ runtime_resource_overlay { - name: "SettingsProviderResDubai", + name: "SettingsProviderResBangkk", sdk_version: "current", vendor: true } diff --git a/resource-overlay/dubai/SettingsProvider/AndroidManifest.xml b/resource-overlay/bangkk/SettingsProvider/AndroidManifest.xml similarity index 84% rename from resource-overlay/dubai/SettingsProvider/AndroidManifest.xml rename to resource-overlay/bangkk/SettingsProvider/AndroidManifest.xml index 69a3ae7..ea813bd 100644 --- a/resource-overlay/dubai/SettingsProvider/AndroidManifest.xml +++ b/resource-overlay/bangkk/SettingsProvider/AndroidManifest.xml @@ -5,6 +5,6 @@ --> + package="com.android.providers.settings.overlay.bangkk"> diff --git a/resource-overlay/dubai/SettingsProvider/res/values/config.xml b/resource-overlay/bangkk/SettingsProvider/res/values/config.xml similarity index 76% rename from resource-overlay/dubai/SettingsProvider/res/values/config.xml rename to resource-overlay/bangkk/SettingsProvider/res/values/config.xml index 6ffa1ca..2ff7dff 100644 --- a/resource-overlay/dubai/SettingsProvider/res/values/config.xml +++ b/resource-overlay/bangkk/SettingsProvider/res/values/config.xml @@ -5,5 +5,5 @@ --> - motorola edge 30 + moto g84 5G diff --git a/resource-overlay/dubai/Settings/Android.bp b/resource-overlay/bangkk/SystemUI/Android.bp similarity index 70% rename from resource-overlay/dubai/Settings/Android.bp rename to resource-overlay/bangkk/SystemUI/Android.bp index 5894cf6..fb745cb 100644 --- a/resource-overlay/dubai/Settings/Android.bp +++ b/resource-overlay/bangkk/SystemUI/Android.bp @@ -1,5 +1,5 @@ runtime_resource_overlay { - name: "SettingsResDubai", + name: "SystemUIResBangkk", sdk_version: "current", vendor: true } diff --git a/resource-overlay/dubai/SystemUI/AndroidManifest.xml b/resource-overlay/bangkk/SystemUI/AndroidManifest.xml similarity index 86% rename from resource-overlay/dubai/SystemUI/AndroidManifest.xml rename to resource-overlay/bangkk/SystemUI/AndroidManifest.xml index f3d4211..c44527d 100644 --- a/resource-overlay/dubai/SystemUI/AndroidManifest.xml +++ b/resource-overlay/bangkk/SystemUI/AndroidManifest.xml @@ -5,6 +5,6 @@ --> + package="com.android.systemui.overlay.bangkk"> diff --git a/resource-overlay/dubai/SystemUI/res/values-land/dimens.xml b/resource-overlay/bangkk/SystemUI/res/values-land/dimens.xml similarity index 100% rename from resource-overlay/dubai/SystemUI/res/values-land/dimens.xml rename to resource-overlay/bangkk/SystemUI/res/values-land/dimens.xml diff --git a/resource-overlay/dubai/SystemUI/res/values/dimens.xml b/resource-overlay/bangkk/SystemUI/res/values/dimens.xml similarity index 100% rename from resource-overlay/dubai/SystemUI/res/values/dimens.xml rename to resource-overlay/bangkk/SystemUI/res/values/dimens.xml diff --git a/resource-overlay/dubai/SystemUI/res/values/integers.xml b/resource-overlay/bangkk/SystemUI/res/values/integers.xml similarity index 100% rename from resource-overlay/dubai/SystemUI/res/values/integers.xml rename to resource-overlay/bangkk/SystemUI/res/values/integers.xml diff --git a/resource-overlay/dubai/Wifi/Android.bp b/resource-overlay/bangkk/Wifi/Android.bp similarity index 85% rename from resource-overlay/dubai/Wifi/Android.bp rename to resource-overlay/bangkk/Wifi/Android.bp index 73029b6..3dcee24 100644 --- a/resource-overlay/dubai/Wifi/Android.bp +++ b/resource-overlay/bangkk/Wifi/Android.bp @@ -4,7 +4,7 @@ // runtime_resource_overlay { - name: "WifiResDubai", + name: "WifiResBangkk", sdk_version: "current", vendor: true, } diff --git a/resource-overlay/dubai/Wifi/AndroidManifest.xml b/resource-overlay/bangkk/Wifi/AndroidManifest.xml similarity index 87% rename from resource-overlay/dubai/Wifi/AndroidManifest.xml rename to resource-overlay/bangkk/Wifi/AndroidManifest.xml index 9fd14ca..2bdaa79 100644 --- a/resource-overlay/dubai/Wifi/AndroidManifest.xml +++ b/resource-overlay/bangkk/Wifi/AndroidManifest.xml @@ -4,7 +4,7 @@ SPDX-License-Identifier: Apache-2.0 --> + package="com.android.wifi.resources.overlay.bangkk"> - motorola edge 30 + moto g84 5G diff --git a/resource-overlay/dubai/Frameworks/res/xml/power_profile.xml b/resource-overlay/dubai/Frameworks/res/xml/power_profile.xml deleted file mode 100644 index f6e25f0..0000000 --- a/resource-overlay/dubai/Frameworks/res/xml/power_profile.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - 0 - 139.28 - 450 - 0.9 - 34.36 - 4.73 - 523.93 - 200.75 - 171 - 136.278 - 10.57 - - 33.079 - 30 - 25 - 20 - 15 - 10 - 5 - 1.463 - - - 4 - 3 - 1 - - - 300000 - 691200 - 806400 - 940800 - 1152000 - 1324800 - 1516800 - 1651200 - 1804800 - - - 691200 - 940800 - 1228800 - 1344000 - 1516800 - 1651200 - 1900800 - 2054400 - 2131200 - 2400000 - - - 806400 - 1056000 - 1324800 - 1516800 - 1766400 - 1862400 - 2035200 - 2208000 - 2380800 - 2515200 - - - 4.13 - 6.9 - 7.26 - 8.88 - 12.17 - 15.7 - 20.06 - 25.76 - 30.9 - - - 26.93 - 20.23 - 57.22 - 71.71 - 91.77 - 108.31 - 158.29 - 182.69 - 186.79 - 230.89 - - - 34.69 - 49.4 - 70.56 - 89.92 - 117.81 - 129.49 - 185.7 - 184.51 - 218.2 - 243.16 - - 1.13 - 1.13 - 1.13 - 6.5 - 12.86 - 6.79 - 4020 - 6 - 180 - 186 - 3700 - - 17 - - \ No newline at end of file diff --git a/resource-overlay/dubai/Settings/res/drawable/regulatory_info.png b/resource-overlay/dubai/Settings/res/drawable/regulatory_info.png deleted file mode 100644 index d38c551..0000000 Binary files a/resource-overlay/dubai/Settings/res/drawable/regulatory_info.png and /dev/null differ diff --git a/rootdir/etc/init/hw/init.mmi.overlay.rc b/rootdir/etc/init/hw/init.mmi.overlay.rc index 623ffa8..e0d3f80 100644 --- a/rootdir/etc/init/hw/init.mmi.overlay.rc +++ b/rootdir/etc/init/hw/init.mmi.overlay.rc @@ -1,59 +1,51 @@ -import /vendor/etc/init/hw/init.vendor.st21nfc.rc - -on early-init && property:ro.bootmode=mot-factory - insmod /vendor/lib/modules/moto_f_usbnet.ko - -on early-init - exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/${ro.vendor.mot.gki.path} mmi_annotate mmi_info mmi_relay - -on early-init - insmod /vendor/lib/modules/bm_adsp_ulog.ko - insmod /vendor/lib/modules/mmi_charger.ko - insmod /vendor/lib/modules/qti_glink_charger.ko - insmod /vendor/lib/modules/aw882xx_k504.ko - insmod /vendor/lib/modules/cirrus_wm_adsp.ko - insmod /vendor/lib/modules/cirrus_cs35l41.ko - insmod /vendor/lib/modules/cirrus_cs35l45.ko - insmod /vendor/lib/modules/mmi_sys_temp.ko - insmod /vendor/lib/modules/wl2864c.ko - insmod /vendor/lib/modules/goodix_brl_mmi.ko - insmod /vendor/lib/modules/camera.ko - insmod /vendor/lib/modules/aw862x.ko - insmod /vendor/lib/modules/cci_intf.ko - insmod /vendor/lib/modules/qpnp_adaptive_charge.ko - start vendor.mmi_modules - -on fs - # egis fod ko - insmod /vendor/lib/modules/rbs_fps_mmi.ko +# sec_nfc +import /vendor/etc/init/hw/init.nfc.sec.rc on post-fs - # Sensors - chown system system /sys/devices/platform/soc/a94000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_enabled - chown system system /sys/devices/platform/soc/a94000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_pressed - chown system system /sys/devices/platform/soc/a94000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_enabled - chown system system /sys/devices/platform/soc/a94000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_pressed + # "Tap to wake" gesture + chown root input /sys/class/sensors/dt-gesture/enable + chmod 0660 /sys/class/sensors/dt-gesture/enable + chown root input /sys/class/sensors/dt-gesture/poll_delay + chmod 0660 /sys/class/sensors/dt-gesture/poll_delay + +on post-fs + chown system system /sys/devices/platform/soc/4804000.ufshc/clkgate_enable + chown system system /sys/devices/platform/soc/4804000.ufshc/devfreq/4804000.ufshc/min_freq on post-fs-data - mkdir /mnt/vendor/persist/tof 0755 vendor_tcmd camera - chown vendor_tcmd camera /mnt/vendor/persist/tof/refspad_cal - chown vendor_tcmd camera /mnt/vendor/persist/tof/xtalk_g1_cal - chown vendor_tcmd camera /mnt/vendor/persist/tof/xtalk_shape_cal - chown vendor_tcmd camera /mnt/vendor/persist/tof/xtalk_production_cal - chown vendor_tcmd camera /mnt/vendor/persist/tof/offset_cal - chmod 0640 /mnt/vendor/persist/tof/refspad_cal - chmod 0640 /mnt/vendor/persist/tof/xtalk_g1_cal - chmod 0640 /mnt/vendor/persist/tof/xtalk_shape_cal - chmod 0640 /mnt/vendor/persist/tof/xtalk_production_cal - chmod 0640 /mnt/vendor/persist/tof/offset_cal - # Param updater data for various modules - mkdir /data/vendor/param 0775 system system + + chown system system /sys/devices/platform/soc/soc:fm_wcn39x0/elna_en + # touch api + chown system system /sys/class/touchscreen/primary/interpolation + chmod 0660 /sys/class/touchscreen/primary/interpolation + chown system system /sys/class/touchscreen/primary/first_filter + chmod 0660 /sys/class/touchscreen/primary/first_filter + chown system system /sys/class/touchscreen/primary/edge + chmod 0660 /sys/class/touchscreen/primary/edge + # change permission for stylus + chown system system /sys/class/touchscreen/primary/palm_settings + + # Change ownership and permission for bq25960-standalone factory testing + chown system system /sys/class/power_supply/bq25960-standalone/voltage_now + chown system system /sys/bus/iio/devices/iio:device6/in_index_bq25980_cp_enabled_input + chmod 0644 /sys/class/power_supply/bq25960-standalone/voltage_now + chmod 0664 /sys/bus/iio/devices/iio:device6/in_index_bq25980_cp_enabled_input + # Add for Egis Fod fingerprint mkdir /data/vendor/egis 0770 system system mkdir /mnt/vendor/persist/egis 0770 system system mkdir /data/vendor/tzstorage/egis 0770 system system mkdir /data/vendor/egis/cqa 0770 system system + # Add for after-sale ois gyro cal + mkdir /mnt/vendor/persist/camera/gyro_compat 0770 vendor_tcmd camera + + # Add for OIS hall test result + mkdir /mnt/vendor/persist/camera/ois_hall 0770 vendor_tcmd camera + + # Add for OIS hall data + mkdir /mnt/vendor/persist/camera/ois_hall_data 0770 vendor_tcmd camera + # Add for fod fps calibration chown system system /sys/class/backlight/panel0-backlight/brightness chown system system /sys/class/drm/card0-DSI-1/panelName @@ -64,37 +56,77 @@ on post-fs-data chmod 0666 /sys/class/drm/card0-DSI-1/panelName chmod 0666 /sys/class/drm/card0-DSI-1/panelId + # Add for modem rfs logs + rm /data/vendor/radio/read_modem_efs + write /data/vendor/radio/read_modem_efs 0 + chmod 0666 /data/vendor/radio/read_modem_efs + +on early-init + insmod /vendor/lib/modules/leds_aw99703.ko + insmod /vendor/lib/modules/leds_lm3697.ko + exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -r -d /vendor/lib/modules/${ro.vendor.mot.gki.path} zram + +on boot + # vibrator hal need to access this sysfs node for AF noise issue + chown system system /sys/devices/platform/soc/soc:mot,cam-actuator/onekey_actuator + chmod 0660 /sys/devices/platform/soc/soc:mot,cam-actuator/onekey_actuator + # change permission for capsensor + chown system system /sys/class/capsense/reset + chown system system /sys/class/capsense/int_state + chown radio system /sys/class/capsense/reg + chown radio system /sys/class/capsense/fw_download_status + chown system system /sys/class/capsense/mode + chmod 0660 /sys/class/capsense/reset + chmod 0660 /sys/class/capsense/int_state + chmod 0660 /sys/class/capsense/reg + chmod 0660 /sys/class/capsense/fw_download_status + # touch + chown system system /sys/class/touchscreen/primary/interpolation + chmod 0660 /sys/class/touchscreen/primary/interpolation + chown system system /sys/class/touchscreen/primary/sample + chmod 0660 /sys/class/touchscreen/primary/sample + chown system system /sys/class/touchscreen/primary/edge + chmod 0660 /sys/class/touchscreen/primary/edge + chown system system /sys/class/touchscreen/primary/gesture + chmod 0660 /sys/class/touchscreen/primary/gesture + chmod 0660 /sys/class/capsense/mode + chmod 0666 /dev/gtp_tools + #bluetooth sar + write /data/vendor/radio/bluetooth_sar disable + chmod 0644 /data/vendor/radio/bluetooth_sar + chown radio /data/vendor/radio/bluetooth_sar + +on fs + insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/rbs_fod_mmi.ko + +on boot && property:ro.vendor.mot.gki.path=5.4-gki + insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/nfc_i2c.ko + +on late-init + insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/qpnp_adaptive_charge.ko + insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi-smbcharger-iio.ko + insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_parallel_charger_iio.ko + exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/${ro.vendor.mot.gki.path} moto_mm moto_swap + on early-boot # Add for egis fingerprint chown system system /dev/esfp0 chmod 0664 /dev/esfp0 -on boot - # allow TCMD to access cci for OIS test - chmod 0660 /dev/cci_intf chown system camera /dev/cci_intf + chmod 0660 /dev/cci_intf +on property:ro.boot.mode=mot-factory + chmod 0666 /dev/cci_intf - #change adsp pmic test command file access permission - chown vendor_tcmd system /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:mmi,qti-glink-charger/tcmd - chown vendor_tcmd system /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:mmi,qti-glink-charger/force_pmic_icl - chown vendor_tcmd system /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:qcom,battery_charger/force_charging_enable - chmod 0660 /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:mmi,qti-glink-charger/tcmd - chmod 0660 /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:mmi,qti-glink-charger/force_pmic_icl - chmod 0660 /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:qcom,battery_charger/force_charging_enable - # Touch game mode control - chown system system /sys/class/touchscreen/primary/rotate - chmod 0660 /sys/class/touchscreen/primary/rotate - chown system system /sys/class/touchscreen/primary/interpolation - chmod 0660 /sys/class/touchscreen/primary/interpolation - chown system system /sys/class/touchscreen/primary/edge - chmod 0660 /sys/class/touchscreen/primary/edge - chown system system /sys/class/touchscreen/primary/first_filter - chmod 0660 /sys/class/touchscreen/primary/first_filter - # Set adaptive charging perms for HAL - chown system system /sys/module/qpnp_adaptive_charge/parameters/upper_limit - chown system system /sys/module/qpnp_adaptive_charge/parameters/lower_limit +on charger + insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/qpnp_adaptive_charge.ko + insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi-smbcharger-iio.ko + insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_parallel_charger_iio.ko -service capsense_reset /system/vendor/bin/capsense_reset +on post-fs-data && property:ro.boot.mode=charger + setprop persist.vendor.hvdcp_opti.start 1 + +service capsense_reset /vendor/bin/capsense_reset class core user system group system input @@ -103,5 +135,22 @@ service capsense_reset /system/vendor/bin/capsense_reset on property:sys.boot_completed=1 start capsense_reset -on property:persist.vendor.paramfile.parse_panel=1 - write /sys/devices/platform/soc/soc:qcom,dsi-display-primary/dsi_display_parse_para "5" +service vendor.modem-rfs-sh /vendor/bin/init.mmi.modem-rfs.sh loop_forever + class late_start + user root + group log system radio + oneshot + +on post-fs-data && property:ro.boot.mode=mot-factory + #open usb debug log + write /sys/kernel/debug/dynamic_debug/control "file gadget.c +p" + write /sys/kernel/debug/dynamic_debug/control "file composite.c +p" + write /sys/kernel/debug/dynamic_debug/control "file configfs.c +p" + write /sys/kernel/debug/dynamic_debug/control "file phy-msm-snps-hs.c +p" + write /sys/kernel/debug/dynamic_debug/control "file phy-msm-ssusb-qmp.c +p" + +on property:vendor.bluetooth.sar_state=connect + write /data/vendor/radio/bluetooth_sar connect + +on property:vendor.bluetooth.sar_state=disconnect + write /data/vendor/radio/bluetooth_sar disconnect diff --git a/rootdir/etc/init/hw/init.nfc.sec.rc b/rootdir/etc/init/hw/init.nfc.sec.rc new file mode 100644 index 0000000..5baddfc --- /dev/null +++ b/rootdir/etc/init/hw/init.nfc.sec.rc @@ -0,0 +1,12 @@ +on boot + +on post-fs-data +# NFC storage +# mkdir /data/nfc + +# NFC permission + chown nfc nfc /dev/sec-nfc + chmod 0770 /dev/sec-nfc + +# chown nfc nfc /data/nfc +# chmod 0770 /data/nfc diff --git a/rootdir/etc/init/hw/init.vendor.st21nfc.rc b/rootdir/etc/init/hw/init.vendor.st21nfc.rc deleted file mode 100644 index 354b95e..0000000 --- a/rootdir/etc/init/hw/init.vendor.st21nfc.rc +++ /dev/null @@ -1,23 +0,0 @@ - -# This file needs to be executed by vendor_init at boot of the device, -# both in normal and factory mode. - -on post-fs - # Change ownership and permision of st nfc device - chown nfc nfc /dev/st21nfc - chmod 0660 /dev/st21nfc - -on property:ro.vendor.hw.nfc=true && property:persist.vendor.radio.multisim.config=* - start vendor.stflashtool - -on property:ro.vendor.hw.nfc=st && property:persist.vendor.radio.multisim.config=* - start vendor.stflashtool - -on property:ro.vendor.hw.nfc=ese_st && property:persist.vendor.radio.multisim.config=* - start vendor.stflashtool - -service vendor.stflashtool /vendor/bin/STFlashTool -c /vendor/etc/st21nfc_conf.txt -P vendor.nfc.fw_status - group nfc - user nfc - oneshot - disabled diff --git a/sensors/Android.bp b/sensors/Android.bp index 4efaaae..208e875 100644 --- a/sensors/Android.bp +++ b/sensors/Android.bp @@ -5,7 +5,7 @@ // cc_library_shared { - name: "sensors.dubai", + name: "sensors.bangkk", defaults: ["hidl_defaults"], srcs: [ "Sensor.cpp", @@ -29,7 +29,7 @@ cc_library_shared { "android.hardware.sensors@2.X-multihal", ], cflags: [ - "-DLOG_TAG=\"sensors.dubai\"", + "-DLOG_TAG=\"sensors.bangkk\"", ], vendor: true, } diff --git a/sensors/hals.conf b/sensors/hals.conf index d22335b..d7a3266 100644 --- a/sensors/hals.conf +++ b/sensors/hals.conf @@ -1,3 +1,2 @@ -sensors.ssc.so sensors.moto.so -sensors.dubai.so +sensors.ssc.so diff --git a/setup-makefiles.sh b/setup-makefiles.sh index 6390be8..00194f2 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -8,8 +8,8 @@ set -e -export DEVICE=dubai -export DEVICE_COMMON=sm7325-common +export DEVICE=bangkk +export DEVICE_COMMON=sm6375-common export VENDOR=motorola "./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@" diff --git a/system.prop b/system.prop index 0397c97..8182c84 100644 --- a/system.prop +++ b/system.prop @@ -1,3 +1,3 @@ # Google -ro.opa.device_model_id=motorola-dubai +ro.opa.device_model_id=motorola-bangkk ro.opa.eligible_device=true diff --git a/update-sha1sums.py b/update-sha1sums.py index 2720234..d708293 100755 --- a/update-sha1sums.py +++ b/update-sha1sums.py @@ -20,7 +20,7 @@ import os import sys from hashlib import sha1 -device='dubai' +device='bangkk' vendor='motorola' with open('proprietary-files.txt', 'r') as f: diff --git a/vendor.prop b/vendor.prop index d8af8ff..145a541 100644 --- a/vendor.prop +++ b/vendor.prop @@ -1,11 +1,11 @@ # Bluetooth -bluetooth.device.default_name=motorola edge 30 +bluetooth.device.default_name=moto g84 5G # Camera -persist.vendor.camera.physical.num=4 +persist.vendor.camera.physical.num=3 # Motorola ro.mot.build.customerid=global # NFC -ro.vendor.hw.nfc=st +persist.vendor.nfc.config_secfile_name=libnfc-sec-nci.conf