Skip to content

Commit

Permalink
Revert "Stop copy sepolicy.rule (LSPosed#806)"
Browse files Browse the repository at this point in the history
This reverts commit 599e027.
  • Loading branch information
mo0085 authored Aug 1, 2024
1 parent 599e027 commit 883d7dd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Binary file modified bin/arm64/lspinit
Binary file not shown.
Binary file modified bin/x64/lspinit
Binary file not shown.
1 change: 1 addition & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ if [ "$HAS_GAPPS" ]; then
if [ -f "$GAPPS_IMAGE_PATH" ] && [ -f "$GAPPS_RC_PATH" ]; then
echo "Integrating GApps"
"$WORK_DIR/magisk/magiskboot" cpio "$WORK_DIR/wsa/$ARCH/Tools/initrd.img" \
"add 000 /lspolicy.rule sepolicy.rule" \
"add 000 overlay.d/gapps.rc $GAPPS_RC_PATH" \
"add 000 overlay.d/sbin/lsp_gapps.img $GAPPS_IMAGE_PATH" \
|| abort "Unable to patch initrd"
Expand Down
5 changes: 5 additions & 0 deletions scripts/sepolicy.rule
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
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
allow gmscore_app { system_server_tmpfs media_rw_data_file } filesystem getattr

0 comments on commit 883d7dd

Please sign in to comment.