diff --git a/.gitignore b/.gitignore index 996e30e..e325f6d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.theos \ No newline at end of file +.theos +packages \ No newline at end of file diff --git a/screendumpLowFrame/Makefile b/screendumpLowFrame/Makefile index d21da17..fd54955 100644 --- a/screendumpLowFrame/Makefile +++ b/screendumpLowFrame/Makefile @@ -1,7 +1,8 @@ -TARGET = iphone:14.4:10.0 +TARGET = iphone:16.5:14.0 include $(THEOS)/makefiles/common.mk +PACKAGE_BUILDNAME := rootless TOOL_NAME = screendumpd $(TOOL_NAME)_FILES = main.mm diff --git a/screendumpLowFrame/build_package_rootless.sh b/screendumpLowFrame/build_package_rootless.sh new file mode 100755 index 0000000..7754e8e --- /dev/null +++ b/screendumpLowFrame/build_package_rootless.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +echo "Building package for ROOTLESS Jailbreak" +export THEOS_PACKAGE_SCHEME=rootless + +make clean +make package FINALPACKAGE=1 + +unset THEOS_PACKAGE_SCHEME diff --git a/screendumpLowFrame/hooks/Makefile b/screendumpLowFrame/hooks/Makefile index 5834112..2924364 100644 --- a/screendumpLowFrame/hooks/Makefile +++ b/screendumpLowFrame/hooks/Makefile @@ -1,4 +1,4 @@ -TARGET = iphone:14.4:10.0 +TARGET = iphone:16.5:14.0 include $(THEOS)/makefiles/common.mk diff --git a/screendumpLowFrame/hooks/Tweak.xm b/screendumpLowFrame/hooks/Tweak.xm index 9080b32..2f1c774 100644 --- a/screendumpLowFrame/hooks/Tweak.xm +++ b/screendumpLowFrame/hooks/Tweak.xm @@ -2,10 +2,12 @@ #include #include #import +#import +#import #undef NSLog -#define kSettingsPath @"//var/mobile/Library/Preferences/com.cosmosgenius.screendump.plist" +#define kSettingsPath @"/var/jb/var/mobile/Library/Preferences/com.cosmosgenius.screendump.plist" extern "C" UIImage* _UICreateScreenUIImage(); diff --git a/screendumpLowFrame/layout/DEBIAN/control b/screendumpLowFrame/layout/DEBIAN/control index f85f8fe..b0f1774 100644 --- a/screendumpLowFrame/layout/DEBIAN/control +++ b/screendumpLowFrame/layout/DEBIAN/control @@ -1,6 +1,6 @@ Package: com.cosmosgenius.screendump13 Name: screendump -Depends: mobilesubstrate, preferenceloader +Depends: preferenceloader Architecture: iphoneos-arm Description: VNC for ios Maintainer: Sharat M R diff --git a/screendumpLowFrame/layout/DEBIAN/postinst b/screendumpLowFrame/layout/DEBIAN/postinst index 27a41e9..0d6bce7 100755 --- a/screendumpLowFrame/layout/DEBIAN/postinst +++ b/screendumpLowFrame/layout/DEBIAN/postinst @@ -1,6 +1,6 @@ #!/bin/bash -launchctl unload //Library/LaunchDaemons/com.julioverne.screendumpd.plist -launchctl load //Library/LaunchDaemons/com.julioverne.screendumpd.plist +launchctl unload /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist +launchctl load /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist exit 0; \ No newline at end of file diff --git a/screendumpLowFrame/layout/DEBIAN/postrm b/screendumpLowFrame/layout/DEBIAN/postrm deleted file mode 100755 index ab06c08..0000000 --- a/screendumpLowFrame/layout/DEBIAN/postrm +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -launchctl unload //Library/LaunchDaemons/com.julioverne.screendumpd.plist - -exit 0; \ No newline at end of file diff --git a/screendumpLowFrame/layout/DEBIAN/prerm b/screendumpLowFrame/layout/DEBIAN/prerm new file mode 100755 index 0000000..dcfcb1a --- /dev/null +++ b/screendumpLowFrame/layout/DEBIAN/prerm @@ -0,0 +1,5 @@ +#!/bin/bash + +launchctl unload /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist + +exit 0; \ No newline at end of file diff --git a/screendumpLowFrame/layout/Library/LaunchDaemons/com.julioverne.screendumpd.plist b/screendumpLowFrame/layout/Library/LaunchDaemons/com.julioverne.screendumpd.plist index 911f22e..64803f4 100644 --- a/screendumpLowFrame/layout/Library/LaunchDaemons/com.julioverne.screendumpd.plist +++ b/screendumpLowFrame/layout/Library/LaunchDaemons/com.julioverne.screendumpd.plist @@ -6,7 +6,7 @@ com.julioverne.screendumpd ProgramArguments - /usr/libexec/screendumpd + /var/jb/usr/libexec/screendumpd RunAtLoad diff --git a/screendumpLowFrame/main.mm b/screendumpLowFrame/main.mm index 0bb4474..9ac9d69 100644 --- a/screendumpLowFrame/main.mm +++ b/screendumpLowFrame/main.mm @@ -1,9 +1,11 @@ #include #include #include -#import +#import +#import +#import -#define kSettingsPath @"//var/mobile/Library/Preferences/com.cosmosgenius.screendump.plist" +#define kSettingsPath @"/var/jb/var/mobile/Library/Preferences/com.cosmosgenius.screendump.plist" static bool CCSisEnabled = true; static NSString *CCSPassword = nil;