Change API used to check the mainline module version

getModuleInfo returns the information from the modulemetadata
module, which may by empty on some build. Instead, switch to calling getInstalledModules, which returns what is actually installed on the device.

Bug: 188168360
Test: cts WifiNetworkSpecifierTest
Change-Id: Iea0bde8f95762b7d514ab924b204b6b1865ac25c
1 file changed