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

Commit c3a75d5b authored by Francescodario Cuzzocrea's avatar Francescodario Cuzzocrea
Browse files

universal8890: build fastcharge hidl

Change-Id: Iec1a7faec24f0d5b4b1d2f1ef52b781368c5bd51
parent 3bd2c1e9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -107,6 +107,10 @@ PRODUCT_PACKAGES += \
PRODUCT_HOST_PACKAGES += \
    dtbhtoolExynos

# FastCharge
PRODUCT_PACKAGES += \
    vendor.lineage.fastcharge@1.0-service.samsung

# Filesystem tools for resizing system partitions
PRODUCT_PACKAGES += \
    e2fsck_static \
+23 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2020 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.
 */

#ifndef SAMSUNG_FASTCHARGE_H
#define SAMSUNG_FASTCHARGE_H

#define FASTCHARGE_DEFAULT_SETTING true
#define FASTCHARGE_PATH "/sys/class/sec/switch/afc_disable"

#endif // SAMSUNG_FASTCHARGE_H
+1 −0
Original line number Diff line number Diff line
@@ -317,6 +317,7 @@
/(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@1\.3-service\.samsung                   u:object_r:hal_vibrator_default_exec:s0
/(vendor|system/vendor)/bin/hw/sec\.android\.hardware\.nfc@1\.1-service                            u:object_r:hal_nfc_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.samsung-exynos           u:object_r:hal_lineage_livedisplay_sysfs_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.fastcharge@1\.0-service\.samsung                   u:object_r:hal_lineage_fastcharge_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.samsung                        u:object_r:hal_lineage_touch_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.samsung\.hardware\.camera\.provider@2\.4-service            u:object_r:hal_camera_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.samsung\.hardware\.gnss@1\.0-service                        u:object_r:hal_gnss_default_exec:s0
+4 −0
Original line number Diff line number Diff line
# hal_lineage_fastcharge_default.te

allow hal_lineage_fastcharge_default sysfs_sec_switch:dir search;
allow hal_lineage_fastcharge_default sysfs_sec_switch:file rw_file_perms;