Page 2 of 6 FirstFirst 123456 LastLast
Results 11 to 20 of 60
Discuss [Preferences] Extend them with PList Editing at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; I tried to make use of the cgi script (throw a little php-script together) but ...
  1. #11
    Advanced Array

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

    Default

    I tried to make use of the cgi script (throw a little php-script together) but i always get the following error:

    1185148106: XML parser error: Unexpected character b at line 1 Old-style plist parser error: Unexpected ';' or '=' after key at line 1 Content-type: text/html

    any suggestions? this is my code:
    Code:
    <?php
    $file = "Keyboard.plist";
    $fo = fopen($file, "r");
    $fr = fread($fo, filesize($file));
    $fr1 = utf8_encode($fr);
    ?>
    
    
    <center><form action="http://homer.informatics.indiana.edu/cgi-bin/plutil/plutil.cgi" method="post">
    <?php echo "<textarea name='bookmarks' rows='10' cols='50'>{$fr1}</textarea>"; ?>
    <br><input type="submit" value="Go" />
    </form></center>

    the goal is to publish a usable one-click-upload script, which makes use of the cgi , so every windows user can convert their files without having to trouble about... post requests ect...
    Last edited by grimmet; 07-23-2007 at 02:09 AM.


  2. #12
    Newbie Array

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

    Default

    Hi Everyone,

    @Maler

    Thanks for you offer, maybe I will come back to you.

    @grimmet

    I also used this CGI Script for Conversion. The perl script that is presented on the page works for me.

    OK, I managed to get my Safari.plist to work. You can configure a number of variables by adding the following dicts to your Safari.plist located in /System/Library/PreferenceBundles/MobileSafariSettings.bundle:

    <dict>
    <key>cell</key>
    <string>PSSwitchCell</string>
    <key>default</key>
    <integer>0</integer>
    <key>defaults</key>
    <string>com.apple.mobilesafari</string>
    <key>key</key>
    <string>WebKitJavaEnabled</string>
    <key>label</key>
    <string>Java</string>
    </dict>
    <dict>
    <key>cell</key>
    <string>PSSwitchCell</string>
    <key>default</key>
    <integer>0</integer>
    <key>defaults</key>
    <string>com.apple.mobilesafari</string>
    <key>key</key>
    <string>IncludeDebugMenu</string>
    <key>label</key>
    <string>Debug Menu</string>
    </dict>
    <dict>
    <key>cell</key>
    <string>PSSwitchCell</string>
    <key>default</key>
    <integer>0</integer>
    <key>defaults</key>
    <string>com.apple.mobilesafari</string>
    <key>key</key>
    <string>WebKitScriptDebuggerEnabled</string>
    <key>label</key>
    <string>Script Debugger</string>
    </dict>
    <dict>
    <key>cell</key>
    <string>PSLinkListCell</string>
    <key>default</key>
    <integer>0</integer>
    <key>defaults</key>
    <string>com.apple.mobilesafari</string>
    <key>detail</key>
    <string>PSListItemsController</string>
    <key>key</key>
    <string>HomePage</string>
    <key>label</key>
    <string>Home Page</string>
    <key>validTitles</key>
    <array>
    <string>Google</string>
    <string>Yahoo!</string>
    </array>
    <key>validValues</key>
    <array>
    <integer>0</integer>
    <integer>1</integer>
    </array>
    </dict>


    I tested the values a bit:

    • WebKitJavaEnabled This is interesting. The iPhone as it is right now does not have Java. However, this Variable seems to be used to enable Java in Safari. If you go to this page: http://developer.apple.com/internet/...q.html#anchor9 and press on the "Check Java" Button in part 9, you will get a "Sorry you don't have Java" message. When you turn on the WebKitJavaEnabled Parameter, it changes to "Congratulations you have Java" (although you don't have it!). Maybe this could be useful in the future...
    • IncludeDebugMenu I did not see any differences. But on the safari page, there is a bit of discussion about this. Could be interesting for web developers.
    • WebKitScriptDebuggerEnabled. It seems that Safari is now logging errors somewhere. I still need to check this. Could also be interesting for web developers.
    • HomePage: I think the homepage is useless until we have a HomePage button.

  3. #13
    Senior Professional Array

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

    Default Enable Carrier

    zhivago and MaLer,

    Do you think it is possible to activate the Carrier Settings Menu using this method?

    And if it is, maybe we can change the Automatic to Manual.

    (Check the Carrier menu: insert the AT&T SIM, call 911 (in a region where it is not possible to connect, then check the new menu item at Settings, bellow Wi-Fi. This menu will "read" all your local carriers, bu it is not modifiable).

  4. #14
    Newbie Array

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

    Default

    whe i could find the services plist plise guys give me a link.PLEESE i BEG yOU

  5. #15
    Senior Professional Array

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

    Default

    the original? At the wiki I guess


  6. #16
    Senior Professional Array

    Join Date
    Jul 2007
    Location
    Taiwan
    Posts
    101
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    14

    Default

    Quote Originally Posted by grimmet View Post
    I tried to make use of the cgi script (throw a little php-script together) but i always get the following error:

    1185148106: XML parser error: Unexpected character b at line 1 Old-style plist parser error: Unexpected ';' or '=' after key at line 1 Content-type: text/html

    any suggestions? this is my code:
    Code:
    <?php
    $file = "Keyboard.plist";
    $fo = fopen($file, "r");
    $fr = fread($fo, filesize($file));
    $fr1 = utf8_encode($fr);
    ?>
    
    
    <center><form action="http://homer.informatics.indiana.edu/cgi-bin/plutil/plutil.cgi" method="post">
    <?php echo "<textarea name='bookmarks' rows='10' cols='50'>{$fr1}</textarea>"; ?>
    <br><input type="submit" value="Go" />
    </form></center>

    the goal is to publish a usable one-click-upload script, which makes use of the cgi , so every windows user can convert their files without having to trouble about... post requests ect...


    Hi grimmet,

    You can try this one. I think this one is more easier for most windows user.

  7. #17
    Newbie Array

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

    Default

    ther is no servise plist in the end i type putfile servise.plist and i don knov what to do i just don have it?and i cant find it what i should do?i need that sing to be turned off.its imposible to wright difrent lengue...Please make the thame sing you dit with keyboard plist..please!!

  8. #18
    Advanced Array

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

    Default

    ah, thx glen. this is exactly what i was trying to code. but now , my attemp seems a bit useless . thx for the link anyway.

  9. #19
    Newbie Array

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

    Default

    @spoonet

    I activated my Carrier Menu. I added the following dict to the Settings.plist located in (/Application/Preferences.app):

    <dict>
    <key>cell</key>
    <string>PSLinkCell</string>
    <key>detail</key>
    <string>CarrierSettingsController</string>
    <key>icon</key>
    <string>Settings-Display.png</string>
    <key>label</key>
    <string>Carrier Settings</string>
    </dict>

    The icon is the one from the display settings as I don't know the correct one. I can open the menu. My carrier menu is completely empty. However, this is quite logical as I still use the original unactivated AT&T SIM. If you have other SIM cards you can test what happens...

    I think changing the carrier settings is quite problematic as the carrier bundle does not provide a plist with the elements. It seems like they are dynamically generated in the CarrierSettings file (located in System/Library/PreferencesBundles/CarrierSettings.bundle).

    There is another interesting thing. The iPhone stores your preferences in /var/root. If you go in this directory you will find different plist files containing your preferences. If you delete a file and open the preferences, everything is back to the default value. Additionally, when you leave the preferences, the file will be created again. You could check the file com.apple.commcenter.plist. It contains the UICCID and the IMSI of your SIM.

  10. #20
    Senior Professional Array

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

    Default Carrier menu

    @ zhivago

    This is not the Carrier menu that appears when you dial 911...

    That one is "Carrier" not "Carrier Settings". Also, it only works with my AT&T (unactivated) chip inserted. And even with the AT&T, it will read all Carriers available in you region.

    I think we should explore that menu...

    It really dynamically updates with carriers names. I tried in Brazil and Argentina and in both locations it read all available Carrier names.

    Above, there is an AUTOMATIC label, that seems to be a menu. (Not accessed)

    I open CarrierSettings.bundle/CarrierSettings with a hex editor and for each Automatic occurence there is a Manual occurence, so there must be a way to change this.
    Last edited by spoonet; 07-23-2007 at 05:40 PM.


 

 
Page 2 of 6 FirstFirst 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 07:24 AM.
twitter, follow us!