Add flag guard to isPrivateProfile() API

Bug: 303726780
Change-Id: I3023c440e398d99676b4e9388afd4294b29a083e
2 files changed