mirror of
https://github.com/gilshahar7/PearlRetry.git
synced 2025-06-28 08:26:46 +00:00
fix preferences for iOS 15 xina beta jailbreak
This commit is contained in:
2
control
Normal file → Executable file
2
control
Normal file → Executable file
@ -1,7 +1,7 @@
|
|||||||
Package: com.gilshahar7.pearlretry
|
Package: com.gilshahar7.pearlretry
|
||||||
Name: PearlRetry
|
Name: PearlRetry
|
||||||
Depends: mobilesubstrate
|
Depends: mobilesubstrate
|
||||||
Version: 1.2
|
Version: 1.2.1
|
||||||
Architecture: iphoneos-arm
|
Architecture: iphoneos-arm
|
||||||
Description: Retry FaceID when failed to recognize.
|
Description: Retry FaceID when failed to recognize.
|
||||||
Maintainer: gilshahar7
|
Maintainer: gilshahar7
|
||||||
|
BIN
packages/com.gilshahar7.pearlretry_1.2.1_iphoneos-arm.deb
Normal file
BIN
packages/com.gilshahar7.pearlretry_1.2.1_iphoneos-arm.deb
Normal file
Binary file not shown.
@ -4,14 +4,14 @@
|
|||||||
@implementation prpRootListController
|
@implementation prpRootListController
|
||||||
|
|
||||||
- (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"]];
|
||||||
|
Reference in New Issue
Block a user