Xposed on OOS-based ROMs causes crashes when the phone is left charging.Hey Dark!
I was a little busy with life, as well (just got a new job and still getting used to the working times), but here I finally go!
In fact, I've been having some trouble after installing the unofficial Xposed by the way you recommended me (terminal and such). Two or three mornings after the installation, I noticed, my alarm didn't go off, unset itself over night (luckily, I had an additional alarm set). During the day, I also noticed, I can't open some apps, others would behave weird. Also, I couldn't download anything and finally I found out, that I can't even access my SD card in the file explorer anymore (as root, I could, though). Rebooting fixed everything, though.
Since then, I experience the same behavior every morning and also since then, my phone will just reboot several times a day. After those random reboots, I sometimes notice the same weird behavior described earlier (which can be fixed by another manual reboot), but sometimes everything is just fine. In the mornings, it never is (exception: today; but some apps still wouldn't open), though.
One of the first things I tried, was to uninstall Xposed following your recommendation to flash the uninstaller. However, when I try to flash that, it will just give me the same error as previously ("Unable to extract zip file"). After some googling, I found a thread (I believe, a Github issue, but I really can't find it anymore ), where another guy has the same problem, and rovo89 suggests, that his /system partition is full. He only had some KB left, so that might have been the problem for him. However, I still have 178 MB free in /system, so can't connect that explanation to me. However, that still means that 93 % of /system is occupied. Is that normal?
My guess is, I might have screwed some permissions, by not copying your commands to the terminal correctly. Is that possible? I'd love to create a logcat of the time when the system reboots, however, I'm afraid, that using MatLog, the log won't be saved when the system suddenly reboots. Perhaps I should leave my phone connected to my computer overnight (since the reboot will definitely happen then) and create a Logcat via ADB?
Now, there's a new system update for my OnePlus 5 and I'm tempted to try installing that (it says, I will also have to re-root after installing that, so it seems like will restore and overwrite some stuff?!) and see if it changes everything. Maybe do a nandroid backup before. Just for now, I didn't want to touch too much before presenting my problems to you. Might become impossible to trace back, an thus fix, otherwise. What do you think?
The fix is here: https://forum.xda-developers.com/xposed/modules/mod-oos-background-dex-optimization-fix-t3687603