diff --git a/Android.mk b/Android.mk index 06fcf90a3789ff81d21b97ede1dd5b8dfa687165..56ed1db6c15c3edbb2b017475f53449690eab487 100644 --- a/Android.mk +++ b/Android.mk @@ -10,4 +10,24 @@ ifneq ($(filter emerald zirconia,$(TARGET_DEVICE)),) include $(call all-makefiles-under,$(LOCAL_PATH)) -endif \ No newline at end of file +VENDOR_SYMLINKS := \ + $(TARGET_OUT_VENDOR)/lib \ + $(TARGET_OUT_VENDOR)/lib64 \ + $(TARGET_OUT_VENDOR)/lib/hw \ + $(TARGET_OUT_VENDOR)/lib64/hw + +$(VENDOR_SYMLINKS): $(LOCAL_INSTALLED_MODULE) + $(hide) echo "Making vendor symlinks" + @mkdir -p $(TARGET_OUT_VENDOR)/lib/hw + @mkdir -p $(TARGET_OUT_VENDOR)/lib64/hw + @ln -sf $(TARGET_BOARD_PLATFORM)/libdpframework.so $(TARGET_OUT_VENDOR)/lib/libdpframework.so + @ln -sf $(TARGET_BOARD_PLATFORM)/libpq_prot.so $(TARGET_OUT_VENDOR)/lib/libpq_prot.so + @ln -sf $(TARGET_BOARD_PLATFORM)/libmtk_drvb.so $(TARGET_OUT_VENDOR)/lib/libmtk_drvb.so + @ln -sf $(TARGET_BOARD_PLATFORM)/libdpframework.so $(TARGET_OUT_VENDOR)/lib64/libdpframework.so + @ln -sf $(TARGET_BOARD_PLATFORM)/libpq_prot.so $(TARGET_OUT_VENDOR)/lib64/libpq_prot.so + @ln -sf $(TARGET_BOARD_PLATFORM)/libmtk_drvb.so $(TARGET_OUT_VENDOR)/lib64/libmtk_drvb.so + $(hide) touch $@ + +ALL_DEFAULT_INSTALLED_MODULES += $(VENDOR_SYMLINKS) + +endif diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index ee9d5fe52a75d6bf6cbd18f178b201d71e11c98f..5333a925602dfad0225107037287e7975f4179a4 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -97,10 +97,10 @@ TARGET_USERIMAGES_USE_EXT4 := true ENABLE_VENDOR_RIL_SERVICE := true # Security patch level -VENDOR_SECURITY_PATCH := 2021-10-05 +VENDOR_SECURITY_PATCH := 2022-06-05 # Sepolicy -include device/mediatek/sepolicy/BoardSEPolicyConfig.mk +include device/mediatek/sepolicy_vndr/SEPolicy.mk BOARD_VENDOR_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/vendor # Inherit the proprietary files diff --git a/configs/audio/audio_policy_configuration.xml b/configs/audio/audio_policy_configuration.xml index 9718ef9890051a6e41a6593614f61a688f3d24fe..2661a05764827f3b0b8504ccc7c7fb6b177edc14 100644 --- a/configs/audio/audio_policy_configuration.xml +++ b/configs/audio/audio_policy_configuration.xml @@ -14,7 +14,7 @@ limitations under the License. --> - + @@ -52,165 +52,177 @@ FM Tuner In Voice Call In Echo Ref In + Telephony Tx Speaker - + + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="8000 16000 32000 44100 48000" + channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="8000 16000 32000 44100 48000" + channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + samplingRates="8000 16000 32000 44100 48000" + channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + samplingRates="8000 16000 32000 44100 48000" + channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + samplingRates="8000 16000 32000 44100 48000" + channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + + + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="8000 16000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="8000 16000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="8000 16000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - - + + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + + + + + samplingRates="8000 16000 32000 44100 48000" + channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + samplingRates="8000 16000 32000 44100 48000" + channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + samplingRates="8000 16000 32000 44100 48000" + channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + samplingRates="8000 16000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> + samplingRates="8000 16000 32000 44100 48000" + channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + samplingRates="8000 16000 32000 44100 48000" + channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + samplingRates="8000 16000 32000 44100 48000" + channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> - - + + + + samplingRates="8000 16000 32000 44100 48000" + channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> + + + @@ -225,6 +237,10 @@ sources="primary output,deep_buffer,FM Tuner In,Voice Call In"/> + + - - + + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,AUX Digital In,USB Device In,USB Headset In"/> + + + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,AUX Digital In,USB Device In,USB Headset In"/> + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,AUX Digital In,USB Device In,USB Headset In"/> diff --git a/configs/audio/bluetooth_audio_policy_configuration.xml b/configs/audio/bluetooth_offload_audio_policy_configuration.xml similarity index 75% rename from configs/audio/bluetooth_audio_policy_configuration.xml rename to configs/audio/bluetooth_offload_audio_policy_configuration.xml index ce78eb00319d2f68587b8b52887111ea648c5900..4b6022b844c08b418f40ee4a18a333baf7111983 100644 --- a/configs/audio/bluetooth_audio_policy_configuration.xml +++ b/configs/audio/bluetooth_offload_audio_policy_configuration.xml @@ -7,25 +7,25 @@ - + - + - + diff --git a/configs/audio/usb_audio_policy_configuration.xml b/configs/audio/usb_audio_accessory_only_policy_configuration.xml similarity index 62% rename from configs/audio/usb_audio_policy_configuration.xml rename to configs/audio/usb_audio_accessory_only_policy_configuration.xml index 5b8ddf9d7dc9d6929f248cf1ab0a0382e29cbd75..ab4f30f902eac3b3e92027cc9d3041420b775c6f 100644 --- a/configs/audio/usb_audio_policy_configuration.xml +++ b/configs/audio/usb_audio_accessory_only_policy_configuration.xml @@ -1,47 +1,35 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/configs/keylayouts/mtk-kpd.kl b/configs/keylayouts/mtk-kpd.kl index 04780287419a9dab5953f9a0f9e4bb571f15004a..1ec5bf894fff3a34c3e69b65808c4315c4e6dd1c 100644 --- a/configs/keylayouts/mtk-kpd.kl +++ b/configs/keylayouts/mtk-kpd.kl @@ -1,117 +1,8 @@ -key 399 GRAVE -key 2 1 -key 3 2 -key 4 3 -key 5 4 -key 6 5 -key 7 6 -key 8 7 -key 9 8 -key 10 9 -key 11 0 -key 158 BACK -key 230 SOFT_RIGHT -key 60 SOFT_RIGHT -key 107 ENDCALL -key 62 ENDCALL -key 229 MENU -key 139 MENU -key 59 MENU -key 127 SYM -key 217 SEARCH -key 228 POUND -key 227 STAR -key 231 CALL -key 61 CALL -key 232 DPAD_CENTER -key 108 DPAD_DOWN -key 103 DPAD_UP -key 102 HOME -key 105 DPAD_LEFT -key 106 DPAD_RIGHT -key 115 VOLUME_UP +## +## Mediatek Default Keylayout +## + key 114 VOLUME_DOWN -key 113 MUTE +key 115 VOLUME_UP key 116 POWER -key 212 CAMERA -key 211 FOCUS - -key 16 Q -key 17 W -key 18 E -key 19 R -key 20 T -key 21 Y -key 22 U -key 23 I -key 24 O -key 25 P -key 26 LEFT_BRACKET -key 27 RIGHT_BRACKET -key 43 BACKSLASH - -key 30 A -key 31 S -key 32 D -key 33 F -key 34 G -key 35 H -key 36 J -key 37 K -key 38 L -key 39 SEMICOLON -key 40 APOSTROPHE -key 14 DEL - -key 44 Z -key 45 X -key 46 C -key 47 V -key 48 B -key 49 N -key 50 M -key 51 COMMA -key 52 PERIOD -key 53 SLASH -key 28 ENTER - -key 56 ALT_LEFT -key 100 ALT_RIGHT -key 42 SHIFT_LEFT -key 54 SHIFT_RIGHT -key 15 TAB -key 57 SPACE -key 150 EXPLORER -key 155 ENVELOPE - -key 12 MINUS -key 13 EQUALS -key 215 AT - -key 164 MEDIA_PLAY_PAUSE -key 128 MEDIA_STOP -key 163 MEDIA_NEXT -key 165 MEDIA_PREVIOUS -key 168 MEDIA_REWIND -key 159 MEDIA_FAST_FORWARD -# add Armin FingerPrint long touch -key 188 F18 -key 189 F19 -key 252 AIASSIST - -key 452 TPGESTURE_UP -key 453 TPGESTURE_DOWN -key 454 TPGESTURE_LEFT -key 455 TPGESTURE_RIGHT -key 456 TPGESTURE_DOUBLE -key 457 TPGESTURE_C -key 458 TPGESTURE_E -key 459 TPGESTURE_M -key 460 TPGESTURE_O -key 461 TPGESTURE_S -key 462 TPGESTURE_V -key 485 TPGESTURE_W -key 486 TPGESTURE_Z -key 487 TPGESTURE_ARROWUP -key 488 TPGESTURE_ARROWRIGHT - +key 456 WAKEUP diff --git a/configs/media/media_codecs.xml b/configs/media/media_codecs.xml index 6487008490aed733d36cfd90a82705d7f876c009..db38165a17bd69716bec75702c9b2f74787166a7 100644 --- a/configs/media/media_codecs.xml +++ b/configs/media/media_codecs.xml @@ -81,7 +81,5 @@ Only the three quirks included above are recognized at this point: - - diff --git a/configs/media/media_codecs_c2.xml b/configs/media/media_codecs_c2.xml index 2a7296921ebc4c9f869257743b8f2c9e35e629f5..f0969c031352c9912e501b5dec0fa655cb8828c2 100644 --- a/configs/media/media_codecs_c2.xml +++ b/configs/media/media_codecs_c2.xml @@ -1,4 +1,4 @@ - + @@ -205,6 +307,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/media/media_codecs_mediatek_audio.xml b/configs/media/media_codecs_mediatek_audio.xml index 91aa078f5d3cfa3b3b97220b2fff687d50e2dc4a..f32f6411b5982d6483b3aa7aa6ef4e7ea4e9e79b 100644 --- a/configs/media/media_codecs_mediatek_audio.xml +++ b/configs/media/media_codecs_mediatek_audio.xml @@ -79,16 +79,26 @@ Only the three quirks included above are recognized at this point: + - - - + + + + + + + + + + - + + + diff --git a/configs/media/media_codecs_mediatek_video.xml b/configs/media/media_codecs_mediatek_video.xml index 68ad24654bf8bae7678f1351984c6cec18ff13d3..09ef4dcffb6e2c1a0f566c42d91fda2899cbe9cf 100644 --- a/configs/media/media_codecs_mediatek_video.xml +++ b/configs/media/media_codecs_mediatek_video.xml @@ -153,13 +153,6 @@ Only the three quirks included above are recognized at this point: - - - - - - - diff --git a/configs/media/media_codecs_performance.xml b/configs/media/media_codecs_performance.xml index 55417ecd795f32f40dc7e3581d8b61ec5ac11b8a..3e4c83f7651b93c2454f17ea93c63ce58b79d37d 100644 --- a/configs/media/media_codecs_performance.xml +++ b/configs/media/media_codecs_performance.xml @@ -79,34 +79,20 @@ Only the three quirks included above are recognized at this point: - - + + - + - + - - - - - - - - - - - - - - @@ -131,34 +117,35 @@ Only the three quirks included above are recognized at this point: - + - + - + - + + - + - + - + @@ -166,41 +153,12 @@ Only the three quirks included above are recognized at this point: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -217,10 +175,10 @@ Only the three quirks included above are recognized at this point: - + - + @@ -229,4 +187,4 @@ Only the three quirks included above are recognized at this point: - + \ No newline at end of file diff --git a/configs/media/media_profiles_V1_0.xml b/configs/media/media_profiles_V1_0.xml index 424a2a6575503db547a590ac1c923bba6e73147b..a066351d59f760611566f2cf985ba987c17daaab 100644 --- a/configs/media/media_profiles_V1_0.xml +++ b/configs/media/media_profiles_V1_0.xml @@ -76,7 +76,7 @@ - -