The `termux-shared` library is released under [MIT](https://opensource.org/licenses/MIT) license. ### Exceptions #### [GPLv3 only](https://www.gnu.org/licenses/gpl-3.0.html) - [`src/main/java/com/termux/shared/termux/*`](src/main/java/com/termux/shared/termux). The `GPLv3 only` license applies to all files unless specifically specified by a file/directory, like the [`src/main/java/com/termux/shared/termux/TermuxConstants.java`](src/main/java/com/termux/shared/termux/TermuxConstants.java) and [`src/main/java/com/termux/shared/termux/settings/properties/TermuxPropertyConstants.java`](src/main/java/com/termux/shared/termux/settings/properties/TermuxPropertyConstants.java) files are released under the `MIT` license. ## #### [GPLv2 only with "Classpath" exception](https://openjdk.java.net/legal/gplv2+ce.html) - [`src/main/java/com/termux/shared/file/filesystem/*`](src/main/java/com/termux/shared/file/filesystem) files that use code from [libcore/ojluni](https://cs.android.com/android/platform/superproject/+/android-11.0.0_r3:libcore/ojluni/). ## #### [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) - [`src/main/java/com/termux/shared/shell/StreamGobbler.java`](src/main/java/com/termux/shared/shell/StreamGobbler.java) uses code from [libsuperuser ](https://github.com/Chainfire/libsuperuser). ##