Add tests for B&R permission restore.

Test: atest
Bug: 277063776
Change-Id: I67c734ed08a81f4f530a0d946aefc73073170dbd
1 file changed