Put APV Codec creation under flag

Bug: 376770121
Bug: 363333555

Test: manual, verifying that codec is not created when flag is not set
Change-Id: I04a9be9972107475c8960faaa3212aae51bf965e
2 files changed