This file name apparently contains a hidden character somewhere: /config/wifi/mac.txt

I wrote a script to overwrite this file, but it creates another file with the same name.

I copied this file to a directory viewable in Windows (USB), and it lists as wifi.txt, but when I open it in Notepad, the filename is given as wifi[1].txt (and only 1 copy is open). It appears this is identifying where the hidden character is.

I need to write a script to overwrite this file, so I need to know what that hidden character is.

The Unix ls command options that might reveal what this character is are not available in the Android version of ls. (Yes, I could turn my Windows PC into a dual boot w/Linux, or set up a live CD to connect to the tablet, but I'm looking for an easier method.)

Android 5.1. Rooted Nextbook Ares 8" tablet.

  • In a terminal app, type ls /config/wifi > /sdcard/newfile.txt then open the contents of newfile.txt with your file explorer and select all and copy, then paste the copied text in an online charcodeAt tool like this mauvecloud.net/charsets/CharCodeFinder.html to find the charcodes. – x13 May 20 '18 at 7:36
  • I created the output file chars.txt. I can't make that file viewable from windows. I've spent an hour on this now. It's on the eternal SD card (removable), in a directory with other files viewable from Windows, with the same r/w and group settings. I can't allow World r/w/x with Total Commander or Terminal Emulator, although they both report success. However, none of the other files have World access, but I can see and open them with Windows. – Jason_93 May 20 '18 at 10:44
  • I got the file with adb pull. CharCodeFinder.html doesn't report any characters in addition to "/config/wifi/mac.txt" --> 47, 99, 111, 110, 102, 105, 103, 47, 119, 105, 102, 105, 47, 109, 97, 99, 46, 116, 120, 116 – Jason_93 May 20 '18 at 10:55

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.