Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 277ecb1c authored by Manu Suresh's avatar Manu Suresh
Browse files

Merge remote-tracking branch 'origin/v3.3-a15' into a15

parents 48af90ef 9c7231b0
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -205,9 +205,6 @@ TARGET_COPY_OUT_VENDOR_DLKM := vendor_dlkm
BOARD_USES_QCOM_HARDWARE := true
TARGET_BOARD_PLATFORM := volcano

# Screen tap-to-wake
TARGET_POWERHAL_MODE_EXT := $(DEVICE_PATH)/power/power-mode.cpp

# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop

+0 −6
Original line number Diff line number Diff line
@@ -206,12 +206,6 @@ on boot
    chown system system /sys/module/qcom_dload_mode/parameters/download_mode
    chmod 0660 /sys/module/qcom_dload_mode/parameters/download_mode

# add tap-to-wake
    wait /sys/devices/platform/soc/ac0000.qcom,qupv3_0_geni_se/a80000.spi/spi_master/spi0/spi0.0/gesture_wakeup 20
    chown system system /sys/devices/platform/soc/ac0000.qcom,qupv3_0_geni_se/a80000.spi/spi_master/spi0/spi0.0/gesture_wakeup
    chmod 0660 /sys/devices/platform/soc/ac0000.qcom,qupv3_0_geni_se/a80000.spi/spi_master/spi0/spi0.0/gesture_wakeup
# add tap-to-wake

#Begin added by juting.huang for cameraalgoservice
on post-fs-data
    mkdir /data/vendor/camera_dump 0777 system system

power/power-mode.cpp

deleted100644 → 0
+0 −54
Original line number Diff line number Diff line
/*
 * Copyright (C) 2025 The LineageOS Project
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <aidl/android/hardware/power/BnPower.h>
#include <android-base/file.h>
#include <android-base/logging.h>

static const std::string wakeup_node = "/sys/bus/spi/devices/spi0.0/gesture_wakeup";
static const std::string wakeup_node_val_enabled = "2";
static const std::string wakeup_node_val_disabled = "-2";

namespace aidl {
namespace android {
namespace hardware {
namespace power {
namespace impl {

using ::aidl::android::hardware::power::Mode;

bool isDeviceSpecificModeSupported(Mode type, bool* _aidl_return) {
    switch (type) {
        case Mode::DOUBLE_TAP_TO_WAKE:
            *_aidl_return = true;
            return true;
        default:
            return false;
    }
}

bool setDeviceSpecificMode(Mode type, bool enabled) {
    switch (type) {
        case Mode::DOUBLE_TAP_TO_WAKE: {
            if (!::android::base::WriteStringToFile(
                enabled ? wakeup_node_val_enabled : wakeup_node_val_disabled,
                wakeup_node
            )) {
                LOG(ERROR) << "Failed to write " << wakeup_node;
                return false;
            }
            return true;
        }
        default:
            return false;
    }
}

}  // namespace impl
}  // namespace power
}  // namespace hardware
}  // namespace android
}  // namespace aidl
 No newline at end of file
+0 −3
Original line number Diff line number Diff line
@@ -17,9 +17,6 @@
         on the headphone/microphone jack. When false use the older uevent framework. -->
    <bool name="config_useDevInputEventForAudioJack">true</bool>

    <!-- Whether device supports double tap to wake -->
    <bool name="config_supportDoubleTapWake">true</bool>

    <!-- Default files to pin via Pinner Service -->
    <string-array name="config_defaultPinnerServiceFiles" translatable="false">
        <item>/system/framework/arm64/boot-QPerformance.oat</item>
+0 −1
Original line number Diff line number Diff line
# Emkit
type vendor_sysfs_emkit, fs_type, sysfs_type;
type vendor_sysfs_touchpanel, fs_type, sysfs_type;
Loading