From 230d4e6696281d986e86002d6f803dce44d10f0b Mon Sep 17 00:00:00 2001 From: Aryan Biswas <152459091+CuriousNom@users.noreply.github.com> Date: Fri, 8 Aug 2025 08:18:48 +0530 Subject: [PATCH] pipa: Support Bypass Charging * Need ROM & Kernel Support --- lineage_pipa.mk | 5 ++++- sepolicy/vendor/init.te | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 sepolicy/vendor/init.te diff --git a/lineage_pipa.mk b/lineage_pipa.mk index f18b402..8af6617 100644 --- a/lineage_pipa.mk +++ b/lineage_pipa.mk @@ -11,6 +11,10 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) # Inherit some common lineage stuff. $(call inherit-product, vendor/lineage/config/common_full_tablet_wifionly.mk) + +# Bypass Charging +BYPASS_CHARGE_SUPPORTED := true + # Inherit from pipa device $(call inherit-product, device/xiaomi/pipa/device.mk) @@ -21,7 +25,6 @@ $(call inherit-product, vendor/lineage-priv/keys/keys.mk) MIST_BUILD_TYPE := OFFICIAL MISTOS_MAINTAINER := Mufasa WITH_GMS := true -TARGET_USES_PICO_GAPPS := true PRODUCT_NO_CAMERA := false TARGET_DISABLE_EPPE := true diff --git a/sepolicy/vendor/init.te b/sepolicy/vendor/init.te new file mode 100644 index 0000000..76f731e --- /dev/null +++ b/sepolicy/vendor/init.te @@ -0,0 +1 @@ +allow init sysfs_battery_supply:file rw_file_perms;