Upon further inspection it seems that every application affected was installed onto the sd card at one time. I have deleted all associated files from the sd card including from .androidsecure using a computer and there is no difference. I also have tried ejecting the sd card and testing if the error still occurs without it and it does. I did root following instructions on xda, but no one else is having this issue. I'm going to go through the stuff I've done. I have had multiple write2sd fix methods active (not at the same time) these methods are disabled now. I had xposed framework installed (which is currently uninstalled, also tested while uninstalled and the error still occurs). I've also made attempts to uninstall knox from my device though I'm not sure if I succeeded. I also have made attempts at setting selinux to permissive (pretty sure I succeeded using a terminal emulator) in order to get certain gamepads to work on this device (didn't succeed here). How do I clear system cache? I have TWRP recovery installed.