You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-54Lines changed: 19 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,58 +16,22 @@ Also compile and run C/C++ programs on HarmonyOS Computer:
16
16
17
17
Bundled packages:
18
18
19
-
- aria2
20
-
- bash
21
-
- binutils
22
-
- busybox
23
-
- c-ares
24
-
- coremark
25
-
- curl
26
-
-[elf-loader](https://github.com/MikhailProg/elf) (you can run executable without executable permission! e.g. `cp /data/app/bin/bash ~/ && loader ~/bash`)
27
-
- expat
28
-
- fastfetch
29
-
- fish
30
-
- gcc
31
-
- gdb
32
-
- gettext
33
-
- git
34
-
- glib
35
-
- gmp
36
-
- hdc
37
-
- htop
38
-
- kbd
39
-
- libarchive
40
-
- libevent
41
-
- libffi
42
-
- libidn2
43
-
- libunistring
44
-
- lz4
45
-
- make
46
-
- mpc
47
-
- mpfr
48
-
- ncnn
49
-
- ncurses
50
-
- openssh
51
-
- openssl
52
-
- pcre2
53
-
- proot
54
-
- python
55
-
- qemu (you can run executable without executable permission! e.g. `cp /data/app/bin/bash ~/ && qemu-aarch64 ~/bash`)
56
-
- qemu-vroot (qemu patched to mimic proot behavior)
-[elf-loader](https://github.com/MikhailProg/elf): you can run executable without executable permission! e.g. `cp /data/app/bin/bash ~/ && loader ~/bash`
34
+
- qemu{,vroot}: you can run executable without executable permission! e.g. `cp /data/app/bin/bash ~/ && qemu-aarch64 ~/bash`
71
35
72
36
Pro tip: you can use these utilities in the builtin Terminal app under `/data/service/hnp`:
73
37
@@ -90,7 +54,8 @@ if [ -d "/data/service/hnp/base.org/base_1.0" ]; then
90
54
fi
91
55
```
92
56
93
-
However, the builtin Terminal app does not have the permission to map R+X pages, so you cannot use elf loader there. You can use it in Termony. Also, the public folder `/data/service/hnp` does not get updated if you upgrade Termony. You need to re-install Termony to get the latest version available.
57
+
However, now whatever debug mode app has access to `mprotect(anon_page, R_X, ...)`, so you can use elf loader in HiShell.
58
+
The HNP folder does not get updated if you upgrade Termony. You need to re-install Termony to get the latest version available.
94
59
95
60
Terminal features:
96
61
@@ -100,7 +65,7 @@ Terminal features:
100
65
101
66
### Run in a new root file-system
102
67
103
-
`qemu-vroot-aarch64` is a user mode qemu modified to to mimic proot behavior. It allows user to run linux binary(even for another CPU architecture) and switch to a new root-filesystem like chroot or proot.
68
+
`qemu-vroot-aarch64` is a user mode qemu modified to to mimic proot behavior. It allows user to run linux binary(even for another CPU architecture) and switch to a new root-filesystem like chroot or proot.
0 commit comments