-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
427 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Released under [the GPLv3 license](https://www.gnu.org/licenses/gpl.html). | ||
|
||
- Contains code from `termux-app` by which is released under GPLv3. | ||
- Contains binary from `code-server` by which is released under MIT License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
LOCAL_PATH:= $(call my-dir) | ||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := libtermux-bootstrap | ||
LOCAL_SRC_FILES := termux-bootstrap-zip.S termux-bootstrap.c | ||
include $(BUILD_SHARED_LIBRARY) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.global blob | ||
.global blob_size | ||
.section .rodata | ||
blob: | ||
#if defined __i686__ | ||
.incbin "bootstrap-i686.zip" | ||
#elif defined __x86_64__ | ||
.incbin "bootstrap-x86_64.zip" | ||
#elif defined __aarch64__ | ||
.incbin "bootstrap-aarch64.zip" | ||
#elif defined __arm__ | ||
.incbin "bootstrap-arm.zip" | ||
#else | ||
# error Unsupported arch | ||
#endif | ||
1: | ||
blob_size: | ||
.int 1b - blob |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <jni.h> | ||
|
||
extern jbyte blob[]; | ||
extern int blob_size; | ||
|
||
JNIEXPORT jbyteArray JNICALL Java_com_termux_app_TermuxInstaller_getZip(JNIEnv *env, __attribute__((__unused__)) jobject This) | ||
{ | ||
jbyteArray ret = (*env)->NewByteArray(env, blob_size); | ||
(*env)->SetByteArrayRegion(env, ret, 0, blob_size, blob); | ||
return ret; | ||
} |
Oops, something went wrong.