Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SecurityException in NetworkController regarding missing Bluetooth permission #43

Merged
merged 1 commit into from
Jan 19, 2016
Merged

Fix SecurityException in NetworkController regarding missing Bluetooth permission #43

merged 1 commit into from
Jan 19, 2016

Conversation

vanniktech
Copy link
Contributor

Fixes

01-19 11:23:01.828 4500-4500/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: net.familo.android.dev, PID: 4500
java.lang.SecurityException: Need BLUETOOTH ADMIN permission: Neither user 10119 nor current process has android.permission.BLUETOOTH_ADMIN.
at android.os.Parcel.readException(Parcel.java:1620)
at android.os.Parcel.readException(Parcel.java:1573)
at android.bluetooth.IBluetoothManager$Stub$Proxy.enable(IBluetoothManager.java:302)
at android.bluetooth.BluetoothAdapter.enable(BluetoothAdapter.java:901)
at io.palaima.debugdrawer.commons.NetworkController.setBluetoothEnabled(NetworkController.java:152)
at io.palaima.debugdrawer.commons.NetworkModule$3.onCheckedChanged(NetworkModule.java:78)
at android.widget.CompoundButton.setChecked(CompoundButton.java:156)
at android.widget.Switch.setChecked(Switch.java:1070)
at android.widget.Switch.toggle(Switch.java:1065)
at android.widget.CompoundButton.performClick(CompoundButton.java:120)
at android.view.View$PerformClick.run(View.java:21153)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

palaima pushed a commit that referenced this pull request Jan 19, 2016
Fix SecurityException in NetworkController regarding missing Bluetooth permission
@palaima palaima merged commit 0fab257 into palaima:dev Jan 19, 2016
@palaima
Copy link
Owner

palaima commented Jan 19, 2016

Great! Thanks

@vanniktech
Copy link
Contributor Author

@palaima is that automatically in the SNAPSHOT?

@vanniktech vanniktech deleted the dev_bluetooth_permission_fix branch January 19, 2016 20:44
@palaima
Copy link
Owner

palaima commented Jan 19, 2016

Nope. I should upload it manually. I'm planning to upload tomorrow. But if you really need could do that asap

@vanniktech
Copy link
Contributor Author

No pressure. Do it when you have time.

@palaima
Copy link
Owner

palaima commented Jan 20, 2016

Hey,

SNAPSHOT is uploaded.

@vanniktech
Copy link
Contributor Author

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants