This commit is contained in:
Timmy Welch 2025-02-14 21:10:18 -08:00
parent d1079ba610
commit 5a965d05ac
3 changed files with 10 additions and 0 deletions

5
build.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
rm *.zip 2>/dev/null
eval $(grep -v ' ' module.prop)
printf '%s\n' * | grep -v 'zip$' | xargs zip -r "magisk-$name-$version-$versionCode.zip"
adb push "magisk-$name-$version-$versionCode.zip" /sdcard/

1
hidg_contexts Normal file
View File

@ -0,0 +1 @@
/dev/hidg[0-9]+ u:object_r:null_device:s0

4
post-fs-data.sh Normal file
View File

@ -0,0 +1,4 @@
{
grep -v /dev/hidg $FILE_CONTEXTS
cat "$MODPATH/hidg_contexts"
} >"$MODPATH/system/etc/selinux/plat_file_contexts"