Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > Free Toolchain Software

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-22-2007, 06:34 AM
zhivago
Status: Offline
Junior Member
 
Join Date: Jul 2007
Posts: 8
Rep Power: 0
zhivago is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-22-2007, 07:59 PM
grimmet
Status: Offline
Member
 
Join Date: Jul 2007
Posts: 31
Rep Power: 0
grimmet is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-22-2007, 08:20 PM
zhivago
Status: Offline
Junior Member
 
Join Date: Jul 2007
Posts: 8
Rep Power: 0
zhivago is on a distinguished road
Default

Please check your Preferences Appl ication. It should be possible now to turn it off under the "Keyboard" Settings.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #4 (permalink)  
Old 07-22-2007, 09:27 PM
MaLer's Avatar
MaLer
Status: Offline
Member
 
Join Date: Jul 2007
Posts: 62
Rep Power: 7
MaLer is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 07-22-2007, 11:26 PM
grimmet
Status: Offline
Member
 
Join Date: Jul 2007
Posts: 31
Rep Power: 0
grimmet is on a distinguished road
Default

@zhivago: thx, worked great.

@maler: here you go.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 07-22-2007, 11:58 PM
MaLer's Avatar
MaLer
Status: Offline
Member
 
Join Date: Jul 2007
Posts: 62
Rep Power: 7
MaLer is on a distinguished road
Default

That's so coool Thank you booth (but zhivago is Master .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #7 (permalink)  
Old 07-23-2007, 12:07 AM
grimmet
Status: Offline
Member
 
Join Date: Jul 2007
Posts: 31
Rep Power: 0
grimmet is on a distinguished road
Default

Yeah, he is!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 07-23-2007, 12:42 AM
afterdigital
Status: Offline
Junior Member
 
Join Date: Jul 2007
Posts: 22
Rep Power: 0
afterdigital is on a distinguished road
Default

that is cool

thanx!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 07-23-2007, 12:46 AM
grimmet
Status: Offline
Member
 
Join Date: Jul 2007
Posts: 31
Rep Power: 0
grimmet is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #10 (permalink)  
Old 07-23-2007, 01:10 AM
MaLer's Avatar
MaLer
Status: Offline
Member
 
Join Date: Jul 2007
Posts: 62
Rep Power: 7
MaLer is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[1.1.3](all)[carrier bundle files] webinterface for plist generation volkspost General 0 02-21-2008 04:31 PM
[PlistEdit Pro] editing Plist one1 Tools 2 02-01-2008 07:12 PM
How to edit my Plist using ibrickr Bigweezy911 General 2 11-14-2007 06:18 AM
Can somebody help me with plist editing? nikke73 Free Toolchain Software 3 10-20-2007 10:32 AM
Mail application functions/settings via plist? Edge setting via plist. bluetang General 0 08-19-2007 06:07 PM



All times are GMT +2. The time now is 06:37 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448