From 45a71e3d3c4d6aee4ab4bf45ddef9c7ca46f7114 Mon Sep 17 00:00:00 2001 From: Joe Huang Date: Thu, 14 Apr 2022 14:55:33 +0800 Subject: [PATCH] Add gps.xml for M23 Add gps.xml and build rules for M23 project Bug: 229177458 Test: build pass Change-Id: Ie3dbd1e598db4a38d3301bdd319e24c9e651cecc --- device-felix.mk | 9 ++++ location/gps.xml.f10 | 95 +++++++++++++++++++++++++++++++++++++++ location/gps_user.xml.f10 | 94 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 location/gps.xml.f10 create mode 100644 location/gps_user.xml.f10 diff --git a/device-felix.mk b/device-felix.mk index 85c73cc..16aecbc 100644 --- a/device-felix.mk +++ b/device-felix.mk @@ -232,3 +232,12 @@ PRODUCT_PRODUCT_PROPERTIES += \ # Hinge angle sensor PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.sensor.hinge_angle.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hinge_angle.xml + +# Location +ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) + PRODUCT_COPY_FILES += \ + device/google/felix/location/gps.xml.f10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml +else + PRODUCT_COPY_FILES += \ + device/google/felix/location/gps_user.xml.f10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml +endif diff --git a/location/gps.xml.f10 b/location/gps.xml.f10 new file mode 100644 index 0000000..4d73818 --- /dev/null +++ b/location/gps.xml.f10 @@ -0,0 +1,95 @@ + + + + + + + + + + diff --git a/location/gps_user.xml.f10 b/location/gps_user.xml.f10 new file mode 100644 index 0000000..7a60567 --- /dev/null +++ b/location/gps_user.xml.f10 @@ -0,0 +1,94 @@ + + + + + + + + + +