Most of the apps crashing after editing platform.xml I tried making writing to SD possible, so I edited platform.xml to add &lt;group gid=”media_rw” /&gt; to “WRITE_EXTERNAL_STORAGE“. 

When I rebooted everything started crashing. I cannot open any apps. It says it connects to Wi-Fi but cannot access the internet.

I tried:


Restoring original platform.xml - nothing good.  
NAND backup -> restore to previous backup -> copy .xml from there and restore it - nothing good again.  
Dirty flash the ROM which made me unable to even go to Recovery - had to re-flash TWRP.  
Backup all apps via ADB and restore them on my previous backup, but all the settings are messed up.


Is there anything I can do to fix the platform.xml issue? What could be causing everything to crash like that? I restored the .xml, so why is it still broken?
Ended up resolving the issue by doing a factory reset and restoring all the apps from an old backup. Some loss but everything works at least.