sanders: Import some missing power hal from CAF LA.UM.7.6.r1-04800-89xx.0
This commit is contained in:
@@ -18,10 +18,6 @@ ifeq ($(TARGET_USES_INTERACTION_BOOST),true)
|
|||||||
LOCAL_CFLAGS += -DINTERACTION_BOOST
|
LOCAL_CFLAGS += -DINTERACTION_BOOST
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(TARGET_TAP_TO_WAKE_NODE),)
|
|
||||||
LOCAL_CFLAGS += -DTAP_TO_WAKE_NODE=\"$(TARGET_TAP_TO_WAKE_NODE)\"
|
|
||||||
endif
|
|
||||||
|
|
||||||
LOCAL_MODULE := android.hardware.power@1.2-service
|
LOCAL_MODULE := android.hardware.power@1.2-service
|
||||||
LOCAL_INIT_RC := android.hardware.power@1.2-service.rc
|
LOCAL_INIT_RC := android.hardware.power@1.2-service.rc
|
||||||
LOCAL_MODULE_TAGS := optional
|
LOCAL_MODULE_TAGS := optional
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ Return<void> Power::powerHint(PowerHint_1_0 hint, int32_t data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Return<void> Power::setFeature(Feature feature, bool activate) {
|
Return<void> Power::setFeature(Feature feature, bool activate) {
|
||||||
set_feature(static_cast<feature_t>(feature), activate ? 1 : 0);
|
|
||||||
return Void();
|
return Void();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -133,17 +133,3 @@ void set_interactive(int on)
|
|||||||
|
|
||||||
ALOGI("Got set_interactive hint");
|
ALOGI("Got set_interactive hint");
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_feature(feature_t feature, int state)
|
|
||||||
{
|
|
||||||
switch (feature) {
|
|
||||||
#ifdef TAP_TO_WAKE_NODE
|
|
||||||
case POWER_FEATURE_DOUBLE_TAP_TO_WAKE:
|
|
||||||
sysfs_write(TAP_TO_WAKE_NODE, state ? "1" : "0");
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ enum CPU_GOV_CHECK {
|
|||||||
void power_init(void);
|
void power_init(void);
|
||||||
void power_hint(power_hint_t hint, void *data);
|
void power_hint(power_hint_t hint, void *data);
|
||||||
void set_interactive(int on);
|
void set_interactive(int on);
|
||||||
void set_feature(feature_t feature, int state);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
6
sepolicy/vendor/file_contexts
vendored
6
sepolicy/vendor/file_contexts
vendored
@@ -115,9 +115,9 @@
|
|||||||
/data/system/perfd(/.*)? u:object_r:perfd_data_file:s0
|
/data/system/perfd(/.*)? u:object_r:perfd_data_file:s0
|
||||||
/data/oemnvitems(/.*)? u:object_r:nv_data_file:s0
|
/data/oemnvitems(/.*)? u:object_r:nv_data_file:s0
|
||||||
|
|
||||||
/(vendor|system/vendor)/bin/perfd u:object_r:perfd_exec:s0
|
/system/vendor/bin/perfd u:object_r:perfd_exec:s0
|
||||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.power@1\.2-service u:object_r:hal_power_default_exec:s0
|
/system/vendor/bin/hw/android\.hardware\.power@1\.2-service u:object_r:hal_power_default_exec:s0
|
||||||
#/(vendor|system/vendor)/radio(/.*)? u:object_r:radio_data_file:s0
|
/system/vendor/radio(/.*)? u:object_r:radio_data_file:s0
|
||||||
|
|
||||||
/system/vendor/bin/qmi_motext_hook u:object_r:rild_exec:s0
|
/system/vendor/bin/qmi_motext_hook u:object_r:rild_exec:s0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user