Support for rootless JB till iOS 16.5 (tested) (screendumpLowFrame)

This commit is contained in:
Siddharth Saxena 2023-12-14 20:37:12 +05:30
parent 03bd97c273
commit 91e167e25d
11 changed files with 30 additions and 15 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
.theos
.theos
packages

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
TARGET = iphone:14.4:10.0
TARGET = iphone:16.5:14.0
include $(THEOS)/makefiles/common.mk

View File

@ -2,10 +2,12 @@
#include <substrate.h>
#include <rfb/rfb.h>
#import <notify.h>
#import <UIKit/UIKit.h>
#import <rootless.h>
#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();

View File

@ -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 <cosmosgenius@gmail.com>

View File

@ -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;

View File

@ -1,5 +0,0 @@
#!/bin/bash
launchctl unload //Library/LaunchDaemons/com.julioverne.screendumpd.plist
exit 0;

View File

@ -0,0 +1,5 @@
#!/bin/bash
launchctl unload /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist
exit 0;

View File

@ -6,7 +6,7 @@
<string>com.julioverne.screendumpd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/libexec/screendumpd</string>
<string>/var/jb/usr/libexec/screendumpd</string>
</array>
<key>RunAtLoad</key>
<true/>

View File

@ -1,9 +1,11 @@
#include <errno.h>
#include <substrate.h>
#include <rfb/rfb.h>
#import <xpc/xpc.h>
#import <Foundation/Foundation.h>
#import <IOSurface/IOSurfaceRef.h>
#import <rootless.h>
#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;