DO NOT MERGE "Add ability to declare licenses in soong."

df98d3e4a546a3a3e5e6aba5ca6151d00547ef20

Test: m nothing

Bug: 180688789

Change-Id: Ie7e1695ecb8cd943124426a0cad2c0d1db2b46ed
diff --git a/android/defaults.go b/android/defaults.go
index 8607c97..880c689 100644
--- a/android/defaults.go
+++ b/android/defaults.go
@@ -223,6 +223,9 @@
 	// its checking phase and parsing phase so add it to the list as a normal property.
 	AddVisibilityProperty(module, "visibility", &commonProperties.Visibility)
 
+	// The applicable licenses property for defaults is 'licenses'.
+	setPrimaryLicensesProperty(module, "licenses", &commonProperties.Licenses)
+
 	base.module = module
 }