Replace flag check to sdk version check

This change replace flag check to sdk version check to fix the problem
that when the new module is installed on the new version of mainline the
exported flags will have inconsistent flag value.

Test: m
Flag: EXEMPT remove flag call
Relnote: M0
Bug: 401592182
Change-Id: Ib768880af8eddc96db44a35860042e1e0a0d99a7
2 files changed