Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Do I Debug My Android Apps on a BlackBerry Priv?

Tags:

android

I tried the usual tap-seven-times-on-the-build-number process to get a BlackBerry Priv recognized by my Ubuntu machine for debugging. While I could get into developer options and enable debugging, I didn't get the MAC address authorization dialog, and running adb devices showed no permissions.

How do you get this working?

like image 361
CommonsWare Avatar asked Dec 16 '15 19:12

CommonsWare


People also ask

How do I force my Android to debug?

On the device, go to Settings > About <device>. Tap the Build number seven times to make Settings > Developer options available. Then enable the USB Debugging option. Tip: You might also want to enable the Stay awake option, to prevent your Android device from sleeping while plugged into the USB port.

What does debug level do on Android?

Debug mode enables you to see logs of various Tapjoy actions (sessions, placements, purchases, custom events, etc. ). These will appear in the Tapjoy Developer Console. To get to the developer console, go to the wrench icon in the top navigation bar of the dashboard and select "Developer Console" from the drop down.

What happens when you debug your phone?

When a device is in USB Debugging mode, a computer connected to the device can read all data, run commands, and install or remove apps. The security of the device settings and data could be compromised.


1 Answers

Add the following to whatever rules file you are using in /etc/udev/rules.d/ for your Android devices, or create something like 51-android.rules in there:

# BlackBerry Priv
SUBSYSTEM=="usb", ATTR{idVendor}=="0fca", ATTR{idProduct}=="8032", MODE="0666"

Then, unplug from the Priv, run sudo service udev restart at the command line, and plug in the Priv again. You should get the MAC address authentication dialog and can proceed as normal.

like image 132
CommonsWare Avatar answered Sep 24 '22 19:09

CommonsWare