1//
2// Copyright (C) 2020 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    default_visibility: ["//visibility:public"],
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21filegroup {
22    name: "Apache-2.0-License-Text",
23    srcs: ["LICENSE"],
24}
25
26license {
27    name: "Android-Apache-2.0",
28    package_name: "Android",
29    license_kinds: ["SPDX-license-identifier-Apache-2.0"],
30    copyright_notice: "Copyright (C) The Android Open Source Project",
31    license_text: ["LICENSE"],
32}
33
34license_kind {
35    name: "BSD-Like-Binary-Only",
36    conditions: [
37        "notice",
38        "by_exception_only",
39        "proprietary",
40    ],
41}
42
43license_kind {
44    name: "SPDX-license-identifier-0BSD",
45    conditions: ["permissive"],
46    url: "https://spdx.org/licenses/0BSD",
47}
48
49license_kind {
50    name: "SPDX-license-identifier-AFL-1.1",
51    conditions: ["by_exception_only"],
52    url: "https://spdx.org/licenses/AFL-1.1.html",
53}
54
55license_kind {
56    name: "SPDX-license-identifier-AFL-1.2",
57    conditions: ["by_exception_only"],
58    url: "https://spdx.org/licenses/AFL-1.2.html",
59}
60
61license_kind {
62    name: "SPDX-license-identifier-AFL-2.0",
63    conditions: ["by_exception_only"],
64    url: "https://spdx.org/licenses/AFL-2.0.html",
65}
66
67license_kind {
68    name: "SPDX-license-identifier-AFL-2.1",
69    conditions: ["notice"],
70    url: "https://spdx.org/licenses/AFL-2.1.html",
71}
72
73license_kind {
74    name: "SPDX-license-identifier-AFL-3.0",
75    conditions: ["notice"],
76    url: "https://spdx.org/licenses/AFL-3.0.html",
77}
78
79license_kind {
80    name: "SPDX-license-identifier-AGPL",
81    conditions: [
82        "by_exception_only",
83        "not_allowed",
84    ],
85    url: "https://spdx.org/licenses/AGPL.html",
86}
87
88license_kind {
89    name: "SPDX-license-identifier-AGPL-1.0",
90    conditions: [
91        "by_exception_only",
92        "not_allowed",
93    ],
94    url: "https://spdx.org/licenses/AGPL-1.0.html",
95}
96
97license_kind {
98    name: "SPDX-license-identifier-AGPL-1.0-only",
99    conditions: [
100        "by_exception_only",
101        "not_allowed",
102    ],
103    url: "https://spdx.org/licenses/AGPL-1.0-only.html",
104}
105
106license_kind {
107    name: "SPDX-license-identifier-AGPL-1.0-or-later",
108    conditions: [
109        "by_exception_only",
110        "not_allowed",
111    ],
112    url: "https://spdx.org/licenses/AGPL-1.0-or-later.html",
113}
114
115license_kind {
116    name: "SPDX-license-identifier-AGPL-3.0",
117    conditions: [
118        "by_exception_only",
119        "not_allowed",
120    ],
121    url: "https://spdx.org/licenses/AGPL-3.0.html",
122}
123
124license_kind {
125    name: "SPDX-license-identifier-AGPL-3.0-only",
126    conditions: [
127        "by_exception_only",
128        "not_allowed",
129    ],
130    url: "https://spdx.org/licenses/AGPL-3.0-only.html",
131}
132
133license_kind {
134    name: "SPDX-license-identifier-AGPL-3.0-or-later",
135    conditions: [
136        "by_exception_only",
137        "not_allowed",
138    ],
139    url: "https://spdx.org/licenses/AGPL-3.0-or-later.html",
140}
141
142license_kind {
143    name: "SPDX-license-identifier-APSL-1.1",
144    conditions: [
145        "reciprocal",
146    ],
147    url: "https://spdx.org/licenses/APSL-1.1.html",
148}
149
150license_kind {
151    name: "SPDX-license-identifier-APSL-2.0",
152    conditions: [
153        "reciprocal",
154    ],
155    url: "https://spdx.org/licenses/APSL-2.0.html",
156}
157
158license_kind {
159    name: "SPDX-license-identifier-Apache",
160    conditions: ["notice"],
161}
162
163license_kind {
164    name: "SPDX-license-identifier-Apache-1.0",
165    conditions: ["notice"],
166    url: "https://spdx.org/licenses/Apache-1.0.html",
167}
168
169license_kind {
170    name: "SPDX-license-identifier-Apache-1.1",
171    conditions: ["notice"],
172    url: "https://spdx.org/licenses/Apache-1.1.html",
173}
174
175license_kind {
176    name: "SPDX-license-identifier-Apache-2.0",
177    conditions: ["notice"],
178    url: "https://spdx.org/licenses/Apache-2.0.html",
179}
180
181license_kind {
182    name: "SPDX-license-identifier-Artistic",
183    conditions: ["notice"],
184}
185
186license_kind {
187    name: "SPDX-license-identifier-Artistic-1.0",
188    conditions: ["notice"],
189    url: "https://spdx.org/licenses/Artistic-1.0.html",
190}
191
192license_kind {
193    name: "SPDX-license-identifier-Artistic-1.0-Perl",
194    conditions: ["notice"],
195    url: "https://spdx.org/licenses/Artistic-1.0-Perl.html",
196}
197
198license_kind {
199    name: "SPDX-license-identifier-Artistic-1.0-cl8",
200    conditions: ["notice"],
201    url: "https://spdx.org/licenses/Artistic-1.0-cl8.html",
202}
203
204license_kind {
205    name: "SPDX-license-identifier-Artistic-2.0",
206    conditions: ["notice"],
207    url: "https://spdx.org/licenses/Artistic-2.0.html",
208}
209
210license_kind {
211    name: "SPDX-license-identifier-BSD",
212    conditions: ["notice"],
213}
214
215license_kind {
216    name: "SPDX-license-identifier-BSD-1-Clause",
217    conditions: ["notice"],
218    url: "https://spdx.org/licenses/BSD-1-Clause.html",
219}
220
221license_kind {
222    name: "SPDX-license-identifier-BSD-2-Clause",
223    conditions: ["notice"],
224    url: "https://spdx.org/licenses/BSD-2-Clause.html",
225}
226
227license_kind {
228    name: "SPDX-license-identifier-BSD-2-Clause-FreeBSD",
229    conditions: ["notice"],
230    url: "https://spdx.org/licenses/BSD-2-Clause-FreeBSD.html",
231}
232
233license_kind {
234    name: "SPDX-license-identifier-BSD-2-Clause-NetBSD",
235    conditions: ["notice"],
236    url: "https://spdx.org/licenses/BSD-2-Clause-NetBSD.html",
237}
238
239license_kind {
240    name: "SPDX-license-identifier-BSD-2-Clause-Patent",
241    conditions: ["notice"],
242    url: "https://spdx.org/licenses/BSD-2-Clause-Patent.html",
243}
244
245license_kind {
246    name: "SPDX-license-identifier-BSD-3-Clause",
247    conditions: ["notice"],
248    url: "https://spdx.org/licenses/BSD-3-Clause.html",
249}
250
251license_kind {
252    name: "SPDX-license-identifier-BSD-3-Clause-Attribution",
253    conditions: ["notice"],
254    url: "https://spdx.org/licenses/BSD-3-Clause-Attribution.html",
255}
256
257license_kind {
258    name: "SPDX-license-identifier-BSD-3-Clause-Clear",
259    conditions: ["notice"],
260    url: "https://spdx.org/licenses/BSD-3-Clause-Clear.html",
261}
262
263license_kind {
264    name: "SPDX-license-identifier-BSD-3-Clause-LBNL",
265    conditions: ["notice"],
266    url: "https://spdx.org/licenses/BSD-3-Clause-LBNL.html",
267}
268
269license_kind {
270    name: "SPDX-license-identifier-BSD-3-Clause-No-Nuclear-License",
271    conditions: ["notice"],
272    url: "https://spdx.org/licenses/BSD-3-Clause-No-Nuclear-License.html",
273}
274
275license_kind {
276    name: "SPDX-license-identifier-BSD-3-Clause-No-Nuclear-License-2014",
277    conditions: ["notice"],
278    url: "https://spdx.org/licenses/BSD-3-Clause-No-Nuclear-License-2014.html",
279}
280
281license_kind {
282    name: "SPDX-license-identifier-BSD-3-Clause-No-Nuclear-Warranty",
283    conditions: ["notice"],
284    url: "https://spdx.org/licenses/BSD-3-Clause-No-Nuclear-Warranty.html",
285}
286
287license_kind {
288    name: "SPDX-license-identifier-BSD-3-Clause-Open-MPI",
289    conditions: ["notice"],
290    url: "https://spdx.org/licenses/BSD-3-Clause-Open-MPI.html",
291}
292
293license_kind {
294    name: "SPDX-license-identifier-BSD-4-Clause",
295    conditions: ["notice"],
296    url: "https://spdx.org/licenses/BSD-4-Clause.html",
297}
298
299license_kind {
300    name: "SPDX-license-identifier-BSD-4-Clause-UC",
301    conditions: ["notice"],
302    url: "https://spdx.org/licenses/BSD-4-Clause-UC.html",
303}
304
305license_kind {
306    name: "SPDX-license-identifier-BSD-Protection",
307    conditions: ["notice"],
308    url: "https://spdx.org/licenses/BSD-Protection.html",
309}
310
311license_kind {
312    name: "SPDX-license-identifier-BSD-Source-Code",
313    conditions: ["notice"],
314    url: "https://spdx.org/licenses/BSD-Source-Code.html",
315}
316
317license_kind {
318    name: "SPDX-license-identifier-BSL-1.0",
319    conditions: ["notice"],
320    url: "https://spdx.org/licenses/BSL-1.0.html",
321}
322
323license_kind {
324    name: "SPDX-license-identifier-Beerware",
325    conditions: ["notice"],
326    url: "https://spdx.org/licenses/Beerware.html",
327}
328
329license_kind {
330    name: "SPDX-license-identifier-CC-BY",
331    conditions: ["notice"],
332}
333
334license_kind {
335    name: "SPDX-license-identifier-CC-BY-1.0",
336    conditions: ["notice"],
337    url: "https://spdx.org/licenses/CC-BY-1.0.html",
338}
339
340license_kind {
341    name: "SPDX-license-identifier-CC-BY-2.0",
342    conditions: ["notice"],
343    url: "https://spdx.org/licenses/CC-BY-2.0.html",
344}
345
346license_kind {
347    name: "SPDX-license-identifier-CC-BY-2.5",
348    conditions: ["notice"],
349    url: "https://spdx.org/licenses/CC-BY-2.5.html",
350}
351
352license_kind {
353    name: "SPDX-license-identifier-CC-BY-3.0",
354    conditions: ["notice"],
355    url: "https://spdx.org/licenses/CC-BY-3.0.html",
356}
357
358license_kind {
359    name: "SPDX-license-identifier-CC-BY-4.0",
360    conditions: ["notice"],
361    url: "https://spdx.org/licenses/CC-BY-4.0.html",
362}
363
364license_kind {
365    name: "SPDX-license-identifier-CC-BY-NC",
366    conditions: [
367        "by_exception_only",
368        "not_allowed",
369    ],
370}
371
372license_kind {
373    name: "SPDX-license-identifier-CC-BY-NC-1.0",
374    conditions: [
375        "by_exception_only",
376        "not_allowed",
377    ],
378    url: "https://spdx.org/licenses/CC-BY-NC-1.0.html",
379}
380
381license_kind {
382    name: "SPDX-license-identifier-CC-BY-NC-2.0",
383    conditions: [
384        "by_exception_only",
385        "not_allowed",
386    ],
387    url: "https://spdx.org/licenses/CC-BY-NC-2.0.html",
388}
389
390license_kind {
391    name: "SPDX-license-identifier-CC-BY-NC-2.5",
392    conditions: [
393        "by_exception_only",
394        "not_allowed",
395    ],
396    url: "https://spdx.org/licenses/CC-BY-NC-2.5.html",
397}
398
399license_kind {
400    name: "SPDX-license-identifier-CC-BY-NC-3.0",
401    conditions: [
402        "by_exception_only",
403        "not_allowed",
404    ],
405    url: "https://spdx.org/licenses/CC-BY-NC-3.0.html",
406}
407
408license_kind {
409    name: "SPDX-license-identifier-CC-BY-NC-4.0",
410    conditions: [
411        "by_exception_only",
412        "not_allowed",
413    ],
414    url: "https://spdx.org/licenses/CC-BY-NC-4.0.html",
415}
416
417license_kind {
418    name: "SPDX-license-identifier-CC-BY-NC-ND-1.0",
419    conditions: [
420        "by_exception_only",
421        "not_allowed",
422    ],
423    url: "https://spdx.org/licenses/CC-BY-NC-ND-1.0.html",
424}
425
426license_kind {
427    name: "SPDX-license-identifier-CC-BY-NC-ND-2.0",
428    conditions: [
429        "by_exception_only",
430        "not_allowed",
431    ],
432    url: "https://spdx.org/licenses/CC-BY-NC-ND-2.0.html",
433}
434
435license_kind {
436    name: "SPDX-license-identifier-CC-BY-NC-ND-2.5",
437    conditions: [
438        "by_exception_only",
439        "not_allowed",
440    ],
441    url: "https://spdx.org/licenses/CC-BY-NC-ND-2.5.html",
442}
443
444license_kind {
445    name: "SPDX-license-identifier-CC-BY-NC-ND-3.0",
446    conditions: [
447        "by_exception_only",
448        "not_allowed",
449    ],
450    url: "https://spdx.org/licenses/CC-BY-NC-ND-3.0.html",
451}
452
453license_kind {
454    name: "SPDX-license-identifier-CC-BY-NC-ND-4.0",
455    conditions: [
456        "by_exception_only",
457        "not_allowed",
458    ],
459    url: "https://spdx.org/licenses/CC-BY-NC-ND-4.0.html",
460}
461
462license_kind {
463    name: "SPDX-license-identifier-CC-BY-NC-SA-1.0",
464    conditions: [
465        "by_exception_only",
466        "not_allowed",
467    ],
468    url: "https://spdx.org/licenses/CC-BY-NC-SA-1.0.html",
469}
470
471license_kind {
472    name: "SPDX-license-identifier-CC-BY-NC-SA-2.0",
473    conditions: [
474        "by_exception_only",
475        "not_allowed",
476    ],
477    url: "https://spdx.org/licenses/CC-BY-NC-SA-2.0.html",
478}
479
480license_kind {
481    name: "SPDX-license-identifier-CC-BY-NC-SA-2.5",
482    conditions: [
483        "by_exception_only",
484        "not_allowed",
485    ],
486    url: "https://spdx.org/licenses/CC-BY-NC-SA-2.5.html",
487}
488
489license_kind {
490    name: "SPDX-license-identifier-CC-BY-NC-SA-3.0",
491    conditions: [
492        "by_exception_only",
493        "not_allowed",
494    ],
495    url: "https://spdx.org/licenses/CC-BY-NC-SA-3.0.html",
496}
497
498license_kind {
499    name: "SPDX-license-identifier-CC-BY-NC-SA-4.0",
500    conditions: [
501        "by_exception_only",
502        "not_allowed",
503    ],
504    url: "https://spdx.org/licenses/CC-BY-NC-SA-4.0.html",
505}
506
507license_kind {
508    name: "SPDX-license-identifier-CC-BY-ND",
509    conditions: ["by_exception_only"],
510}
511
512license_kind {
513    name: "SPDX-license-identifier-CC-BY-ND-1.0",
514    conditions: ["by_exception_only"],
515    url: "https://spdx.org/licenses/CC-BY-ND-1.0.html",
516}
517
518license_kind {
519    name: "SPDX-license-identifier-CC-BY-ND-2.0",
520    conditions: ["by_exception_only"],
521    url: "https://spdx.org/licenses/CC-BY-ND-2.0.html",
522}
523
524license_kind {
525    name: "SPDX-license-identifier-CC-BY-ND-2.5",
526    conditions: ["by_exception_only"],
527    url: "https://spdx.org/licenses/CC-BY-ND-2.5.html",
528}
529
530license_kind {
531    name: "SPDX-license-identifier-CC-BY-ND-3.0",
532    conditions: ["by_exception_only"],
533    url: "https://spdx.org/licenses/CC-BY-ND-3.0.html",
534}
535
536license_kind {
537    name: "SPDX-license-identifier-CC-BY-ND-4.0",
538    conditions: ["by_exception_only"],
539    url: "https://spdx.org/licenses/CC-BY-ND-4.0.html",
540}
541
542license_kind {
543    name: "SPDX-license-identifier-CC-BY-SA",
544    conditions: ["restricted"],
545}
546
547license_kind {
548    name: "SPDX-license-identifier-CC-BY-SA-1.0",
549    conditions: ["restricted"],
550    url: "https://spdx.org/licenses/CC-BY-SA-1.0.html",
551}
552
553license_kind {
554    name: "SPDX-license-identifier-CC-BY-SA-2.0",
555    conditions: ["restricted"],
556    url: "https://spdx.org/licenses/CC-BY-SA-2.0.html",
557}
558
559license_kind {
560    name: "SPDX-license-identifier-CC-BY-SA-2.5",
561    conditions: ["restricted"],
562    url: "https://spdx.org/licenses/CC-BY-SA-2.5.html",
563}
564
565license_kind {
566    name: "SPDX-license-identifier-CC-BY-SA-3.0",
567    conditions: ["restricted"],
568    url: "https://spdx.org/licenses/CC-BY-SA-3.0.html",
569}
570
571license_kind {
572    name: "SPDX-license-identifier-CC-BY-SA-4.0",
573    conditions: ["restricted"],
574    url: "https://spdx.org/licenses/CC-BY-SA-4.0.html",
575}
576
577license_kind {
578    name: "SPDX-license-identifier-CC-BY-SA-ND",
579    conditions: [
580        "restricted",
581        "by_exception_only",
582    ],
583}
584
585license_kind {
586    name: "SPDX-license-identifier-CC0-1.0",
587    conditions: ["unencumbered"],
588    url: "https://spdx.org/licenses/CC0-1.0.html",
589}
590
591license_kind {
592    name: "SPDX-license-identifier-CDDL",
593    conditions: ["reciprocal"],
594}
595
596license_kind {
597    name: "SPDX-license-identifier-CDDL-1.0",
598    conditions: ["reciprocal"],
599    url: "https://spdx.org/licenses/CDLL-1.0.html",
600}
601
602license_kind {
603    name: "SPDX-license-identifier-CDDL-1.1",
604    conditions: ["reciprocal"],
605    url: "https://spdx.org/licenses/CDLL-1.1.html",
606}
607
608license_kind {
609    name: "SPDX-license-identifier-CPAL-1.0",
610    conditions: [
611        "by_exception_only",
612        "not_allowed",
613    ],
614    url: "https://spdx.org/licenses/CPAL-1.0.html",
615}
616
617license_kind {
618    name: "SPDX-license-identifier-CPL-1.0",
619    conditions: ["reciprocal"],
620    url: "https://spdx.org/licenses/CPL-1.0.html",
621}
622
623license_kind {
624    name: "SPDX-license-identifier-EPL",
625    conditions: ["reciprocal"],
626}
627
628license_kind {
629    name: "SPDX-license-identifier-EPL-1.0",
630    conditions: ["reciprocal"],
631    url: "https://spdx.org/licenses/EPL-1.0.html",
632}
633
634license_kind {
635    name: "SPDX-license-identifier-EPL-2.0",
636    conditions: ["reciprocal"],
637    url: "https://spdx.org/licenses/EPL-2.0.html",
638}
639
640license_kind {
641    name: "SPDX-license-identifier-EUPL",
642    conditions: [
643        "by_exception_only",
644        "not_allowed",
645    ],
646}
647
648license_kind {
649    name: "SPDX-license-identifier-EUPL-1.0",
650    conditions: [
651        "by_exception_only",
652        "not_allowed",
653    ],
654    url: "https://spdx.org/licenses/EUPL-1.0.html",
655}
656
657license_kind {
658    name: "SPDX-license-identifier-EUPL-1.1",
659    conditions: [
660        "by_exception_only",
661        "not_allowed",
662    ],
663    url: "https://spdx.org/licenses/EUPL-1.0.html",
664}
665
666license_kind {
667    name: "SPDX-license-identifier-EUPL-1.2",
668    conditions: [
669        "by_exception_only",
670        "not_allowed",
671    ],
672    url: "https://spdx.org/licenses/EUPL-1.0.html",
673}
674
675license_kind {
676    name: "SPDX-license-identifier-FSFAP",
677    conditions: ["notice"],
678    url: "https://spdx.org/licenses/FSFAP",
679}
680
681license_kind {
682    name: "SPDX-license-identifier-FTL",
683    conditions: ["notice"],
684    url: "https://spdx.org/licenses/FTL.html",
685}
686
687license_kind {
688    name: "SPDX-license-identifier-GFDL",
689    conditions: ["by_exception_only"],
690}
691
692license_kind {
693    name: "SPDX-license-identifier-GPL",
694    conditions: ["restricted"],
695}
696
697license_kind {
698    name: "SPDX-license-identifier-GPL-1.0",
699    conditions: ["restricted"],
700    url: "https://spdx.org/licenses/GPL-1.0.html",
701}
702
703license_kind {
704    name: "SPDX-license-identifier-GPL-1.0+",
705    conditions: ["restricted"],
706    url: "https://spdx.org/licenses/GPL-1.0+.html",
707}
708
709license_kind {
710    name: "SPDX-license-identifier-GPL-1.0-only",
711    conditions: ["restricted"],
712    url: "https://spdx.org/licenses/GPL-1.0-only.html",
713}
714
715license_kind {
716    name: "SPDX-license-identifier-GPL-1.0-or-later",
717    conditions: ["restricted"],
718    url: "https://spdx.org/licenses/GPL-1.0-or-later.html",
719}
720
721license_kind {
722    name: "SPDX-license-identifier-GPL-2.0",
723    conditions: ["restricted"],
724    url: "https://spdx.org/licenses/GPL-2.0.html",
725}
726
727license_kind {
728    name: "SPDX-license-identifier-GPL-2.0+",
729    conditions: ["restricted"],
730    url: "https://spdx.org/licenses/GPL-2.0+.html",
731}
732
733license_kind {
734    name: "SPDX-license-identifier-GPL-2.0-only",
735    conditions: ["restricted"],
736    url: "https://spdx.org/licenses/GPL-2.0-only.html",
737}
738
739license_kind {
740    name: "SPDX-license-identifier-GPL-2.0-or-later",
741    conditions: ["restricted"],
742    url: "https://spdx.org/licenses/GPL-2.0-or-later.html",
743}
744
745license_kind {
746    name: "SPDX-license-identifier-GPL-2.0-with-GCC-exception",
747    conditions: ["restricted"],
748    url: "https://spdx.org/licenses/GPL-2.0-with-GCC-exception.html",
749}
750
751license_kind {
752    name: "SPDX-license-identifier-GPL-2.0-with-autoconf-exception",
753    conditions: ["restricted"],
754    url: "https://spdx.org/licenses/GPL-2.0-with-autoconf-exception.html",
755}
756
757license_kind {
758    name: "SPDX-license-identifier-GPL-2.0-with-bison-exception",
759    conditions: ["restricted"],
760    url: "https://spdx.org/licenses/GPL-2.0-with-bison-exception.html",
761}
762
763license_kind {
764    name: "SPDX-license-identifier-GPL-2.0-with-classpath-exception",
765    conditions: ["permissive"],
766    url: "https://spdx.org/licenses/GPL-2.0-with-classpath-exception.html",
767}
768
769license_kind {
770    name: "SPDX-license-identifier-GPL-2.0-with-font-exception",
771    conditions: ["restricted"],
772    url: "https://spdx.org/licenses/GPL-2.0-with-font-exception.html",
773}
774
775license_kind {
776    name: "SPDX-license-identifier-GPL-3.0",
777    conditions: ["restricted"],
778    url: "https://spdx.org/licenses/GPL-3.0.html",
779}
780
781license_kind {
782    name: "SPDX-license-identifier-GPL-3.0+",
783    conditions: ["restricted"],
784    url: "https://spdx.org/licenses/GPL-3.0+.html",
785}
786
787license_kind {
788    name: "SPDX-license-identifier-GPL-3.0-only",
789    conditions: ["restricted"],
790    url: "https://spdx.org/licenses/GPL-3.0-only.html",
791}
792
793license_kind {
794    name: "SPDX-license-identifier-GPL-3.0-or-later",
795    conditions: ["restricted"],
796    url: "https://spdx.org/licenses/GPL-3.0-or-later.html",
797}
798
799license_kind {
800    name: "SPDX-license-identifier-GPL-3.0-with-GCC-exception",
801    conditions: ["restricted"],
802    url: "https://spdx.org/licenses/GPL-3.0-with-GCC-exception.html",
803}
804
805license_kind {
806    name: "SPDX-license-identifier-GPL-3.0-with-autoconf-exception",
807    conditions: ["restricted"],
808    url: "https://spdx.org/licenses/GPL-3.0-with-autoconf-exception.html",
809}
810
811license_kind {
812    name: "SPDX-license-identifier-GPL-with-classpath-exception",
813    conditions: ["permissive"],
814}
815
816license_kind {
817    name: "SPDX-license-identifier-HPND",
818    conditions: ["notice"],
819    url: "https://spdx.org/licenses/HPND.html",
820}
821
822license_kind {
823    name: "SPDX-license-identifier-ICU",
824    conditions: ["notice"],
825    url: "https://spdx.org/licenses/ICU.html",
826}
827
828license_kind {
829    name: "SPDX-license-identifier-ISC",
830    conditions: ["notice"],
831    url: "https://spdx.org/licenses/ISC.html",
832}
833
834license_kind {
835    name: "SPDX-license-identifier-JSON",
836    conditions: ["notice"],
837    url: "https://spdx.org/licenses/JSON.html",
838}
839
840license_kind {
841    name: "SPDX-license-identifier-LGPL",
842    conditions: ["restricted_if_statically_linked"],
843}
844
845license_kind {
846    name: "SPDX-license-identifier-LGPL-2.0",
847    conditions: ["restricted_if_statically_linked"],
848    url: "https://spdx.org/licenses/LGPL-2.0.html",
849}
850
851license_kind {
852    name: "SPDX-license-identifier-LGPL-2.0+",
853    conditions: ["restricted_if_statically_linked"],
854    url: "https://spdx.org/licenses/LGPL-2.0+.html",
855}
856
857license_kind {
858    name: "SPDX-license-identifier-LGPL-2.0-only",
859    conditions: ["restricted_if_statically_linked"],
860    url: "https://spdx.org/licenses/LGPL-2.0-only.html",
861}
862
863license_kind {
864    name: "SPDX-license-identifier-LGPL-2.0-or-later",
865    conditions: ["restricted_if_statically_linked"],
866    url: "https://spdx.org/licenses/LGPL-2.0-or-later.html",
867}
868
869license_kind {
870    name: "SPDX-license-identifier-LGPL-2.1",
871    conditions: ["restricted_if_statically_linked"],
872    url: "https://spdx.org/licenses/LGPL-2.1.html",
873}
874
875license_kind {
876    name: "SPDX-license-identifier-LGPL-2.1+",
877    conditions: ["restricted_if_statically_linked"],
878    url: "https://spdx.org/licenses/LGPL-2.1+.html",
879}
880
881license_kind {
882    name: "SPDX-license-identifier-LGPL-2.1-only",
883    conditions: ["restricted_if_statically_linked"],
884    url: "https://spdx.org/licenses/LGPL-2.1-only.html",
885}
886
887license_kind {
888    name: "SPDX-license-identifier-LGPL-2.1-or-later",
889    conditions: ["restricted_if_statically_linked"],
890    url: "https://spdx.org/licenses/LGPL-2.1-or-later.html",
891}
892
893license_kind {
894    name: "SPDX-license-identifier-LGPL-3.0",
895    conditions: ["restricted_if_statically_linked"],
896    url: "https://spdx.org/licenses/LGPL-3.0.html",
897}
898
899license_kind {
900    name: "SPDX-license-identifier-LGPL-3.0+",
901    conditions: ["restricted_if_statically_linked"],
902    url: "https://spdx.org/licenses/LGPL-3.0+.html",
903}
904
905license_kind {
906    name: "SPDX-license-identifier-LGPL-3.0-only",
907    conditions: ["restricted_if_statically_linked"],
908    url: "https://spdx.org/licenses/LGPL-3.0-only.html",
909}
910
911license_kind {
912    name: "SPDX-license-identifier-LGPL-3.0-or-later",
913    conditions: ["restricted_if_statically_linked"],
914    url: "https://spdx.org/licenses/LGPL-3.0-or-later.html",
915}
916
917license_kind {
918    name: "SPDX-license-identifier-LGPLLR",
919    conditions: ["restricted_if_statically_linked"],
920    url: "https://spdx.org/licenses/LGPLLR.html",
921}
922
923license_kind {
924    name: "SPDX-license-identifier-Linux-syscall-note",
925    // expanding visibility requires approval from an OSPO lawyer or pcounsel
926    visibility: [
927        "//external/libbpf:__subpackages__",
928        "//prebuilts/vsdk:__subpackages__",
929    ],
930    conditions: ["permissive"],
931    url: "https://spdx.org/licenses/Linux-syscall-note.html",
932}
933
934license_kind {
935    name: "SPDX-license-identifier-LPL-1.02",
936    conditions: ["notice"],
937    url: "https://spdx.org/licenses/LPL-1.02.html",
938}
939
940license_kind {
941    name: "SPDX-license-identifier-MIT",
942    conditions: ["notice"],
943}
944
945license_kind {
946    name: "SPDX-license-identifier-MIT-0",
947    conditions: ["permissive"],
948    url: "https://spdx.org/licenses/MIT-0.html",
949}
950
951license_kind {
952    name: "SPDX-license-identifier-MIT-CMU",
953    conditions: ["notice"],
954    url: "https://spdx.org/licenses/MIT-CMU.html",
955}
956
957license_kind {
958    name: "SPDX-license-identifier-MIT-advertising",
959    conditions: ["notice"],
960    url: "https://spdx.org/licenses/MIT-advertising.html",
961}
962
963license_kind {
964    name: "SPDX-license-identifier-MIT-enna",
965    conditions: ["notice"],
966    url: "https://spdx.org/licenses/MIT-enna.html",
967}
968
969license_kind {
970    name: "SPDX-license-identifier-MIT-feh",
971    conditions: ["notice"],
972    url: "https://spdx.org/licenses/MIT-feh.html",
973}
974
975license_kind {
976    name: "SPDX-license-identifier-MITNFA",
977    conditions: ["notice"],
978    url: "https://spdx.org/licenses/MITNFA.html",
979}
980
981license_kind {
982    name: "SPDX-license-identifier-MPL",
983    conditions: ["reciprocal"],
984}
985
986license_kind {
987    name: "SPDX-license-identifier-MPL-1.0",
988    conditions: ["reciprocal"],
989    url: "https://spdx.org/licenses/MPL-1.0.html",
990}
991
992license_kind {
993    name: "SPDX-license-identifier-MPL-1.1",
994    conditions: ["reciprocal"],
995    url: "https://spdx.org/licenses/MPL-1.1.html",
996}
997
998license_kind {
999    name: "SPDX-license-identifier-MPL-2.0",
1000    conditions: ["reciprocal"],
1001    url: "https://spdx.org/licenses/MPL-2.0.html",
1002}
1003
1004license_kind {
1005    name: "SPDX-license-identifier-MPL-2.0-no-copyleft-exception",
1006    conditions: ["reciprocal"],
1007    url: "https://spdx.org/licenses/MPL-2.0-no-copyleft-exception.html",
1008}
1009
1010license_kind {
1011    name: "SPDX-license-identifier-MS-PL",
1012    conditions: ["notice"],
1013    url: "https://spdx.org/licenses/MS-PL.html",
1014}
1015
1016license_kind {
1017    name: "SPDX-license-identifier-MS-RL",
1018    conditions: ["by_exception_only"],
1019    url: "https://spdx.org/licenses/MS-RL.html",
1020}
1021
1022license_kind {
1023    name: "SPDX-license-identifier-NCSA",
1024    conditions: ["notice"],
1025    url: "https://spdx.org/licenses/NCSA.html",
1026}
1027
1028license_kind {
1029    name: "SPDX-license-identifier-OFL",
1030    conditions: ["notice"],
1031}
1032
1033license_kind {
1034    name: "SPDX-license-identifier-OFL-1.0",
1035    conditions: ["notice"],
1036    url: "https://spdx.org/licenses/OFL-1.0.html",
1037}
1038
1039license_kind {
1040    name: "SPDX-license-identifier-OFL-1.0-RFN",
1041    conditions: ["notice"],
1042    url: "https://spdx.org/licenses/OFL-1.0-RFN.html",
1043}
1044
1045license_kind {
1046    name: "SPDX-license-identifier-OFL-1.0-no-RFN",
1047    conditions: ["notice"],
1048    url: "https://spdx.org/licenses/OFL-1.0-no-RFN.html",
1049}
1050
1051license_kind {
1052    name: "SPDX-license-identifier-OFL-1.1",
1053    conditions: ["notice"],
1054    url: "https://spdx.org/licenses/OFL-1.1.html",
1055}
1056
1057license_kind {
1058    name: "SPDX-license-identifier-OFL-1.1-RFN",
1059    conditions: ["notice"],
1060    url: "https://spdx.org/licenses/OFL-1.1-RFN.html",
1061}
1062
1063license_kind {
1064    name: "SPDX-license-identifier-OFL-1.1-no-RFN",
1065    conditions: ["notice"],
1066    url: "https://spdx.org/licenses/OFL-1.1-no-RFN.html",
1067}
1068
1069license_kind {
1070    name: "SPDX-license-identifier-OpenSSL",
1071    conditions: ["notice"],
1072    url: "https://spdx.org/licenses/OpenSSL.html",
1073}
1074
1075license_kind {
1076    name: "SPDX-license-identifier-PSF-2.0",
1077    conditions: ["notice"],
1078    url: "https://spdx.org/licenses/PSF-2.0.html",
1079}
1080
1081license_kind {
1082    name: "SPDX-license-identifier-SISSL",
1083    conditions: [
1084        "by_exception_only",
1085        "not_allowed",
1086    ],
1087    url: "https://spdx.org/licenses/SISSL.html",
1088}
1089
1090license_kind {
1091    name: "SPDX-license-identifier-SISSL-1.2",
1092    conditions: [
1093        "by_exception_only",
1094        "not_allowed",
1095    ],
1096    url: "https://spdx.org/licenses/SISSL-1.2.html",
1097}
1098
1099license_kind {
1100    name: "SPDX-license-identifier-SPL-1.0",
1101    conditions: [
1102        "by_exception_only",
1103        "reciprocal",
1104    ],
1105    url: "https://spdx.org/licenses/SPL-1.0.html",
1106}
1107
1108license_kind {
1109    name: "SPDX-license-identifier-SSPL",
1110    conditions: [
1111        "by_exception_only",
1112        "not_allowed",
1113    ],
1114    url: "https://spdx.org/licenses/SSPL.html",
1115}
1116
1117license_kind {
1118    name: "SPDX-license-identifier-UPL-1.0",
1119    conditions: ["notice"],
1120    url: "https://spdx.org/licenses/UPL-1.-.html",
1121}
1122
1123license_kind {
1124    name: "SPDX-license-identifier-Unicode-DFS",
1125    conditions: ["notice"],
1126}
1127
1128license_kind {
1129    name: "SPDX-license-identifier-Unicode-3.0",
1130    conditions: ["notice"],
1131    url: "https://spdx.org/licenses/Unicode-3.0.html",
1132}
1133
1134license_kind {
1135    name: "SPDX-license-identifier-Unicode-DFS-2015",
1136    conditions: ["notice"],
1137    url: "https://spdx.org/licenses/Unicode-DFS-2015.html",
1138}
1139
1140license_kind {
1141    name: "SPDX-license-identifier-Unicode-DFS-2016",
1142    conditions: ["notice"],
1143    url: "https://spdx.org/licenses/Unicode-DFS-2016.html",
1144}
1145
1146license_kind {
1147    name: "SPDX-license-identifier-Unlicense",
1148    conditions: ["unencumbered"],
1149    url: "https://spdx.org/licenses/Unlicense.html",
1150}
1151
1152license_kind {
1153    name: "SPDX-license-identifier-W3C",
1154    conditions: ["notice"],
1155    url: "https://spdx.org/licenses/W3C.html",
1156}
1157
1158license_kind {
1159    name: "SPDX-license-identifier-W3C-19980720",
1160    conditions: ["notice"],
1161    url: "https://spdx.org/licenses/W3C-19980720.html",
1162}
1163
1164license_kind {
1165    name: "SPDX-license-identifier-W3C-20150513",
1166    conditions: ["notice"],
1167    url: "https://spdx.org/licenses/W3C-20150513.html",
1168}
1169
1170license_kind {
1171    name: "SPDX-license-identifier-WTFPL",
1172    conditions: ["permissive"],
1173    url: "https://spdx.org/licenses/WTFPL.html",
1174}
1175
1176license_kind {
1177    name: "SPDX-license-identifier-Watcom-1.0",
1178    conditions: [
1179        "by_exception_only",
1180        "not_allowed",
1181    ],
1182    url: "https://spdx.org/licenses/Watcom-1.0.html",
1183}
1184
1185license_kind {
1186    name: "SPDX-license-identifier-Xnet",
1187    conditions: ["notice"],
1188    url: "https://spdx.org/licenses/Xnet.html",
1189}
1190
1191license_kind {
1192    name: "SPDX-license-identifier-ZPL",
1193    conditions: ["notice"],
1194}
1195
1196license_kind {
1197    name: "SPDX-license-identifier-ZPL-1.1",
1198    conditions: ["notice"],
1199    url: "https://spdx.org/licenses/ZPL-1.1.html",
1200}
1201
1202license_kind {
1203    name: "SPDX-license-identifier-ZPL-2.0",
1204    conditions: ["notice"],
1205    url: "https://spdx.org/licenses/ZPL-2.0.html",
1206}
1207
1208license_kind {
1209    name: "SPDX-license-identifier-ZPL-2.1",
1210    conditions: ["notice"],
1211    url: "https://spdx.org/licenses/ZPL-2.1.html",
1212}
1213
1214license_kind {
1215    name: "SPDX-license-identifier-Zend-2.0",
1216    conditions: ["notice"],
1217    url: "https://spdx.org/licenses/Zend-2.0.html",
1218}
1219
1220license_kind {
1221    name: "SPDX-license-identifier-Zlib",
1222    conditions: ["notice"],
1223    url: "https://spdx.org/licenses/Zlib.html",
1224}
1225
1226license_kind {
1227    name: "SPDX-license-identifier-libtiff",
1228    conditions: ["notice"],
1229    url: "https://spdx.org/licenses/libtiff.html",
1230}
1231
1232// Legacy license kinds -- do not add new references -- use an spdx kind instead.
1233license_kind {
1234    name: "legacy_unknown",
1235    conditions: ["by_exception_only"],
1236}
1237
1238license_kind {
1239    name: "legacy_unencumbered",
1240    conditions: ["unencumbered"],
1241}
1242
1243license_kind {
1244    name: "legacy_permissive",
1245    conditions: ["permissive"],
1246}
1247
1248license_kind {
1249    name: "legacy_notice",
1250    conditions: ["notice"],
1251}
1252
1253license_kind {
1254    name: "legacy_reciprocal",
1255    conditions: ["reciprocal"],
1256}
1257
1258license_kind {
1259    name: "legacy_restricted",
1260    conditions: ["restricted"],
1261}
1262
1263license_kind {
1264    name: "legacy_by_exception_only",
1265    conditions: ["by_exception_only"],
1266}
1267
1268license_kind {
1269    name: "legacy_not_a_contribution",
1270    conditions: [
1271        "by_exception_only",
1272        "not_allowed",
1273    ],
1274}
1275
1276license_kind {
1277    name: "legacy_not_allowed",
1278    conditions: [
1279        "by_exception_only",
1280        "not_allowed",
1281    ],
1282}
1283
1284license_kind {
1285    name: "legacy_proprietary",
1286    conditions: [
1287        "by_exception_only",
1288        "not_allowed",
1289        "proprietary",
1290    ],
1291}
1292