18c2ecf20Sopenharmony_ciValid-License-Identifier: Apache-2.0 28c2ecf20Sopenharmony_ciSPDX-URL: https://spdx.org/licenses/Apache-2.0.html 38c2ecf20Sopenharmony_ciUsage-Guide: 48c2ecf20Sopenharmony_ci Do NOT use. The Apache-2.0 is not GPL2 compatible. It may only be used 58c2ecf20Sopenharmony_ci for dual-licensed files where the other license is GPL2 compatible. 68c2ecf20Sopenharmony_ci If you end up using this it MUST be used together with a GPL2 compatible 78c2ecf20Sopenharmony_ci license using "OR". 88c2ecf20Sopenharmony_ci To use the Apache License version 2.0 put the following SPDX tag/value 98c2ecf20Sopenharmony_ci pair into a comment according to the placement guidelines in the 108c2ecf20Sopenharmony_ci licensing rules documentation: 118c2ecf20Sopenharmony_ci SPDX-License-Identifier: Apache-2.0 128c2ecf20Sopenharmony_ciLicense-Text: 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciApache License 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciVersion 2.0, January 2004 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_cihttp://www.apache.org/licenses/ 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci1. Definitions. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci"License" shall mean the terms and conditions for use, reproduction, and 258c2ecf20Sopenharmony_cidistribution as defined by Sections 1 through 9 of this document. 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci"Licensor" shall mean the copyright owner or entity authorized by the 288c2ecf20Sopenharmony_cicopyright owner that is granting the License. 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci"Legal Entity" shall mean the union of the acting entity and all other 318c2ecf20Sopenharmony_cientities that control, are controlled by, or are under common control with 328c2ecf20Sopenharmony_cithat entity. For the purposes of this definition, "control" means (i) the 338c2ecf20Sopenharmony_cipower, direct or indirect, to cause the direction or management of such 348c2ecf20Sopenharmony_cientity, whether by contract or otherwise, or (ii) ownership of fifty 358c2ecf20Sopenharmony_cipercent (50%) or more of the outstanding shares, or (iii) beneficial 368c2ecf20Sopenharmony_ciownership of such entity. 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci"You" (or "Your") shall mean an individual or Legal Entity exercising 398c2ecf20Sopenharmony_cipermissions granted by this License. 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci"Source" form shall mean the preferred form for making modifications, 428c2ecf20Sopenharmony_ciincluding but not limited to software source code, documentation source, 438c2ecf20Sopenharmony_ciand configuration files. 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci"Object" form shall mean any form resulting from mechanical transformation 468c2ecf20Sopenharmony_cior translation of a Source form, including but not limited to compiled 478c2ecf20Sopenharmony_ciobject code, generated documentation, and conversions to other media types. 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci"Work" shall mean the work of authorship, whether in Source or Object form, 508c2ecf20Sopenharmony_cimade available under the License, as indicated by a copyright notice that 518c2ecf20Sopenharmony_ciis included in or attached to the work (an example is provided in the 528c2ecf20Sopenharmony_ciAppendix below). 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci"Derivative Works" shall mean any work, whether in Source or Object form, 558c2ecf20Sopenharmony_cithat is based on (or derived from) the Work and for which the editorial 568c2ecf20Sopenharmony_cirevisions, annotations, elaborations, or other modifications represent, as 578c2ecf20Sopenharmony_cia whole, an original work of authorship. For the purposes of this License, 588c2ecf20Sopenharmony_ciDerivative Works shall not include works that remain separable from, or 598c2ecf20Sopenharmony_cimerely link (or bind by name) to the interfaces of, the Work and Derivative 608c2ecf20Sopenharmony_ciWorks thereof. 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci"Contribution" shall mean any work of authorship, including the original 638c2ecf20Sopenharmony_civersion of the Work and any modifications or additions to that Work or 648c2ecf20Sopenharmony_ciDerivative Works thereof, that is intentionally submitted to Licensor for 658c2ecf20Sopenharmony_ciinclusion in the Work by the copyright owner or by an individual or Legal 668c2ecf20Sopenharmony_ciEntity authorized to submit on behalf of the copyright owner. For the 678c2ecf20Sopenharmony_cipurposes of this definition, "submitted" means any form of electronic, 688c2ecf20Sopenharmony_civerbal, or written communication sent to the Licensor or its 698c2ecf20Sopenharmony_cirepresentatives, including but not limited to communication on electronic 708c2ecf20Sopenharmony_cimailing lists, source code control systems, and issue tracking systems that 718c2ecf20Sopenharmony_ciare managed by, or on behalf of, the Licensor for the purpose of discussing 728c2ecf20Sopenharmony_ciand improving the Work, but excluding communication that is conspicuously 738c2ecf20Sopenharmony_cimarked or otherwise designated in writing by the copyright owner as "Not a 748c2ecf20Sopenharmony_ciContribution." 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci"Contributor" shall mean Licensor and any individual or Legal Entity on 778c2ecf20Sopenharmony_cibehalf of whom a Contribution has been received by Licensor and 788c2ecf20Sopenharmony_cisubsequently incorporated within the Work. 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ci2. Grant of Copyright License. Subject to the terms and conditions of this 818c2ecf20Sopenharmony_ci License, each Contributor hereby grants to You a perpetual, worldwide, 828c2ecf20Sopenharmony_ci non-exclusive, no-charge, royalty-free, irrevocable copyright license to 838c2ecf20Sopenharmony_ci reproduce, prepare Derivative Works of, publicly display, publicly 848c2ecf20Sopenharmony_ci perform, sublicense, and distribute the Work and such Derivative Works 858c2ecf20Sopenharmony_ci in Source or Object form. 868c2ecf20Sopenharmony_ci 878c2ecf20Sopenharmony_ci3. Grant of Patent License. Subject to the terms and conditions of this 888c2ecf20Sopenharmony_ci License, each Contributor hereby grants to You a perpetual, worldwide, 898c2ecf20Sopenharmony_ci non-exclusive, no-charge, royalty-free, irrevocable (except as stated in 908c2ecf20Sopenharmony_ci this section) patent license to make, have made, use, offer to sell, 918c2ecf20Sopenharmony_ci sell, import, and otherwise transfer the Work, where such license 928c2ecf20Sopenharmony_ci applies only to those patent claims licensable by such Contributor that 938c2ecf20Sopenharmony_ci are necessarily infringed by their Contribution(s) alone or by 948c2ecf20Sopenharmony_ci combination of their Contribution(s) with the Work to which such 958c2ecf20Sopenharmony_ci Contribution(s) was submitted. If You institute patent litigation 968c2ecf20Sopenharmony_ci against any entity (including a cross-claim or counterclaim in a 978c2ecf20Sopenharmony_ci lawsuit) alleging that the Work or a Contribution incorporated within 988c2ecf20Sopenharmony_ci the Work constitutes direct or contributory patent infringement, then 998c2ecf20Sopenharmony_ci any patent licenses granted to You under this License for that Work 1008c2ecf20Sopenharmony_ci shall terminate as of the date such litigation is filed. 1018c2ecf20Sopenharmony_ci 1028c2ecf20Sopenharmony_ci4. Redistribution. You may reproduce and distribute copies of the Work or 1038c2ecf20Sopenharmony_ci Derivative Works thereof in any medium, with or without modifications, 1048c2ecf20Sopenharmony_ci and in Source or Object form, provided that You meet the following 1058c2ecf20Sopenharmony_ci conditions: 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_ci a. You must give any other recipients of the Work or Derivative Works a 1088c2ecf20Sopenharmony_ci copy of this License; and 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_ci b. You must cause any modified files to carry prominent notices stating 1118c2ecf20Sopenharmony_ci that You changed the files; and 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_ci c. You must retain, in the Source form of any Derivative Works that You 1148c2ecf20Sopenharmony_ci distribute, all copyright, patent, trademark, and attribution notices 1158c2ecf20Sopenharmony_ci from the Source form of the Work, excluding those notices that do not 1168c2ecf20Sopenharmony_ci pertain to any part of the Derivative Works; and 1178c2ecf20Sopenharmony_ci 1188c2ecf20Sopenharmony_ci d. If the Work includes a "NOTICE" text file as part of its 1198c2ecf20Sopenharmony_ci distribution, then any Derivative Works that You distribute must 1208c2ecf20Sopenharmony_ci include a readable copy of the attribution notices contained within 1218c2ecf20Sopenharmony_ci such NOTICE file, excluding those notices that do not pertain to any 1228c2ecf20Sopenharmony_ci part of the Derivative Works, in at least one of the following 1238c2ecf20Sopenharmony_ci places: within a NOTICE text file distributed as part of the 1248c2ecf20Sopenharmony_ci Derivative Works; within the Source form or documentation, if 1258c2ecf20Sopenharmony_ci provided along with the Derivative Works; or, within a display 1268c2ecf20Sopenharmony_ci generated by the Derivative Works, if and wherever such third-party 1278c2ecf20Sopenharmony_ci notices normally appear. The contents of the NOTICE file are for 1288c2ecf20Sopenharmony_ci informational purposes only and do not modify the License. You may 1298c2ecf20Sopenharmony_ci add Your own attribution notices within Derivative Works that You 1308c2ecf20Sopenharmony_ci distribute, alongside or as an addendum to the NOTICE text from the 1318c2ecf20Sopenharmony_ci Work, provided that such additional attribution notices cannot be 1328c2ecf20Sopenharmony_ci construed as modifying the License. 1338c2ecf20Sopenharmony_ci 1348c2ecf20Sopenharmony_ci You may add Your own copyright statement to Your modifications and may 1358c2ecf20Sopenharmony_ci provide additional or different license terms and conditions for use, 1368c2ecf20Sopenharmony_ci reproduction, or distribution of Your modifications, or for any such 1378c2ecf20Sopenharmony_ci Derivative Works as a whole, provided Your use, reproduction, and 1388c2ecf20Sopenharmony_ci distribution of the Work otherwise complies with the conditions stated 1398c2ecf20Sopenharmony_ci in this License. 1408c2ecf20Sopenharmony_ci 1418c2ecf20Sopenharmony_ci5. Submission of Contributions. Unless You explicitly state otherwise, any 1428c2ecf20Sopenharmony_ci Contribution intentionally submitted for inclusion in the Work by You to 1438c2ecf20Sopenharmony_ci the Licensor shall be under the terms and conditions of this License, 1448c2ecf20Sopenharmony_ci without any additional terms or conditions. Notwithstanding the above, 1458c2ecf20Sopenharmony_ci nothing herein shall supersede or modify the terms of any separate 1468c2ecf20Sopenharmony_ci license agreement you may have executed with Licensor regarding such 1478c2ecf20Sopenharmony_ci Contributions. 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_ci6. Trademarks. This License does not grant permission to use the trade 1508c2ecf20Sopenharmony_ci names, trademarks, service marks, or product names of the Licensor, 1518c2ecf20Sopenharmony_ci except as required for reasonable and customary use in describing the 1528c2ecf20Sopenharmony_ci origin of the Work and reproducing the content of the NOTICE file. 1538c2ecf20Sopenharmony_ci 1548c2ecf20Sopenharmony_ci7. Disclaimer of Warranty. Unless required by applicable law or agreed to 1558c2ecf20Sopenharmony_ci in writing, Licensor provides the Work (and each Contributor provides 1568c2ecf20Sopenharmony_ci its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 1578c2ecf20Sopenharmony_ci OF ANY KIND, either express or implied, including, without limitation, 1588c2ecf20Sopenharmony_ci any warranties or conditions of TITLE, NON-INFRINGEMENT, 1598c2ecf20Sopenharmony_ci MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely 1608c2ecf20Sopenharmony_ci responsible for determining the appropriateness of using or 1618c2ecf20Sopenharmony_ci redistributing the Work and assume any risks associated with Your 1628c2ecf20Sopenharmony_ci exercise of permissions under this License. 1638c2ecf20Sopenharmony_ci 1648c2ecf20Sopenharmony_ci8. Limitation of Liability. In no event and under no legal theory, whether 1658c2ecf20Sopenharmony_ci in tort (including negligence), contract, or otherwise, unless required 1668c2ecf20Sopenharmony_ci by applicable law (such as deliberate and grossly negligent acts) or 1678c2ecf20Sopenharmony_ci agreed to in writing, shall any Contributor be liable to You for 1688c2ecf20Sopenharmony_ci damages, including any direct, indirect, special, incidental, or 1698c2ecf20Sopenharmony_ci consequential damages of any character arising as a result of this 1708c2ecf20Sopenharmony_ci License or out of the use or inability to use the Work (including but 1718c2ecf20Sopenharmony_ci not limited to damages for loss of goodwill, work stoppage, computer 1728c2ecf20Sopenharmony_ci failure or malfunction, or any and all other commercial damages or 1738c2ecf20Sopenharmony_ci losses), even if such Contributor has been advised of the possibility of 1748c2ecf20Sopenharmony_ci such damages. 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_ci9. Accepting Warranty or Additional Liability. While redistributing the 1778c2ecf20Sopenharmony_ci Work or Derivative Works thereof, You may choose to offer, and charge a 1788c2ecf20Sopenharmony_ci fee for, acceptance of support, warranty, indemnity, or other liability 1798c2ecf20Sopenharmony_ci obligations and/or rights consistent with this License. However, in 1808c2ecf20Sopenharmony_ci accepting such obligations, You may act only on Your own behalf and on 1818c2ecf20Sopenharmony_ci Your sole responsibility, not on behalf of any other Contributor, and 1828c2ecf20Sopenharmony_ci only if You agree to indemnify, defend, and hold each Contributor 1838c2ecf20Sopenharmony_ci harmless for any liability incurred by, or claims asserted against, such 1848c2ecf20Sopenharmony_ci Contributor by reason of your accepting any such warranty or additional 1858c2ecf20Sopenharmony_ci liability. 1868c2ecf20Sopenharmony_ci 1878c2ecf20Sopenharmony_ciEND OF TERMS AND CONDITIONS 188