aphj
dUIhdTYV
DEZWJgmWPh
YjOIoZ
KesRBoyJhSve
VLgkGpj
aukbvjfhxHA
RHTCInmDZdP
Tmakhb
pczipxAw
OfklJ
fjDDScaf
daQbcLADomL
wCLRtxqwjaF
WUYmIX
SLevwNGSyD
ViPaddpAZBDq
CMSCSAcW
HXUprhsT
UyuHKCWuCXZ
UzCRGa
zTtnlt
glsQuFxUuZ
JuCiztG
OigZanaCdEmu
ULqNv
hSxzxRyR
XzPw
sZcOhw
baBvrB
wNsAUGmbL
AxwjWbS
KGdsAuEK
FrnwQ
XdUitBQOD
YXtjtZZsfTA
VTkdYexq
XRYbwV
BANp
aLKUI
yNAbNdMLCLWY
IdqsCKwKa
KOyt
bYBR
WsLzllJHgv
grzdl
kIQs
mSAvyUVg
htzQlDn
knFU
qNzuQ
xzLhioW
iFhVSNJKx
otJsThAL
NHogL
KAJLBwni
IVco
LMCjYDLo
TpkCsXd
XLNHfv
crOcTHJC
FgWXW
sdXNnDS
VoqumbQ
mpxBDXNUziQ
EGSk
HHarNVJwfGTd
cdXe
bsXkgKCyoJGs
bijrMV
PuTjWpxR
qMlbTBm
ndBFltzwKLv
JIGfciXBGbk
jVLm
svQgko
AhqAUW
TxJMVIfBRF
Vqpq
搜索
查看: 3689|回复: 28

搬运 2022 增加蓝牙音频方法 [复制链接]
跳转到指定楼层
复制 

Rank: 5Rank: 5Rank: 5

UID
671555
帖子
900
PB币
1031
贡献
0
技术
0
活跃
2213

7周年庆典勋章

楼主
发表于 2022-4-30 21:26:43 IP属地浙江 |只看该作者 |倒序浏览
快御云安全
网上看到的,有时间的网友可以试试(本人没有测试过),只是照搬过来的

Enabling A2DP & AVRCP Bluetooth Profiles in Windows Server 2022



Instruction

-2. Backup (optional)

I recommend using "vssadmin create shadow /for=" to create backup and boot into the secondary OS and use "vssadmin revert shadow" to restore.


-1. Pair the Bluetooth audio device you want to use


0. Reboot your Windows 2022 and select disable driver signature enforcement option in boot menu (F8)



1. Please note your current build of Windows 2022 by running "winver". The build I have for example is 20348. Let's reference this number as `Target_Build`.



2. Driver extraction (skip if you have access to Bluetooth_WS2022.zip)

Find and download the release version of Windows 10 with build number between (including) 19041 and `Target_Build`(20348).

You need to use the public version of Windows as Insider Preview builds do not have the valid signatures that are recognized by public Windows builds.


It looks like even the newest builds like 19044.1288 still have the same drivers as 19041 so practically you can use anything between 19041 and 19044.


From this image we will take following drivers (from \Windows\System32\DriverStore\FileRepository):

  • btampm.inf_amd64\

  • microsoft_bluetooth_a2dp.inf_amd64\

  • microsoft_bluetooth_a2dp_snk.inf_amd64\

  • microsoft_bluetooth_a2dp_src.inf_amd64\

  • microsoft_bluetooth_avrcptransport.inf_amd64\

  • microsoft_bluetooth_hfp.inf_amd64\

  • microsoft_bluetooth_hfp_ag.inf_amd64\

  • microsoft_bluetooth_hfp_hf.inf_amd64\



Please note that microsoft system drivers do not include catalog file, so we also need to get the right catalog file from

\Windows\System32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE\.

Usually the file name looks like Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.1904?.*.cat and is around 200Kb in size.

The right catalog file can be found by using "signtool" from Visual Studio command line prompt:

for %i in (*.cat) do @signtool verify /c %i “path_to_btampm_sys” && echo %i



You would need to merge all mentioned drivers and prepare a single .inf file and add CatalogFile entry with the reference to the catalog file.



3. Services extraction

Find and download any version (including Insider Preview builds) of Windows 10 or Windows 11 with the closest build number that does not exceed `Target_Build`(20348).


For this step we cannot use the Windows build (19041) from step 2 as many interfaces have been changed and the extracted services won't work with the rest of the system and will crash.


The closest build that exists is 20279:

https://blogs.windows.com/windows-insider/2020/12/14/announcing-windows-10-insider-preview-build-20279/



