*** REQUIRES ROOT ACCESS ***
If you do not know what this is you probably do not have it and this will do nothing for you.
Simple app which allows you to change your device's hostname to your custom defined hostname. This setting will remain after rebooting. The device hostname is changed and the network services are toggled so the device updates the DHCP and DNS servers with the new hostname. Once completed you should be able to ping your device at the user defined hostname. For instance, checking a default android device's hostname from DNS would show "android-abcdefghijklmnop" or some long unrecognizable name. Changing the hostname will update DHCP and DNS so that your device will appear as "your-defined-name".
*** REQUIRES ROOT ***
Sorry but this is due to Google making the hostname setting a secure setting. I have no control over this.
WRITE_SETTINGS: Required to change the hostname and toggle airplane mode.
ACCESS_WIFI_STATE: Determine if we need to toggle the WIFI once the hostname is changed.
CHANGE_WIFI_STATE: Toggle the WIFI if needed.
RECEIVE_BOOT_COMPLETED: Retain hostname change across reboot.
Tags: 4 dns