简体   繁体   English

在Android 5.0上哪里可以找到Bluedroid配置文件

[英]Where to find Bluedroid config files on Android 5.0

I want to use a Lenovo Tab2 A7 (Android 5.0, rooted) as a A2DP sink. 我想使用Lenovo Tab2 A7(Android 5.0,已植根)作为A2DP接收器。 To do this, i have to edit the files: 为此,我必须编辑文件:
/external/bluetooth/bluedroid/include/bt_target.h /external/bluetooth/bluedroid/include/bt_target.h
and
/packages/apps/Bluetooth/res/values/config.xml /packages/apps/Bluetooth/res/values/config.xml

But i cant find them. 但是我找不到他们。 I searched in every folder on the tablet. 我在平板电脑上的每个文件夹中搜索。 I also searched on the source which is provided by Lenovo: 我还搜索了Lenovo提供的来源:
http://support.lenovo.com/de/de/products/tablets/a-series/a7-10-2/downloads/ds105762 http://support.lenovo.com/de/de/products/tablets/a-series/a7-10-2/downloads/ds105762

Can somebody give me a hint? 有人可以给我提示吗?

These files bt_target.h and config.xml actually do not exist on android device. 这些文件bt_target.hconfig.xml实际上在Android设备上不存在。 These files are present in AOSP code. 这些文件存在于AOSP代码中。 To enable A2DP sink you have to actually dig into the code, go to these files location as mentioned by you, make the changes and then compile either complete image or just bluedroid. 要启用A2DP接收器,您必须实际研究代码,按照您提到的方式转到这些文件的位置,进行更改,然后编译完整的映像或仅编译bluedroid。

Also your device should be rooted if you just want to replace bluedroid library. 另外,如果您只想替换bluedroid库,则应该植根您的设备。 In case of complete image, anyway you have to flash your complete image. 如果是完整图像,则无论如何都必须刷新完整图像。

But, unfortunately it's not yet done for A2DP sink. 但是, 不幸的是,它尚未针对A2DP接收器完成。 With above steps you'll be able to enable sink profile and connect to it and start streaming from remote device to your device but the streaming data could not be played on your device. 通过上述步骤,您将能够启用接收器配置文件并连接到该配置文件,并开始从远程设备流式传输到您的设备,但是流式数据无法在您的设备上播放。 Reason being, AOSP does not have that portion of code available as of now which could play the streaming data on your phone speaker. 原因是,AOSP到现在为止还没有那部分可以在您的手机扬声器上播放流数据的代码。

Refer below link for more info 请参阅下面的链接以获取更多信息

A2DP sink discussion on android Android上的A2DP接收器讨论

But wait, there is one good news, with limitation though, Samsung Galaxy S7 and above series phones do support sink role. 但是,等等,有一个好消息,尽管有限制,但三星Galaxy S7及以上系列手机确实支持接收器功能。 But right now there seems to be limitation in sink functionality of the phone. 但是现在,手机的接收器功能似乎受到限制。 Galaxy S7 and above series phones can only connect with Tizen Smart TVs at present through in built quickconnect app. Galaxy S7及更高版本的手机目前只能通过内置的quickconnect应用程序与Tizen Smart TV连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM