This script creates a duplicate file, with the same name, in the same directory as the intended target (???). The original system file has an Android icon next to it, while the new one has a text icon (as seen in Total Commander).
#!/bin/bash/sh
su
echo "0123456789ab" > /config/wifi/mac.txt
I am trying to overwrite the system file. I can manually edit the original mac.txt, and then when I turn on wifi I have the new mac address. (The normal methods of changing a mac fail with this device - a rooted Nextbook Ares 8" tablet.) The second max.txt file that this script creates gets deleted on reboot - and it has no effect on the mac address. Edits to the original max.txt survive reboot.
I am trying to develop an app to randomly set a mac address on reboot, and being able to overwrite the mac.txt file is the first step. (All of the existing mac address changing apps I have found are based on ifconfig or ip link, and those methods fail on this device.)
Android 5.1
#!/bin/bash/sh
su
echo "0123456789ab" > /config/wifi/mac.txt
I am trying to overwrite the system file. I can manually edit the original mac.txt, and then when I turn on wifi I have the new mac address. (The normal methods of changing a mac fail with this device - a rooted Nextbook Ares 8" tablet.) The second max.txt file that this script creates gets deleted on reboot - and it has no effect on the mac address. Edits to the original max.txt survive reboot.
I am trying to develop an app to randomly set a mac address on reboot, and being able to overwrite the mac.txt file is the first step. (All of the existing mac address changing apps I have found are based on ifconfig or ip link, and those methods fail on this device.)
Android 5.1
Last edited: