Browse Source

fix preferences for iOS 15 xina beta jailbreak

master
gilshahar7 1 year ago
parent
commit
a1143d57c7
5 changed files with 5 additions and 5 deletions
  1. +1
    -1
      Makefile
  2. +1
    -1
      control
  3. +2
    -2
      exacttimeprefs/ExactTimeprefs.mm
  4. +1
    -1
      exacttimeprefs/Makefile
  5. BIN
      packages/com.gilshahar7.exacttime_2.0.1_iphoneos-arm.deb

+ 1
- 1
Makefile View File

export TARGET = iphone:clang:11.2:7.0 export TARGET = iphone:clang:11.2:7.0
include $(THEOS)/makefiles/common.mk include $(THEOS)/makefiles/common.mk


DEBUG=0
FINALPACKAGE=1


TWEAK_NAME = ExactTime ExactTimeMail ExactTimePhone ExactTimeMessages TWEAK_NAME = ExactTime ExactTimeMail ExactTimePhone ExactTimeMessages
ExactTime_FILES = ExactTime.xm ExactTime_FILES = ExactTime.xm

+ 1
- 1
control View File

Name: ExactTime Name: ExactTime
Depends: mobilesubstrate Depends: mobilesubstrate
Conflicts: com.gilshahar7.exacttimemail, com.gilshahar7.exacttimephone, com.gilshahar7.exacttimemessages Conflicts: com.gilshahar7.exacttimemail, com.gilshahar7.exacttimephone, com.gilshahar7.exacttimemessages
Version: 2.0
Version: 2.0.1
Architecture: iphoneos-arm Architecture: iphoneos-arm
Description: Shows the exact time of notifications, messages, calls and emails. Description: Shows the exact time of notifications, messages, calls and emails.
Maintainer: gilshahar7 Maintainer: gilshahar7

+ 2
- 2
exacttimeprefs/ExactTimeprefs.mm View File

@implementation ExactTimeprefsListController @implementation ExactTimeprefsListController


- (id)readPreferenceValue:(PSSpecifier*)specifier { - (id)readPreferenceValue:(PSSpecifier*)specifier {
NSString *path = [NSString stringWithFormat:@"/User/Library/Preferences/%@.plist", specifier.properties[@"defaults"]];
NSString *path = [NSString stringWithFormat:@"/var/mobile/Library/Preferences/%@.plist", specifier.properties[@"defaults"]];
NSMutableDictionary *settings = [NSMutableDictionary dictionary]; NSMutableDictionary *settings = [NSMutableDictionary dictionary];
[settings addEntriesFromDictionary:[NSDictionary dictionaryWithContentsOfFile:path]]; [settings addEntriesFromDictionary:[NSDictionary dictionaryWithContentsOfFile:path]];
return (settings[specifier.properties[@"key"]]) ?: specifier.properties[@"default"]; return (settings[specifier.properties[@"key"]]) ?: specifier.properties[@"default"];
} }


- (void)setPreferenceValue:(id)value specifier:(PSSpecifier*)specifier { - (void)setPreferenceValue:(id)value specifier:(PSSpecifier*)specifier {
NSString *path = [NSString stringWithFormat:@"/User/Library/Preferences/%@.plist", specifier.properties[@"defaults"]];
NSString *path = [NSString stringWithFormat:@"/var/mobile/Library/Preferences/%@.plist", specifier.properties[@"defaults"]];
NSMutableDictionary *settings = [NSMutableDictionary dictionary]; NSMutableDictionary *settings = [NSMutableDictionary dictionary];
[settings addEntriesFromDictionary:[NSDictionary dictionaryWithContentsOfFile:path]]; [settings addEntriesFromDictionary:[NSDictionary dictionaryWithContentsOfFile:path]];
[settings setObject:value forKey:specifier.properties[@"key"]]; [settings setObject:value forKey:specifier.properties[@"key"]];

+ 1
- 1
exacttimeprefs/Makefile View File

export TARGET = iphone:clang:11.2:7.0 export TARGET = iphone:clang:11.2:7.0
include $(THEOS)/makefiles/common.mk include $(THEOS)/makefiles/common.mk


DEBUG=0
FINALPACKAGE=1


BUNDLE_NAME = ExactTimeprefs BUNDLE_NAME = ExactTimeprefs
ExactTimeprefs_FILES = ExactTimeprefs.mm ExactTimeprefs_FILES = ExactTimeprefs.mm

BIN
packages/com.gilshahar7.exacttime_2.0.1_iphoneos-arm.deb View File


Loading…
Cancel
Save