How to fix Bluetooth in Windows 10 Build 15031

by evil_pro2 years ago

Microsoft has recently released Build 15031 to Windows Insiders in the Fast Ring. In the official changelog they mentioned a cool new feature which aims to automatically detect when you’re away from your computer and then locks your PC to protect it from people using it while you’re gone. It works by pairing your phone to your PC. You can find more information about this feature and other features included with this release in the official blogpost.

There’s one problem though: Navigating to the Devices page in Settings, where you can manage existing and pair new devices will lead to a crash of the Settings app. That means if you don’t have your phone paired before the upgrade, you won’t be able to try out Dynamic Lock until a future build which fixes the issue.

Rafael Rivera found a workaround for the issue and shared it on Twitter.

https://twitter.com/WithinRafael/status/830558465772834816

Alright, let’s go into detail.

What we’re going to do is replacing the 15031 file with the one from the previous build. To be able to do so, we need to gain ownership and reset the permissions of the original file and rename that one. Then we can insert the one from 15025 to make the Devices page in Settings work again.

First, make sure you have a copy of the previous build, 15025. If you don’t have one, you can go to Microsoft’s official download page and grab a copy. Make sure that you choose the right architecture (it must match the architecture of your 15031 installation).
Now mount the ISO file you downloaded and navigate to the sources folder. Open the file called ‘install.wim’ with an archiver like 7-Zip.

Once you’ve opened the file in your archiver of choice, navigate to Windows\System32 and copy the file named DeviceFlows.DataModel.dll to a folder somewhere on your computer. In this case we’re going to use C:\BT-Fix.

Now right click the Start button in your taskbar and choose Windows PowerShell (Admin).

First, you want to gain ownership of the file we’re going to replace.

  • Enter takeown /F C:\Windows\System32\DeviceFlows.DataModel.dll into the PowerShell window and hit Enter.

Next up, we need to reset the permissions of the file because by default you wont be able to rename it.

  • To do so, type icacls C:\Windows\System32\DeviceFlows.DataModel.dll /reset into the PowerShell and hit Enter again.

Now that you have access to the file, you need to rename it.

  • Type ren C:\Windows\System32\DeviceFlows.DataModel.dll C:\Windows\System32\DeviceFlows.DataModel.dll.old and hit Enter again.

To finish things up, copy the new file into the System32 directory

  • Type copy C:\BT-Fix\DeviceFlows.DataModel.dll C:\Windows\System32\ and hit Enter.

Now you should be able to open the Settings app and go to the Devices category. You can now pair your phone and try out the new Dynamic Lock feature if you wish.

We hope that this works for you and that you can now test the new Dynamic Lock feature!

Comments