Re-land example for disabling changes at test time

Added Frameworks specific PlatformCompatChangeRule, which
fixes libcore tests dependency on Framework.

Test: atest PlatformCompatGating
Bug: 140367850
Change-Id: I4a97ff43d41110251473868d186462039a889e28
7 files changed