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:
parent
98761efacc
commit
631d5b6521
3
gps/brcm/cbd_gps.mk
Normal file
3
gps/brcm/cbd_gps.mk
Normal 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
10
gps/brcm/conf/Android.bp
Normal 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
5
gps/brcm/conf/cbd_gps.rc
Normal 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
|
@ -24,8 +24,3 @@ service gnss_service /vendor/bin/hw/android.hardware.gnss@2.1-service-brcm
|
|||||||
ioprio be 0
|
ioprio be 0
|
||||||
priority -1
|
priority -1
|
||||||
|
|
||||||
# disable gps service if no gps h/w
|
|
||||||
on property:vendor.ril.cbd.svc=0
|
|
||||||
stop gpsd
|
|
||||||
stop lhd
|
|
||||||
stop scd
|
|
Loading…
x
Reference in New Issue
Block a user