Introduction
The ZTE Blade A520 is a budget-friendly smartphone released in 2019, running on the GSI (Google System Image) based on Android 9 Pie. Changing the MAC address on this device using the 'su' command and 'ifconfig' tool may not work as expected. In this article, we will explore suitable solutions to change the MAC address on the ZTE Blade A520 (2019) with GSI CAOS.
Attempting to Change MAC Address Using 'su' and 'ifconfig'
The user may try to change the MAC address of the 'wlan0' interface using the 'su' command to gain root access and then use the 'ifconfig' tool to modify the MAC address:
su
# ifconfig wlan0 down
# ifconfig wlan0 hwether 11:22:33:44:55:66
# ifconfig wlan0 up
However, this method may not return any error messages, but the MAC address does not get changed.
Suitable Solutions to Change MAC Address on ZTE Blade A520 (2019) with GSI CAOS
To change the MAC address on the ZTE Blade A520 (2019) with GSI CAOS, you can follow these methods:
Method 1: Using Termux App
Termux is an Android terminal emulator app that allows users to run various Linux packages. To change the MAC address using Termux:
- Install Termux from the Google Play Store.
- Open Termux and update the package list using 'apt update'.
- Install the 'busybox' package using 'apt install busybox'.
- Change the MAC address using the following command:
busybox ifconfig wlan0 down
busybox ifconfig wlan0 hwether
busybox ifconfig wlan0 up
Method 2: Using Magisk
Magisk is a popular rooting solution for Android devices. If your ZTE Blade A520 (2019) is rooted with Magisk, you can change the MAC address using the Magisk Manager:
- Install Magisk Manager from the Google Play Store.
- Open Magisk Manager and grant root access.
- Go to the 'Terminal' tab and enter the following command:
setprop wifi.interface wlan0
setprop wifi.supplicant.is_ap_mode_psk 0
setprop wifi.supplicant.ssid
setprop wifi.supplicant.password
setprop wifi.ap_scan.scan_always 1
setprop dhcp.service.network 192.168.1.1
setprop dhcp.service.gateway 192.168.1.254
setprop dhcp.service.netmask 255.255.255.0
setprop wifi.ap_mac_addr
In conclusion, changing the MAC address on the ZTE Blade A520 (2019) with GSI CAOS using the 'su' command and 'ifconfig' tool may not work as expected. Instead, you can use the Termux app or Magisk to change the MAC address successfully.