Snap for 7160059 from 9adec7503b89691aa7e9638525e156516288b433 to sc-release

Change-Id: I8806c15e3a180027b8e30540d5ea4102b464eb3e
diff --git a/Android.bp b/Android.bp
index 5217736..f498677 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,3 +1,20 @@
+package {
+    default_applicable_licenses: ["packages_apps_Gallery_license"],
+}
+
+// Added automatically by a large-scale-change
+// See: http://go/android-license-faq
+license {
+    name: "packages_apps_Gallery_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-Apache-2.0",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
 android_app {
     name: "Gallery",
     srcs: ["src/**/*.java"],
diff --git a/tests/Android.bp b/tests/Android.bp
index e5879ac..53bde64 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_apps_Gallery_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_apps_Gallery_license"],
+}
+
 android_test {
     name: "GalleryTests",
     certificate: "media",