如何让我的 Samsung Galaxy S7 with android 7 始终在蓝牙扫描中被发现?

How to make my Samsung Galaxy S7 with android 7 always discoverable on bluetooth scans?

我想让我的新三星 galaxy S7 (SM-G930F) 在我的 android 应用程序中通过蓝牙扫描始终被发现。 我试过这段代码:

discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
            discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 0);
            startActivityForResult(discoverableIntent, REQUEST_DISCOVERABLE_CODE);

这适用于我使用的所有设备:

-Samsung Galaxy S4 mini (GT-I19195) with CyanogenMod Android 6;

-华硕 Zenfone3 (Z012S) 与 android 7;

-Samsung Galaxy S3 (GT-I19300) with CyanogenMod Android 6.

你能帮帮我吗?

在使用 Samsung S6 时遇到过同样的问题,我认为不可能将其永久设置为可在 Samsung 设备上发现。