-
03-11-2009, 02:48 AM #1
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!
-
03-12-2009, 10:45 PM #2iPhoneaholic
- Join Date
- Sep 2008
- Location
- Massachusetts, USA
- Posts
- 427
- Thanks
- 39
- Thanked 71 Times in 59 Posts
That information can be found in: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.
/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>
-
03-12-2009, 11:53 PM #3
Thank for your reply,
i changed it, but nothing happen on my iPhone, change couldn't change
-
03-14-2009, 03:39 PM #4iPhoneaholic
- 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?



LinkBack URL
About LinkBacks
Reply With Quote