Open
Description
Description
OnStart() method requests Bluetooth On/Off Permission which may be rejected or accepted by the user and similarly ensureDiscoverable() method requests Bluetooth discoverable permission, so we need to check permission if user has alloted or not.
Branch
develop( OBDSimulator.java )
Solution
We can explicitly import check to see if permission is available (with checkPermission) or explicitly handle a potential SecurityException