Skip to content

Commit

Permalink
Merge pull request #3 from projectquine/add-userscripts
Browse files Browse the repository at this point in the history
add userscripts
  • Loading branch information
shaunmulligan authored May 10, 2023
2 parents 233c3a2 + c6401e6 commit fcbeb35
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions userscripts/before.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

echo "copying magisk.apk into aosproot......"
cp prebuilts/my-custom-apps/Magisk/Magisk-v25.2.apk vendor/aosproot/magisk.apk
13 changes: 13 additions & 0 deletions userscripts/pre-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash


search_string="PRODUCT_PACKAGES += Trebuchet"
replacement_string="PRODUCT_PACKAGES += QuineLauncher"
android_mk_files=$(find . -type f -name "Android.mk")

for file in $android_mk_files; do
if grep -q "$search_string" "$file"; then
sed -i "s/$search_string/$replacement_string/g" "$file"
echo "Replaced in $file"
fi
done

0 comments on commit fcbeb35

Please sign in to comment.