Set Hostname on Android M (6.0.1)
November 5, 2016Issue
Recently I configured my router to use DD-WRT, and I noticed that all of my Android devices would have a hostname in this format of ‘android-a3566e1d5961325d’.
To make it easier to identify each device connected to my router, I decided to update the hostname on my OnePlus 3 — which is currently using Android M (6.0.1).
Steps
- Root your device if you haven’t already done it.
- Download the Terminal Emulator app from the Play Store.
- Open the Terminal Emulator and run the following commands:
- Turn off wifi and then turn it back on.
If all went well your router should now show the new hostname you set.