The termux-shared library is released under MIT license.
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 and src/main/java/com/termux/shared/termux/settings/properties/TermuxPropertyConstants.java files are released under the MIT license.
src/main/java/com/termux/shared/file/filesystem/*files that use code from libcore/ojluni.
src/main/java/com/termux/shared/shell/StreamGobbler.javauses code from libsuperuser .