如何在Substrate中更改值.plist?

时间:2018-07-24 22:50:01

标签: objective-c cydia-substrate

如何在Filza中启用iOS 11中的隐藏静音

https://www.redmondpie.com/enable-silent-mute-mode-toggle-in-ios-11-control-center-without-jailbreak-heres-how/

————————————————————————

我在文件Tweak.xm中的代码:无法正常工作,请帮助我

%hook CCUIMuteModule //only for testing

NSMutableDictionary *设置= [NSMutableDictionary dictionaryWithContentsOfFile:                                 [NSString stringWithFormat:@“ / System / Library / ControlCenter / Bundles / MuteModule.bundle / Info.plist”]]; //访问.plist

-(void)displayDidDisappear {

[settings setValue:@"NO" forKey:@"SBIconVisibilitySetByAppPerference"]; //trying to change a value from the .plist doesn't work

//注意,这不是.plist字典中的值

%orig;

} %end

0 个答案:

没有答案