forked from PeterCxy/OpenEUICC
Much of this is taken from AndroPlus's Magisk module repo, thanks! There's still no release builds for privileged OpenEUICC and the Magisk module; this is still intentional (for now). However, it is possible to produce a release Magisk zip locally via the `:app:assembleReleaseMagiskModule` task.
9 lines
No EOL
238 B
Bash
9 lines
No EOL
238 B
Bash
TMP_FILE="$TMPDIR/{APK_NAME}"
|
|
|
|
chmod u+x "$MODPATH/uninstall.sh"
|
|
cp "$MODPATH/system/system_ext/{APK_NAME}/{APK_NAME}.apk" "$TMP_FILE"
|
|
|
|
pm install -r "$TMP_FILE"
|
|
rm -f "$TMP_FILE"
|
|
|
|
pm grant "{PKG_NAME}" android.permission.READ_PHONE_STATE |