From 0000111149cee3a2ebefe4535eff45acf99d2a00 Mon Sep 17 00:00:00 2001 From: Billy Lau Date: Fri, 11 Nov 2022 10:51:33 -0600 Subject: [PATCH] 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 --- .../java/com/android/server/BinaryTransparencyService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/BinaryTransparencyService.java b/services/core/java/com/android/server/BinaryTransparencyService.java index 8055afce83705..2662e03a5627b 100644 --- a/services/core/java/com/android/server/BinaryTransparencyService.java +++ b/services/core/java/com/android/server/BinaryTransparencyService.java @@ -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) {