You can add a skin to the Android™ Virtual Device (AVD) Manager in the Android Studio SDK so that you can emulate the look and feel of a BlackBerry PRIV. This allows you to simulate the hardware keys on the PRIV, including the power, volume up, volume down and the physical keyboard.
Before you begin, make sure you have installed the most recent version of the Android Studio and Android SDK that matches the version of Android on PRIV (as of writing 5.1.1 API 22). Once you have that installed, download the PRIV skin files available in the knowledge base article: BlackBerry PRIV Emulator
The following steps are also mirrored in the knowledge base article above.
Place the skin for PRIV in the SDK
Download the PRIV.zip archive, and extract the PRIV folder to <path to your local sdk>\platforms\android-xx\skins, where xx is the platform version.
Set up the emulator in Android Studio – AVD Manager
- On the Android Studio toolbar, click AVD Manager.
- Click + Create Virtual Device > Import Hardware Profiles.
- Import <path to your local sdk>\platforms\andriod-xx\skins\PRIV\device.xml, where xx is the platform version.
- Confirm that the new device “PRIV” appears in the devices list. Press the Refresh button to refresh the list for PRIV to appear. It might be necessary to close Select Hardware (cancel), and click Create Virtual Device again in order to refresh the list.
- Select PRIV and then click Next.
- Select x86_64 (assuming you are using a 64-bit operating system) and then click Next.
- Click Show Advanced Settings to show all settings. In the Android Virtual Device (AVD) window, configure the following emulator settings to your preferred values:
- Android Virtual Device (AVD) Name
- Startup scale and orientation
- Camera orientation
- Network characteristics
- Ensure Show Advanced Settings is selected, and set the following emulator preferences:
- Memory and storage limits (we suggest increasing RAM to 3 GB and VM heap to 128 MB)
- For skin, select PRIV
- Click Finish
- Launch the emulator.