+ Reply
Results 1 to 4 of 4
  1. #1
    What's Jailbreak?
    Join Date
    Feb 2009
    Location
    Viet
    Posts
    17
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Change name and device configuration

    hi expert iPhone,

    i have a big problem when write apps on Window to change device configuration especially devicename. so i need to know what file on iPhone contain this information(Device name) to modify it.

    please help me!

  2. #2
    iPhoneaholic reddawg's Avatar
    Join Date
    Sep 2008
    Location
    Massachusetts, USA
    Posts
    427
    Thanks
    39
    Thanked 71 Times in 59 Posts

    i have a big problem when write apps on Window to change device configuration especially devicename. so i need to know what file on iPhone contain this information(Device name) to modify it.
    That information can be found in:

    /private/var/preferences/SystemConfiguration/preferences.plist

    The preferences.plist file is XML formatted configuration file that contains network configuration information on your iPhone.

    Code:
    <key>System</key>
    <dict>
    	<key>Network</key>
    	<dict>
    		<key>HostNames</key>
    		<dict>
    			<key>LocalHostName</key>
    			<string>CHANGEME</string>
    		</dict>
    	</dict>
    	<key>System</key>
    	<dict>
    		<key>ComputerName</key>
    		<string>CHANGEME</string>
    		<key>ComputerNameEncoding</key>
    		<integer>134217984</integer>
    		<key>HostName</key>
    		<string>CHANGEME</string>
    	</dict>
    </dict>

  3. #3
    What's Jailbreak?
    Join Date
    Feb 2009
    Location
    Viet
    Posts
    17
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Thank for your reply,

    i changed it, but nothing happen on my iPhone, change couldn't change

  4. #4
    iPhoneaholic reddawg's Avatar
    Join Date
    Sep 2008
    Location
    Massachusetts, USA
    Posts
    427
    Thanks
    39
    Thanked 71 Times in 59 Posts

    It appears that you can only set or change the hostname by changing it from iTunes. I know that this process changes the hostname and computer name in the preferences.plist file. Apparently you can not manually edit preferences.plist to change the hostname and computername because it gets reset after restarting.

    Other than iTunes, does anyone else know how to change the hostname from editing a configuration file?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts