Guest Amit Manor Posted October 10, 2010 Report Posted October 10, 2010 hi, is there an option to rename my device hostname? right now it's something generic: android_f12fc6122a7945df is there a way to change that? 10x in advanced, Amit.
Guest woti17 Posted October 10, 2010 Report Posted October 10, 2010 (edited) hi, is there an option to rename my device hostname? right now it's something generic: android_f12fc6122a7945df is there a way to change that? 10x in advanced, Amit. you can put the name in a file /system/etc/HOSTNAME and then put the line 127.0.1.1 yourhostname in /system/etc/hosts write in an initscript the line hostname -F /system/etc/HOSTNAME so its called at boot this will only be internal on your phone, not in your (w)lan Edited October 10, 2010 by woti17
Guest Amit Manor Posted October 11, 2010 Report Posted October 11, 2010 thanks for the tip. i'm kindda new to android :-) i read on the net that maybe it could be done using dhcpcd i just don't know how to write the full command on adb shell. perhaps you know?
Guest woti17 Posted October 11, 2010 Report Posted October 11, 2010 (edited) thanks for the tip. i'm kindda new to android :-) i read on the net that maybe it could be done using dhcpcd i just don't know how to write the full command on adb shell. perhaps you know? you would look in /system/etc/dhcpcd/dhcpcd.conf and also modify /system/etc/dhcpcd/dhcpcd-hooks/* if the dhcp server is even configured to send a host name and then you would have to get the name into something useful like hosts or HOSTNAME just guessing Edited October 11, 2010 by woti17
Guest Amit Manor Posted October 11, 2010 Report Posted October 11, 2010 (edited) ok,.. i've reading some more :-) there's this property called net.hostname on adb shell, or using terminal i write 'setprop net.hostname blahblah' it sets the right name for me however, when i reboot the device it returns to the original setting. is there a way you know of where i can set this property permanently? Edited October 11, 2010 by Amit Manor
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now