[MOD] No Bluetooth Prompt For Lenovo Vibe Z2 Pro (K920)

moneytoo

Recognized Developer
Feb 20, 2007
1,413
1,269
113
brouken.com
For some reason Lenovo decided to prevent enabling Bluetooth using the standard BluetoothAdapter.enable() method and always request user confirmation in a popup for any 3rd party app.
This behavior pretty much prevents using any profile manager, Tasker or other app from automatic switching Bluetooth on. This module fixes that and allows any app to power on Bluetooth - just like with any other Android device.

v0.2: It also enables the cover to power on/off the device when using Google UI.

No Bluetooth Prompt For Lenovo Vibe Z2 Pro (K920) is also available from Xposed Module Repository (source).
 

Attachments

Last edited:

moneytoo

Recognized Developer
Feb 20, 2007
1,413
1,269
113
brouken.com
Could you make a separate Xposed module just for the cover actions to work with Google UI on Lollipop?
That would be really great.
I will probably do that but I don't have Xposed installed yet as it's not that straightforward - bootloader is locked so Xposed can't be installed using recovery. It only takes to rewrite the installation script but I haven't done that yet.