The good news: found a fix
The bad news: it’s a hardware issue
So I tried the github magisk module, which did not work. although found out that the wifi chip from the soc was no longer being detected at termux, indicating the need for a cpu reball. long story short, I brought it to local technician wherein he did a cpu reflow. It lasted only a week before wifi died again. (I removed root after it was fixed)
Did some further analysis with antutu with cpu temps and found out it was cpu was throttling and idle temp was at 53C even though it was not warm to the touch. (See photos attached) hotspot was seen at “socd”
So i busted it open and ripped out the motherboard to see what’s causing the issue. thermal paste was super dried out.
-removed the cameras from the motherboard
-reflowed the cpu with hot air gun (very carefully)
-applied new thermal paste to cpu, and the storage chip cos why not since it was next to the cpu
Idle temp is now at 29C-34C(depends on room temp) and socd temp is now at 12C,from the 53C before. Wifi is working again, so far so good.
side note, I highly suggest a cpu reball, which guarantees a more long term fix compared to a reflow.
I also have a new main phone, and did this just cause tinkering with things is a hobby of mine. So if you do decide to fix it, do it at your own risk or go through a reputable technician that specializes on micro soldering, and specifically instruct them to replace the old thermal paste.
Before temp of “socd” 53C!!!:

After 2nd reflow and new application of thermal paste:

Was easier to open up than I first thought:



If you have any questions feel free to ask.