Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法搜索到可连接的蓝牙设备列表 #112

Closed
Elric-pp opened this issue May 8, 2018 · 8 comments
Closed

无法搜索到可连接的蓝牙设备列表 #112

Elric-pp opened this issue May 8, 2018 · 8 comments

Comments

@Elric-pp
Copy link

Elric-pp commented May 8, 2018

机型:坚果 Pro2

@tiann
Copy link
Member

tiann commented May 8, 2018

具体哪个APP?

@Elric-pp
Copy link
Author

Elric-pp commented May 8, 2018

不是常用的 APP,连接 POS 机的,招钱进宝

@tiann
Copy link
Member

tiann commented May 9, 2018

VA的问题需要拦截 Bluetooth 相关service,个人没这个需求。你可以自己改。

@tiann tiann closed this as completed May 9, 2018
@Elric-pp
Copy link
Author

Elric-pp commented May 9, 2018

能大概讲一下怎么处理么?非安卓工程师,万分感谢

@tiann
Copy link
Member

tiann commented May 9, 2018

com.lody.virtual.client.hook.proxies.bluetooth.BluetoothStub 这个类的相关方法需要代理掉

@Elric-pp
Copy link
Author

    @Override
    protected void onBindMethods() {
        super.onBindMethods();
        addMethodProxy(new GetAddress());
        addMethodProxy(new ReplaceLastPkgMethodProxy("getAdapter"));
        addMethodProxy(new ReplaceLastPkgMethodProxy("getConnectedDevices"));
        addMethodProxy(new ReplaceLastPkgMethodProxy("getConnectionState"));
        addMethodProxy(new ReplaceLastPkgMethodProxy("getDevicesMatchingConnectionStates"));
        addMethodProxy(new ReplaceLastPkgMethodProxy("openGattServer"));
    }

我对这里做了以上修改,但是没有生效
然后我又看到 VA 有个相关的 PR
所以我又按照那里加上了 IBlueToothManager, 依然不行。sad

@bluesky4485
Copy link

@Elric-pp 最终有解决蓝牙的问题么?

@ddtramp
Copy link

ddtramp commented Mar 12, 2019

@tiann

com.lody.virtual.client.hook.proxies.bluetooth.BluetoothStub 这个类的相关方法需要代理掉

请问这个要怎么实现啊, 可不可以帮忙实现一个栗子 谢谢 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants