Git Product home page Git Product logo

softaphelper's Introduction

SoftApHelper

SoftAp static server IP(v4) for Android P-S (Xposed)

注意

如果在高版本系统上不能工作,可能是因为目标包名不对,需要自行适配。

当然,你也可以选择使用不过滤包名版本,毕竟LSPosed提供了作用域功能

作用域

系统框架

PS:保险起见,你也可以勾选包名包含networkstack.tethering的应用

原理

安卓9 固定Wifi热点IP (Xposed)

安卓10、11 固定Wifi热点IP (Xposed)

安卓12 固定Wifi热点IP (Xposed)

Hook点

安卓9

com.android.server.connectivity.tethering.TetherInterfaceStateMachinegetRandomWifiIPv4Address函数。

TetherInterfaceStateMachine.java#259

private String getRandomWifiIPv4Address()

安卓10

android.net.ip.IpServergetRandomWifiIPv4Address函数。

IpServer.java#469

private String getRandomWifiIPv4Address()

安卓11

android.net.ip.IpServerrequestIpv4Address函数。

IpServer.java#645

private LinkAddress requestIpv4Address()

注意:由于该函数还被用于分配下游IP地址,所以需要先判断调用者(遍历堆栈即可),再进行替换。

安卓12

android.net.ip.IpServerrequestIpv4Address函数。

IpServer.java#655

private LinkAddress requestIpv4Address(final boolean useLastAddress)

感谢

@mmfmkuang

@dsfgdadg

softaphelper's People

Contributors

xhyeax avatar unspoiled7968 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.