mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-10 21:55:11 +01:00
fix: permission issues
This commit is contained in:
parent
31bd0083cd
commit
fb2b56d5ac
0
linker/libc.so
Normal file → Executable file
0
linker/libc.so
Normal file → Executable file
0
linker/libdl.so
Normal file → Executable file
0
linker/libdl.so
Normal file → Executable file
0
linker/libm.so
Normal file → Executable file
0
linker/libm.so
Normal file → Executable file
0
linker/x86_64/libc.so
Normal file → Executable file
0
linker/x86_64/libc.so
Normal file → Executable file
0
linker/x86_64/libdl.so
Normal file → Executable file
0
linker/x86_64/libdl.so
Normal file → Executable file
0
linker/x86_64/libm.so
Normal file → Executable file
0
linker/x86_64/libm.so
Normal file → Executable file
0
linker/x86_64/linker64
Normal file → Executable file
0
linker/x86_64/linker64
Normal file → Executable file
@ -352,7 +352,7 @@ EOF
|
||||
sudo patchelf --replace-needed libm.so "../linker/$HOST_ARCH/libm.so" "$WORK_DIR"/magisk/magiskpolicy || abort
|
||||
sudo patchelf --replace-needed libdl.so "../linker/$HOST_ARCH/libdl.so" "$WORK_DIR"/magisk/magiskpolicy || abort
|
||||
sudo patchelf --set-interpreter "../linker/$HOST_ARCH/linker64" "$WORK_DIR"/magisk/magiskpolicy || abort
|
||||
sudo chmod +x "$WORK_DIR"/magisk/magiskpolicy || abort
|
||||
chmod +x "$WORK_DIR"/magisk/magiskpolicy || abort
|
||||
TMP_PATH=$(Gen_Rand_Str 8)
|
||||
echo "/dev/$TMP_PATH(/.*)? u:object_r:magisk_file:s0" | sudo tee -a "$MOUNT_DIR"/vendor/etc/selinux/vendor_file_contexts
|
||||
echo '/data/adb/magisk(/.*)? u:object_r:magisk_file:s0' | sudo tee -a "$MOUNT_DIR"/vendor/etc/selinux/vendor_file_contexts
|
||||
@ -499,7 +499,7 @@ if [ "$GAPPS_VARIANT" != 'none' ] && [ "$GAPPS_VARIANT" != '' ]; then
|
||||
sudo patchelf --replace-needed libm.so "../linker/$HOST_ARCH/libm.so" "$WORK_DIR"/magisk/magiskpolicy || abort
|
||||
sudo patchelf --replace-needed libdl.so "../linker/$HOST_ARCH/libdl.so" "$WORK_DIR"/magisk/magiskpolicy || abort
|
||||
sudo patchelf --set-interpreter "../linker/$HOST_ARCH/linker64" "$WORK_DIR"/magisk/magiskpolicy || abort
|
||||
sudo chmod +x "$WORK_DIR"/magisk/magiskpolicy || abort
|
||||
chmod +x "$WORK_DIR"/magisk/magiskpolicy || abort
|
||||
sudo "$WORK_DIR"/magisk/magiskpolicy --load "$MOUNT_DIR"/vendor/etc/selinux/precompiled_sepolicy --save "$MOUNT_DIR"/vendor/etc/selinux/precompiled_sepolicy "allow gmscore_app gmscore_app vsock_socket { create connect write read }" "allow gmscore_app device_config_runtime_native_boot_prop file read" "allow gmscore_app system_server_tmpfs dir search" "allow gmscore_app system_server_tmpfs file open" || abort
|
||||
echo -e "Integrate GApps done\n"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user