So I've searched everywhere for a solution to my problem but haven't had any luck. My phones about a year old. I rooted my phone a while ago and have run several different roms since and had no problems until recently.
Just recently the power/lock screen button started acting up. Whenever I touched the button(without pressing it) the power options would display on my screen. Its progressively gotten worse. Pressing the button won't activate the lock screen. It just causes the power options to display for a brief second then it reboots by itself. The only way I can get the screen to lock is to let it time out but when I try to unlock it, the screen lights up for a brief second and the phone reboots itself. Currently, the only way I can use my phone is to not let the screen time out which isn't always effective. Sometimes it reboots mid use. also, my phone will not completely turn off. It just reboots whenever I try.
Solutions I've tried:
-removed battery and sim card
-Cleared the Dalvik Cache(worked for a bit, now doesn't help at all)
-factory reset and SD card wipe
-Re-installed the rom
-Tried a different kernel
-tried a different rom
My phones pretty much useless in its current state so any help at all would be greatly appreciated. I'm open to all suggestions.
Thanks in advance.
Model Number: SAMSUNG-SGH-I777-rooted
Android version: 4.1.2 AOKP JB
Kernel version: 3.0.15-CM-g034a838
Build number: i777 JB (4.1.2 JZ054K) Build 11.9.2012