Skip to content

Commit 01a95d0

Browse files
committed
chore: update readme for riscv64
1 parent cfbfcaa commit 01a95d0

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# Libcore-Syscall / Libcore-ElfLoader
22

3-
Libcore-Syscall is a Java library for Android that allows you to make any Linux system calls and/or load any ELF shared objects directly from Java code.
3+
Libcore-Syscall is a pure Java library for Android that allows you to make any Linux system calls and/or
4+
load any in-memory ELF shared objects (lib*.so) without a writable path/mount point.
45

56
## Features
67

78
- Support Android 5.0 - 15
89
- Support any system calls (as long as they are permitted by the seccomp filter)
9-
- Support loading any ELF shared objects (lib*.so) directly from memory
10+
- Support loading in-memory ELF shared objects (lib*.so) without a file
11+
- Support arm/arm64/x86/x86_64/riscv64 architectures
1012
- Implemented in 100% pure Java 1.8
11-
- No shared libraries (lib*.so) are shipped with the library
13+
- No shared libraries (lib*.so) or assets files are shipped with the library
1214
- No `System.loadLibrary` or `System.load` is used
1315
- No temporary files are created on the disk (does not require a writable path/mount point)
1416
- Small, no dependencies

demo-app/src/main/java/com/example/test/app/TestMainActivity.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
7373
}).start();
7474
}
7575

76+
@SuppressLint("SetTextI18n")
7677
private void performTestsAsync() {
7778
new Thread(() -> {
7879
if (WAIT_FOR_NATIVE_DEBUGGER) {
@@ -114,9 +115,13 @@ private String runTests() {
114115
sb.append("\n");
115116
sb.append("ISA = ").append(NativeHelper.getIsaName(NativeHelper.getCurrentRuntimeIsa()));
116117
sb.append("\n");
117-
sb.append("SDK_INT = ").append(Build.VERSION.SDK_INT);
118-
sb.append("\n");
119-
sb.append("Build.VERSION.CODENAME = ").append(Build.VERSION.CODENAME);
118+
sb.append("SDK_INT = ");
119+
if ("REL".equals(Build.VERSION.CODENAME)) {
120+
sb.append(Build.VERSION.SDK_INT);
121+
} else {
122+
// dev preview
123+
sb.append(Build.VERSION.CODENAME).append(" ").append(Build.VERSION.SDK_INT);
124+
}
120125
sb.append("\n");
121126
sb.append("Page size = ").append(Os.sysconf(OsConstants._SC_PAGESIZE));
122127
sb.append("\n");
@@ -128,6 +133,7 @@ private String runTests() {
128133
__NR_uname = 63;
129134
break;
130135
case NativeHelper.ISA_ARM64:
136+
case NativeHelper.ISA_RISCV64:
131137
__NR_uname = 160;
132138
break;
133139
case NativeHelper.ISA_X86:

0 commit comments

Comments
 (0)