mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-03-22 18:34:14 -05:00
27 lines
658 B
Bash
27 lines
658 B
Bash
#!/system/bin/sh
|
|
|
|
# Ensure frida-server is running
|
|
echo "Running frida-server"
|
|
killall frida-server
|
|
nohup /data/local/tmp/frida-server >/dev/null 2>&1 &
|
|
|
|
if [ "$?" != "0" ]; then
|
|
echo "Failed to start frida-server"
|
|
exit 1
|
|
fi
|
|
|
|
sleep 1
|
|
|
|
# Ensure the app is running
|
|
echo "Starting com.nintendo.znca"
|
|
am start-foreground-service com.nintendo.znca/com.google.firebase.messaging.FirebaseMessagingService
|
|
am start-service com.nintendo.znca/com.google.firebase.messaging.FirebaseMessagingService
|
|
|
|
if [ "$?" != "0" ]; then
|
|
echo "Failed to start com.nintendo.znca"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Acquiring wake lock"
|
|
echo androidzncaapiserver > /sys/power/wake_lock
|