[Moto G5S Plus ROMs, Kernels, Recoveries, & Other D] unl0ck:
A quick update: I removed the kernel and killed the battery (used it until it shut down) to calibrate it, but when I turned it back on my battery was still limited to 70%. The alarm app is fixed though, so that's a relief.

I have already tried the following which people said is solutions:

Calibrating battery (draining it & charging while it's powered off).

Reinstalling PixysOS.

Removing the kernel (Mayhem Unravel 4).

Performing a factory reset.

Uninstalling all magisk modules (one by one (including Xposed)).

Uninstalling all Xposed modules (one by one).

Uninstalling magisk root completely.

Installing the "Battery Charge Limit" application & limiting it to 99%.

Wiping cache partitions (wiped cache & dalvik in recovery mode).

None of these worked and I have tried all of the at least 2 percent (except for the "uninstalling the kernel" since I didn't notice that it is for Pie). Is there a flashable zip or a magisk/xposed module (or application) that could be a potential fix, or can I fix it by modifying some system files?

Also, speaking of modifying system files, I went through the system files and navigated to "/sys/class/power_supply/battery" which redirected me to "/sys/devices/soc/qpnp-smbcharger-17/power_supply/battery". I went through and viewed the content of some files, and some of them could be a solution to my problem.

(I am just using logic here, and I don't know anything about this stuff. I was hoping you could help me, since you seem to know what you're talking about.)

I went into the following files:

capacity (file name)

58 (inside of the file)

(the value of the file changes every time my battery percentage changes)

charge_counter

1928327

charge_full

3013000

(this is what I meant with logic. The file is named "charge_full" as in the maximum charge the phone can have. Maybe if I change the numbers to something else it could reach 100%.)

charge_full_design

3013000

charge_rate

None/Normal/Fast

(depending if I am charging or not and if I am using the turbo charger which came with the phone)

constant_charge_current_max

2000000

current_now

452420

Then there's a lot of other files in the folder, for example:

flash_active

flash_current_max

input_current_max

input_current_settled

voltage_max

voltage_max_design

voltage_now

and then there's a file named "uevent" which contains the following:

POWER_SUPPLY_NAME=battery

POWER_SUPPLY_STATUS=Discharging

POWER_SUPPLY_PRESENT=1

POWER_SUPPLY_CAPACITY=54

POWER_SUPPLY_HEALTH=Good

POWER_SUPPLY_CURRENT_NOW=374448

POWER_SUPPLY_CHARGE_COUNTER=1859488

POWER_SUPPLY_TEMP=357

POWER_SUPPLY_VOLTAGE_NOW=3800331

POWER_SUPPLY_CHARGE_RATE=None

There's one last thing which I think is strange.

The files "battery_charging_enabled" and "charge_enabled", and that doesn't sound strange, but when I looked inside of them while charging my phone I found that the "battery_charging_enabled" was set to '1' while "charge_enabled" was set to '0'. When I tried to change the 0 to a 1 (after backup of course) it saved, but when I plugged out my charger the "battery_charging_enabled" became a '0' but the "charge_enabled" was unchanged as if that file isn't needed.

I hope that's all information you (or anybody reading this and is willing to help me) need to be able to find a fix. Thank you for reading this extremely long comment/post. I will not waste any more of your time, but I really appreciate that you've spent your time helping me.

Thank you so much.