mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-10 21:55:11 +01:00
Always use x64 magiskpolicy
This commit is contained in:
parent
80bd639e4a
commit
86e7e145f9
2
.github/workflows/magisk.yml
vendored
2
.github/workflows/magisk.yml
vendored
@ -86,6 +86,7 @@ jobs:
|
||||
extract_as(zip, f"lib/{ abi_map[arch][0] }/libmagisk64.so", "magisk64", "magisk")
|
||||
extract_as(zip, f"lib/{ abi_map[arch][1] }/libmagisk32.so", "magisk32", "magisk")
|
||||
extract_as(zip, f"lib/{ abi_map[arch][0] }/libmagiskinit.so", "magiskinit", "magisk")
|
||||
extract_as(zip, f"lib/{ abi_map['x64'][0] }/libmagiskinit.so", "magiskpolicy", "magisk")
|
||||
- name: Expand images
|
||||
run: |
|
||||
e2fsck -yf ${{ github.event.inputs.arch }}/vendor.img
|
||||
@ -105,7 +106,6 @@ jobs:
|
||||
sudo find system/sbin -type f -exec chmod 0755 {} \;
|
||||
sudo find system/sbin -type f -exec chown root:root {} \;
|
||||
sudo find system/sbin -type f -exec chcon --reference system/product {} \;
|
||||
ln -s magiskinit magisk/magiskpolicy
|
||||
chmod +x magisk/magiskpolicy
|
||||
echo '/dev/wsa-magisk(/.*)? u:object_r:magisk_file:s0' | sudo tee -a system/vendor/etc/selinux/vendor_file_contexts
|
||||
sudo ./magisk/magiskpolicy --load system/vendor/etc/selinux/precompiled_sepolicy --save system/vendor/etc/selinux/precompiled_sepolicy --magisk "allow * magisk_file lnk_file *"
|
||||
|
Loading…
Reference in New Issue
Block a user