What im trying to do is creating an sbsettings toggle for a cydia app with a on/off button in settings I've downloaded the "SBsettings Scripty" from insanely cydia repo which is a prebuilt toggle all i need to do is write the command to execute when the button is on and off... there are 2 files to edit:
it contains by default:
so basically this turn the toggle off and writes "the toggle is now OFF" in the scripty.txt
echo "the toggle is now OFF" >>/var/mobile/scripty.txt
and the other file com.mytoggle.toggle1-launch-when-toggle-is-off does exactly the opposite, turn the toggle ON and writes "the toggle is now ON
so im trying to replace this script of writing text in scripty.txt file to a command that change values in the .plist of the app
this is how my plist file looks like:
i want to replace </false> of the <key>something1</key> with </true> which will turn the button on...
<?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">
YES i'm noob but i'd like to make this toggle work!
Thanks in advance!