#!/system/bin/sh
sleep 25
pm install /data/local/tmp/volteconf-nr.apk
sleep 3
app_uid=$(pm list packages -U | grep com.lilo159.voltepatcher | cut -d ':' -f3)
sql="INSERT INTO policies (uid,policy,until,logging,notification) values($app_uid,2,0,1,1);"
eval magisk --sqlite \"$sql\"
rm /data/local/tmp/volteconf-nr.apk
rm /data/adb/service.d/install_my_app.sh
