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

Commit e44cae03 authored by synt4x93's avatar synt4x93
Browse files

universal9810: hidl: fastcharge: build hal



Co-authored-by: default avatarErfan Abdi <erfangplus@gmail.com>
Change-Id: I3964b3f08dfc74921b9af2e0b1956e0d4c8f0a40
parent 37f6749e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -65,4 +65,13 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
            <instance>default</instance>
        </interface>
    </hal>
    <hal format="hidl">
        <name>vendor.lineage.fastcharge</name>
        <transport>hwbinder</transport>
        <version>1.0</version>
        <interface>
            <name>IFastCharge</name>
            <instance>default</instance>
        </interface>
    </hal>
</manifest>
+56 −0
Original line number Diff line number Diff line
#
# Copyright (C) 2021 The LineageOS 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.
#
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := lineage.fastcharge@1.0-service.9810.rc
LOCAL_MODULE_TAGS  := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/init
LOCAL_SRC_FILES := $(LOCAL_MODULE)

include $(BUILD_PREBUILT)

LOCAL_PATH := hardware/samsung/hidl/fastcharge

include $(CLEAR_VARS)

LOCAL_MODULE := lineage.fastcharge@1.0-service.9810
LOCAL_MODULE_STEM := lineage.fastcharge@1.0-service.9810
LOCAL_MODULE_TAGS  := optional
LOCAL_MODULE_OWNER := samsung
LOCAL_MODULE_RELATIVE_PATH := hw

LOCAL_SRC_FILES := \
    FastCharge.cpp \
    service.cpp

LOCAL_C_INCLUDES := \
    $(LOCAL_PATH)/include \

LOCAL_REQUIRED_MODULES := \
    lineage.fastcharge@1.0-service.9810.rc

LOCAL_SHARED_LIBRARIES := \
    libbase \
    libbinder \
    libcutils \
    libhidlbase \
    libutils \
    vendor.lineage.fastcharge@1.0

include $(BUILD_EXECUTABLE)
+4 −0
Original line number Diff line number Diff line
service fastcharge-hal-1-0 /system/bin/hw/lineage.fastcharge@1.0-service.9810
    class hal
    user system
    group system
+3 −0
Original line number Diff line number Diff line
@@ -18,6 +18,9 @@ on init
    chmod 0666 /sys/kernel/gpu/gpu_max_clock
    chmod 0666 /sys/kernel/gpu/gpu_min_clock

    # FastCharge
    chown system system /sys/class/sec/switch/afc_disable

on boot
    # ZRAM setup
    write /sys/block/zram0/comp_algorithm lz4
+1 −0
Original line number Diff line number Diff line
@@ -7,3 +7,4 @@ type sysfs_kgsl, sysfs_type, fs_type;
type sysfs_devfreq, sysfs_type, fs_type;
type sysfs_gpu, sysfs_type, fs_type;
type cpu_dma_device, dev_type;
type sysfs_fastcharge, sysfs_type, fs_type;
Loading