The problem: If I keep the phone idle it becomes hot and loses 1% of battery every minute. If i put it in airplane mode, its power consumption is normal.
What I did to cause this: I had a problem with android auto where apps weren't opening so I thought, "let's try AOSP roms". For some reason...