From 6b5d50c4a30e795920689e41debfca749bbe1b95 Mon Sep 17 00:00:00 2001 From: Shoaib Anwar Date: Tue, 20 Jun 2017 14:18:57 +0530 Subject: [PATCH 1/2] Change ThunderCharge's Variable according to the Latest Update --- .../kerneladiutor/utils/kernel/battery/Battery.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/grarak/kerneladiutor/utils/kernel/battery/Battery.java b/app/src/main/java/com/grarak/kerneladiutor/utils/kernel/battery/Battery.java index bab013525..d08b7216d 100755 --- a/app/src/main/java/com/grarak/kerneladiutor/utils/kernel/battery/Battery.java +++ b/app/src/main/java/com/grarak/kerneladiutor/utils/kernel/battery/Battery.java @@ -38,20 +38,20 @@ public class Battery { private static final String CHARGE_RATE = "/sys/kernel/thundercharge_control"; private static final String CHARGE_RATE_ENABLE = CHARGE_RATE + "/enabled"; - private static final String CUSTOM_CURRENT = CHARGE_RATE + "/custom_current"; + private static final String CUSTOM_AC_CURRENT = CHARGE_RATE + "/custom_ac_current"; private static Integer sCapacity; public static void setChargingCurrent(int value, Context context) { - run(Control.write(String.valueOf(value), CUSTOM_CURRENT), CUSTOM_CURRENT, context); + run(Control.write(String.valueOf(value), CUSTOM_AC_CURRENT), CUSTOM_AC_CURRENT, context); } public static int getChargingCurrent() { - return Utils.strToInt(Utils.readFile(CUSTOM_CURRENT)); + return Utils.strToInt(Utils.readFile(CUSTOM_AC_CURRENT)); } public static boolean hasChargingCurrent() { - return Utils.existFile(CUSTOM_CURRENT); + return Utils.existFile(CUSTOM_AC_CURRENT); } public static void enableChargeRate(boolean enable, Context context) { From 3b36da91f06255a2ba22727ca0db963030d45711 Mon Sep 17 00:00:00 2001 From: Shoaib Anwar Date: Tue, 20 Jun 2017 14:43:58 +0530 Subject: [PATCH 2/2] AiO HotPlug: Make the Descriptions more Appropriate --- app/src/main/res/values/strings.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1bac799c8..2143b7fac 100755 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -338,12 +338,12 @@ Threshold when big CPUs should be turned on. Offline Delay Time before turning off a CPU. - AiO Hotplug - All in One HotPlug for Qualcomm devices. Developed by Shoaib0597. - Maximum big CPUs Online - Maximum number of big CPUs that will be online. - Maximum LITTLE CPUs Online - Maximum number of LITTLE CPUs that will be online. + AiO HotPlug + An All in One HotPlug for Qualcomm SoCs, developed by Shoaib0597. + big Cluster + Set the Maximum Number of Online Cores. + LITTLE Cluster + Set the Maximum Number of Online Cores. Use only one thermal driver from the following options, using more at the same time may cause unexpected behavior.