When there is nothing going on today, the router finds that the device name displayed when the mobile phone is connected is too ugly,
So I want to change it.
The following methods are available after searching on the Internet:
This method is suitable for all users, even if you do not program
It would be better if you have brushed the machine.
First, you need to download the ADB tool, which is used to connect to your mobile phone and perform operations.
: Http://dl.dbank.com/c0cubh1xl2
After downloading and decompressing the package, run the command to switch the working directory to the directory generated in the extraction.
1. ExecuteAdb.exe Devices
The following result is displayed:
List of devices attached
0149c7ed0600d01d Device
If there are differences between different devices, this means that you can connect to your mobile phone normally.
2. Run adb.exe shell:
C: \ Users \ best \ Desktop \ ADB-Windows> adb.exe Shell
Shell @ Android :/$
The symbol $ here indicates that it is not a root user and cannot be switched to the root user if your phone is not root.
3. EnterSu
Displayed as: Shell @ Android:/$ su
The execution result is:Shell @ Android: // # The $ here is changed#
The operation is successfully switched to the root user.
4. Modify the WiFi device name
RunSetprop net. hostname "name you want to set"
No information is returned for this step.
5. Check whether the setting is successful.
RunGetprop net. hostname
If you find the name you just set, it indicates that the execution is successful. Next, you can connect to the vro to see if it has changed.
Thank you for your solutions on the Internet.
However, it seems that it is not easy to set it in Java.