mirror of
https://github.com/Evolution-X-Devices/device_motorola_rtwo
synced 2026-01-27 07:50:05 +00:00
eqs: override sensor service rc
reading from /dev/input/event* requires root/input permissions
This commit is contained in:
@@ -1,31 +0,0 @@
|
|||||||
# Copyright (C) 2010 The Android Open Source Project
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generic key layout file for full alphabetic US English PC style external keyboards.
|
|
||||||
#
|
|
||||||
# This file is intentionally very generic and is intended to support a broad range of keyboards.
|
|
||||||
# Do not edit the generic key layout to support a specific keyboard; instead, create
|
|
||||||
# a new key layout file with the required keyboard configuration.
|
|
||||||
#
|
|
||||||
# Single tap
|
|
||||||
# key 59 WAKEUP
|
|
||||||
|
|
||||||
# FOD finger in area
|
|
||||||
key 60 WAKEUP
|
|
||||||
# FOD finger leave area
|
|
||||||
key 61 SLEEP
|
|
||||||
|
|
||||||
# double tap
|
|
||||||
key 62 WAKEUP
|
|
||||||
@@ -64,10 +64,6 @@ $(foreach f,$(wildcard $(LOCAL_PATH)/rootdir/etc/init/*.rc),\
|
|||||||
$(foreach f,$(wildcard $(LOCAL_PATH)/rootdir/bin/*.sh),\
|
$(foreach f,$(wildcard $(LOCAL_PATH)/rootdir/bin/*.sh),\
|
||||||
$(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_VENDOR)/bin/$(notdir $f)))
|
$(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_VENDOR)/bin/$(notdir $f)))
|
||||||
|
|
||||||
# Keylayout
|
|
||||||
PRODUCT_COPY_FILES += \
|
|
||||||
$(LOCAL_PATH)/configs/double-tap.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/double-tap.kl
|
|
||||||
|
|
||||||
# Media
|
# Media
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/media/media_profiles_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
|
$(LOCAL_PATH)/media/media_profiles_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
|
||||||
@@ -95,6 +91,7 @@ PRODUCT_PACKAGES += \
|
|||||||
sensors.eqs
|
sensors.eqs
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(LOCAL_PATH)/sensors/android.hardware.sensors@2.1-service-multihal.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.sensors@2.1-service-multihal.rc \
|
||||||
$(LOCAL_PATH)/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
|
$(LOCAL_PATH)/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
|
||||||
|
|
||||||
# Soong namespaces
|
# Soong namespaces
|
||||||
|
|||||||
7
sensors/android.hardware.sensors@2.1-service-multihal.rc
Normal file
7
sensors/android.hardware.sensors@2.1-service-multihal.rc
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
service vendor.sensors-hal-2-1-multihal /vendor/bin/hw/android.hardware.sensors@2.1-service.multihal
|
||||||
|
class hal
|
||||||
|
user root
|
||||||
|
group system wakelock context_hub input
|
||||||
|
task_profiles ServiceCapacityLow
|
||||||
|
capabilities BLOCK_SUSPEND
|
||||||
|
rlimit rtprio 10 10
|
||||||
Reference in New Issue
Block a user