Skip to content

Commit

Permalink
prepare stockeqpackages.csv during compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
programminghoch10 committed Feb 25, 2024
1 parent 1aceb3c commit de732e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ magiskmodule/ViperIRS.tar.gz
magiskmodule/ViperVDC.tar.gz
magiskmodule/module.prop
magiskmodule/README.md
magiskmodule/stockeqpackages.csv
2 changes: 2 additions & 0 deletions compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ setVersionVariables() {

git clean -Xdfq magiskmodule/

sed -e 's/^\s*#.*$//' -e '/^$/d' < stockeqpackages.csv > magiskmodule/stockeqpackages.csv &

setVersionVariables .

cp -f README.md magiskmodule/README.md &
Expand Down
4 changes: 2 additions & 2 deletions magiskmodule/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ set_perm_recursive "$FOLDER" "$VIPERFXPREFSOWNER" sdcard_rw 771 660 u:object_r:s
# this disables automatic permissions revoke if unused
[ $API -ge 30 ] && appops set --uid $VIPERFXPACKAGE AUTO_REVOKE_PERMISSIONS_IF_UNUSED ignore

for packagedata in $(sed -e 's/^\s*#.*$//' -e '/^$/d' < "$MODPATH"/stockeqpackages.csv); do
while IFS= read -r packagedata; do
package="$(echo "$packagedata" | cut -d'|' -f1)"
package_filename="$(echo "$packagedata" | cut -d'|' -f2)"
package_friendlyname="$(echo "$packagedata" | cut -d'|' -f3)"
Expand All @@ -212,7 +212,7 @@ for packagedata in $(sed -e 's/^\s*#.*$//' -e '/^$/d' < "$MODPATH"/stockeqpackag
touch "$MODPATH"/system/"$package_apk_dir"/"$(basename "$package_apk")"
done
}
done
done < "$MODPATH"/stockeqpackages.csv

ui_print "- Setting Permissions"
set_perm_recursive "$MODPATH"/system root root 755 644
Expand Down
File renamed without changes.

0 comments on commit de732e3

Please sign in to comment.