I'm writing a program to spoof the mac address of a device. So far I was able to get root access by running the command:
Runtime.getRuntime().exec("su");
Now I want to run commands by doing:
for (String currCommand : commands)
{
os.writeBytes(currCommand + "\n");
os.flush();
}
but I'm not sure which commands will do this for me? Does anyone know the commands to run to get into the mac address and modify it?
According to this link http://www.gohacking.com/spoof-mac-address-on-android-phones/ the phone must be rooted and busybox must be installed.
After entering
su
the commands are: