haydn: Disable NFC services on Indian devices
Change-Id: I1c08fb723a845dff4dee9f49574493a9941ea194
This commit is contained in:
parent
137d51e3b2
commit
e3880c29eb
2 changed files with 40 additions and 0 deletions
|
|
@ -17,6 +17,10 @@ PRODUCT_COPY_FILES += \
|
|||
$(LOCAL_PATH)/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_lahaina/sound_trigger_mixer_paths.xml \
|
||||
$(LOCAL_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_lahaina/sound_trigger_platform_info.xml
|
||||
|
||||
# Init
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/rootdir/etc/init.nfc.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.nfc.rc
|
||||
|
||||
# Overlays
|
||||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
$(LOCAL_PATH)/overlay
|
||||
|
|
|
|||
36
rootdir/etc/init.nfc.rc
Normal file
36
rootdir/etc/init.nfc.rc
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#
|
||||
# Copyright (C) 2021 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
service qti_esepowermanager_service_1_1 /vendor/bin/hw/vendor.qti.esepowermanager@1.1-service
|
||||
override
|
||||
class hal
|
||||
user system
|
||||
group nfc system
|
||||
disabled
|
||||
|
||||
service secureelement-hal_1_2 /vendor/bin/hw/vendor.qti.secure_element@1.2-service
|
||||
override
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
disabled
|
||||
|
||||
service vendor.nfc_hal_service /vendor/bin/hw/android.hardware.nfc_snxxx@1.2-service
|
||||
override
|
||||
class hal
|
||||
user nfc
|
||||
group nfc
|
||||
disabled
|
||||
|
||||
on boot && property:ro.boot.hwc=CN
|
||||
enable qti_esepowermanager_service_1_1
|
||||
enable secureelement-hal_1_2
|
||||
enable vendor.nfc_hal_service
|
||||
|
||||
on boot && property:ro.boot.hwc=GL
|
||||
enable qti_esepowermanager_service_1_1
|
||||
enable secureelement-hal_1_2
|
||||
enable vendor.nfc_hal_service
|
||||
Loading…
Add table
Reference in a new issue