1*f6dc9357SAndroid Build Coastguard Worker 7-Zip source code 2*f6dc9357SAndroid Build Coastguard Worker ~~~~~~~~~~~~~~~~~ 3*f6dc9357SAndroid Build Coastguard Worker License for use and distribution 4*f6dc9357SAndroid Build Coastguard Worker ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5*f6dc9357SAndroid Build Coastguard Worker 6*f6dc9357SAndroid Build Coastguard Worker 7-Zip Copyright (C) 1999-2024 Igor Pavlov. 7*f6dc9357SAndroid Build Coastguard Worker 8*f6dc9357SAndroid Build Coastguard Worker The licenses for files are: 9*f6dc9357SAndroid Build Coastguard Worker 10*f6dc9357SAndroid Build Coastguard Worker - CPP/7zip/Compress/Rar* files: the "GNU LGPL" with "unRAR license restriction" 11*f6dc9357SAndroid Build Coastguard Worker - CPP/7zip/Compress/LzfseDecoder.cpp: the "BSD 3-clause License" 12*f6dc9357SAndroid Build Coastguard Worker - C/ZstdDec.c: the "BSD 3-clause License" 13*f6dc9357SAndroid Build Coastguard Worker - C/Xxh64.c: the "BSD 2-clause License" 14*f6dc9357SAndroid Build Coastguard Worker - Some files are "public domain" files, if "public domain" status is stated in source file. 15*f6dc9357SAndroid Build Coastguard Worker - the "GNU LGPL" for all other files. If there is no license information in 16*f6dc9357SAndroid Build Coastguard Worker some source file, that file is under the "GNU LGPL". 17*f6dc9357SAndroid Build Coastguard Worker 18*f6dc9357SAndroid Build Coastguard Worker The "GNU LGPL" with "unRAR license restriction" means that you must follow both 19*f6dc9357SAndroid Build Coastguard Worker "GNU LGPL" rules and "unRAR license restriction" rules. 20*f6dc9357SAndroid Build Coastguard Worker 21*f6dc9357SAndroid Build Coastguard Worker 22*f6dc9357SAndroid Build Coastguard Worker 23*f6dc9357SAndroid Build Coastguard Worker 24*f6dc9357SAndroid Build Coastguard WorkerGNU LGPL information 25*f6dc9357SAndroid Build Coastguard Worker-------------------- 26*f6dc9357SAndroid Build Coastguard Worker 27*f6dc9357SAndroid Build Coastguard Worker This library is free software; you can redistribute it and/or 28*f6dc9357SAndroid Build Coastguard Worker modify it under the terms of the GNU Lesser General Public 29*f6dc9357SAndroid Build Coastguard Worker License as published by the Free Software Foundation; either 30*f6dc9357SAndroid Build Coastguard Worker version 2.1 of the License, or (at your option) any later version. 31*f6dc9357SAndroid Build Coastguard Worker 32*f6dc9357SAndroid Build Coastguard Worker This library is distributed in the hope that it will be useful, 33*f6dc9357SAndroid Build Coastguard Worker but WITHOUT ANY WARRANTY; without even the implied warranty of 34*f6dc9357SAndroid Build Coastguard Worker MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 35*f6dc9357SAndroid Build Coastguard Worker Lesser General Public License for more details. 36*f6dc9357SAndroid Build Coastguard Worker 37*f6dc9357SAndroid Build Coastguard Worker You should have received a copy of the GNU Lesser General Public 38*f6dc9357SAndroid Build Coastguard Worker License along with this library; if not, 39*f6dc9357SAndroid Build Coastguard Worker you can get a copy of the GNU Lesser General Public License from 40*f6dc9357SAndroid Build Coastguard Worker http://www.gnu.org/ 41*f6dc9357SAndroid Build Coastguard Worker 42*f6dc9357SAndroid Build Coastguard Worker 43*f6dc9357SAndroid Build Coastguard Worker 44*f6dc9357SAndroid Build Coastguard Worker 45*f6dc9357SAndroid Build Coastguard WorkerBSD 3-clause License in 7-Zip code 46*f6dc9357SAndroid Build Coastguard Worker---------------------------------- 47*f6dc9357SAndroid Build Coastguard Worker 48*f6dc9357SAndroid Build Coastguard Worker The "BSD 3-clause License" is used for the following code in 7z.dll 49*f6dc9357SAndroid Build Coastguard Worker 1) LZFSE data decompression. 50*f6dc9357SAndroid Build Coastguard Worker CPP/7zip/Compress/LzfseDecoder.cpp. 51*f6dc9357SAndroid Build Coastguard Worker That code was derived from the code in the "LZFSE compression library" developed by Apple Inc, 52*f6dc9357SAndroid Build Coastguard Worker that also uses the "BSD 3-clause License". 53*f6dc9357SAndroid Build Coastguard Worker 2) ZSTD data decompression. 54*f6dc9357SAndroid Build Coastguard Worker C/ZstdDec.c 55*f6dc9357SAndroid Build Coastguard Worker that code was developed using original zstd decoder code as reference code. 56*f6dc9357SAndroid Build Coastguard Worker The original zstd decoder code was developed by Facebook Inc, 57*f6dc9357SAndroid Build Coastguard Worker that also uses the "BSD 3-clause License". 58*f6dc9357SAndroid Build Coastguard Worker 59*f6dc9357SAndroid Build Coastguard Worker Copyright (c) 2015-2016, Apple Inc. All rights reserved. 60*f6dc9357SAndroid Build Coastguard Worker Copyright (c) Facebook, Inc. All rights reserved. 61*f6dc9357SAndroid Build Coastguard Worker Copyright (c) 2023-2024 Igor Pavlov. 62*f6dc9357SAndroid Build Coastguard Worker 63*f6dc9357SAndroid Build Coastguard WorkerText of the "BSD 3-clause License" 64*f6dc9357SAndroid Build Coastguard Worker---------------------------------- 65*f6dc9357SAndroid Build Coastguard Worker 66*f6dc9357SAndroid Build Coastguard WorkerRedistribution and use in source and binary forms, with or without modification, 67*f6dc9357SAndroid Build Coastguard Workerare permitted provided that the following conditions are met: 68*f6dc9357SAndroid Build Coastguard Worker 69*f6dc9357SAndroid Build Coastguard Worker1. Redistributions of source code must retain the above copyright notice, this 70*f6dc9357SAndroid Build Coastguard Worker list of conditions and the following disclaimer. 71*f6dc9357SAndroid Build Coastguard Worker 72*f6dc9357SAndroid Build Coastguard Worker2. Redistributions in binary form must reproduce the above copyright notice, 73*f6dc9357SAndroid Build Coastguard Worker this list of conditions and the following disclaimer in the documentation 74*f6dc9357SAndroid Build Coastguard Worker and/or other materials provided with the distribution. 75*f6dc9357SAndroid Build Coastguard Worker 76*f6dc9357SAndroid Build Coastguard Worker3. Neither the name of the copyright holder nor the names of its contributors may 77*f6dc9357SAndroid Build Coastguard Worker be used to endorse or promote products derived from this software without 78*f6dc9357SAndroid Build Coastguard Worker specific prior written permission. 79*f6dc9357SAndroid Build Coastguard Worker 80*f6dc9357SAndroid Build Coastguard WorkerTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 81*f6dc9357SAndroid Build Coastguard WorkerANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 82*f6dc9357SAndroid Build Coastguard WorkerWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 83*f6dc9357SAndroid Build Coastguard WorkerDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 84*f6dc9357SAndroid Build Coastguard WorkerANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 85*f6dc9357SAndroid Build Coastguard Worker(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 86*f6dc9357SAndroid Build Coastguard WorkerLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 87*f6dc9357SAndroid Build Coastguard WorkerANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 88*f6dc9357SAndroid Build Coastguard Worker(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 89*f6dc9357SAndroid Build Coastguard WorkerSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 90*f6dc9357SAndroid Build Coastguard Worker 91*f6dc9357SAndroid Build Coastguard Worker--- 92*f6dc9357SAndroid Build Coastguard Worker 93*f6dc9357SAndroid Build Coastguard Worker 94*f6dc9357SAndroid Build Coastguard Worker 95*f6dc9357SAndroid Build Coastguard Worker 96*f6dc9357SAndroid Build Coastguard WorkerBSD 2-clause License in 7-Zip code 97*f6dc9357SAndroid Build Coastguard Worker---------------------------------- 98*f6dc9357SAndroid Build Coastguard Worker 99*f6dc9357SAndroid Build Coastguard Worker The "BSD 2-clause License" is used for the XXH64 code in 7-Zip. 100*f6dc9357SAndroid Build Coastguard Worker C/Xxh64.c 101*f6dc9357SAndroid Build Coastguard Worker 102*f6dc9357SAndroid Build Coastguard Worker XXH64 code in 7-Zip was derived from the original XXH64 code developed by Yann Collet. 103*f6dc9357SAndroid Build Coastguard Worker 104*f6dc9357SAndroid Build Coastguard Worker Copyright (c) 2012-2021 Yann Collet. 105*f6dc9357SAndroid Build Coastguard Worker Copyright (c) 2023-2024 Igor Pavlov. 106*f6dc9357SAndroid Build Coastguard Worker 107*f6dc9357SAndroid Build Coastguard WorkerText of the "BSD 2-clause License" 108*f6dc9357SAndroid Build Coastguard Worker---------------------------------- 109*f6dc9357SAndroid Build Coastguard Worker 110*f6dc9357SAndroid Build Coastguard WorkerRedistribution and use in source and binary forms, with or without modification, 111*f6dc9357SAndroid Build Coastguard Workerare permitted provided that the following conditions are met: 112*f6dc9357SAndroid Build Coastguard Worker 113*f6dc9357SAndroid Build Coastguard Worker1. Redistributions of source code must retain the above copyright notice, this 114*f6dc9357SAndroid Build Coastguard Worker list of conditions and the following disclaimer. 115*f6dc9357SAndroid Build Coastguard Worker 116*f6dc9357SAndroid Build Coastguard Worker2. Redistributions in binary form must reproduce the above copyright notice, 117*f6dc9357SAndroid Build Coastguard Worker this list of conditions and the following disclaimer in the documentation 118*f6dc9357SAndroid Build Coastguard Worker and/or other materials provided with the distribution. 119*f6dc9357SAndroid Build Coastguard Worker 120*f6dc9357SAndroid Build Coastguard WorkerTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 121*f6dc9357SAndroid Build Coastguard WorkerANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 122*f6dc9357SAndroid Build Coastguard WorkerWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 123*f6dc9357SAndroid Build Coastguard WorkerDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 124*f6dc9357SAndroid Build Coastguard WorkerANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 125*f6dc9357SAndroid Build Coastguard Worker(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 126*f6dc9357SAndroid Build Coastguard WorkerLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 127*f6dc9357SAndroid Build Coastguard WorkerANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 128*f6dc9357SAndroid Build Coastguard Worker(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 129*f6dc9357SAndroid Build Coastguard WorkerSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 130*f6dc9357SAndroid Build Coastguard Worker 131*f6dc9357SAndroid Build Coastguard Worker--- 132*f6dc9357SAndroid Build Coastguard Worker 133*f6dc9357SAndroid Build Coastguard Worker 134*f6dc9357SAndroid Build Coastguard Worker 135*f6dc9357SAndroid Build Coastguard Worker 136*f6dc9357SAndroid Build Coastguard WorkerunRAR license restriction 137*f6dc9357SAndroid Build Coastguard Worker------------------------- 138*f6dc9357SAndroid Build Coastguard Worker 139*f6dc9357SAndroid Build Coastguard WorkerThe decompression engine for RAR archives was developed using source 140*f6dc9357SAndroid Build Coastguard Workercode of unRAR program. 141*f6dc9357SAndroid Build Coastguard WorkerAll copyrights to original unRAR code are owned by Alexander Roshal. 142*f6dc9357SAndroid Build Coastguard Worker 143*f6dc9357SAndroid Build Coastguard WorkerThe license for original unRAR code has the following restriction: 144*f6dc9357SAndroid Build Coastguard Worker 145*f6dc9357SAndroid Build Coastguard Worker The unRAR sources cannot be used to re-create the RAR compression algorithm, 146*f6dc9357SAndroid Build Coastguard Worker which is proprietary. Distribution of modified unRAR sources in separate form 147*f6dc9357SAndroid Build Coastguard Worker or as a part of other software is permitted, provided that it is clearly 148*f6dc9357SAndroid Build Coastguard Worker stated in the documentation and source comments that the code may 149*f6dc9357SAndroid Build Coastguard Worker not be used to develop a RAR (WinRAR) compatible archiver. 150*f6dc9357SAndroid Build Coastguard Worker 151*f6dc9357SAndroid Build Coastguard Worker-- 152