Skip to content
Guest Big Announcement

Switch Not Turning on TWEAK

Featured Replies

  • Author
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

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

  • Author
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.

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

  • Author
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 

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.