Write with splitName in BinaryTransparencyService

This is just for consistency with the atom change, for now.

Bug: 264296226
Test: TODO
Change-Id: I47f39cb4a2c7bb522ab7c80aff1f2986bc040563
This commit is contained in:
Victor Hsieh
2023-01-25 16:10:37 -08:00
parent c76e3b50b1
commit 01e3b92c65
2 changed files with 5 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ interface IBinaryTransparencyService {
parcelable AppInfo {
String packageName;
long longVersion;
String splitName;
byte[] digest;
int digestAlgorithm;
String[] signerDigests;

View File

@@ -405,6 +405,7 @@ public class BinaryTransparencyService extends SystemService {
}
private void recordApexInfo(IBinaryTransparencyService.ApexInfo apexInfo) {
// Must order by the proto's field number.
FrameworkStatsLog.write(FrameworkStatsLog.APEX_INFO_GATHERED,
apexInfo.packageName,
apexInfo.longVersion,
@@ -415,6 +416,7 @@ public class BinaryTransparencyService extends SystemService {
}
private void writeAppInfoToLog(IBinaryTransparencyService.AppInfo appInfo) {
// Must order by the proto's field number.
FrameworkStatsLog.write(FrameworkStatsLog.MOBILE_BUNDLED_APP_INFO_GATHERED,
appInfo.packageName,
appInfo.longVersion,
@@ -426,7 +428,8 @@ public class BinaryTransparencyService extends SystemService {
appInfo.initiator,
appInfo.initiatorSignerDigests,
appInfo.installer,
appInfo.originator);
appInfo.originator,
appInfo.splitName);
}
/**