Page 1 of 6 123456 LastLast
Results 1 to 10 of 60
Discuss [Preferences] Extend them with PList Editing at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; Hi Everyone, I experimented a bit with the preferences application and especially the plists. If ...
  1. #1
    Newbie Array

    Join Date
    Jul 2007
    Posts
    8
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default [Preferences] Extend them with PList Editing

    Hi Everyone,

    I experimented a bit with the preferences application and especially the plists. If you go in the directory Applications/Preferences.app you will see a number of them. The plists are parsed by the preferences application. Depending on the content, the preferences are shown. This means, by changing the plists you can change the configuration and most importantly, add missing things. I started with the Keyboard.plist. When you open the file you find an entry like this:

    <dict>
    <key>cell</key>
    <string>PSSwitchCell</string>
    <key>default</key>
    <integer>0</integer>
    <key>defaults</key>
    <string>com.apple.Preferences</string>
    <key>key</key>
    <string>KeyboardCapsLock</string>
    <key>label</key>
    <string>Enable Caps Lock</string>
    </dict>

    the cell defines the way the option is presented to you, in the example, a PSSwitchCell is a simple on/off switch. There are a number of other cells available. In the example, the value for the cell is read from and written to the KeyboardCapsLock variable. It is also possible to define a get and set function (which could be quite interesting)...

    When you search for the term "KeyboardCapsLock" you will see that it is defined in a file named "UIKit" and that there is another quite interesting variable nearby called "KeyboardAutocorrection". So, by adding the following lines to your keyboard.plist:

    </dict>
    <dict>
    <key>cell</key>
    <string>PSSwitchCell</string>
    <key>default</key>
    <integer>0</integer>
    <key>defaults</key>
    <string>com.apple.Preferences</string>
    <key>key</key>
    <string>KeyboardAutocorrection</string>
    <key>label</key>
    <string>Enable Autocorrection</string>
    </dict>

    and uploading the changed file to your iPhone, you can finally turn off the autocorrection function. This is nice if you typically type in a foreign language. I also scanned the other plists a bit. One extremely interesting one is Safari.plist, located in a bundle (however, called by the preferences application).

    \System\Library\PreferenceBundles\MobileSafariSett ings.bundle

    If you look inside and search for "WebKitJavaScriptEnabled" (one of the values of the file) you will see that it is defined in a file called WebKit that offers a large number of other possible interesting variables, for example "WebKitJavaEnabled" (hmmm...) WebKitDebug, WebKitLogLevel, WebKitDefaultFontSize and so on. I tried the same trick as described above but this time, unfortunately, my encoded plist was not correctly accepted by the iPhone (I don't know why)... I think that there is a binary version needed. So, if you have a mac and can do a binary version please try it, I would be interested to know.



  2. #2
    Advanced Array

    Join Date
    Jul 2007
    Posts
    31
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    hmm, i tried disabling the auto correction, but it seems not to work:

    i edited the keyboard.plist on a mac with the sample xml-code you supplied.
    i converted the plist to xml , edited, than converted back to binary, and finally putfile it on the iphone.
    (i used this method for converting plist<->xml)

    log:
    Waiting for phone... established.
    iPhone state: MissingSIM
    type "help" for help
    iPhone:/# cd /Applications/Preferences.app/
    iPhone:/Applications/Preferences.app/# putfile Keyboard.plist
    iPhone:/Applications/Preferences.app/# cd /System
    iPhone:/System# cd /Library
    iPhone:/Library# cd /System/Library/Lockdown
    iPhone:/System/Library/Lockdown# putfile Services.plist
    iPhone:/System/Library/Lockdown# exit

    But the auto-correction is still there. any ideas?
    Last edited by grimmet; 07-22-2007 at 08:02 PM. Reason: link added

  3. #3
    Newbie Array

    Join Date
    Jul 2007
    Posts
    8
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Please check your Preferences Appl ication. It should be possible now to turn it off under the "Keyboard" Settings.

  4. #4
    Professional Array MaLer's Avatar

    Join Date
    Jul 2007
    Posts
    62
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    Zhivago, great work! Please, can you send photo of Prefs App with this option visible? I'm from Czech, so i realy would like to show that this is possible.

  5. #5
    Advanced Array

    Join Date
    Jul 2007
    Posts
    31
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    @zhivago: thx, worked great.

    @maler: here you go.



  6. #6
    Professional Array MaLer's Avatar

    Join Date
    Jul 2007
    Posts
    62
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    That's so coool Thank you booth (but zhivago is Master .

  7. #7
    Advanced Array

    Join Date
    Jul 2007
    Posts
    31
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Yeah, he is!

  8. #8
    Rookie Array

    Join Date
    Jul 2007
    Posts
    22
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    that is cool

    thanx!

  9. #9
    Advanced Array

    Join Date
    Jul 2007
    Posts
    31
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    The Download of the already edited Keyborad.plist-File. (its binary, not xml - shoul work fine, just copy and of you go)

    http://www.iphone-ticker.de/wp-conte...boardplist.zip

  10. #10
    Professional Array MaLer's Avatar

    Join Date
    Jul 2007
    Posts
    62
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    zhivago, regarding other plists, which are binary - i did small research for some Windows based plist editor, but nothing found yet - you can check
    http://en.wikipedia.org/wiki/Property_list
    maybe there can be some java editor somewehere hidden... But i'm not sure about binary compatibility with Mac OS X binary .plist. If you want, PM me, i can do some mods for you tommorow evening at home (GMT +2).

    This i found in other thread, some CGI able to convert binary .plist.
    http://homer.informatics.indiana.edu...il/plutil.cgi/
    Last edited by MaLer; 07-23-2007 at 01:14 AM. Reason: CGI-based plist convertor


 

 
Page 1 of 6 123456 LastLast

Similar Threads

  1. preferences.plist resets after reboot iphone 3.0
    By asaadsaleh in forum iOS 3.x (iPhone OS 3.x)
    Replies: 4
    Last Post: 03-29-2010, 06:57 PM
  2. Volume Boost & Preferences.plist
    By dirk99 in forum iOS 3.x (iPhone OS 3.x)
    Replies: 0
    Last Post: 06-16-2009, 10:48 AM
  3. Preferences plist
    By The_Kid in forum iPhone Developer Exchange
    Replies: 3
    Last Post: 10-02-2008, 06:47 PM
  4. Easy job! preferences.plist swapping app
    By vat in forum Free Toolchain Software (Cydia App's)
    Replies: 0
    Last Post: 10-06-2007, 12:50 AM
  5. Preferences.plist HELP
    By Tryptophine in forum General
    Replies: 1
    Last Post: 09-21-2007, 03:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 08:58 AM.
twitter, follow us!