here acts as root directory, i.e. “/” on iOS), enhancing the functionality of deb packages lot.
Let’s take an example to see the magic of “layout”.
Go back to iOSREProject, input “make clean” and “rm *.deb” in Terminal to restore the
project to the original state:
snakeninnysiMac:iosreproject snakeninny$ make clean
rm - rf ./obj
rm - rf "/Users/snakeninny/Code/iosreproject/_"
snakeninnysiMac:iosreproject snakeninny$ rm *.deb
snakeninnysiMac:iosreproject snakeninny$ ls - l
total 32
- rw-r--r-- 1 snakeninny staff 262 Dec 3 09:20 Makefile
- rw-r--r-- 1 snakeninny staff 0 Dec 3 11:28 Tweak.xm
- rw-r--r-- 1 snakeninny staff 223 Dec 3 09:05 control
- rw-r--r--@ 1 snakeninny staff 175 Dec 3 09:48 iOSREProject.plist
lrwxr-xr-x 1 snakeninny staff 11 Dec 3 09:05 theos - > /opt/theos
Then create a new “layout” folder:
snakeninnysiMac:iosreproject snakeninny$ mkdir layout
And put some random empty files under “layout”:
snakeninnysiMac:iosreproject snakeninny$ touch ./layout/1.test
snakeninnysiMac:iosreproject snakeninny$ mkdir ./layout/Developer
snakeninnysiMac:iosreproject snakeninny$ touch ./layout/Developer/2.test
snakeninnysiMac:iosreproject snakeninny$ mkdir -
p ./layout/var/mobile/Library/Preferences
snakeninnysiMac:iosreproject
snakeninny$ touch ./layout/var/mobile/Library/Preferences/3.test
At last, run “make package” to pack, then copy the deb package to iOS, and install it via
iFile. Now you can inspect files of iOSREProject in Cydia, as shown in figure 3-13.