Fix isPrimary bit not being set

*this is a cherry pick from main*

This CL updates the primary provider
logic from not working correctly
by replacing the use of strings with
component info so that it is parsed
and string formatting issues won't
affect the new logic.

Test: gts
Bug: 291215735
Change-Id: I230fe6e22fd441e7fb986e899a8cade38f9e3b36
Merged-In: I230fe6e22fd441e7fb986e899a8cade38f9e3b36
6 files changed