Bug: b/300488560 Test: added unit test and tested with AconfigDemoActivity app Change-Id: I6ad71cc2dada8feb53662ec47c8acad5bc43d5ce