DavidBerdik / MACsposed

MACsposed - Add support for MAC Address spoofing to Android 12 through 14!
111 stars 13 forks source link

It is useless on MIUI device #10

Closed yihao0628 closed 10 months ago

yihao0628 commented 10 months ago

Xiaomi Redmi note 12turbo Android 13 MIUI 14.0.25 Magisk Alpha(26302) Lsposed1.9.2(7024) After I used this module to modify the MAC address, WiFi could not search the network. After manually turning off WiFi and turning it on, the MAC address returned to the unmodified time.

DavidBerdik commented 10 months ago

Could you tell me what app you tried to use with MACsposed for changing your MAC address?

yihao0628 commented 10 months ago

Change My MAC (1.7.3) net.xnano.android.changemymac

DavidBerdik commented 10 months ago

Try a different one. I'd recommend this one.

https://play.google.com/store/apps/details?id=com.wireless.macchanger

yihao0628 commented 10 months ago

Still useless, here are the followingcom.wireless.macchanger的debug信息 Android Version: 13 Device: 23049RAD8C App Version 3.25 ls /efs/wifi/.mac.info ls: /efs/wifi/.mac.info: No such file or directory ip link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:002: dummy0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/ether 5e:1d:f2:85:bd:6f brd ff:ff:ff:ff:ff:ff3: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 32 link/ether de:05:5f:e2:e6:6b brd ff:ff:ff:ff:ff:ff4: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 32 link/ether 82:5a:52:d9:24:e9 brd ff:ff:ff:ff:ff:ff5: tunl0@NONE: mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ipip 0.0.0.0 brd 0.0.0.06: gre0@NONE: mtu 1476 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/gre 0.0.0.0 brd 0.0.0.07: gretap0@NONE: <BROADCAST,MULTICAST> mtu 1462 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff8: erspan0@NONE: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff9: ip_vti0@NONE: mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ipip 0.0.0.0 brd 0.0.0.010: ip6_vti0@NONE: mtu 1364 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/tunnel6 :: brd ::11: sit0@NONE: mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/sit 0.0.0.0 brd 0.0.0.012: ip6tnl0@NONE: mtu 1452 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/tunnel6 :: brd ::13: ip6gre0@NONE: mtu 1448 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/gre6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:0014: miw_oem0: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 5e:47:a2:22:d2:b0 brd ff:ff:ff:ff:ff:ff15: rmnet_ipa0: <UP,LOWER_UP> mtu 9216 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 1000 link/[519] 17: rmnet_data0@rmnet_ipa0: <UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN mode DEFAULT group default qlen 1000 link/[519] 18: rmnet_data1@rmnet_ipa0: <UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN mode DEFAULT group default qlen 1000 link/[519] 19: rmnet_data2@rmnet_ipa0: <> mtu 1432 qdisc mq state DOWN mode DEFAULT group default qlen 1000 link/[519] 20: rmnet_data3@rmnet_ipa0: <UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN mode DEFAULT group default qlen 1000 link/[519] 21: rmnet_data4@rmnet_ipa0: <UP,LOWER_UP> mtu 1432 qdisc mq state UNKNOWN mode DEFAULT group default qlen 1000 link/[519] 22: rmnet_data5@rmnet_ipa0: <> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/[519] 23: r_rmnet_data0@rmnet_ipa0: <> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/[519] 24: r_rmnet_data1@rmnet_ipa0: <> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/[519] 25: r_rmnet_data2@rmnet_ipa0: <> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/[519] 26: r_rmnet_data3@rmnet_ipa0: <> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/[519] 27: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 3000 link/ether 5e:09:11:c9:78:8a brd ff:ff:ff:ff:ff:ff28: p2p0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 3000 link/ether c2:03:cf:3d:6d:99 brd ff:ff:ff:ff:ff:ff29: wifi-aware0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 3000 link/ether f8:89:d2:83:32:cd brd ff:ff:ff:ff:ff:ff Setting hard Way Mac 52:3F:06:E0:01:94 27: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 3000 link/ether 5e:09:11:c9:78:8a brd ff:ff:ff:ff:ff:ff Setting hard Way Mac 52:3F:06:E0:01:94 27: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 3000 link/ether 5e:09:11:c9:78:8a brd ff:ff:ff:ff:ff:ff Setting simple Way Mac RTNETLINK answers: Unknown error 524 27: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 3000 link/ether 5e:09:11:c9:78:8a brd ff:ff:ff:ff:ff:ff

DavidBerdik commented 10 months ago

Perhaps a stupid question, but are you sure you enabled the module with the quick settings tile?

yihao0628 commented 10 months ago

Yes,I am sure. Here is my screenshot. https://airportal.cn/494141/cukPRfFajm

DavidBerdik commented 10 months ago

Do you see any output in your LSPosed logs? Also, make sure you're running the most recent version of LSPosed.

yihao0628 commented 10 months ago

emmm,fine I will give you my lsposed module logs https://airportal.cn/494141/cukPRfFajm and my lsposed version is 1.9.2(7024) https://airportal.cn/256954/iQM6hpgMXm

DavidBerdik commented 10 months ago

From a review of your logs, I see that the module does seem to be successfully identifying attempts to change the MAC address.

image

This likely means one of two things:

  1. Your phone's Android build has modifications to how MAC address changes are handled compared to AOSP, and therefore, the module isn't properly stopping it.
  2. The app that you are using for changing MAC addresses does not work properly on your phone. Sometimes you need to try several of them. Another one that you could try is this one. You can also try using a terminal app or adb shell to try running the following commands as root and checking to see if the MAC address change persists after you enable WiFi again.
ip link set dev wlan0 down
ip link set dev wlan0 address de:ad:be:ef:ca:fe
ip link set dev wlan0 up
yihao0628 commented 10 months ago

Oh! Thanks so much! This application is useless too,but the command is working!So I can use this command to change my MAC address next time!I am greatly appreciated~

DavidBerdik commented 10 months ago

@yihao0628 You're welcome! Eventually, when life affords me the time, I intend to integrate the functionality for setting a custom MAC address directly into the module so that it is no longer necessary to rely on other apps to do it. I am not sure what the timeline for that is going to be, but if you are interested in tracking progress, check out issue #5.

yihao0628 commented 10 months ago

I will look forward to it very much. Come on, it will be a great promotion.