I know that this has always been something people wanted, so I finally decided to do something about it today.
Step 1: download, unzip, and place Lock.app in /Applications
Step 2: install Jiggy.app ang Jiggy runtime from installer
Step 3: open Jiggy.app and navigate to the webpage it displays on your iPod's screen
Step 4: open up the main.
js of Lock.app
Step 5: edit lines 174 to 184 so that it has the password you want. ( the default is 1,1,1,1,1,1). The lines should end up like this (with the question marks replaced by one-digit numbers of your choice)
Code:
if (sc.selectedSegment == ? )
{
if (sc2.selectedSegment == ? )
{
if (sc3.selectedSegment == ? )
{
if (sc4.selectedSegment == ? )
{
if (sc5.selectedSegment == ? )
{
if (sc6.selectedSegment == ? )
Step 6: edit line 186 so it has the identifier of the app you want to lock. You can find the identifier in the app's Info.plist. The default is MobileAddressBook.
It should look like this:
Code:
Application.launchApplicationWithIdentifier("???.?????.???");
Step 7: Hide the original of the app you want to lock with poof
DONE
Optional-
1: replace Lock.app's icon with that of the locked app
2: edit /System/Library/CoreServices/SpringBoard.app/English.lproj/LocalizedApplicationNames.strings so that Lock.app's name apperas as the app you wanted to lock. To do this, I would add
(k e y)com.app.lock (/ k e y )
(s t r i n g) Contacts (/ s t r i n g)
(in < brackets)
for it to appear as Contacts on the home screen
Notes-
You can have more than one Lock.app, just make sure that every Lock.app you install has a different name and indentifier in its info.plist
Hopefully someone with more experience than me can take this and make it easier to manage, but this is good for now.
Edit: screenshots attached
Edit2: Update added. The last one only needed a correct last digit to open, this version fixes the problem