Making a simple tweak
Step 1: Intro and Download
In this tutorial I will be showing you how to make a simple "Page Dots" remover. We will begin by downloading the base project here
Step 2: Symlinking Theos and Setting up
Now that we have the base project, we need to do a few more things...
1. Move the project to /var/mobile
2. Symlink theos
3. Rename "com.yourcompany.page" (yourcompany being your username) which is inside of the control file
Step 3: Editing the tweak.xm
Now we have sorted everything out, we can finally begin to edit the actual tweak. Open up tweak.xm and you should see my code, this is just the base and will do nothing until we add a value.
Base code:
%hook SBIconPageIndicatorImageSetResult
-(id) pageIndicatorSet {}
-(id) enabledPageIndicatorSet {}
%end
We will now want to add a NULL expression to these id's. But first to explain what methods are...
Details: What are methods and how to use them?
Methods are what we use to define new code, we use this new code with either basic or advanced methods. Some are listed below for you..
Simple methods used in coding are: id(NULL or 0)
bool(TRUE or FALSE)
int(1 - infinity)
float(1f = 1x, 2f = 2x)
double(1 - infinity)
long long(1 - infinity)
Advanced methods used in coding are: CGRect(x, y, w, h)
UIColor([UIColor blackColor])
CGSize(w, h)
Step 4: Editing the tweak.xm (cont.)
Now you should know about the different methods and their values. We will now edit the page dots. You should see {}, inside of these we will want to add = return NULL;
and the finishing product should be
-(id) pageIndicatorSet {
return NULL;
}
and the same for the other method. Once this is done just press save and close your file browser.
Step 5: Building and Deploying
We now have the finished product, well pretty much. Open up your terminal prompt and follow these steps:
su
password
cd /var/mobile/page
make package install
Your tweak should be building, just sit back and watch as it makes the tweak and installs it directly to your device. Once your device resprings you can go to your homescreen and look just above the dock. Where are the dots?.. Oh well.
Finishing up
When and if you want to uninstall the tweak just go into Cydia and remove it as usual. You can also add a toggle but that can be another tutorial. Thank you all for reading! Enjoy your new tweak.