From 8062f7bc9780e13da8796281d3e5cfcfe22af487 Mon Sep 17 00:00:00 2001 From: Cheng Chang Date: Tue, 25 Jun 2024 10:01:25 +0000 Subject: [PATCH] gps: Set configuration by kernel version Bug: 258364350 Test: Verification at b/258364350. Test: Function verification at b/258364350. Test: Compile and verify the configuration is correct. Change-Id: Ie31bdd4dee719437fc387f03c2fcf1b36764def2 --- device-bluejay.mk | 18 ++++++-- gps.6.1.xml.b3 | 101 ++++++++++++++++++++++++++++++++++++++++++++ gps_user.6.1.xml.b3 | 101 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 216 insertions(+), 4 deletions(-) create mode 100644 gps.6.1.xml.b3 create mode 100644 gps_user.6.1.xml.b3 diff --git a/device-bluejay.mk b/device-bluejay.mk index 00be01d..742a8b5 100644 --- a/device-bluejay.mk +++ b/device-bluejay.mk @@ -223,11 +223,21 @@ PRODUCT_PRODUCT_PROPERTIES += \ # GPS xml ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) - PRODUCT_COPY_FILES += \ - device/google/bluejay/gps.xml.b3:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml + ifneq (,$(filter 6.1, $(TARGET_LINUX_KERNEL_VERSION))) + PRODUCT_COPY_FILES += \ + device/google/bluejay/gps.6.1.xml.b3:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml + else + PRODUCT_COPY_FILES += \ + device/google/bluejay/gps.xml.b3:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml + endif else - PRODUCT_COPY_FILES += \ - device/google/bluejay/gps_user.xml.b3:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml + ifneq (,$(filter 6.1, $(TARGET_LINUX_KERNEL_VERSION))) + PRODUCT_COPY_FILES += \ + device/google/bluejay/gps_user.6.1.xml.b3:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml + else + PRODUCT_COPY_FILES += \ + device/google/bluejay/gps_user.xml.b3:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml + endif endif # This device is shipped with 32 (Android S V2) diff --git a/gps.6.1.xml.b3 b/gps.6.1.xml.b3 new file mode 100644 index 0000000..18f5e65 --- /dev/null +++ b/gps.6.1.xml.b3 @@ -0,0 +1,101 @@ + + + + + + + + + + diff --git a/gps_user.6.1.xml.b3 b/gps_user.6.1.xml.b3 new file mode 100644 index 0000000..afa301b --- /dev/null +++ b/gps_user.6.1.xml.b3 @@ -0,0 +1,101 @@ + + + + + + + + + + +