Test backup + restore of permissions

- foreground/background permissions
- permission groups
- pre-M apps
- user-set/user-fixed/review-required flag
- delayed permission restore

Test: atest CtsBackupTestCases:android.backup.cts.PermissionTest
Change-Id: Ic925625ecc1679e9041650ad060e40cf11b38744
5 files changed