Jump to content

11 posts in this topic

Recommended Posts

Posted

Are your keys correct and hooked up to the same name?

Posted
1 minute ago, ProNab said:

show a pic of tweak.xm and the plist

.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>items</key>
    <array>
        <dict>
            <key>cell</key>
            <string>PSGroupCell</string>
            <key>footerText</key>
            <string>SettingsSearch.</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSSwitchCell</string>
            <key>default</key>
            <false/>
            <key>defaults</key>
            <string>com.sunny.NoSettingsSearch</string>
            <key>key</key>
            <string>key1</string>
            <key>label</key>
            <string>Search On or Off</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSGroupCell</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSTextCell</string>
            <key>label</key>
            <string>Made by Sunny Patel.</string>
        </dict>
        <dict>
            <key>action</key>
            <string>link</string>
            <key>cell</key>
            <string>PSButtonCell</string>
            <key>icon</key>
            <string>[email protected]</string>
            <key>label</key>
            <string>Subscribe (Button)</string>
        </dict>
    </array>
    <key>title</key>
    <string>NoSettingsSearch Tweak</string>
</dict>
</plist>

 

 

tweak.xm:

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.sunny.NoSettingsSearch.plist"
 
inline bool GetPrefBool(NSString *key) {
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook PSSearchController
 -(id)searchBar {
if(GetPrefBool(@"key1")) {
return NULL;
}
return %orig;
}
%end

Posted (edited)
6 minutes ago, Donald J Trump said:

.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>items</key>
    <array>
        <dict>
            <key>cell</key>
            <string>PSGroupCell</string>
            <key>footerText</key>
            <string>SettingsSearch.</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSSwitchCell</string>
            <key>default</key>
            <false/>
            <key>defaults</key>
            <string>com.sunny.NoSettingsSearch</string>
            <key>key</key>
            <string>key1</string>
            <key>label</key>
            <string>Search On or Off</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSGroupCell</string>
        </dict>
        <dict>
            <key>cell</key>
            <string>PSTextCell</string>
            <key>label</key>
            <string>Made by Sunny Patel.</string>
        </dict>
        <dict>
            <key>action</key>
            <string>link</string>
            <key>cell</key>
            <string>PSButtonCell</string>
            <key>icon</key>
            <string>[email protected]</string>
            <key>label</key>
            <string>Subscribe (Button)</string>
        </dict>
    </array>
    <key>title</key>
    <string>NoSettingsSearch Tweak</string>
</dict>
</plist>

 

 

tweak.xm:

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.sunny.NoSettingsSearch.plist"
 
inline bool GetPrefBool(NSString *key) {
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook PSSearchController
 -(id)searchBar {
if(GetPrefBool(@"key1")) {
return NULL;
}
return %orig;
}
%end

com.sunny.NoSettingsSearch ??? this is not the bundle id...

replace this with the bundle id of the app that u are hacking

Updated by ProNab
Posted
1 hour ago, ProNab said:

com.sunny.NoSettingsSearch ??? this is not the bundle id...

replace this with the bundle id of the app that u are hacking

I'm not hacking a game I'm making a tweak for settings app.

Posted
22 minutes ago, Donald J Trump said:

I'm not hacking a game I'm making a tweak for settings app.

u still need to put the bundle id

try this: com.apple.Preferences

Posted
10 hours ago, ProNab said:

u still need to put the bundle id

try this: com.apple.Preferences

Did that but sadly it's still not working, I dunno what to do since I've redid the project multiple times with different templates and used other tuts on iOSgods 

Posted
7 minutes ago, Donald J Trump said:

Did that but sadly it's still not working, I dunno what to do since I've redid the project multiple times with different templates and used other tuts on iOSgods 

did u replace it in tweak.xm and plist as well?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines