r/flextweak • u/[deleted] • Feb 15 '13
Flex Tips
I am by no means a pro at using Flex and I think we can all learn a little something from each other about it. Post here any nice hints or tips you think might be useful to others.
Here are a couple of my own:
If you're not sure where to start, download a few tweaks and look at the units used
Flex can will do simple (but effective) changes; Mostly you can disable features as this doesn't involve adding anything additional. On some occasions you can enable things, but only of the app has it hidden. E.g my VOIP tweak for Facebook was possible because it was available in a different country but disabled in the UK, not removed from the app completely.
Play about with it. You'll get a head ache but it will be worth it. Sometimes trial and error is really helpful!
Use errors in the app to help you find the Unit. If the error says you can't do something, search for the key word to see if you can reverse it!
12
u/getdamned Feb 15 '13
... I think we can all learn a little something from each other ...
Indeed. Love learning. Even if it's just a refresher or reaffirmation of what you already may know.
Basically what you're saying is that most often, if you want to disable features or checks, you'll usually find yourself overriding a BOOL return value to always return FALSE. The opposite is quite typical as well-- when you're adding or enabling things, you'll find yourself overriding these same return values to always return TRUE. This is not a rule, by any means!
-(BOOL) enableProFeatures will probably return FALSE in normal circumstances. You want to ENABLE this flag, so you override that with TRUE.
-(BOOL) showMassiveNagBanners may return TRUE in some annoying app. You want to DISABLE or REMOVE these, so you'll override the return, setting it to FALSE.
But that's pretty common sense, isn't it... I suppose so. It's just logic. BOOLEAN logic. Haw haw.
Being serious, yes... I agree that the best method is to "chip away at it" slowly. Override one or two methods at a time, then run the app and observe. If you accomplished your goal, great. If it's still not working... well, you can probably remove those overrides you just created. Sometimes you need several overrides working in tandem, but at the same time, you don't want to be doing MORE than what you need to-- bare minimum is the key here. You want to accomplish what you are trying to, without screwing anything up! LOL. If you leave the 30 "units" or overrides that you tried (which didn't work) in the patch... don't be surprised later on if things aren't acting right in the app. :P
Thanks for your tips, Paul. If everyone added a tip or two, it could be a good resource to learn a few things that may not be immediately obvious in the demo tweaks.
9
u/bubbaiOS Feb 16 '13
After spending hours making tweaks, here are a few tips I can offer.
For ad removal, look for things like "Ad" "Banner" and in combination with "display", "show", "load", "permitted", "enabled", "available". Things like "loadAd", "displayAd", "showAd".
For removing/adding licensed features, look for things such as "InApp", "license", "points", "credit", "buy", "points"
For Jailbreak removal, look for "jailbreak" of course. Some of these do not work on MDM solutions that have additional, hidden checks.
3
5
Feb 16 '13
Something new i found today...
Some apps don't allow "iGameGuardian" to find their values
To remove the check search for "Human"
Then select all the "HumanReadable" units
then just put TRUE on the units :)
2
u/StoNeD510 Feb 24 '13
Those are part of the libraries section right? I haven't touched them, wasn't sure if they were to be messed with.
2
3
u/J-Wo24601 Feb 16 '13
I am really starting to get the hang of this and all of these tips were very helpful! I have been wanting to patch Slacker Radio for years and now with Flex and the help of you guys, I've removed all ads and enabled unlimited skips. Thanks guys!
3
u/getdamned Feb 16 '13
Just out of curiosity, (roughly) how many methods/overrides did Slacker require to accomplish that?
3
u/J-Wo24601 Feb 17 '13
I took me 4 units yesterday, but today the unlimited skips part isn't working anymore! Somehow yesterday during my testing, the app thought I had a premium account, but today it is back to basic. All the ads are gone, but skipping after the counter goes to 0 logs me out of the app. If it gets approved, look for the patch by JWo.
3
u/J-Wo24601 Feb 18 '13
These tips have helped me remove banner ads in some apps. Mostly this just replaces it with a black area. Does anyone know how to remove this?
3
u/inknzvl Feb 18 '13
Hello guys I did download the tweak from the cloud to disable (yahoo logo button) in wheatear app. I love it but I don't use weather app I dl it just for testing. But here is my observation. I was checking the patch and this guy (BenchEPVP the author) brought 2 TargetMethods to Patch Editor screen that reads: Class: WeatherBacksideView method: -(void) _yahooLogoTapped
Override Return Value NONE As you can see there is no (Bool) setting here and the override return value here is not clickable. So how did he disabled the yahoo logo here? Just bringing the methods to patch editor screen and active the patch ? Don't know what I'm missing here. By the way I want to disable the yahoo logo but in notification center but still I'm looking for it.
1
u/tahubird Feb 26 '13
When you mark a function that returns void, it prevents it from running at all
1
-6
u/SquishySquid69 Feb 18 '13
Hey, I am interested in making new tweaks using flex and trying other peoples tweaks! I am 16, I dont have a credit card or anyway to buy this package, i can only use the cracked version which doesnt allow for tweak downloads. Could i change a value in the flex app to change this? Any help is appreciated! Thanks.
5
Feb 18 '13
Ask a parent or someone who does have a credit/debit card. Having no money isn't an excuse for piracy.
0
Feb 19 '13
[deleted]
1
u/teenageguru Feb 21 '13
I have a debit card, but I still prefer to buy Amazon gift cards and put them in an amazon account. Ask for them for birthdays or holidays. Definitely worth it.
3
u/[deleted] Feb 16 '13
Some really good tips folks!! Has anyone created any new tweaks on the back of the tips here?