-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: working monitor + update * docs: Update README * feat: Version checks * feat: Helper enable/disable scripts * feat: Resolve SSL traffic issue
- Loading branch information
1 parent
b733123
commit 972d58c
Showing
17 changed files
with
491 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ releases | |
.DS_Store | ||
*.dylib | ||
.theos | ||
local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env zsh | ||
|
||
ssh iphone "/usr/bin/launchctl unload /Library/LaunchDaemons/com.github.clburlison.dmon.plist" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env zsh | ||
|
||
ssh iphone "/usr/bin/launchctl load /Library/LaunchDaemons/com.github.clburlison.dmon.plist" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/bash | ||
|
||
/usr/bin/launchctl unload /Library/LaunchDaemons/com.github.clburlison.dmon.plist || true | ||
/usr/bin/launchctl unload /Library/LaunchDaemons/com.github.clburlison.dmon.plist 2>/dev/null | ||
/usr/bin/sleep 2 | ||
/usr/bin/launchctl load /Library/LaunchDaemons/com.github.clburlison.dmon.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/bash | ||
|
||
# Not perfect. It takes iOS ~10 seconds to register | ||
# the application has been sent to the background | ||
# or crashed. Need to test and see if this is consistent. | ||
get_pogo_pid() { | ||
# echo $(ps aux | grep -i "PokmonGO.app" | grep -v grep | tr -s ' ' | cut -d ' ' -f 2) | ||
echo $(ps ax | grep -i "PokmonGO.app" | grep -v grep | cut -d ' ' -f 2) | ||
} | ||
|
||
get_kernbypass_pid() { | ||
echo $(ps ax | grep -i "/usr/bin/kernbypass" | grep -v grep | cut -d ' ' -f 2) | ||
} | ||
|
||
get_substrate_pid() { | ||
echo $(ps ax | grep -i "/etc/rc.d/substitute-launcher" | grep -v grep | cut -d ' ' -f 2) | ||
} | ||
|
||
restart_pogo() { | ||
echo Restarting POGO and SERVICES | ||
# killall pokemongo | ||
# killall kernbypass | ||
# sleep 1 | ||
# killall substrate | ||
# sleep 2 | ||
# /etc/rc.d/substitute-launcher | ||
# sleep 5 | ||
# sbreload | ||
local pogo_pid=$(get_pogo_pid) | ||
kill -9 $pogo_pid 2>/dev/null | ||
local bypass_pid=$(get_kernbypass_pid) | ||
kill -9 $bypass_pid 2>/dev/null | ||
sleep 5 | ||
open com.nianticlabs.pokemongo | ||
echo "done" | ||
} | ||
|
||
main() { | ||
local pid=$(get_pogo_pid) | ||
if [ -z "$pid" ]; then | ||
restart_pogo | ||
fi | ||
} | ||
|
||
main |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
open: | ||
make -f open.mk clean all | ||
THEOS=$(PWD)/theos | ||
export THEOS | ||
|
||
TARGET := iphone:14.4 | ||
ARCHS := arm64 | ||
DEBUG = 0 | ||
|
||
SDKVERSION = 14.5 | ||
export SYSROOT = $(THEOS)/sdks/sdks-master/iPhoneOS14.5.sdk | ||
|
||
include $(THEOS)/makefiles/common.mk | ||
|
||
# INSTALL_TARGET_PROCESSES = SpringBoard | ||
TOOL_NAME = dmon | ||
dmon_FILES = dmon.m | ||
dmon_PRIVATE_FRAMEWORKS = SpringBoardServices | ||
# dmon_FRAMEWORKS = ManagedConfiguration | ||
dmon_OBJ_FILES = ./theos/lib/libcrypto.a ./theos/lib/libcurl.a ./theos/lib/libnghttp2.a ./theos/lib/libssl.a | ||
dmon_LDFLAGS = -lssl -lcurl -lz | ||
dmon_CODESIGN_FLAGS = -SEntitlements.plist | ||
|
||
include $(THEOS_MAKE_PATH)/tool.mk | ||
|
||
all:: | ||
mkdir -p ../src/usr/bin | ||
/bin/cp .theos/obj/dmon ../src/usr/bin |
Oops, something went wrong.