r/jailbreak • • Mar 17 '14
Flex to MobileSubstrate: A beginner's guide to making a tweak.
[deleted] — view deleted post
425
Upvotes
r/jailbreak • • Mar 17 '14
[deleted] — view deleted post
18
u/_spinward iPhone 5 Mar 17 '14
Great post.
You can also run these commands to get dpkg-deb installed without installing MacPorts:
curl -O http://test.saurik.com/francis/dpkg-deb-fatchmod a+x dpkg-deb-fatsudo mkdir -p /usr/local/binsudo mv dpkg-deb-fat /usr/local/bin/dpkg-deb11
u/xbladz2002 iPhone 6, iOS 9.3.3 Mar 17 '14
Thank you, this guide is a great place to start for new folks like myself...Truly thank you.
9
u/Codyd51 Developer Mar 17 '14
This is a great guide!
I actually made a github repo with a few simple, beginner projects, which comments on every line explaining what's going on, though I forgot to tell anyone about it :P link here.
8
u/paradoxally iPhone 14 Pro Max, 16.6.1 Mar 17 '14
As a developer (iOS, but not jailbreak) I have to say amazing job! I'll look into developing some JB tweaks soon (nothing too major, since I'm still a newbie in this specific area). Thanks for the tutorial.
17
u/kizit Mar 17 '14
At work so I haven't had a chance to read all of this but I want to go ahead and say thanks for taking the time to write this. definitely something I plan on checking out later. :)
6
u/[deleted] Mar 17 '14
thank you
5
u/atrociousxcracka iPad Pro 11, M1, 15.5 Mar 17 '14
I'm not a developer and I really have no time or dedication to ever become one.
I just one to say, thank you and good job! I know I've seen plenty of people that have asked for something like this, and I'm sure it took you forever to write all that.
People like you are what makes this sub amazing, keep up the good work!
I'm sure plenty of people will be glad you made this guide, even some guy that finds it through the search function in 274days
3
u/TheSkyMayFall Mar 17 '14
how would you go about making a project with cygwin?
3
u/MobbinOnEm iPhone X, 13.5 | Mar 17 '14 edited Mar 17 '14
When you refer to terminal, are you referring to MobileTerminal on iDevice or on Mac/Linux/PC?
Edit: I'll be doing it on a PC
3
u/brygphilomena iPhone 5s Mar 18 '14
And this is why I posted a flex tweak and an hour later someone makes it and posts it to bigboss! I really need to learn to code.
3
u/jontelang Developer Mar 18 '14
Nice Xcode picture ;)
2
u/_spinward iPhone 5 Mar 18 '14
This may be of help for the Windows guys.
2
u/TheSkyMayFall Mar 18 '14
what do you open tweak.xm with? (in windows)
2
u/[deleted] Mar 18 '14
What would you do in case of a Return Value (void) and an Argument (id).
Example method: -(void) handleShowNotificationsSystemGesture:(id)
2
u/Jpasholk iPhone 6s, iOS 10.2 Mar 18 '14
What an amazing post. I work for a new jailbreak site. Would you like to post something like this on our site? We would love to chat about it.
2
u/Jeremy0734 Mar 18 '14
What did you use to get your signal and wifi like that?
2
u/beetling Mar 18 '14
I'm working on encouraging people to centralize guides like this on iPhoneDevWiki, where they can be collectively edited and kept up to date by multiple developers. Would you be up for putting this there? Or I can put it there (with your permission) if you aren't interested in figuring out wiki syntax.
2
u/KevinDee89 Mar 18 '14
Thank you for this guide!!
2
u/gsparx Mar 18 '14
This is wonderful! I'm a java and RoR dev and I've always wanted to break into mobile substrate development but the task was always daunting. This is an awesome place to start
2
u/[deleted] Mar 18 '14
Wow this is really cool! So it should run everything on Linux!? I might be able to start learning to tweak without buying a Mac? :)
2
u/ham4ever89 iPhone 13, 15.1 Mar 18 '14
Thanks for the guide
2
u/roninplaya iPhone 6s, iOS 9.0.2 Mar 18 '14
Thank you so very much! Commenting to bookmark considering I'm in STAT class and want to start right now :(
2
u/timfoerster iPhone 7, iOS 11.3.1 Mar 18 '14
Hi thank you very much for this post ! Will try as soon as I get home tonight. But I have one question. When you create the project and get asked what process to kill and you say you put Springboard backboardd, what does that exactly mean ? Does this make the device respring when you install the tweak ?
2
u/[deleted] Mar 18 '14
On the initial git clone is anyone else bumping into "errno=Operation timed out" constantly? I've tried on a few different connections & still hitting that issue.
2
u/timfoerster iPhone 7, iOS 11.3.1 Mar 19 '14
Why does this not work when I run git clone git://git.saurik.com/ldid.git ?
2
u/[deleted] Mar 19 '14
Im missing my IOSurface.h. Would anybody be able to drop me theirs?
2
u/TheSkyMayFall Mar 19 '14
What would you do in case of a Return Value (pass-through) and and mutiple Argument (id) such as arguments #1 #2 #3
2
u/montazery iPhone 5 Mar 19 '14
using your method I tried to translate my Flex tweak (shows contact photo in messages app) to mobilesubstrate, compiling just fine, but when I install it to the device it won't work, it shows nothing.
When I first started in nic.pl what should I choose in [iphone/tweak] MobileSubstrate Bundle filter [com.apple.springboard]: options (since this is a mobile sms tweak? com.apple.springboard or com.apple.mobilesms?
My code http://pastebin.com/bqiCVEY7
2
u/[deleted] Mar 19 '14
It's worth noting that you can use homebrew to get dpkg as well. "brew install dpkg". Personally I prefer homebrew over MacPorts, I find it more user-friendly.
5
u/admiral0912 iPhone 6 Plus, iOS 9.2 Mar 17 '14
You, good sir, are truly the master of science (the science of tweaks, I mean).
1
u/eliasnawfal iPhone 6s, iOS 9.3 Mar 19 '14
/cygdrive/d/jb/caz1/theos/Prefix.pch:2:10: fatal error: 'Foundation/Foundation.h' file not found #import <Foundation/Foundation.h> ^ 1 error generated. /cygdrive/d/jb/caz1/theos/makefiles/instance/rules.mk:144: recipe for target 'obj/Tweak.xm.ee6e208c.o' failed make[2]: *** [obj/Tweak.xm.ee6e208c.o] Error 1 /cygdrive/d/jb/caz1/theos/makefiles/instance/library.mk:19: recipe for target 'internal-library-all_' failed make[1]: *** [internal-library-all_] Error 2 /cygdrive/d/jb/caz1/theos/makefiles/master/rules.mk:54: recipe for target 'caz1.all.tweak.variables' failed make: *** [caz1.all.tweak.variables] Error 2
getting this error when compiling on windows. any idea?
1
u/perascotta iPhone 5, iOS 9.0.2 Mar 30 '14
Hi! Doing my tweak (ReplaceBlurs) all goes week. The only thing that I can't understand is why my teak doesn't operate correctly on an iphone 5S. Is that a problem from the code-source or from the compiling part?
1
u/perascotta iPhone 5, iOS 9.0.2 Mar 31 '14
Someone can tell me if there's some code that I can add to the tweak so that when the tweak been removed everything goes well?
With a tweak a set a boolean variable as TRUE but when I remove the tweak that variable still remains TRUE and I don't want it. How can I write a tweak that when it been removed the variable been setting on "pass-trough"?
1
u/solwGer iPhone 11, 14.3 Beta | Apr 14 '14 edited Apr 14 '14
I have never worked with SSH, and I get stuck at this step. Could you clarify this.
Would be greatly appreciated.
1
u/Mulvad4ever iPhone X, iOS 12.4 Aug 09 '14
I know I'm late to the party, but when I'm in Xcode Preferences>Downloads my screen looks like this. How do I install the Command Line Tools?
0
u/[deleted] Mar 18 '14
[deleted] — view deleted comment
0
u/[deleted] Mar 18 '14
[deleted] — view deleted comment
0
u/[deleted] Mar 18 '14
[deleted] — view deleted comment
0
u/[deleted] Mar 18 '14
[deleted] — view deleted comment
0
u/[deleted] Mar 18 '14
[deleted] — view deleted comment
0
u/[deleted] Aug 10 '14
[deleted] — view deleted comment
0
u/[deleted] Aug 10 '14
[deleted] — view deleted comment