diff --git a/Android.bp b/Android.bp
index 3abd6c19f831d641d90357a88e4c7681abd92d86..64845db057887c339d049cba1c8c642565a0aee3 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12,6 +12,23 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    default_applicable_licenses: ["packages_inputmethods_LatinIME_license"],
+}
+
+// Added automatically by a large-scale-change
+// See: http://go/android-license-faq
+license {
+    name: "packages_inputmethods_LatinIME_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-Apache-2.0",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
 filegroup {
     name: "dicttool_deps",
     srcs: [
diff --git a/common/Android.bp b/common/Android.bp
index 925eef7fdc2ad6089c943a4f2ef65ca5e0cfe287..fd551279013e2c509364d0dab35fb5617673b7bc 100644
--- a/common/Android.bp
+++ b/common/Android.bp
@@ -12,6 +12,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_inputmethods_LatinIME_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_inputmethods_LatinIME_license"],
+}
+
 java_library {
     name: "latinime-common",
     host_supported: true,
diff --git a/java/Android.bp b/java/Android.bp
index f41e94af0c46eae81853dc7e7f9e87f77df59926..e3e644cf3c8b0f37ecac7f2773af775b5f720445 100644
--- a/java/Android.bp
+++ b/java/Android.bp
@@ -12,6 +12,25 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    default_applicable_licenses: [
+        "packages_inputmethods_LatinIME_java_license",
+    ],
+}
+
+// Added automatically by a large-scale-change
+// See: http://go/android-license-faq
+license {
+    name: "packages_inputmethods_LatinIME_java_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-Apache-2.0",
+    ],
+    license_text: [
+        "NOTICE",
+    ],
+}
+
 android_app {
     name: "LatinIME",
 
diff --git a/native/dicttoolkit/Android.bp b/native/dicttoolkit/Android.bp
index fd35697c1db33adb13018b770405352c19d07fb1..4ae250fa22b144a905870fc2eed265da24e5ad50 100644
--- a/native/dicttoolkit/Android.bp
+++ b/native/dicttoolkit/Android.bp
@@ -12,6 +12,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_inputmethods_LatinIME_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_inputmethods_LatinIME_license"],
+}
+
 cc_defaults {
     name: "dicttoolkit_defaults",
 
diff --git a/native/jni/Android.bp b/native/jni/Android.bp
index b522cb3bd55f9fc2bbf14e7804933cc38e5c6eeb..ab14632f832d370d8cf0174a2d763e12dfd2afad 100644
--- a/native/jni/Android.bp
+++ b/native/jni/Android.bp
@@ -12,6 +12,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_inputmethods_LatinIME_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_inputmethods_LatinIME_license"],
+}
+
 filegroup {
     name: "LATIN_IME_CORE_SRC_FILES",
     srcs: [
diff --git a/tests/Android.bp b/tests/Android.bp
index 76681f669ee7acfb721e6f69cb70413f953875b8..e1db354c3f075898b7ff7113a0458813748cf971 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -12,6 +12,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_inputmethods_LatinIME_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_inputmethods_LatinIME_license"],
+}
+
 android_test {
     name: "LatinIMETests",
 
diff --git a/tools/EditTextVariations/Android.bp b/tools/EditTextVariations/Android.bp
index 94b4951a7ca95e4f42bfb94be962c2b98ca3b790..f6ed1561d2909a4323757edeb0269bedc58c0241 100644
--- a/tools/EditTextVariations/Android.bp
+++ b/tools/EditTextVariations/Android.bp
@@ -12,6 +12,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_inputmethods_LatinIME_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_inputmethods_LatinIME_license"],
+}
+
 android_test {
     name: "EditTextVariations",
 
diff --git a/tools/dicttool/Android.bp b/tools/dicttool/Android.bp
index 83b4ed32ce7523a8b467e0a538fecf82e2243f1e..48f751e7809108ad11a7d7bfc1249db4a02e2129 100644
--- a/tools/dicttool/Android.bp
+++ b/tools/dicttool/Android.bp
@@ -12,6 +12,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_inputmethods_LatinIME_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_inputmethods_LatinIME_license"],
+}
+
 java_binary_host {
     name: "dicttool_aosp",
 
diff --git a/tools/make-keyboard-text/Android.bp b/tools/make-keyboard-text/Android.bp
index 4976051da702e92c4fb060f09222069bf0f3e4f1..781f53f979193e19c0019baf4fdbbf084767ae5a 100644
--- a/tools/make-keyboard-text/Android.bp
+++ b/tools/make-keyboard-text/Android.bp
@@ -13,6 +13,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "packages_inputmethods_LatinIME_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-Apache-2.0
+    default_applicable_licenses: ["packages_inputmethods_LatinIME_license"],
+}
+
 java_binary_host {
     name: "make-keyboard-text",