固定USB共享MAC地址
Closed this issue · 7 comments
dysf888 commented
貌似是 InterfaceParams中的getMacAddress
插在ikuai上拔插一下mac变动就会导致接口绑定异常。
XhyEax commented
确实每次重新开启wifi或者usb热点后,手里的mac地址会变。
有空看看。
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年5月21日(周二) 下午4:19
收件人: ***@***.***>;
抄送: ***@***.***>;
主题: [XhyEax/SoftApHelper] 固定USB共享MAC地址 (Issue #24)
貌似是 InterfaceParams中的getMacAddress
插在ikuai上拔插一下mac变动就会导致接口绑定异常。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
XhyEax commented
是需要开机后保持不变?
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年5月21日(周二) 下午4:19
收件人: ***@***.***>;
抄送: ***@***.***>;
主题: [XhyEax/SoftApHelper] 固定USB共享MAC地址 (Issue #24)
貌似是 InterfaceParams中的getMacAddress
插在ikuai上拔插一下mac变动就会导致接口绑定异常。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
dysf888 commented
不是的,保持拔插USB后不变就行,有时候接口会松动
Xhy ***@***.***>于2024年5月22日 周三23:27写道:
… 是需要开机后保持不变?
---原始邮件---
发件人: ***@***.***>
发送时间: 2024年5月21日(周二) 下午4:19
收件人: ***@***.***>;
抄送: ***@***.***>;
主题: [XhyEax/SoftApHelper] 固定USB共享MAC地址 (Issue #24)
貌似是 InterfaceParams中的getMacAddress
插在ikuai上拔插一下mac变动就会导致接口绑定异常。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
—
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALKASKNOTLB3ZYDBV6LK46LZDS2NVAVCNFSM6AAAAABIBEB7DSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRVGA4DINZVGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
XhyEax commented
system/netd/server/InterfaceController.cpp
InterfaceController的代码实现中不包含指定hwAddr的功能。
XhyEax commented
只能选择换一根更牢固的数据线了。
XhyEax commented
你所提到的InterfaceParams主要是用于获取上游interface的配置,并不能修改自己的mac地址。
XhyEax commented
创建热点的时候配置就已经确定了,然而在java层调用到native层时,并未处理hwaddr参数。所以在java层怎么修改都是无效的。
如果还是认为可行,可以自行基于源码进行二次开发。
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年5月23日(周四) 凌晨0:30
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [XhyEax/SoftApHelper] 固定USB共享MAC地址 (Issue #24)
你所提到的InterfaceParams主要是用于获取上游interface的配置,并不能修改自己的mac地址。
http://aospxref.com/android-12.0.0_r3/xref/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/Tethering.java#1356
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>