Test behavior when declaring duplicate permissions

Also make sure that
- during reboot the system does not crash and
- the permission properties stay the same after reboot

Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.AppSecurityTests
Bug: 120833531
Change-Id: I11821641cb50f0e51bb7979a7d92cf8366420359
6 files changed