gps: separate the init_gps rc file

- separate cbd control gps property

Bug: 282877296
Test: b/282877296
Change-Id: I08c95b7da0005289292bf5b4edbe66308a9a58c8
This commit is contained in:
Cheng Chang 2023-05-16 09:18:47 +00:00
parent 98761efacc
commit 631d5b6521
4 changed files with 18 additions and 5 deletions

3
gps/brcm/cbd_gps.mk Normal file
View File

@ -0,0 +1,3 @@
# Copy the cbd control gps state init rc file
PRODUCT_PACKAGES += \
cbd_gps.rc

10
gps/brcm/conf/Android.bp Normal file
View File

@ -0,0 +1,10 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
prebuilt_etc {
name: "cbd_gps.rc",
src: "cbd_gps.rc",
relative_install_path: "init",
vendor: true,
}

5
gps/brcm/conf/cbd_gps.rc Normal file
View File

@ -0,0 +1,5 @@
# disable gps service if cbd state is invalid
on property:vendor.ril.cbd.svc=0
stop gpsd
stop lhd
stop scd

View File

@ -24,8 +24,3 @@ service gnss_service /vendor/bin/hw/android.hardware.gnss@2.1-service-brcm
ioprio be 0
priority -1
# disable gps service if no gps h/w
on property:vendor.ril.cbd.svc=0
stop gpsd
stop lhd
stop scd