[HOW TO] Lock Applications

Discussion in 'iOS Jailbreak & Cydia' started by plokiju, Jun 1, 2008.

  1. plokiju

    plokiju New Member

    Joined:
    Nov 5, 2007
    Messages:
    537
    Likes Received:
    5
    I know that this has always been something people wante, 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
    Code:
    <key>com.app.lock</key>
    	<string>Contacts</string>
    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 This is a must have update

    Attached Files:

  2. berky93

    berky93 New Member

    Joined:
    Oct 28, 2007
    Messages:
    4,116
    Likes Received:
    40
    wow! thats awesome!

    ewe need an app that mkes these for you!
  3. plokiju

    plokiju New Member

    Joined:
    Nov 5, 2007
    Messages:
    537
    Likes Received:
    5
    ya, Im not experienced enough to make somethig that builds these for you, but if someone else can it would be great.
  4. AngelSynth

    AngelSynth Banned

    Joined:
    Apr 26, 2008
    Messages:
    2,599
    Likes Received:
    10
    a lot of people have been looking for ways to lock their apps, I want to lock my Installer, music player, video player, email, and safari...

    Mods should spread the word about it, this could be stickied
  5. plokiju

    plokiju New Member

    Joined:
    Nov 5, 2007
    Messages:
    537
    Likes Received:
    5
    bump. I think more people should see this
  6. flame777

    flame777 Member

    Joined:
    Dec 26, 2007
    Messages:
    186
    Likes Received:
    3
    This is amaizng! Good Job!
  7. ipNinja

    ipNinja New Member

    Joined:
    Mar 5, 2008
    Messages:
    1,209
    Likes Received:
    5
    Device:
    iPhone 3GS (White)
    WOW!!!!!! i wish i could plus rep you for this lol.


    Thanks

    Please Register or Log in to view images

  8. plokiju

    plokiju New Member

    Joined:
    Nov 5, 2007
    Messages:
    537
    Likes Received:
    5
    Update added. It seems the last version only needed the last button to be correct, this version fixes that
  9. dietztho000

    dietztho000 Member

    Joined:
    Jan 26, 2008
    Messages:
    566
    Likes Received:
    17
    Device:
    3G iPod touch
    wow, this locks really nice. Im going to try this once i get home from school
  10. swillard8

    swillard8 New Member

    Joined:
    Jan 6, 2008
    Messages:
    1,307
    Likes Received:
    11
    yeh ,well done, very useful to me

Share This Page