Remove file name in Android to display garbled files method

Source: Internet
Author: User

The original intention is to back up a hosts file, and then modify the contents of the hosts (the role of everyone understand), with the re copy, and then paste on the appearance of this garbled file , with the re delete, prompt deletion of success, but again into the/etc again will appear this file, I deleted n times the document was haunted and fainted completely.

Because the Hosts file in the cell phone ROM, the mobile phone to connect to the computer can only see the contents of the TF card, so only on the phone to find a way out.

Finally, the solution is to use the terminal (shell) to make it OK (delete), the estimated use of USB to the computer with the ADB shell can also, I did not test.

Mobile phones need to install the following software:

Better Terminal Emulator (Super Terminal)

Root Explorer (RE)

the benefits of HyperTerminal is basically the same as the Linux terminal, you can use the TAB key automatically fill the path (emphasis), in the Super Terminal tab is the control key + number key 9 , I set the control key to the volume amplification key, so is the Volume amplification key +9.

Auto-fill path: For example, the path is/usr/bin/autostart.sh

Then the input/usr/bin/aut press TAB to be able to complement all/usr/bin/autostart.sh

This will make it impossible to enter the garbled characters automatically fill up .

Step Poly:

1, open the terminal with ls command to see the file name to be deleted

Ls-a file path

-A indicates that hidden files are displayed

Eg:ls-a/etc/

2 . Delete the file with rm command, and enclose the path in double quotation marks ("") if there are spaces in the path.

Rm-f file path

-F do not ask for direct deletion

Eg:rm-f "/etc/hosts-garbled part"

If prompted read-only system, mount with re to read and write.

Above, tossing over. (Original: Android theme download network)

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.