Android: Change the name of a Wi-Fi Device

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.