[MOD] What are the capabilities of Flex? or Is this tweak possible using Flex?
Flex is an amazing tweak.
It allows you to peer into the inner-workings of every app on your device, and not only see how they work, but "patch" them to make them suit your needs. But how far can Flex go? Can every tweak on Cydia be recreated in Flex?
The short answer is no, they can't. Flex doesn't add new content, it simply changes what already exists. If you spend a few minutes trying out the app, you'll notice that you can only do one thing: override methods. Flex allows you to change the way an app already functions, but you can't add new functions.
So, Flex patches that remove the carrier name, disable the store button in the Music app, or alter the bounds of the Springboard are very possible (and somewhat easy) to make; but patches that let you open apps from the spotlight screen, add content to the LockScreen, or change what apps are launched from within an app, sadly, are not possible at the moment. Simply enough, you can only change the value of BOOLs (boolean values, "true" or "false") or ints (integers, 1-9999...) in Flex. Everything else is just tearing parts away from the app (setting objects/returns to NULL, in effect deleting them/making them useless).
The developer of Flex is considering adding more advanced features and capabilities to the tweak, but as of now, this is all we have. It's still more than worth the price, and it's still amazing.
It's just not a miracle maker.
Edit: Is it possible to modify Cydia?
Cydia uses a launch script to run so you can't process it because Flex tries to process the launch script. Another side effect from this launch script makes Cydia immune from tweaks. You also can't process BiteSMS for similar reasons.
-/u/somethingpunk
Posted Feb 6, 2013, 2:57 AM UTC · edited