contactsbackup: Add SPDX copyright headers
diff --git a/contactsbackup/Android.bp b/contactsbackup/Android.bp
index e0d6020..7127a92 100644
--- a/contactsbackup/Android.bp
+++ b/contactsbackup/Android.bp
@@ -1,3 +1,8 @@
+//
+// SPDX-FileCopyrightText: 2020 The Calyx Institute
+// SPDX-License-Identifier: Apache-2.0
+//
+
android_app {
name: "LocalContactsBackup",
srcs: [
diff --git a/contactsbackup/build.gradle b/contactsbackup/build.gradle
index 7112121..85bf9bb 100644
--- a/contactsbackup/build.gradle
+++ b/contactsbackup/build.gradle
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2020 The Calyx Institute
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
diff --git a/contactsbackup/default-permissions_org.calyxos.backup.contacts.xml b/contactsbackup/default-permissions_org.calyxos.backup.contacts.xml
index 16e8ab9..6919a6b 100644
--- a/contactsbackup/default-permissions_org.calyxos.backup.contacts.xml
+++ b/contactsbackup/default-permissions_org.calyxos.backup.contacts.xml
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<!--
+ SPDX-FileCopyrightText: 2020 The Calyx Institute
+ SPDX-License-Identifier: Apache-2.0
+ -->
<exceptions>
<exception package="org.calyxos.backup.contacts">
<permission name="android.permission.READ_CONTACTS" fixed="true" />
diff --git a/contactsbackup/lint.xml b/contactsbackup/lint.xml
index db997a5..efc193a 100644
--- a/contactsbackup/lint.xml
+++ b/contactsbackup/lint.xml
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ SPDX-FileCopyrightText: 2022 The Calyx Institute
+ SPDX-License-Identifier: Apache-2.0
+ -->
<lint>
<issue id="MissingTranslation" severity="ignore" />
</lint>
diff --git a/contactsbackup/src/androidTest/AndroidManifest.xml b/contactsbackup/src/androidTest/AndroidManifest.xml
index 1c51a97..89634be 100644
--- a/contactsbackup/src/androidTest/AndroidManifest.xml
+++ b/contactsbackup/src/androidTest/AndroidManifest.xml
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+ SPDX-FileCopyrightText: 2020 The Calyx Institute
+ SPDX-License-Identifier: Apache-2.0
+ -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.calyxos.backup.contacts.test">
diff --git a/contactsbackup/src/androidTest/java/org/calyxos/backup/contacts/BackupRestoreTest.kt b/contactsbackup/src/androidTest/java/org/calyxos/backup/contacts/BackupRestoreTest.kt
index 6d2d6e5..bd6f523 100644
--- a/contactsbackup/src/androidTest/java/org/calyxos/backup/contacts/BackupRestoreTest.kt
+++ b/contactsbackup/src/androidTest/java/org/calyxos/backup/contacts/BackupRestoreTest.kt
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2020 The Calyx Institute
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
package org.calyxos.backup.contacts
import android.app.backup.BackupAgent
diff --git a/contactsbackup/src/androidTest/java/org/calyxos/backup/contacts/ContactUtils.kt b/contactsbackup/src/androidTest/java/org/calyxos/backup/contacts/ContactUtils.kt
index 0eb7978..c6a0461 100644
--- a/contactsbackup/src/androidTest/java/org/calyxos/backup/contacts/ContactUtils.kt
+++ b/contactsbackup/src/androidTest/java/org/calyxos/backup/contacts/ContactUtils.kt
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2020 The Calyx Institute
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
package org.calyxos.backup.contacts
import android.content.ContentProviderOperation
diff --git a/contactsbackup/src/main/AndroidManifest.xml b/contactsbackup/src/main/AndroidManifest.xml
index 51bc8b8..3df3c73 100644
--- a/contactsbackup/src/main/AndroidManifest.xml
+++ b/contactsbackup/src/main/AndroidManifest.xml
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+ SPDX-FileCopyrightText: 2020 The Calyx Institute
+ SPDX-License-Identifier: Apache-2.0
+ -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="org.calyxos.backup.contacts"
diff --git a/contactsbackup/src/main/java/org/calyxos/backup/contacts/ContactsBackupAgent.java b/contactsbackup/src/main/java/org/calyxos/backup/contacts/ContactsBackupAgent.java
index 17fa59c..313b9b1 100644
--- a/contactsbackup/src/main/java/org/calyxos/backup/contacts/ContactsBackupAgent.java
+++ b/contactsbackup/src/main/java/org/calyxos/backup/contacts/ContactsBackupAgent.java
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2020 The Calyx Institute
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
package org.calyxos.backup.contacts;
import static android.Manifest.permission.READ_CONTACTS;
diff --git a/contactsbackup/src/main/java/org/calyxos/backup/contacts/FullBackupFileHandler.java b/contactsbackup/src/main/java/org/calyxos/backup/contacts/FullBackupFileHandler.java
index 033a1ba..da01ae0 100644
--- a/contactsbackup/src/main/java/org/calyxos/backup/contacts/FullBackupFileHandler.java
+++ b/contactsbackup/src/main/java/org/calyxos/backup/contacts/FullBackupFileHandler.java
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2020 The Calyx Institute
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
package org.calyxos.backup.contacts;
import android.app.backup.FullBackupDataOutput;
diff --git a/contactsbackup/src/main/java/org/calyxos/backup/contacts/StartBroadcastReceiver.java b/contactsbackup/src/main/java/org/calyxos/backup/contacts/StartBroadcastReceiver.java
index a398718..dca3eab 100644
--- a/contactsbackup/src/main/java/org/calyxos/backup/contacts/StartBroadcastReceiver.java
+++ b/contactsbackup/src/main/java/org/calyxos/backup/contacts/StartBroadcastReceiver.java
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2020 The Calyx Institute
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
package org.calyxos.backup.contacts;
import android.content.BroadcastReceiver;
diff --git a/contactsbackup/src/main/java/org/calyxos/backup/contacts/VCardExporter.java b/contactsbackup/src/main/java/org/calyxos/backup/contacts/VCardExporter.java
index cb7a552..96c54cd 100644
--- a/contactsbackup/src/main/java/org/calyxos/backup/contacts/VCardExporter.java
+++ b/contactsbackup/src/main/java/org/calyxos/backup/contacts/VCardExporter.java
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2020 The Calyx Institute
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
package org.calyxos.backup.contacts;
import android.content.ContentResolver;
diff --git a/contactsbackup/src/main/java/org/calyxos/backup/contacts/VCardImporter.java b/contactsbackup/src/main/java/org/calyxos/backup/contacts/VCardImporter.java
index 01e6979..8828f84 100644
--- a/contactsbackup/src/main/java/org/calyxos/backup/contacts/VCardImporter.java
+++ b/contactsbackup/src/main/java/org/calyxos/backup/contacts/VCardImporter.java
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2020 The Calyx Institute
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
package org.calyxos.backup.contacts;
import android.content.ContentResolver;
diff --git a/contactsbackup/src/main/res/values/strings.xml b/contactsbackup/src/main/res/values/strings.xml
index db4fbc2..07a9aba 100644
--- a/contactsbackup/src/main/res/values/strings.xml
+++ b/contactsbackup/src/main/res/values/strings.xml
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+ SPDX-FileCopyrightText: 2020 The Calyx Institute
+ SPDX-License-Identifier: Apache-2.0
+ -->
<resources>
<string name="app_label">Local Contacts Backup</string>
</resources>
diff --git a/contactsbackup/src/test/java/org/calyxos/backup/contacts/ContactsBackupAgentTest.kt b/contactsbackup/src/test/java/org/calyxos/backup/contacts/ContactsBackupAgentTest.kt
index f0bed13..a373040 100644
--- a/contactsbackup/src/test/java/org/calyxos/backup/contacts/ContactsBackupAgentTest.kt
+++ b/contactsbackup/src/test/java/org/calyxos/backup/contacts/ContactsBackupAgentTest.kt
@@ -1,3 +1,8 @@
+/*
+ * SPDX-FileCopyrightText: 2020 The Calyx Institute
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
package org.calyxos.backup.contacts
import android.Manifest.permission.READ_CONTACTS