Add compatibility mode test

These test cases ensure system correctly handles the global state
of compatibility mode and related flags in the application info.

Bug: 186592266
Test: atest CompatibilityModeTest
Change-Id: Ia9cb6fe0404a53add2362c89d98e9363dec5aa2e
1 file changed