Преглед на файлове

fix preferences for iOS 15 xina beta jailbreak

master
gilshahar7 преди 1 година
родител
ревизия
27ee470446
променени са 3 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. +1
    -1
      control
  2. Двоични данни
      packages/com.gilshahar7.pearlretry_1.2.1_iphoneos-arm.deb
  3. +2
    -2
      pearlretryprefs/prpRootListController.m

+ 1
- 1
control Целия файл

@@ -1,7 +1,7 @@
Package: com.gilshahar7.pearlretry
Name: PearlRetry
Depends: mobilesubstrate
Version: 1.2
Version: 1.2.1
Architecture: iphoneos-arm
Description: Retry FaceID when failed to recognize.
Maintainer: gilshahar7

Двоични данни
packages/com.gilshahar7.pearlretry_1.2.1_iphoneos-arm.deb Целия файл


+ 2
- 2
pearlretryprefs/prpRootListController.m Целия файл

@@ -4,14 +4,14 @@
@implementation prpRootListController

- (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];
[settings addEntriesFromDictionary:[NSDictionary dictionaryWithContentsOfFile:path]];
return (settings[specifier.properties[@"key"]]) ?: specifier.properties[@"default"];
}

- (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];
[settings addEntriesFromDictionary:[NSDictionary dictionaryWithContentsOfFile:path]];
[settings setObject:value forKey:specifier.properties[@"key"]];

Loading…
Отказ
Запис