Add ConfigUpdater service for CT logs
The service extracts the logs from the json log list format and creates
a lookup directory based on conscrypt's CTLogStoreImpl's lookup.
Since we don't have renameat2 yet (3.15 kernels) in order to support
atomic swapping of the log directories on updates a symlink is used
to point to the current directory and then that symlink is atomically
replaced with a symlink pointing to the new directory.
Bug: 28746284
Test: running ConfigUpdater/scripts/test_install.sh with various ctlog
files
Change-Id: I39372aea83aff6d4a72e517eaae7a7c6eac89c57
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index 3ceba08..580e7a4 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -3329,6 +3329,14 @@
</intent-filter>
</receiver>
+ <receiver android:name="com.android.server.updates.CertificateTransparencyLogInstallReceiver"
+ android:permission="android.permission.UPDATE_CONFIG">
+ <intent-filter>
+ <action android:name="android.intent.action.UPDATE_CT_LOGS" />
+ <data android:scheme="content" android:host="*" android:mimeType="*/*" />
+ </intent-filter>
+ </receiver>
+
<receiver android:name="com.android.server.MasterClearReceiver"
android:permission="android.permission.MASTER_CLEAR">
<intent-filter