sm6150-common: Migrate to Xiaomi power HAL AIDL

Change-Id: I42170d51a517170b58d532addd9c38496e43457c
This commit is contained in:
Bruno Martins 2021-02-16 13:44:18 +00:00 committed by Arian
parent 87351664e4
commit 7e0b1d8983
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9
5 changed files with 12 additions and 3 deletions

View File

@ -1,5 +1,7 @@
soong_namespace {
imports: [
"hardware/google/interfaces",
"hardware/google/pixel",
"hardware/xiaomi",
],
}

View File

@ -14,6 +14,8 @@
# limitations under the License.
#
BOARD_VENDOR := xiaomi
COMMON_PATH := device/xiaomi/sm6150-common
# Inherit from proprietary files

View File

@ -55,10 +55,11 @@ int open_ts_input() {
} // anonymous namespace
namespace aidl {
namespace android {
namespace google {
namespace hardware {
namespace power {
namespace impl {
namespace pixel {
static constexpr int kInputEventWakeupModeOff = 4;
static constexpr int kInputEventWakeupModeOn = 5;
@ -97,8 +98,9 @@ bool setDeviceSpecificMode(Mode type, bool enabled) {
}
}
} // namespace pixel
} // namespace impl
} // namespace power
} // namespace hardware
} // namespace android
} // namespace google
} // namespace aidl

View File

@ -19,6 +19,7 @@
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service\.xiaomi_sm6150 u:object_r:hal_fingerprint_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service\.xiaomi_sm6150-ext u:object_r:hal_fingerprint_default_exec:s0
/vendor/bin/hw/android\.hardware\.light@2\.0-service\.xiaomi_sm6150 u:object_r:hal_light_default_exec:s0
/vendor/bin/hw/android\.hardware\.power-service\.xiaomi-libperfmgr u:object_r:hal_power_default_exec:s0
/vendor/bin/hw/vendor\.lineage\.livedisplay@2\.1-service\.xiaomi_sm6150 u:object_r:hal_lineage_livedisplay_qti_exec:s0
# Remosaic

View File

@ -245,7 +245,7 @@ PRODUCT_ENFORCE_RRO_TARGETS += *
# Power
PRODUCT_PACKAGES += \
android.hardware.power-service-qti
android.hardware.power-service.xiaomi-libperfmgr
# QTI
PRODUCT_PACKAGES += \
@ -283,6 +283,8 @@ PRODUCT_COPY_FILES += \
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH) \
hardware/google/interfaces \
hardware/google/pixel \
hardware/xiaomi
# Telephony