Add persistence and example for permission's system state.

The only missing part is async persistence now.

Bug: 182523293
Test: presubmit
Change-Id: I98e0a0608598bc238e9d38d0de1fa49d3d1d2f23
11 files changed