mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-21 15:05:28 +00:00
Update docs to cover riscv64
This commit is contained in:
parent
a07b9315a5
commit
e32cd03d0b
@ -38,6 +38,7 @@ A Magisk module is a folder placed in `/data/adb/modules` with the structure bel
|
||||
│ ├── zygisk <--- This folder contains the module's Zygisk native libraries
|
||||
│ │ ├── arm64-v8a.so
|
||||
│ │ ├── armeabi-v7a.so
|
||||
│ │ ├── riscv64.so
|
||||
│ │ ├── x86.so
|
||||
│ │ ├── x86_64.so
|
||||
│ │ └── unloaded <--- If exists, the native libraries are incompatible
|
||||
@ -176,8 +177,8 @@ The `customize.sh` script runs in Magisk's BusyBox `ash` shell with "Standalone
|
||||
- `MODPATH` (path): the path where your module files should be installed
|
||||
- `TMPDIR` (path): a place where you can temporarily store files
|
||||
- `ZIPFILE` (path): your module's installation zip
|
||||
- `ARCH` (string): the CPU architecture of the device. Value is either `arm`, `arm64`, `x86`, or `x64`
|
||||
- `IS64BIT` (bool): `true` if `$ARCH` is either `arm64` or `x64`
|
||||
- `ARCH` (string): the CPU architecture of the device. Value is either `arm`, `arm64`, `x86`, `x64`, or `riscv64`
|
||||
- `IS64BIT` (bool): `true` if `$ARCH` is either `arm64`, `x64`, or `riscv64`
|
||||
- `API` (int): the API level (Android version) of the device (e.g. `23` for Android 6.0)
|
||||
|
||||
##### Functions
|
||||
|
@ -58,7 +58,7 @@ for file in lib*.so; do
|
||||
mv "$file" "${file:3:${#file}-6}"
|
||||
done
|
||||
|
||||
if [ -e "/system/bin/linker" ]; then
|
||||
if $IS64BIT && [ -e "/system/bin/linker" ]; then
|
||||
unzip -oj magisk.apk "lib/$ABI32/libmagisk.so"
|
||||
mv libmagisk.so magisk32
|
||||
chmod 755 magisk32
|
||||
|
Loading…
Reference in New Issue
Block a user