update
This commit is contained in:
BIN
screendumpLowFrame/.DS_Store
vendored
Normal file
BIN
screendumpLowFrame/.DS_Store
vendored
Normal file
Binary file not shown.
@@ -16,15 +16,24 @@ ARCHS = arm64
|
||||
$(TOOL_NAME)_VALID_ARCHS = arm64
|
||||
$(TOOL_NAME)_FRAMEWORKS := IOSurface IOKit
|
||||
$(TOOL_NAME)_PRIVATE_FRAMEWORKS := IOMobileFramebuffer IOSurface
|
||||
$(TOOL_NAME)_OBJCFLAGS += -Ivncbuild/include -Iinclude
|
||||
$(TOOL_NAME)_LDFLAGS += -Wl,-segalign,4000 -Lvncbuild/lib -lvncserver -lpng -llzo2 -ljpeg -lssl -lcrypto -lz
|
||||
|
||||
ifeq ($(THEOS_PACKAGE_SCHEME),rootless)
|
||||
# Rootless
|
||||
$(TOOL_NAME)_OBJCFLAGS += -I/mnt/d/codes/screendumpLowFrame/vncbuild/include -Iinclude
|
||||
$(TOOL_NAME)_LDFLAGS += -Wl,-segalign,4000 -L/mnt/d/codes/screendumpLowFrame/vncbuild/lib -lvncserver -lpng -llzo2 -ljpeg -lssl -lcrypto -lz
|
||||
$(TOOL_NAME)_INSTALL_PATH = /usr/libexec
|
||||
else
|
||||
# Rootful settings
|
||||
$(TOOL_NAME)_OBJCFLAGS += -Ivncbuild/include -Iinclude
|
||||
$(TOOL_NAME)_LDFLAGS += -Wl,-segalign,4000 -Lvncbuild/lib -lvncserver -lpng -llzo2 -ljpeg -lssl -lcrypto -lz
|
||||
$(TOOL_NAME)_INSTALL_PATH = /usr/libexec
|
||||
endif
|
||||
|
||||
$(TOOL_NAME)_CFLAGS = -w
|
||||
$(TOOL_NAME)_CODESIGN_FLAGS = "-Sen.plist"
|
||||
$(TOOL_NAME)_INSTALL_PATH = /usr/libexec
|
||||
|
||||
include $(THEOS_MAKE_PATH)/tool.mk
|
||||
|
||||
|
||||
SUBPROJECTS += hooks
|
||||
|
||||
include $(THEOS_MAKE_PATH)/aggregate.mk
|
||||
@@ -38,4 +47,4 @@ else
|
||||
after-screendumpd-stage::
|
||||
$(ECHO_NOTHING) rm $(THEOS_STAGING_DIR)/Library/LaunchDaemons/com.julioverne.screendumpd.rootless.plist$(ECHO_END)
|
||||
$(ECHO_NOTHING)$(FAKEROOT) chown root:wheel $(THEOS_STAGING_DIR)/Library/LaunchDaemons/com.julioverne.screendumpd.plist$(ECHO_END)
|
||||
endif
|
||||
endif
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Building package for ROOTFUL Jailbreak"
|
||||
|
||||
make clean
|
||||
make package FINALPACKAGE=1
|
||||
|
||||
echo "Building package for ROOTLESS Jailbreak"
|
||||
|
||||
make clean
|
||||
make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless
|
||||
0
screendumpLowFrame/en.plist
Normal file → Executable file
0
screendumpLowFrame/en.plist
Normal file → Executable file
@@ -2,17 +2,16 @@ TARGET = iphone:16.5:14.0
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
|
||||
|
||||
TWEAK_NAME = screendumpbb
|
||||
$(TWEAK_NAME)_FILES = Tweak.xm
|
||||
$(TWEAK_NAME)_FILES = /mnt/d/codes/screendumpLowFrame/hooks/Tweak.xm
|
||||
$(TWEAK_NAME)_FRAMEWORKS := IOSurface IOKit
|
||||
$(TWEAK_NAME)_PRIVATE_FRAMEWORKS := IOMobileFramebuffer IOSurface
|
||||
|
||||
ADDITIONAL_OBJCFLAGS += -I../vncbuild/include -Iinclude
|
||||
ADDITIONAL_OBJCFLAGS += -I/mnt/d/codes/screendumpLowFrame/vncbuild/include -Iinclude
|
||||
ADDITIONAL_LDFLAGS += -Wl,-segalign,4000
|
||||
ADDITIONAL_CFLAGS = -w
|
||||
|
||||
export ARCHS = arm64
|
||||
$(TWEAK_NAME)_ARCHS = arm64
|
||||
export ARCHS = arm64 arm64e
|
||||
$(TWEAK_NAME)_ARCHS = arm64 arm64e
|
||||
|
||||
include $(THEOS_MAKE_PATH)/tweak.mk
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
#undef NSLog
|
||||
|
||||
#define kSettingsPath @"/var/mobile/Library/Preferences/com.cosmosgenius.screendump.plist"
|
||||
|
||||
extern "C" UIImage* _UICreateScreenUIImage();
|
||||
|
||||
static BOOL isEnabled;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
Package: com.cosmosgenius.screendump13
|
||||
Package: com.m1337.screendump15
|
||||
Name: screendump
|
||||
Depends: preferenceloader
|
||||
Depends: mobilesubstrate, preferenceloader
|
||||
Architecture: iphoneos-arm
|
||||
Description: VNC for ios
|
||||
Maintainer: Sharat M R <cosmosgenius@gmail.com>
|
||||
Author: Sharat M R <cosmosgenius@gmail.com>
|
||||
Maintainer: m1337 <morpheus@1337.pro>
|
||||
Author: m1337 <morpheus@1337.pro>
|
||||
Section: Tweaks
|
||||
Version: 0.0.4
|
||||
Version: 0.0.5
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
if [ -L "/var/jb" ]; then
|
||||
launchctl unload /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist
|
||||
6
screendumpLowFrame/main.mm
Normal file → Executable file
6
screendumpLowFrame/main.mm
Normal file → Executable file
@@ -1,9 +1,9 @@
|
||||
#include <errno.h>
|
||||
#include <substrate.h>
|
||||
#include <rfb/rfb.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <IOSurface/IOSurfaceRef.h>
|
||||
#import <rootless.h>
|
||||
#import <xpc/xpc.h>
|
||||
|
||||
#define kSettingsPath @"/var/mobile/Library/Preferences/com.cosmosgenius.screendump.plist"
|
||||
|
||||
static bool CCSisEnabled = true;
|
||||
static NSString *CCSPassword = nil;
|
||||
|
||||
2
screendumpLowFrame/vncbuild/include/rfb/rfbclient.h
Normal file → Executable file
2
screendumpLowFrame/vncbuild/include/rfb/rfbclient.h
Normal file → Executable file
@@ -81,7 +81,7 @@
|
||||
#define TUNNEL_PORT_OFFSET 5500
|
||||
#define SERVER_PORT_OFFSET 5900
|
||||
|
||||
#define DEFAULT_SSH_CMD "/usr/bin/ssh"
|
||||
#define DEFAULT_SSH_CMD "/var/jb/usr/bin/ssh"
|
||||
#define DEFAULT_TUNNEL_CMD \
|
||||
(DEFAULT_SSH_CMD " -f -L %L:localhost:%R %H sleep 20")
|
||||
#define DEFAULT_VIA_CMD \
|
||||
|
||||
Reference in New Issue
Block a user