Merge "Write with splitName in BinaryTransparencyService"

This commit is contained in:
Victor Hsieh
2023-01-27 18:01:07 +00:00
committed by Android (Google) Code Review
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

@@ -469,6 +469,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,
@@ -479,6 +480,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,
@@ -490,7 +492,8 @@ public class BinaryTransparencyService extends SystemService {
appInfo.initiator,
appInfo.initiatorSignerDigests,
appInfo.installer,
appInfo.originator);
appInfo.originator,
appInfo.splitName);
}
/**