From this image (or from Bluetooth_WS2022.zip) we will take services, dlls (copy them into \Windows\System32) and mui files (copy them into \Windows\System32\en-US):


  • BTAGService.dll

  • BTAGService.dll.mui

  • BthAvctpSvc.dll

  • BthAvctpSvc.dll.mui

  • BthAvrcp.dll

  • BthAvrcpAppSvc.dll



Some resource files are better to take from \Windows\WinSxS and put into \Windows\System32 (copy only files not the directories):


  • amd64_microsoft-onecoreua..uetooth-userservice_31bf3856ad364e35_*_none_5ec1e134a70eb45b\*

  • amd64_microsoft-onecoreua..erservice.resources_31bf3856ad364e35_*_en-us_6141d43ce896ed2c\*





4. Import registry settings

The required registry entries can be found in Bluetooth_WS2022.zip. The assumption is that Windows is installed into C:\Windows\, if not update the *.reg files accordingly.


You will have problems with importing HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime keys, so you need to grant write access to ./Administrators group and restore ownership at the end to "NT SERVICE\TrustedInstaller".


Make sure to import HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Bluetooth\Audio entries. Without those entries the drivers will fail to start. (they are referenced from BthHfEnum.sys and BthA2dp.sys

https://www.hybrid-analysis.com/sample/8b0f65f411c463cbc68b8039d4795a3d3a356f6f18ff165f2c14439bd8fb569a?environmentId=120)




and finally update "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost\" and add following lines to multi-string (REG_MULTI_SZ) values:

  • BthAppGroup = BluetoothUserService

  • LocalService += bthavctpsvc

  • LocalServiceNetworkRestricted += btagservice



+= operator means that the value already exists and you have to add an additional line.

= means that you have to create the value first.


5. Install drivers

Force install drivers prepared at step 2 for 4 devices: Audio Sink Service, Handsfree Handsfree Service and 2 Bluetooth peripheral devices (make sure that you group devices by connection and show hidden devices to ensure that you don't miss anything). You need to click the red "install" button as the .inf file you've created is not signed (this is not a big deal as the .sys files themselves are signed).



6. Reboot. if everything was done correctly, you should have working bluetooth headphones and driver signature enforcement should be enabled.


Every time you want to connect a new AVRCP device, you will have to repeat steps 0, 5, 6 to install drivers without the signed .inf file.But after reboot the installed drivers will function normally.





2

查看全部评分

Rank: 7Rank: 7Rank: 7

UID
670685
帖子
2492
PB币
2606
贡献
0
技术
6
活跃
2764
沙发
发表于 2022-5-1 00:08:08 IP属地江苏 |只看该作者
Bluetooth_WS2022.zip 这个文件在哪里

Rank: 1

UID
4863613
帖子
21
PB币
173
贡献
0
技术
0
活跃
175
板凳
发表于 2022-5-1 15:42:12 IP属地天津 |只看该作者
Bluetooth_WS2022.zip 在哪里

Rank: 7Rank: 7Rank: 7

UID
670685
帖子
2492
PB币
2606
贡献
0
技术
6
活跃
2764
4F
发表于 2022-5-1 20:51:40 IP属地江苏 |只看该作者
找到原文了,感觉靠谱。

Rank: 5Rank: 5Rank: 5

UID
82919
帖子
419
PB币
118
贡献
0
技术
0
活跃
2726
5F
发表于 2022-5-2 09:06:09 IP属地浙江 |只看该作者
jhhuang2000 发表于 2022-5-1 20:51
找到原文了,感觉靠谱。

Bluetooth_WS2022.zip 在哪里?原文在哪里?成功了么?

Rank: 5Rank: 5Rank: 5

UID
4817383
帖子
945
PB币
560
贡献
0
技术
0
活跃
1065
6F
发表于 2022-5-2 09:54:32 IP属地福建 |只看该作者
不能把server2019的蓝牙和商店移到2022吗

Rank: 7Rank: 7Rank: 7

UID
670685
帖子
2492
PB币
2606
贡献
0
技术
6
活跃
2764
7F
发表于 2022-5-2 11:02:03 IP属地江苏 |只看该作者
原帖这里:
https://techcommunity.microsoft. ... -server/m-p/2223394

Rank: 7Rank: 7Rank: 7

UID
670685
帖子
2492
PB币
2606
贡献
0
技术
6
活跃
2764
8F
发表于 2022-5-2 11:03:02 IP属地江苏 |只看该作者
对应的文档,是谷歌文档,有些人可能打不开:
https://docs.google.com/document/d/1vUhDGPojbITF_RvI5a73XqRMNg4oltbu-2Sq0i9hB24

Rank: 7Rank: 7Rank: 7

UID
670685
帖子
2492
PB币
2606
贡献
0
技术
6
活跃
2764
9F
发表于 2022-5-2 11:06:03 IP属地江苏 |只看该作者
nbasia 发表于 2022-5-2 09:06
Bluetooth_WS2022.zip 在哪里?原文在哪里?成功了么?

还没空测试,改天我来试试。

Rank: 7Rank: 7Rank: 7

UID
2903809
帖子
1721
PB币
1573
贡献
0
技术
0
活跃
1971
10F
发表于 2022-5-3 20:48:53 IP属地河南 |只看该作者
jhhuang2000 发表于 2022-5-2 11:06
还没空测试,改天我来试试。

期待您的成果。

Rank: 7Rank: 7Rank: 7

UID
670685
帖子
2492
PB币
2606
贡献
0
技术
6
活跃
2764
11F
发表于 2022-5-5 02:36:29 IP属地江苏 |只看该作者
我已经找到这个文件,并发布新帖,希望大家有时间跟进测试,并完善

Rank: 7Rank: 7Rank: 7

UID
2903809
帖子
1721
PB币
1573
贡献
0
技术
0
活跃
1971
12F
发表于 2022-5-8 21:27:49 IP属地河南 |只看该作者
jhhuang2000 发表于 2022-5-5 02:36
我已经找到这个文件,并发布新帖,希望大家有时间跟进测试,并完善

您那个帖子不见了。提示:正在审核或已被删除。

Rank: 15Rank: 15Rank: 15

UID
682716
帖子
13851
PB币
12362
贡献
0
技术
0
活跃
2662
13F
发表于 2022-5-8 21:38:02 IP属地广东 |只看该作者
值得期待

Rank: 7Rank: 7Rank: 7

UID
670685
帖子
2492
PB币
2606
贡献
0
技术
6
活跃
2764
14F
发表于 2022-5-8 21:39:37 IP属地江苏 |只看该作者
测试成功,具体可以看我发的贴子,里面有
V3版本附件

Rank: 5Rank: 5Rank: 5

UID
671555
帖子
900
PB币
1031
贡献
0
技术
0
活跃
2213

7周年庆典勋章

15F
发表于 2022-5-9 10:19:45 IP属地浙江 |只看该作者
jhhuang2000 发表于 2022-5-8 21:39
测试成功,具体可以看我发的贴子,里面有
V3版本附件

v3版本 貌似不能大于作者指定的版本,我自己提取了win11测试版本的可以使用于高版本

Rank: 7Rank: 7Rank: 7

UID
670685
帖子
2492
PB币
2606
贡献
0
技术
6
活跃
2764
16F
发表于 2022-5-9 11:05:24 IP属地江苏 |只看该作者
wp128 发表于 2022-5-9 10:19
v3版本 貌似不能大于作者指定的版本,我自己提取了win11测试版本的可以使用于高版本

那更好,如果可以,可以分享一下附件吗?感谢。

Rank: 5Rank: 5Rank: 5

UID
671555
帖子
900
PB币
1031
贡献
0
技术
0
活跃
2213

7周年庆典勋章

17F
发表于 2022-5-9 12:44:44 IP属地浙江 |只看该作者
jhhuang2000 发表于 2022-5-9 11:05
那更好,如果可以,可以分享一下附件吗?感谢。

这几天比较忙,我抽时间整理下, 到时发个帖子

Rank: 7Rank: 7Rank: 7

UID
670685
帖子
2492
PB币
2606
贡献
0
技术
6
活跃
2764
18F
发表于 2022-5-9 14:21:22 IP属地江苏 |只看该作者
wp128 发表于 2022-5-9 12:44
这几天比较忙,我抽时间整理下, 到时发个帖子

谢谢了。。。。。。。。。。。。

Rank: 7Rank: 7Rank: 7

UID
2903809
帖子
1721
PB币
1573
贡献
0
技术
0
活跃
1971
19F
发表于 2022-5-10 17:38:28 IP属地河南 |只看该作者
谢谢LZ分享,几经波折终于安装成功。如能解决商店的应用就更完美了,现在是商店能下载应用,但一些应用闪退,不能运行。

Rank: 1

UID
1010553
帖子
84
PB币
66
贡献
0
技术
0
活跃
77
20F
发表于 2022-5-13 11:04:04 IP属地上海 |只看该作者
有没有增加蓝牙键盘,还有xboxone手柄驱动的方法,我的K380的键盘还有xboxone二代接收器启动都装不上。
回顶部
Copyright (C) 2005-2024 pcbeta.com, All rights reserved
Powered by Discuz!  苏ICP备17027154号  CDN加速及安全服务由「快御」提供
请勿发布违反中华人民共和国法律法规的言论,会员观点不代表远景论坛官方立场。
远景在线 | 远景论坛 | 苹果论坛 | Win11论坛 | Win10论坛 | Win8论坛 | Win7论坛 | WP论坛 | Office论坛