I upgraded my Nexus 5 from Android 6 preview 3 to the 6.0 final version by manualy flashing image files from google factory image. All my applications lost permissions and crashing. I am unable to give permissions through settings too. The only solution I found so far is to reinstall applications. However I don't want to reinstall all of them for obvious reasons.
Please advise how to fix it.