From 7845ccf488250eeb42925f64bcba743098393446 Mon Sep 17 00:00:00 2001 From: Adam Shih Date: Fri, 21 Oct 2022 14:39:46 +0800 Subject: [PATCH] move brcm gps solution to gs-common Bug: 254758553 Test: google map can locate on pixel Change-Id: I0bee1c5b03b58f8fddda21b19817e2430462d14a --- device-oriole.mk | 10 ++++ device-raven.mk | 10 ++++ device-slider.mk | 10 ++++ device-whitefin.mk | 10 ++++ location/gps.xml | 99 ++++++++++++++++++++++++++++++++++++ location/gps.xml.oriole | 99 ++++++++++++++++++++++++++++++++++++ location/gps.xml.raven | 99 ++++++++++++++++++++++++++++++++++++ location/gps_user.xml | 98 +++++++++++++++++++++++++++++++++++ location/gps_user.xml.oriole | 98 +++++++++++++++++++++++++++++++++++ location/gps_user.xml.raven | 98 +++++++++++++++++++++++++++++++++++ 10 files changed, 631 insertions(+) create mode 100644 location/gps.xml create mode 100644 location/gps.xml.oriole create mode 100644 location/gps.xml.raven create mode 100644 location/gps_user.xml create mode 100644 location/gps_user.xml.oriole create mode 100644 location/gps_user.xml.raven diff --git a/device-oriole.mk b/device-oriole.mk index f3cd922..3caae07 100644 --- a/device-oriole.mk +++ b/device-oriole.mk @@ -256,3 +256,13 @@ PRODUCT_COPY_FILES += \ # Enable adpf cpu hint session for SurfaceFlinger PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ debug.sf.enable_adpf_cpu_hint=true + +# Location +ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) + PRODUCT_COPY_FILES += \ + device/google/raviole/location/gps.xml.oriole:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml +else + PRODUCT_COPY_FILES += \ + device/google/raviole/location/gps_user.xml.oriole:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml +endif + diff --git a/device-raven.mk b/device-raven.mk index b6fd86f..cccf860 100644 --- a/device-raven.mk +++ b/device-raven.mk @@ -267,3 +267,13 @@ PRODUCT_COPY_FILES += \ # Enable adpf cpu hint session for SurfaceFlinger PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ debug.sf.enable_adpf_cpu_hint=true + +# Location +ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) + PRODUCT_COPY_FILES += \ + device/google/raviole/location/gps.xml.raven:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml +else + PRODUCT_COPY_FILES += \ + device/google/raviole/location/gps_user.xml.raven:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml +endif + diff --git a/device-slider.mk b/device-slider.mk index 6c37cd7..dbbdad4 100644 --- a/device-slider.mk +++ b/device-slider.mk @@ -121,3 +121,13 @@ PRODUCT_SHIPPING_API_LEVEL := 31 # Device features PRODUCT_COPY_FILES += \ frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml + +# Location +ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) + PRODUCT_COPY_FILES += \ + device/google/raviole/location/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml +else + PRODUCT_COPY_FILES += \ + device/google/raviole/location/gps_user.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml +endif + diff --git a/device-whitefin.mk b/device-whitefin.mk index 6ba5b21..0cbd1a3 100644 --- a/device-whitefin.mk +++ b/device-whitefin.mk @@ -100,3 +100,13 @@ PRODUCT_SHIPPING_API_LEVEL := 31 # Device features PRODUCT_COPY_FILES += \ frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml + +# Location +ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) + PRODUCT_COPY_FILES += \ + device/google/raviole/location/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml +else + PRODUCT_COPY_FILES += \ + device/google/raviole/location/gps_user.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml +endif + diff --git a/location/gps.xml b/location/gps.xml new file mode 100644 index 0000000..8fb7c66 --- /dev/null +++ b/location/gps.xml @@ -0,0 +1,99 @@ + + + + + + + + + + diff --git a/location/gps.xml.oriole b/location/gps.xml.oriole new file mode 100644 index 0000000..d85fd16 --- /dev/null +++ b/location/gps.xml.oriole @@ -0,0 +1,99 @@ + + + + + + + + + + diff --git a/location/gps.xml.raven b/location/gps.xml.raven new file mode 100644 index 0000000..a095dbd --- /dev/null +++ b/location/gps.xml.raven @@ -0,0 +1,99 @@ + + + + + + + + + + diff --git a/location/gps_user.xml b/location/gps_user.xml new file mode 100644 index 0000000..5efd542 --- /dev/null +++ b/location/gps_user.xml @@ -0,0 +1,98 @@ + + + + + + + + + + diff --git a/location/gps_user.xml.oriole b/location/gps_user.xml.oriole new file mode 100644 index 0000000..2d50372 --- /dev/null +++ b/location/gps_user.xml.oriole @@ -0,0 +1,98 @@ + + + + + + + + + + diff --git a/location/gps_user.xml.raven b/location/gps_user.xml.raven new file mode 100644 index 0000000..b2fb2bd --- /dev/null +++ b/location/gps_user.xml.raven @@ -0,0 +1,98 @@ + + + + + + + + + +