BinaryTransparencyService: change params to FrameworkStatsLog.write

Due to the extension of the definition of the ApexInfoGathered atom,
we are changing the params to `FrameworkStatsLog.write()` to match
the atom definition.

Bug: 245944675

Test: Manual.
Change-Id: If5a2df21ecb13d0bc34b70116cc133ef823a642a
This commit is contained in:
Billy Lau
2022-11-11 10:51:33 -06:00
parent 1e3897546b
commit 0000111149

View File

@@ -685,7 +685,9 @@ public class BinaryTransparencyService extends SystemService {
FrameworkStatsLog.write(FrameworkStatsLog.APEX_INFO_GATHERED,
packageInfo.packageName,
packageInfo.getLongVersionCode(),
mBinaryHashes.get(packageInfo.packageName));
mBinaryHashes.get(packageInfo.packageName),
4, // indicating that the digest is SHA256
null); // TODO: This is to comform to the extended schema.
}
}
} catch (PackageManager.NameNotFoundException e) {