rework a bit
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <rootless.h>
|
||||
|
||||
#define kSettingsPath @"/var/mobile/Library/Preferences/com.cosmosgenius.screendump.plist"
|
||||
#define kSettingsPath @"/var/mobile/Library/Preferences/ru.mostmodest.screendump.plist"
|
||||
|
||||
extern "C" UIImage* _UICreateScreenUIImage();
|
||||
|
||||
@@ -126,7 +126,7 @@ static BOOL isBlackScreen;
|
||||
[imageData writeToFile:@"//tmp/screendump_Buff.tmp" atomically:YES];
|
||||
[@{@"width":@(iWidth), @"height":@(iHeight), @"size":@(size),} writeToFile:@"//tmp/screendump_Info.tmp" atomically:YES];
|
||||
NSLog(@"screendumpbb: capture - notifying daemon");
|
||||
notify_post("com.julioverne.screendump/frameChanged");
|
||||
notify_post("ru.mostmodest.screendump/frameChanged");
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -164,7 +164,7 @@ static void loadPrefs(CFNotificationCenterRef center, void* observer, CFStringRe
|
||||
{
|
||||
NSLog(@"screendumpbb: loadPrefs");
|
||||
@autoreleasepool {
|
||||
NSUserDefaults *defaults = [[NSUserDefaults alloc] initWithSuiteName:@"com.cosmosgenius.screendump"];
|
||||
NSUserDefaults *defaults = [[NSUserDefaults alloc] initWithSuiteName:@"ru.mostmodest.screendump"];
|
||||
isEnabled = [[defaults objectForKey:@"CCSisEnabled"]?:@NO boolValue];
|
||||
NSLog(@"screendumpbb: loadPrefs - isEnabled: %d", isEnabled);
|
||||
}
|
||||
@@ -177,7 +177,7 @@ static void loadPrefs(CFNotificationCenterRef center, void* observer, CFStringRe
|
||||
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, screenDisplayStatus, CFSTR("com.apple.iokit.hid.displayStatus"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
|
||||
NSLog(@"screendumpbb: ctor 1");
|
||||
|
||||
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, loadPrefs, CFSTR("com.cosmosgenius.screendump/preferences.changed"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
|
||||
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, loadPrefs, CFSTR("ru.mostmodest.screendump/preferences.changed"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
|
||||
NSLog(@"screendumpbb: ctor 2");
|
||||
|
||||
loadPrefs(NULL, NULL, NULL, NULL, NULL);
|
||||
|
||||
@@ -11,4 +11,4 @@ SUBPROJECTS += Capturer Server
|
||||
include $(THEOS_MAKE_PATH)/aggregate.mk
|
||||
|
||||
after-screendumpd-stage::
|
||||
$(ECHO_NOTHING)$(FAKEROOT) chown root:wheel $(THEOS_STAGING_DIR)/Library/LaunchDaemons/com.julioverne.screendumpd.plist$(ECHO_END)
|
||||
$(ECHO_NOTHING)$(FAKEROOT) chown root:wheel $(THEOS_STAGING_DIR)/Library/LaunchDaemons/ru.mostmodest.screendumpd.plist$(ECHO_END)
|
||||
@@ -14,4 +14,4 @@ $(TOOL_NAME)_CODESIGN_FLAGS = -Sentitlements.plist
|
||||
include $(THEOS_MAKE_PATH)/tool.mk
|
||||
|
||||
after-screendumpd-stage::
|
||||
$(ECHO_NOTHING)$(FAKEROOT) chown root:wheel $(THEOS_STAGING_DIR)/Library/LaunchDaemons/com.julioverne.screendumpd.plist$(ECHO_END)
|
||||
$(ECHO_NOTHING)$(FAKEROOT) chown root:wheel $(THEOS_STAGING_DIR)/Library/LaunchDaemons/ru.mostmodest.screendumpd.plist$(ECHO_END)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#import <IOSurface/IOSurfaceRef.h>
|
||||
#import <rootless.h>
|
||||
|
||||
#define kSettingsPath @"/var/mobile/Library/Preferences/com.cosmosgenius.screendump.plist"
|
||||
#define kSettingsPath @"/var/mobile/Library/Preferences/ru.mostmodest.screendump.plist"
|
||||
|
||||
static bool CCSisEnabled = true;
|
||||
static NSString *CCSPassword = nil;
|
||||
@@ -161,7 +161,7 @@ static void loadPrefs(void)
|
||||
NSLog(@"screendumpd: load prefs");
|
||||
@autoreleasepool {
|
||||
NSDictionary* defaults = nil;
|
||||
CFStringRef appID = CFSTR("com.cosmosgenius.screendump");
|
||||
CFStringRef appID = CFSTR("ru.mostmodest.screendump");
|
||||
CFArrayRef keyList = CFPreferencesCopyKeyList(appID, CFSTR("mobile"), kCFPreferencesAnyHost);
|
||||
if(keyList) {
|
||||
defaults = (NSDictionary *)CFPreferencesCopyMultiple(keyList, appID, CFSTR("mobile"), kCFPreferencesAnyHost)?:@{};
|
||||
@@ -217,13 +217,13 @@ int main(int argc, const char *argv[])
|
||||
CFNotificationCenterAddObserver(
|
||||
CFNotificationCenterGetDarwinNotifyCenter(),
|
||||
NULL, (CFNotificationCallback)loadPrefs,
|
||||
CFSTR("com.cosmosgenius.screendump/preferences.changed"),
|
||||
CFSTR("ru.mostmodest.screendump/preferences.changed"),
|
||||
NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
|
||||
|
||||
CFNotificationCenterAddObserver(
|
||||
CFNotificationCenterGetDarwinNotifyCenter(),
|
||||
NULL, (CFNotificationCallback)upFrame,
|
||||
CFSTR("com.julioverne.screendump/frameChanged"),
|
||||
CFSTR("ru.mostmodest.screendump/frameChanged"),
|
||||
NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
|
||||
|
||||
NSLog(@"screendumpd: main - vnc setup");
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
Package: com.m1337.screendump15
|
||||
Name: screendump
|
||||
Depends: mobilesubstrate, preferenceloader
|
||||
Package: ru.mostmodest.screendump.lowframe
|
||||
Name: screendumpLowFrame
|
||||
Architecture: iphoneos-arm
|
||||
Description: VNC for ios
|
||||
Maintainer: m1337 <morpheus@1337.pro>
|
||||
Author: m1337 <morpheus@1337.pro>
|
||||
Description: VNC for iOS15+ (rootless/Ellekit)
|
||||
Maintainer: mostm
|
||||
Author: julioverne
|
||||
Section: Tweaks
|
||||
Conflicts: ru.mostmodest.screendump
|
||||
Depends: mobilesubstrate, preferenceloader
|
||||
Icon: file:///Library/PreferenceLoader/Preferences/screendump/ScreenDump@2x.png
|
||||
Version: 0.0.5
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -L "/var/jb" ]; then
|
||||
launchctl load /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist
|
||||
launchctl load /var/jb/Library/LaunchDaemons/ru.mostmodest.screendumpd.plist
|
||||
else
|
||||
launchctl load /Library/LaunchDaemons/com.julioverne.screendumpd.plist
|
||||
launchctl load /Library/LaunchDaemons/ru.mostmodest.screendumpd.plist
|
||||
fi
|
||||
|
||||
exit 0;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -L "/var/jb" ]; then
|
||||
launchctl unload /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist
|
||||
launchctl unload /var/jb/Library/LaunchDaemons/ru.mostmodest.screendumpd.plist
|
||||
else
|
||||
launchctl unload /Library/LaunchDaemons/com.julioverne.screendumpd.plist
|
||||
launchctl unload /Library/LaunchDaemons/ru.mostmodest.screendumpd.plist
|
||||
fi
|
||||
|
||||
exit 0;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -L "/var/jb" ]; then
|
||||
launchctl unload /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist
|
||||
launchctl unload /var/jb/Library/LaunchDaemons/ru.mostmodest.screendumpd.plist
|
||||
else
|
||||
launchctl unload /Library/LaunchDaemons/com.julioverne.screendumpd.plist
|
||||
launchctl unload /Library/LaunchDaemons/ru.mostmodest.screendumpd.plist
|
||||
fi
|
||||
|
||||
exit 0;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.julioverne.screendumpd</string>
|
||||
<string>ru.mostmodest.screendumpd</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/var/jb/usr/libexec/screendumpd</string>
|
||||
Reference in New Issue
Block a user