xref: /aosp_15_r20/external/erofs-utils/LICENSES/Apache-2.0 (revision 33b1fccf6a0fada2c2875d400ed01119b7676ee5)
1Valid-License-Identifier: Apache-2.0
2SPDX-URL: https://spdx.org/licenses/Apache-2.0.html
3Usage-Guide:
4  The Apache-2.0 may only be used for dual-licensed files where the other
5  license is GPL2 compatible. If you end up using this it MUST be used
6  together with a GPL2 compatible license using "OR".
7  To use the Apache License version 2.0 put the following SPDX tag/value
8  pair into a comment according to the placement guidelines in the
9  licensing rules documentation:
10    SPDX-License-Identifier: Apache-2.0
11License-Text:
12
13Apache License
14
15Version 2.0, January 2004
16
17http://www.apache.org/licenses/
18
19TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
20
211. Definitions.
22
23"License" shall mean the terms and conditions for use, reproduction, and
24distribution as defined by Sections 1 through 9 of this document.
25
26"Licensor" shall mean the copyright owner or entity authorized by the
27copyright owner that is granting the License.
28
29"Legal Entity" shall mean the union of the acting entity and all other
30entities that control, are controlled by, or are under common control with
31that entity. For the purposes of this definition, "control" means (i) the
32power, direct or indirect, to cause the direction or management of such
33entity, whether by contract or otherwise, or (ii) ownership of fifty
34percent (50%) or more of the outstanding shares, or (iii) beneficial
35ownership of such entity.
36
37"You" (or "Your") shall mean an individual or Legal Entity exercising
38permissions granted by this License.
39
40"Source" form shall mean the preferred form for making modifications,
41including but not limited to software source code, documentation source,
42and configuration files.
43
44"Object" form shall mean any form resulting from mechanical transformation
45or translation of a Source form, including but not limited to compiled
46object code, generated documentation, and conversions to other media types.
47
48"Work" shall mean the work of authorship, whether in Source or Object form,
49made available under the License, as indicated by a copyright notice that
50is included in or attached to the work (an example is provided in the
51Appendix below).
52
53"Derivative Works" shall mean any work, whether in Source or Object form,
54that is based on (or derived from) the Work and for which the editorial
55revisions, annotations, elaborations, or other modifications represent, as
56a whole, an original work of authorship. For the purposes of this License,
57Derivative Works shall not include works that remain separable from, or
58merely link (or bind by name) to the interfaces of, the Work and Derivative
59Works thereof.
60
61"Contribution" shall mean any work of authorship, including the original
62version of the Work and any modifications or additions to that Work or
63Derivative Works thereof, that is intentionally submitted to Licensor for
64inclusion in the Work by the copyright owner or by an individual or Legal
65Entity authorized to submit on behalf of the copyright owner. For the
66purposes of this definition, "submitted" means any form of electronic,
67verbal, or written communication sent to the Licensor or its
68representatives, including but not limited to communication on electronic
69mailing lists, source code control systems, and issue tracking systems that
70are managed by, or on behalf of, the Licensor for the purpose of discussing
71and improving the Work, but excluding communication that is conspicuously
72marked or otherwise designated in writing by the copyright owner as "Not a
73Contribution."
74
75"Contributor" shall mean Licensor and any individual or Legal Entity on
76behalf of whom a Contribution has been received by Licensor and
77subsequently incorporated within the Work.
78
792. Grant of Copyright License. Subject to the terms and conditions of this
80   License, each Contributor hereby grants to You a perpetual, worldwide,
81   non-exclusive, no-charge, royalty-free, irrevocable copyright license to
82   reproduce, prepare Derivative Works of, publicly display, publicly
83   perform, sublicense, and distribute the Work and such Derivative Works
84   in Source or Object form.
85
863. Grant of Patent License. Subject to the terms and conditions of this
87   License, each Contributor hereby grants to You a perpetual, worldwide,
88   non-exclusive, no-charge, royalty-free, irrevocable (except as stated in
89   this section) patent license to make, have made, use, offer to sell,
90   sell, import, and otherwise transfer the Work, where such license
91   applies only to those patent claims licensable by such Contributor that
92   are necessarily infringed by their Contribution(s) alone or by
93   combination of their Contribution(s) with the Work to which such
94   Contribution(s) was submitted. If You institute patent litigation
95   against any entity (including a cross-claim or counterclaim in a
96   lawsuit) alleging that the Work or a Contribution incorporated within
97   the Work constitutes direct or contributory patent infringement, then
98   any patent licenses granted to You under this License for that Work
99   shall terminate as of the date such litigation is filed.
100
1014. Redistribution. You may reproduce and distribute copies of the Work or
102   Derivative Works thereof in any medium, with or without modifications,
103   and in Source or Object form, provided that You meet the following
104   conditions:
105
106   a. You must give any other recipients of the Work or Derivative Works a
107      copy of this License; and
108
109   b. You must cause any modified files to carry prominent notices stating
110      that You changed the files; and
111
112   c. You must retain, in the Source form of any Derivative Works that You
113      distribute, all copyright, patent, trademark, and attribution notices
114      from the Source form of the Work, excluding those notices that do not
115      pertain to any part of the Derivative Works; and
116
117   d. If the Work includes a "NOTICE" text file as part of its
118      distribution, then any Derivative Works that You distribute must
119      include a readable copy of the attribution notices contained within
120      such NOTICE file, excluding those notices that do not pertain to any
121      part of the Derivative Works, in at least one of the following
122      places: within a NOTICE text file distributed as part of the
123      Derivative Works; within the Source form or documentation, if
124      provided along with the Derivative Works; or, within a display
125      generated by the Derivative Works, if and wherever such third-party
126      notices normally appear. The contents of the NOTICE file are for
127      informational purposes only and do not modify the License. You may
128      add Your own attribution notices within Derivative Works that You
129      distribute, alongside or as an addendum to the NOTICE text from the
130      Work, provided that such additional attribution notices cannot be
131      construed as modifying the License.
132
133    You may add Your own copyright statement to Your modifications and may
134    provide additional or different license terms and conditions for use,
135    reproduction, or distribution of Your modifications, or for any such
136    Derivative Works as a whole, provided Your use, reproduction, and
137    distribution of the Work otherwise complies with the conditions stated
138    in this License.
139
1405. Submission of Contributions. Unless You explicitly state otherwise, any
141   Contribution intentionally submitted for inclusion in the Work by You to
142   the Licensor shall be under the terms and conditions of this License,
143   without any additional terms or conditions. Notwithstanding the above,
144   nothing herein shall supersede or modify the terms of any separate
145   license agreement you may have executed with Licensor regarding such
146   Contributions.
147
1486. Trademarks. This License does not grant permission to use the trade
149   names, trademarks, service marks, or product names of the Licensor,
150   except as required for reasonable and customary use in describing the
151   origin of the Work and reproducing the content of the NOTICE file.
152
1537. Disclaimer of Warranty. Unless required by applicable law or agreed to
154   in writing, Licensor provides the Work (and each Contributor provides
155   its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
156   OF ANY KIND, either express or implied, including, without limitation,
157   any warranties or conditions of TITLE, NON-INFRINGEMENT,
158   MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely
159   responsible for determining the appropriateness of using or
160   redistributing the Work and assume any risks associated with Your
161   exercise of permissions under this License.
162
1638. Limitation of Liability. In no event and under no legal theory, whether
164   in tort (including negligence), contract, or otherwise, unless required
165   by applicable law (such as deliberate and grossly negligent acts) or
166   agreed to in writing, shall any Contributor be liable to You for
167   damages, including any direct, indirect, special, incidental, or
168   consequential damages of any character arising as a result of this
169   License or out of the use or inability to use the Work (including but
170   not limited to damages for loss of goodwill, work stoppage, computer
171   failure or malfunction, or any and all other commercial damages or
172   losses), even if such Contributor has been advised of the possibility of
173   such damages.
174
1759. Accepting Warranty or Additional Liability. While redistributing the
176   Work or Derivative Works thereof, You may choose to offer, and charge a
177   fee for, acceptance of support, warranty, indemnity, or other liability
178   obligations and/or rights consistent with this License. However, in
179   accepting such obligations, You may act only on Your own behalf and on
180   Your sole responsibility, not on behalf of any other Contributor, and
181   only if You agree to indemnify, defend, and hold each Contributor
182   harmless for any liability incurred by, or claims asserted against, such
183   Contributor by reason of your accepting any such warranty or additional
184   liability.
185
186END OF TERMS AND CONDITIONS
187