* changes: Refresh legacy permission state right before writing. Revert "Refresh legacy state before writing to runtime permission persistence."