forked from igeekz/libndk_translation_Module
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.sh
More file actions
15 lines (13 loc) · 663 Bytes
/
service.sh
File metadata and controls
15 lines (13 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/system/bin/sh
# Do NOT assume where your module will be located.
# ALWAYS use $MODDIR if you need to know where this script
# and module is placed.
# This will make sure your module will still work
# if Magisk change its mount point in the future
MODDIR=${0%/*}
mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
cp /system/etc/binfmt_misc/arm_exe /proc/sys/fs/binfmt_misc/register
cp /system/etc/binfmt_misc/arm_dyn /proc/sys/fs/binfmt_misc/register
cp /system/etc/binfmt_misc/arm64_exe /proc/sys/fs/binfmt_misc/register
cp /system/etc/binfmt_misc/arm64_dyn /proc/sys/fs/binfmt_misc/register
# This script will be executed in late_start service mode