diff options
| author | Mister Oyster <oysterized@gmail.com> | 2017-12-09 16:22:53 +0100 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-12-09 16:22:53 +0100 |
| commit | 5906608c0ad3878fd11dd280288a77d62ab559f7 (patch) | |
| tree | 602db90a9c3cdd29b1002484c19ab91106b9d080 | |
| parent | a6635db22bc3a2255a9c6401c829c97e2c9e183c (diff) | |
config: move GPS & BT common configs to common tree
| -rw-r--r-- | VendorConfig.mk | 18 | ||||
| -rw-r--r-- | configs/bluetooth/auto_pair_devlist.conf | 27 | ||||
| -rw-r--r-- | configs/bluetooth/bt_did.conf | 85 | ||||
| -rw-r--r-- | configs/bluetooth/bt_stack.conf | 294 | ||||
| -rw-r--r-- | configs/bluetooth/bt_stack.conf.debug | 78 | ||||
| -rw-r--r-- | configs/bluetooth/bt_stack.conf.sqc | 78 | ||||
| -rw-r--r-- | configs/gps/agps_profiles_conf2.xml | 559 | ||||
| -rw-r--r-- | configs/gps/gps.conf | 117 | ||||
| -rw-r--r-- | configs/gps/slp_conf | 8 |
9 files changed, 1262 insertions, 2 deletions
diff --git a/VendorConfig.mk b/VendorConfig.mk index a078d05..a4752eb 100644 --- a/VendorConfig.mk +++ b/VendorConfig.mk @@ -7,8 +7,8 @@ WITH_DEXPREOPT := false # Seccomp policy PRODUCT_COPY_FILES += \ - $(VND_MTK_PATH)/seccomp_policy/mediacodec.policy:system/vendor/etc/seccomp_policy/mediacodec.policy \ - $(VND_MTK_PATH)/seccomp_policy/mediaextractor.policy:system/vendor/etc/seccomp_policy/mediaextractor.policy + $(VND_MTK_PATH)/seccomp_policy/mediacodec.policy:system/vendor/etc/seccomp_policy/mediacodec.policy \ + $(VND_MTK_PATH)/seccomp_policy/mediaextractor.policy:system/vendor/etc/seccomp_policy/mediaextractor.policy # Google codecs PRODUCT_COPY_FILES += \ @@ -16,5 +16,19 @@ PRODUCT_COPY_FILES += \ frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:system/etc/media_codecs_google_video_le.xml +# GPS +PRODUCT_COPY_FILES += \ + $(VND_MTK_PATH)/configs/gps/slp_conf:system/etc/slp_conf \ + $(VND_MTK_PATH)/configs/gps/gps.conf:system/etc/gps.conf \ + $(VND_MTK_PATH)/configs/gps/agps_profiles_conf2.xml:system/etc/agps_profiles_conf2.xml + +# Bluetooth +PRODUCT_COPY_FILES += \ + $(VND_MTK_PATH)/configs/bluetooth/auto_pair_devlist.conf:system/etc/bluetooth/auto_pair_devlist.conf \ + $(VND_MTK_PATH)/configs/bluetooth/bt_stack.conf.debug:system/etc/bluetooth/bt_stack.conf.debug \ + $(VND_MTK_PATH)/configs/bluetooth/bt_did.conf:system/etc/bluetooth/bt_did.conf \ + $(VND_MTK_PATH)/configs/bluetooth/bt_stack.conf:system/etc/bluetooth/bt_stack.conf \ + $(VND_MTK_PATH)/configs/bluetooth/bt_stack.conf.sqc:system/etc/bluetooth/bt_stack.conf.sqc + # GC tweak PRODUCT_TAGS += dalvik.gc.type-precise diff --git a/configs/bluetooth/auto_pair_devlist.conf b/configs/bluetooth/auto_pair_devlist.conf new file mode 100644 index 0000000..2b5ccb1 --- /dev/null +++ b/configs/bluetooth/auto_pair_devlist.conf @@ -0,0 +1,27 @@ +# Do NOT change this file format without updating the parsing logic in +# BT IF module implementation (btif_storage.c) + +# This file contains information to prevent auto pairing with Bluetooth devices. +# Blacklisting by vendor prefix address: +# The following companies are included in the list below: +# ALPS (lexus), Murata (Prius 2007, Nokia 616), TEMIC SDS (Porsche, Audi), +# Parrot, Zhongshan General K-mate Electronics, Great Well +# Electronics, Flaircomm Electronics, Jatty Electronics, Delphi, +# Clarion, Novero, Denso (Lexus, Toyota), Johnson Controls (Acura), +# Continental Automotive, Harman/Becker, Panasonic/Kyushu Ten, +# BMW (Motorola PCS), Visteon, Peugeot, BMW (MINI10013), Venza (Toyota) +AddressBlacklist=00:02:C7,00:16:FE,00:19:C1,00:1B:FB,00:1E:3D,00:21:4F,00:23:06,00:24:33,00:A0:79,00:0E:6D,00:13:E0,00:21:E8,00:60:57,00:0E:9F,00:12:1C,00:18:91,00:18:96,00:13:04,00:16:FD,00:22:A0,00:0B:4C,00:60:6F,00:23:3D,00:C0:59,00:0A:30,00:1E:AE,00:1C:D7,00:80:F0,00:12:8A,00:09:93,00:80:37,00:26:7E,00:26:e8 + +# Blacklisting by Exact Name: +ExactNameBlacklist=Motorola IHF1000,i.TechBlueBAND,X5 Stereo v1.3,KML_CAN + +# Blacklisting by Partial Name (if name starts with) +PartialNameBlacklist=BMW,Audi,Parrot,Car + +# Fixed PIN keyboard blacklist. Keyboards should have variable PIN +# The keyboards below have a fixed PIN of 0000, so we will auto pair. +# Note the reverse logic in this case compared to other's in this file +# where its a blacklist for not auto pairing. +FixedPinZerosKeyboardBlacklist=00:0F:F6 + +# Blacklisting by addition of the address during usage diff --git a/configs/bluetooth/bt_did.conf b/configs/bluetooth/bt_did.conf new file mode 100644 index 0000000..ea89c06 --- /dev/null +++ b/configs/bluetooth/bt_did.conf @@ -0,0 +1,85 @@ +# Device ID (DID) configuration +[DID1] + +# Primary Record - true or false (default) +# There can be only one primary record +primaryRecord = true + +# Vendor ID '0xFFFF' indicates no Device ID Service Record is present in the device +# 0x000F = Broadcom Corporation (default) +#vendorId = 0x000F + +# Vendor ID Source +# 0x0001 = Bluetooth SIG assigned Device ID Vendor ID value (default) +# 0x0002 = USB Implementer’s Forum assigned Device ID Vendor ID value +#vendorIdSource = 0x0001 + +# Product ID & Product Version +# Per spec DID v1.3 0xJJMN for version is interpreted as JJ.M.N +# JJ: major version number, M: minor version number, N: sub-minor version number +# For example: 1200, v14.3.6 +productId = 0x1200 +version = 0x1436 + +# Optional attributes +#clientExecutableURL = +#serviceDescription = +#documentationURL = + +#=================================================================================================# +# Device ID (DID) configuration +[DID2] + +# Primary Record - true or false (default) +# There can be only one primary record +#primaryRecord = false + +# Vendor ID '0xFFFF' indicates no Device ID Service Record is present in the device +# 0x000F = Broadcom Corporation (default) +#vendorId = 0x000F + +# Vendor ID Source +# 0x0001 = Bluetooth SIG assigned Device ID Vendor ID value (default) +# 0x0002 = USB Implementer’s Forum assigned Device ID Vendor ID value +#vendorIdSource = 0x0001 + +# Product ID & Product Version +# Per spec DID v1.3 0xJJMN for version is interpreted as JJ.M.N +# JJ: major version number, M: minor version number, N: sub-minor version number +# Default: 0x0000, v00.0.0 +#productId = 0x0000 +#version = 0x0000 + +# Optional attributes +#clientExecutableURL = +#serviceDescription = +#documentationURL = + +#=================================================================================================# +# Device ID (DID) configuration +[DID3] + +# Primary Record - true or false (default) +# There can be only one primary record +#primaryRecord = false + +# Vendor ID '0xFFFF' indicates no Device ID Service Record is present in the device +# 0x000F = Broadcom Corporation (default) +#vendorId = 0x000F + +# Vendor ID Source +# 0x0001 = Bluetooth SIG assigned Device ID Vendor ID value (default) +# 0x0002 = USB Implementer’s Forum assigned Device ID Vendor ID value +#vendorIdSource = 0x0001 + +# Product ID & Product Version +# Per spec DID v1.3 0xJJMN for version is interpreted as JJ.M.N +# JJ: major version number, M: minor version number, N: sub-minor version number +# Default: 0x0000, v00.0.0 +#productId = 0x0000 +#version = 0x0000 + +# Optional attributes +#clientExecutableURL = +#serviceDescription = +#documentationURL = diff --git a/configs/bluetooth/bt_stack.conf b/configs/bluetooth/bt_stack.conf new file mode 100644 index 0000000..e42309e --- /dev/null +++ b/configs/bluetooth/bt_stack.conf @@ -0,0 +1,294 @@ +# Enable BtSnoop logging function +# valid value : true, false +BtSnoopLogOutput=false + +# BtSnoop log output file +BtSnoopFileName=/sdcard/mtklog/btlog/btsnoop_hci.log + +# Preserve existing BtSnoop log before overwriting +BtSnoopSaveLog=false + +# Enable trace level reconfiguration function +# Must be present before any TRC_ trace level settings +TraceConf=true + +# Trace level configuration +# BT_TRACE_LEVEL_NONE 0 ( No trace messages to be generated ) +# BT_TRACE_LEVEL_ERROR 1 ( Error condition trace messages ) +# BT_TRACE_LEVEL_WARNING 2 ( Warning condition trace messages ) +# BT_TRACE_LEVEL_API 3 ( API traces ) +# BT_TRACE_LEVEL_EVENT 4 ( Debug messages for events ) +# BT_TRACE_LEVEL_DEBUG 5 ( Full debug messages ) +# BT_TRACE_LEVEL_VERBOSE 6 ( Verbose messages ) - Currently supported for TRC_BTAPP only. +TRC_BTM=2 +TRC_HCI=2 +TRC_L2CAP=2 +TRC_RFCOMM=2 +TRC_OBEX=2 +TRC_AVCT=2 +TRC_AVDT=2 +TRC_AVRC=2 +TRC_AVDT_SCB=2 +TRC_AVDT_CCB=2 +TRC_A2D=2 +TRC_SDP=2 +TRC_GATT=2 +TRC_SMP=2 +TRC_BTAPP=2 +TRC_BTIF=2 +TRC_GAP=2 +TRC_BNEP=2 +TRC_PAN=2 +TRC_B3DS=2 + +################################### +# # +# Must enable MTK_STACK_CONFIG # +# # +################################### + +[MtkBtConf] +MtkStackConfigOverride=/sdcard/btsc + +# +# Control FW Log +# +[MtkBtFWLog] +# FCBE switch +# Ex. Disable FWlog to set C1 = 01 BE FC 01 00 / Enable FWlog to set C1 = 01 BE FC 01 05 +C1 = 01 BE FC 01 00 +# FC5F filter +C2 = 01 5F FC 2A 50 01 09 00 00 00 +# FC5F group filter bitmap +# SYS +C201 = 00 00 00 00 +# TIM +C202 = 00 00 00 00 +# PKV +C203 = 00 00 00 00 +# LC +C204 = 00 00 00 00 +# LL +C205 = 00 00 00 00 +# ANT +C206 = 00 00 00 00 +# LMP +C207 = 00 00 00 00 +# CO +C208 = 00 00 00 00 +# VOICE +C209 = 00 00 00 00 + +# +# Role Switch Blacklisting +# +[MtkRoleSwitchBlacklist] + +# Blacklisting by vendor prefix address: +# Example: AddressBlacklist=12:34:56,22:22:22 +AddressBlacklist= + +# Blacklisting by Exact Name: +# Example: ExactNameBlacklist=This is an example,MT-1234,T1 +ExactNameBlacklist= + +# Blacklisting by Partial Name (if name starts with) +# Example: PartialNameBlacklist=Test,MT +PartialNameBlacklist= + +# +# Sniff Subrating Blacklisting +# +[MtkSniffSubratingBlacklist] + +# Blacklisting by vendor prefix address: +# Example: AddressBlacklist=12:34:56,22:22:22 +# {0x54, 0x46, 0x6b}, /* JW MT002 Bluetooth Mouse */ /*LMP version&subversion - 5, 8721 & LMP Manufacturer - 15*/ +AddressBlacklist=54:46:6b + +# Blacklisting by Exact Name: +# Example: ExactNameBlacklist=This is an example,MT-1234,T1 +ExactNameBlacklist= + +# Blacklisting by Partial Name (if name starts with) +# Example: PartialNameBlacklist=Test,MT +PartialNameBlacklist= + +# +# Hogp Conn Update Blacklisting +# +[MtkHogpConnUpdateBlacklist] + +# Blacklisting by vendor prefix address: +# Example: AddressBlacklist=12:34:56,22:22:22 +AddressBlacklist=00:1b:dc + +# Blacklisting by Exact Name: +# Example: ExactNameBlacklist=This is an example,MT-1234,T1 +ExactNameBlacklist=BSMBB09DS + +# Blacklisting by Partial Name (if name starts with) +# Example: PartialNameBlacklist=Test,MT +PartialNameBlacklist= + +# +# BLE Conn Minimum Interval limit Blacklisting +# +[MtkBleConnIntMinLimitBlacklist] + +# Blacklisting by vendor prefix address: +# Example: AddressBlacklist=12:34:56,22:22:22 +AddressBlacklist=00:15:9e + +# Blacklisting by Exact Name: +# Example: ExactNameBlacklist=This is an example,MT-1234,T1 +ExactNameBlacklist=Mad Catz M.O.U.S.9,Designer Mouse + +# Blacklisting by Partial Name (if name starts with) +# Example: PartialNameBlacklist=Test,MT +PartialNameBlacklist= + +# +# BLE Conn timeout Blacklisting +# +[MtkBleConnTimeoutBlacklist] + +# Blacklisting by vendor prefix address: +AddressBlacklist=FF:40:3A,DA:58:98,C2:80:29,FF:74:E1,D9:E6:EA + +# Blacklisting by Exact Name: +ExactNameBlacklist=CASIO GB-6900A* + +# +# Avrcp 1.5 Blacklisting +# +[MtkAvrcp15BackTo13Blacklist] + +# Some CT devices have IOT issue with AVRCP 1.5 device +# Send the AVRCP version as 1.3 for these devices +# {0x00, 0x1D, 0xBA}, /* JVC carkit */ +# {0x00, 0x1E, 0xB2}, /* AVN 3.0 Hyundai */ +# {0x00, 0x0E, 0x9F}, /* Porshe car kit */ +# {0x00, 0x13, 0x7B}, /* BYOM Opel */ +# {0x68, 0x84, 0x70}, /* KIA MOTOR */ +# {0x00, 0x21, 0xCC}, /* FORD FIESTA */ +# {0x30, 0x14, 0x4A}, /* Mini Cooper */ +# {0x38, 0xC0, 0x96}, /* Seat Leon */ +# {0x00, 0x54, 0xAF}, /* Chrysler */ +# {0x04, 0x88, 0xE2}, /* BeatsStudio Wireless */ +# {0x9C, 0xDF, 0x03}, /* BMW 2012 carkit */ +# {0xA8, 0x54, 0xB2}, /* BMW 2015 carkit */ +# {0x94, 0x44, 0x44}, /* AVN1.0 K9 */ +# {0x00, 0x05, 0xC9}, /* FS AVN */ +# {0xA0, 0x14, 0x3D}, /* VW Sharen */ +# {0xE0, 0x75, 0x0A}, /* VW GOLF */ +# {0x10, 0x08, 0xC1}, /* Hyundai SantaFe */ +# {0x00, 0x21, 0xCC}, /* FORD SYNC TDK */ +# {0x00, 0x0A, 0x30}, /* Honda TFT */ +# {0x00, 0x1E, 0x43}, /* AUDI MMI 3G+ */ +# {0x00, 0x18, 0x09}, /* AT-PHA05BT */ +# {0xC8, 0x02, 0x10}, /* KIA SportageR 2015 */ +# {0x34, 0xB1, 0xF7}, /* G-BOOK 2013 */ +# {0x7C, 0x66, 0x9D}, /* G-BOOK 2014 */ +# {0x00, 0x09, 0x93}, /* Nissan Altima 2014 */ +# {0x04, 0XF8, 0XC2} /* HAVAL H2 */ +AddressBlacklist=00:1D:BA,00:1E:B2,00:0E:9F,00:13:7B,68:84:70,00:21:CC,30:14:4A,38:C0:96,00:54:AF,04:88:E2,9C:DF:03,A8:54:B2,94:44:44,00:05:C9,A0:14:3D,E0:75:0A,10:08:C1,00:21:CC,00:0A:30,00:1E:43,00:18:09,C8:02:10,34:B1:F7,7C:66:9D,00:09:93,04:F8:C2 + +[MtkAvrcp15BackTo14Blacklist] + +# Some CT devices support AVRCP version 1.4 instead of 1.5 +# Send the AVRCP version as 1.4 for these devices +# {0x34, 0xC7, 0x31}, /* AUDI MIB Standard */ +# {0x00, 0x07, 0x04}, /* VW MIB Standard */ +# {0x00, 0x26, 0xB4}, /* MyFord Touch Gen2 */ +# {0x10, 0x08, 0xC1}, /* GEN 2.0 PREM */ +# {0x04, 0x98, 0xF3}, /* VW MIB Entry */ +# {0x64, 0xD4, 0xBD}, /* HONDA CAN2BENCH */ +# {0x0C, 0xD9, 0xC1}, /* HONDA CAN2BENCH-02 */ +# {0x18, 0x6D, 0x99}, /* GRANDUER MTS */ +# {0xFC, 0x62, 0xB9}, /* VW Golf VII */ +# {0x90, 0x03, 0xB7}, /* VW Jetta TSI 2013 */ +# {0x00, 0x26, 0x7E} /* VW Jetta TSI 2012 */ +AddressBlacklist=34:C7:31,00:07:04,00:26:B4,10:08:C1,04:98:F3,64:D4:BD,0C:D9:C1,18:6D:99,FC:62:B9,90:03:B7,00:26:7E + + +# +# SCMS-T Blacklisting +# +[MtkSCMSTBlacklist] + +# Some IOT devices can not work with SCSM-T normmaly +# Do not select SCMS-T as set configurate +# {0x00, 0x12, 0x6F} /* Bury CC9060 */ +AddressBlacklist=00:12:6f +[MtkHfp15eSCOBlacklist] +# Some devices support hfp 1.5 but not use eSCO connection +# {0x00, 0x58, 0x76}, /* BT800 */ +AddressBlacklist=00:58:76 + +ExactNameBlacklist=BT800 + +[MtkSecureConnectionsBlacklist] +# Some devices cannot compatible with secure connections +PartialNameBlacklist=honor zero- + +[MtkSongPositionBlacklist] + +# Blacklisting by vendor prefix address: +# Example: AddressBlacklist=12:34:56,22:22:22 +#{0x00, 0x0e, 0x9f}, /* Toyota Touch&Go */ +AddressBlacklist=00:0e:9f + +# Blacklisting by Exact Name: +# Example: ExactNameBlacklist=This is an example,MT-1234,T1 +ExactNameBlacklist=Toyota Touch&Go + +[MtkA2DPDelayStartCMDBlicklist] + +# +# Some special device want perform START cmd itself first +# If it not send START cmd, will close current link. +# So for this special device, we need delay send A2DP START cmd +# which from DUT to receive the special device cmd. +# {0x00, 0x17, 0x53} /* Tiggo5 */ +AddressBlacklist=00:17:53 + +[MtkAvrcpReleaseKeyBlacklist] +# Blacklisting by vendor prefix address: +# Example: AddressBlacklist=12:34:56,22:22:22 +#{0x00, 0x1e, 0xb2}, /* MTS255 */ +AddressBlacklist=00:1e:b2 + +[MtkAvConnectOnSdpFail] +#{00:1e:3d}, // ALPS ELECTRIC CO.,LTD. +#{00:1b:fb}, // ALPS ELECTRIC CO.,LTD. +#{00:26:7e}, // Parrot SA +AddressBlacklist=00:1e:3d,00:1b:fb,00:26:7e + +[MtkAVDTPDiscoverBlacklist] +# Some headset have IOT issue if DUT trigger DISCOVER procedure while act as an A2DP acceptor role +# Do not trigger DISCOVER procedure + +# Blacklisting by vendor prefix address: +#{0xa0, 0xb4, 0xa5}, /* Gear Circle */ +AddressBlacklist=a0:b4:a5 + +# Blacklisting by Exact Name: +ExactNameBlacklist=Gear Circle + + +[MtkHfp15eSCOMsbcBlacklist] +# Some devices can't use MSBC codec +ExactNameBlacklist=Parrot ASTEROID Smart + +[MtkHIDDisableSDPBlacklist] +# Some HID devices have issue if SDP is initiated while HID connection is in progress +# {0x04, 0x0C, 0xCE}, /* Apple Magic Mouse */ +# {0x00, 0x07, 0x61}, /* Bluetooth Laser Travel Mouse */ +# {0x00, 0x1d, 0xd8}, /* Microsoft Bluetooth Notebook Mouse 5000 */ +# {0x00, 0x1f, 0x20}, /* Logitech MX Revolution Mouse */ +# {0x6c, 0x5d, 0x63}, /* Rapoo 6080 mouse */ +# {0x28, 0x18, 0x78} /* Microsoft Sculpt Touch Mouse */ +AddressBlacklist=04:0c:ce,00:07:61,00:1d:d8,00:1f:20,6c:5d:63,28:18:78 +ExactNameBlacklist=Apple Magic Mouse,Bluetooth Laser Travel Mouse,Microsoft Bluetooth Notebook Mouse 5000,Logitech MX Revolution Mouse,Microsoft Sculpt Touch Mouse + diff --git a/configs/bluetooth/bt_stack.conf.debug b/configs/bluetooth/bt_stack.conf.debug new file mode 100644 index 0000000..13847b3 --- /dev/null +++ b/configs/bluetooth/bt_stack.conf.debug @@ -0,0 +1,78 @@ +# Enable BtSnoop logging function
+# valid value : true, false
+BtSnoopLogOutput=true
+
+# BtSnoop log output file
+BtSnoopFileName=/sdcard/mtklog/btlog/btsnoop_hci.log
+
+# Preserve existing BtSnoop log before overwriting
+BtSnoopSaveLog=true
+
+# Enable trace level reconfiguration function
+# Must be present before any TRC_ trace level settings
+TraceConf=true
+
+# Trace level configuration
+# BT_TRACE_LEVEL_NONE 0 ( No trace messages to be generated )
+# BT_TRACE_LEVEL_ERROR 1 ( Error condition trace messages )
+# BT_TRACE_LEVEL_WARNING 2 ( Warning condition trace messages )
+# BT_TRACE_LEVEL_API 3 ( API traces )
+# BT_TRACE_LEVEL_EVENT 4 ( Debug messages for events )
+# BT_TRACE_LEVEL_DEBUG 5 ( Full debug messages )
+# BT_TRACE_LEVEL_VERBOSE 6 ( Verbose messages ) - Currently supported for TRC_BTAPP only.
+TRC_BTM=6
+TRC_HCI=6
+TRC_L2CAP=6
+TRC_RFCOMM=6
+TRC_OBEX=6
+TRC_AVCT=6
+TRC_AVDT=6
+TRC_AVRC=6
+TRC_AVDT_SCB=6
+TRC_AVDT_CCB=6
+TRC_A2D=6
+TRC_SDP=6
+TRC_GATT=6
+TRC_SMP=6
+TRC_BTAPP=6
+TRC_BTIF=6
+TRC_GAP=6
+TRC_BNEP=6
+TRC_PAN=6
+TRC_B3DS=6
+
+###################################
+# #
+# Must enable MTK_STACK_CONFIG #
+# #
+###################################
+
+#
+# Control FW Log
+#
+[MtkBtFWLog]
+# FCBE switch - Enable
+# Ex. Disable FWlog to set C1 = 01 BE FC 01 00 / Enable FWlog to set C1 = 01 BE FC 01 05
+C1 = 01 BE FC 01 05
+# FC5F filter
+C2 = 01 5F FC 2A 50 01 09 00 00 00
+# FC5F group filter bitmap
+# SYS
+C201 = 01 00 00 00
+# TIM
+C202 = 00 00 00 00
+# PKV
+C203 = 01 00 00 00
+# LC
+C204 = 01 00 00 00
+# LL
+C205 = 01 00 00 00
+# ANT
+C206 = 01 00 00 00
+# LMP
+C207 = 01 00 01 00
+# CO
+C208 = 03 38 00 00
+# VOICE
+C209 = 01 00 00 00
+
diff --git a/configs/bluetooth/bt_stack.conf.sqc b/configs/bluetooth/bt_stack.conf.sqc new file mode 100644 index 0000000..55cac8f --- /dev/null +++ b/configs/bluetooth/bt_stack.conf.sqc @@ -0,0 +1,78 @@ +# Enable BtSnoop logging function
+# valid value : true, false
+BtSnoopLogOutput=true
+
+# BtSnoop log output file
+BtSnoopFileName=/sdcard/mtklog/btlog/btsnoop_hci.log
+
+# Preserve existing BtSnoop log before overwriting
+BtSnoopSaveLog=true
+
+# Enable trace level reconfiguration function
+# Must be present before any TRC_ trace level settings
+TraceConf=true
+
+# Trace level configuration
+# BT_TRACE_LEVEL_NONE 0 ( No trace messages to be generated )
+# BT_TRACE_LEVEL_ERROR 1 ( Error condition trace messages )
+# BT_TRACE_LEVEL_WARNING 2 ( Warning condition trace messages )
+# BT_TRACE_LEVEL_API 3 ( API traces )
+# BT_TRACE_LEVEL_EVENT 4 ( Debug messages for events )
+# BT_TRACE_LEVEL_DEBUG 5 ( Full debug messages )
+# BT_TRACE_LEVEL_VERBOSE 6 ( Verbose messages ) - Currently supported for TRC_BTAPP only.
+TRC_BTM=6
+TRC_HCI=6
+TRC_L2CAP=6
+TRC_RFCOMM=6
+TRC_OBEX=6
+TRC_AVCT=6
+TRC_AVDT=6
+TRC_AVRC=6
+TRC_AVDT_SCB=6
+TRC_AVDT_CCB=6
+TRC_A2D=6
+TRC_SDP=6
+TRC_GATT=6
+TRC_SMP=6
+TRC_BTAPP=6
+TRC_BTIF=6
+TRC_GAP=6
+TRC_BNEP=6
+TRC_PAN=6
+TRC_B3DS=6
+
+###################################
+# #
+# Must enable MTK_STACK_CONFIG #
+# #
+###################################
+
+#
+# Control FW Log
+#
+[MtkBtFWLog]
+# FCBE switch - Disable
+# Ex. Disable FWlog to set C1 = 01 BE FC 01 00 / Enable FWlog to set C1 = 01 BE FC 01 05
+C1 = 01 BE FC 01 00
+# FC5F filter
+C2 = 01 5F FC 2A 50 01 09 00 00 00
+# FC5F group filter bitmap
+# SYS
+C201 = 00 00 00 00
+# TIM
+C202 = 00 00 00 00
+# PKV
+C203 = 00 00 00 00
+# LC
+C204 = 00 00 00 00
+# LL
+C205 = 00 00 00 00
+# ANT
+C206 = 00 00 00 00
+# LMP
+C207 = 00 00 00 00
+# CO
+C208 = 00 00 00 00
+# VOICE
+C209 = 00 00 00 00
+
diff --git a/configs/gps/agps_profiles_conf2.xml b/configs/gps/agps_profiles_conf2.xml new file mode 100644 index 0000000..bc1e480 --- /dev/null +++ b/configs/gps/agps_profiles_conf2.xml @@ -0,0 +1,559 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<mtk_agps_profiles maj_ver="1" min_ver="2"> + + <!-- cur_supl_profile and supl_profile + + name: + SLP name will be displayed on LocatioEM2 - SLP Template list + + addr: + SLP address + + port: + SLP port + + tls: + enable/disable TLS connection + available value: true (default), false + + ===== load SLP profile automatically based on PLMN ===== + mcc (optional): + auto configure the supl_profile if the current MCC on DUT are the same as mcc parameter you specified and auto_profile_enable is enabled + + mcc_mnc (optional): + auto configure the supl_profile if the current MCC and MNC on DUT are the same as mcc_mnc paramter you specified and auto_profile_enable is enabled + + supl_version (optional): + auto configure supl_version if above mcc_mnc condition is met + available value: 1 -> SUPL1.0 (default) + available value: 2 -> SUPL2.0 + + tls_version (optional): + auto configure tls_version if above mcc_mnc condition is met + available value: 0 -> TLS1.0 (default) + available value: 1 -> TLS1.1 + available value: 2 -> TLS1.2 + + sha_version (optional): + auto configure sha_version if above mcc_mnc condition is met + available value: 0 -> SHA1 for SUPL1.0 and SHA256 for SUPL2.0 (default) + available value: 1 -> SHA1 for SUPL1.0 and SUPL2.0 + available value: 2 -> SHA256 for SUPL1.0 and SUPL2.0 + + supl_ver_minor (optional): + auto configure the minor of supl_version if above mcc_mnc condition is met + available value: 0~255, default value is 0 + + supl_ver_ser_ind (optional): + auto configure the service indicator of supl_version if above mcc_mnc condition is met + available value: 0~255, default value is 0 + + ===== other parameters are used for DM ===== + app_id (optional): + "ap0004" + + provider_id (optional): + "221.176.0.55" + + default_apn (optional): + "XXX WAP" + + optional_apn (optional): + "internet" + + optional_apn_2 (optional): + "" + + address_type (optional): + "IPv4address:port" + --> + + <cur_supl_profile name="GOOGLE" + addr="supl.google.com" + port="7275" + tls="true" + /> + + <!-- GOOGLE--> + <supl_profile name="GOOGLE" + addr="supl.google.com" + port="7275" + tls="true" + /> + + <!-- GOOGLE--> + <supl_profile name="GOOGLE nonTLS" + addr="supl.google.com" + port="7276" + tls="false" + /> + + <!-- GOOGLE--> + <supl_profile name="GOOGLE IP" + addr="173.194.72.192" + port="7276" + tls="false" + /> + + <!-- Spirent Lab --> + <supl_profile name="Spirent" + addr="www.spirent-lcs.com" + port="7275" + tls="true" + /> + + <!-- R&S Lab --> + <supl_profile name="RnS" + addr="slp.rs.de" + port="7275" + tls="true" + /> + + <!-- CMCC Lab --> + <supl_profile name="CMCC Lab" + addr="218.206.176.50" + port="7275" + tls="true" + /> + + <!-- Andrew Lab --> + <supl_profile name="Andrew" + addr="slp1acva.andrew.com" + port="7275" + tls="true" + /> + + <!-- Ericsson Lab --> + <supl_profile name="Ericsson" + addr="172.22.1.100" + port="7275" + tls="true" + /> + + <!-- Ericsson Lab FQDN --> + <supl_profile name="Ericsson FQDN" + addr="mvtvltegmpc.naladmz.ericsson.ca" + port="7275" + tls="true" + /> + + <!-- Ericsson Lab FQDN 2 --> + <supl_profile name="Ericsson FQDN 2" + addr="mvtv-broadcom.naladmz.ericsson.ca" + port="7275" + tls="true" + /> + + <!-- ORANGE --> + <supl_profile name="ORANGE" + addr="agpss.orange.fr" + port="7275" + tls="true" + /> + + <!-- CMCC--> + <supl_profile name="CMCC" + addr="221.176.0.55" + port="7275" + tls="true" + app_id="ap0004" + provider_id="221.176.0.55" + default_apn="CMCC WAP" + optional_apn="CMNET" + optional_apn_2="" + address_type="IPv4address:port" + /> + + <!-- Telstra --> + <supl_profile name="Telstra" + addr="agps.supl.telstra.com" + port="7275" + tls="true" + /> + + <!-- CHUAN HWA --> + <supl_profile name="Chunghwa" + addr="10.1.101.137" + port="8025" + tls="false" + /> + + <!-- T-Mobile --> + <supl_profile name="T-Mobile" + addr="lbs.geo.t-mobile.com" + port="7275" + tls="true" + /> + + <!-- Vodafone --> + <supl_profile name="Vodafone" + addr="supl.vodafone.com" + port="7275" + tls="true" + mcc_mnc="22010" + supl_version="2" + tls_version="1" + sha_version="0" + /> + + <!-- Test 1 --> + <supl_profile name="Test 1" + addr="127.0.0.1" + port="7276" + tls="false" + mcc_mnc="999998" + supl_version="1" + tls_version="0" + sha_version="2" + supl_ver_minor="4" + supl_ver_ser_ind="2" + /> + + <!-- Test 2 --> + <supl_profile name="Test 2" + addr="127.0.0.1" + port="7276" + tls="false" + mcc_mnc="999999" + supl_version="2" + tls_version="1" + sha_version="0" + /> + + <!-- Test 3 --> + <supl_profile name="Test 3" + addr="127.0.0.1" + port="7276" + tls="false" + mcc="998" + supl_version="1" + tls_version="2" + sha_version="1" + /> + + <!-- cdma_profile + + name: + SLP name + + mcp_enable: + enable/disable MCP parameters + available value: true, false (default) + + mcp_addr: + MCP address + + mcp_port: + MCP port + + pde_addr_valid: + PDE address is valid or invalid + available value: true, false (default) + + pde_ip_type: + PDE's address type + available value: 0 -> IPv4 (default) + available value: 1 -> IPv6 + + pde_addr: + PDE IP address + + pde_port: + PDE port + + pde_url_valid: + PDE URL is valid or invalid + available value: true, false (default) + + pde_url_addr: + PDE URL + --> + + <!-- CDMA profile template --> + <cdma_profile name="CDMA1" + mcp_enable="true" + mcp_addr="10.199.22.165" + mcp_port="6066" + pde_addr_valid="false" + pde_ip_type="0" + pde_addr="11.11.11.11" + pde_port="1111" + pde_url_valid="false" + pde_url_addr="www.mediatek.com" + /> + + + <!-- agps_setting + + agps_enable: + enable/disable A-GPS + available value: true (default), false + + agps_protocol: + choose which A-GPS you want to use for SET Initiated + available value: 0 -> User Plane (default) + available value: 1 -> Control Plane + + gpevt: + enable/disable GPEVT report + available value: true, false (default) + + e911_gps_icon_enable: + enable/disable showing GPS icon during E911 location + available value: true (default), false + + e911_open_gps: + enable/disable opening GPS earlier when E911 call is dialed + --> + <agps_setting + agps_enable="true" + agps_protocol="0" + gpevt="false" + e911_gps_icon_enable="false" + e911_open_gps="false" + /> + + + <!-- gnss_setting + + sib8_16_enable: + enable/disable SIB8/SIB16 + available value: true (default), false + + glonass_satellite_enable: + enable/disable Glonass Satellite if hardware can support Glonass + available value: true (default), false + + beidou_satellite_enable: + enable/disable Beidou Satellite if hardware can support Beidou + available value: true (default), false + + galileo__satellite_enable: + enable/disable Galileo Satellite if hardware can support Galileo + available value: true (default), false + + a_glonass_satellite_enable: + enable/disable Glonass aiding if hardware can support A-Glonass + available value: true (default), false + + --> + <gnss_setting + sib8_16_enable="true" + glonass_satellite_enable="true" + beidou_satellite_enable="true" + galileo_satellite_enable="true" + a_glonass_satellite_enable="true" + /> + + <!-- cp_setting + + molr_pos_method: + available value: 0 (Location Estimate) (default) + available value: 1 (Assistance Data) + + external_addr_enable: + enable/disable the external address + available value: true, false (default) + + external_addr: + external_address + + mlc_number_enable: + enable/disable the mlc number + available value: true, false (default) + + mlc_number: + MLC number + + cp_auto_reset: + enable/disable to send PMTK997_5 + available value: true, false (default) + + epc_molr_lpp_payload_enable: + enable/disable to send LPP payload in the EPC-MOLR message + available value: true, false (default) + + epc_molr_lpp_payload: + specify the LPP payload in the EPC-MOLR message in hexString format (ex: "010203ff" = { 0x01, 0x02, 0x03, 0xff } + the purpose of this parameter is used for LAB testing only, please do not change it. + + reject_non911_nilr_enable: + enable/disable to reject non911 NILR request + available value: true, false (default) + + --> + <cp_setting + molr_pos_method="0" + external_addr_enable="false" + external_addr="0123456789*#+" + mlc_number_enable="false" + mlc_number="0123456789*#+" + cp_auto_reset="false" + epc_molr_lpp_payload_enable="false" + epc_molr_lpp_payload="D2000010237B2026404FB8007202BFFFFFFFF80000000020C0000100940FB9001202B7FFFFF8000000000061800002018A00" + reject_non911_nilr_enable="false" + /> + + <!-- up_setting + + ca_enable: + enable/disable the certificate verification + available value: true, false (default) + + ni_request: + enable/disable Network Initiated (NI) functionality + available value: true (default), false + + roaming: + enable/disable to use A-GPS when device is under roaming state + available value: true (default), false + + cdma_preferred: + when CDMA network and WCDMA network are available, which AGPS protocol you prefer? + available value: 0 (WCDMA AGPS protocol is preferred) (default) + available value: 2 (FORCE CDMA AGPS protocol) + + pref_method: + the preferred method in SUPL_START and SUPL_POS_INIT + available value: 0 -> SET assisted Preferred + available value: 1 -> SET Based Preferred (default) + available value: 2 -> no Preference + + supl_version: + Major of SUPL version for ULP + available value: 1 -> SUPL1.0 (default) + available value: 2 -> SUPL2.0 + + tls_version: + TLS version for TLS connection + available value: 0 -> TLS1.0 (default) + available value: 1 -> TLS1.1 + available value: 2 -> TLS1.2 + + sha_version: + SHA version for calculating VER + available value: 0 -> SHA1 for SUPL1.0 and SHA256 for SUPL2.0 (default) + available value: 1 -> SHA1 for SUPL1.0 and SUPL2.0 + available value: 2 -> SHA256 for SUPL1.0 and SUPL2.0 + + supl_log: + enable or disable the AGPS log + available value: true, false (default) + + msa_enable: + enable/disable the MSA capability + available value: true (default), false + + msb_enable: + enable/disable the MSB capability + available value: true (default), false + + ecid_enable: + enable/disable the eCID capability + available value: true (default), false + + otdoa_enable: + enable/disable the OTDOA capability + available value: true, false (default) + + autonomous_enable: + enable/disable the Autonomous capability + available value: true (default), false + + aflt_enable: + enable/disable the AFLT capability + available value: true, false (default) + + udp_port_enable: + enable/disable the UDP 7275 port by default, if you enable it, you may cause Android/CTS failure for checking netstat + available value: true, false (default) + + dedicated_apn_enable: + enable/disable the dedicated SUPL APN flow + available value: true, false (default) + + preferred_2g3g_cell_age: + max age of 2G / 3G cell info in history is OK to send to SLP server instead if the latest cell is of 3G or 4G. + available value: non-negative integer, from 0 ~ 1800, unit in second + 0 (always use the latest cell info) + 300 (prefer to use 2G / 3G cell if its age is less than 5 mins) + + lpp_enable: + enable/disable the LPP capability + available value: true (default), false + + cert_from_sdcard: + enable/disable the AGPS certification installation from SDCard + available value: true (default), false + + auto_profile_enable: + enable/disable the auto profile configuration based on current mcc or mcc_mnc specified in cur_supl_profile or supl_profile + available value: true (default), false + + ut2: + customize the SUPL UT2 timer + available value: 1~60, default value is 11 (OMA spec) + + ut3: + customize the SUPL UT3 timer + available value: 1~60, default value is 10 (OMA spec) + + sync_to_slp: + sync the AGPS setting (ex: SUPL profile, SUPL version, TLS version) from AGPSD to SLPD in runtime + available value: true, false (default) + + imsi_enable: + enable/disable the valid IMSI in SUPL messages + available value: true (default), false + no_sensitive_log: + remove/allow agps daemon's log with sensitive info (e.g., the current location) + available value: true, false (default) + supl_ver_minor: + Minor of SUPL version for ULP + available value: 0~255, default value is 0 + choosable value in LocationEM: 0~5 + supl_ver_ser_ind: + Service Indicator of SUPL version for ULP + available value: 0~255, default value is 0 + choosable value in LocationEM: 0~5 + tls_reuse_enable: + enable/disable tls session reuse mode + available value: true, false (default) + --> + <up_setting + ca_enable="false" + ni_request="true" + roaming="true" + cdma_preferred="0" + pref_method="1" + supl_version="2" + tls_version="1" + sha_version="0" + supl_log="false" + msa_enable="true" + msb_enable="true" + ecid_enable="true" + otdoa_enable="false" + autonomous_enable="true" + aflt_enable="false" + qop_hacc="22" + qop_vacc="0" + qop_loc_age="0" + qop_delay="0" + udp_port_enable="false" + dedicated_apn_enable="false" + preferred_2g3g_cell_age="300" + lpp_enable="true" + cert_from_sdcard="true" + auto_profile_enable="true" + ut2="11" + ut3="10" + sync_to_slp="false" + imsi_enable="true" + no_sensitive_log="false" + supl_ver_minor="0" + supl_ver_ser_ind="0" + tls_reuse_enable="false" + /> + +</mtk_agps_profiles> diff --git a/configs/gps/gps.conf b/configs/gps/gps.conf new file mode 100644 index 0000000..35c7e58 --- /dev/null +++ b/configs/gps/gps.conf @@ -0,0 +1,117 @@ +#Uncommenting these urls would only enable +#the power up auto injection and force injection(test case). +#XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra2.bin +#XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra2.bin +#XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra2.bin + +#Version check for XTRA +#DISABLE = 0 +#AUTO = 1 +#XTRA2 = 2 +#XTRA3 = 3 +XTRA_VERSION_CHECK=0 + +# Error Estimate +# _SET = 1 +# _CLEAR = 0 +ERR_ESTIMATE=0 + +#Test +NTP_SERVER=pool.ntp.org +#Asia +# NTP_SERVER=asia.pool.ntp.org +#Europe +# NTP_SERVER=europe.pool.ntp.org +#North America +# NTP_SERVER=north-america.pool.ntp.org + +# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info +# 4 - Debug, 5 - Verbose +# If DEBUG_LEVEL is commented, Android's logging levels will be used +DEBUG_LEVEL = 0 + +# Intermediate position report, 1=enable, 0=disable +INTERMEDIATE_POS=0 + +# Below bit mask configures how GPS functionalities +# should be locked when user turns off GPS on Settings +# Set bit 0x1 if MO GPS functionalities are to be locked +# Set bit 0x2 if NI GPS functionalities are to be locked +# default - non is locked for backward compatibility +#GPS_LOCK = 0 + +# supl version 2.0 +SUPL_VER=0x20000 + +# Emergency SUPL, 1=enable, 0=disable +SUPL_ES=1 + +#Choose PDN for Emergency SUPL +#1 - Use emergency PDN +#0 - Use regular SUPL PDN for Emergency SUPL +USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=1 + +#SUPL_MODE is a bit mask set in config.xml per carrier by default. +#If it is uncommented here, this value will over write the value from +#config.xml. +#MSA=0X2 +#MSB=0X1 +#SUPL_MODE= + +# GPS Capabilities bit mask +# SCHEDULING = 0x01 +# MSB = 0x02 +# MSA = 0x04 +# ON_DEMAND_TIME = 0x10 +# GEOFENCE = 0x20 +# default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING | GEOFENCE +CAPABILITIES=0x37 + +# Accuracy threshold for intermediate positions +# less accurate positions are ignored, 0 for passing all positions +# ACCURACY_THRES=5000 + +################################ +##### AGPS server settings ##### +################################ + +# FOR SUPL SUPPORT, set the following +SUPL_HOST=supl.google.com +SUPL_PORT=7275 + +# FOR C2K PDE SUPPORT, set the following +# C2K_HOST=c2k.pde.com or IP +# C2K_PORT=1234 + +# Bitmask of slots that are available +# for write/install to, where 1s indicate writable, +# and the default value is 0 where no slots +# are writable. For example, AGPS_CERT_WRITABLE_MASK +# of b1000001010 makes 3 slots available +# and the remaining 7 slots unwritable. +#AGPS_CERT_WRITABLE_MASK=0 + +#################################### +# LTE Positioning Profile Settings +#################################### +# 0: Enable RRLP on LTE(Default) +# 1: Enable LPP_User_Plane on LTE +# 2: Enable LPP_Control_Plane +# 3: Enable both LPP_User_Plane and LPP_Control_Plane +LPP_PROFILE = 0 + +################################ +# EXTRA SETTINGS +################################ +# NMEA provider (1=Modem Processor, 0=Application Processor) +NMEA_PROVIDER=0 +# Mark if it is a SGLTE target (1=SGLTE, 0=nonSGLTE) +SGLTE_TARGET=0 + +################################################## +# Select Positioning Protocol on A-GLONASS system +################################################## +# 0x1: RRC CPlane +# 0x2: RRLP UPlane +# 0x4: LLP Uplane +A_GLONASS_POS_PROTOCOL_SELECT = 0 diff --git a/configs/gps/slp_conf b/configs/gps/slp_conf new file mode 100644 index 0000000..431ec60 --- /dev/null +++ b/configs/gps/slp_conf @@ -0,0 +1,8 @@ +SUPL_ADDR=supl.google.com
+SUPL_PORT=7276
+//SUPL_TLS can be 0 (disable) or 1 (enable)
+SUPL_TLS=0
+//SUPL_VERSION can be 1 or 2
+SUPL_VERSION=2
+//TLS_VERSION can be 0 (TLS1.0), 1 (TLS1.1), and 2 (TLS1.2)
+TLS_VERSION=1
\ No newline at end of file |
