summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Billy Lau <billylau@google.com> 2022-11-11 10:51:33 -0600
committer Billy Lau <billylau@google.com> 2022-11-11 10:51:33 -0600
commit0000111149cee3a2ebefe4535eff45acf99d2a00 (patch)
treef67b8539cc29b1a02a497c53dd8bf141ceb2b5b6
parent1e3897546ba8e401ddbe5ef708d236c75fa1fc9c (diff)
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
-rw-r--r--services/core/java/com/android/server/BinaryTransparencyService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/BinaryTransparencyService.java b/services/core/java/com/android/server/BinaryTransparencyService.java
index 8055afce8370..2662e03a5627 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) {