---
title: BlackBerry KEYone OTA updates for different variants
layout: default
language: en
created: 2017-09-15 20:32:10 +0200
updated: 2017-09-15 20:32:10 +0200
toc: false
tags:
- know-how
- hardware
- blackberry
- keyone
- ota
- updates
- firmware
---
Variants and update situation
=============================
The KEYone is sold as different models: BBB100-1 (US model), BBB100-2 (EMEA model), etc. And each
model is distributed in multiple variants, expressed in the last 3 digits of the PRD number.
Here are a few models and variants:
| Model | PRD number | Variant |
|------------|---------------|:-----------------------|
| BBB100-1 | PRD-63116-001 | Unlocked US |
| BBB100-1 | PRD-63116-003 | Bell |
| BBB100-1 | PRD-63116-005 | Rogers |
| BBB100-1 | PRD-63116-036 | AT&T |
| BBB100-2 | PRD-63117-003 | Unlocked UK |
| BBB100-2 | PRD-63117-011 | Unlocked Germany |
| BBB100-2 | PRD-63117-015 | NL, Belgium |
| BBB100-2 | PRD-63117-023 | AZERTY Belgium |
| BBB100-2 | PRD-63117-027 | Unlocked UAE |
| BBB100-3 | PRD-63118-001 | Unlocked |
| BBB100-4/5 | PRD-63734-001 | Unlocked |
| BBB100-4/5 | PRD-63734-002 | Unlocked? |
| BBB100-6 | PRD-63763-001 | Unlocked |
| BBB100-7 | PRD-63764-001 | Unlocked |
While the variants of a model all have the same hardware, the different variants allow for
different features being enabled, e.g. for different carriers.
The downside is that different carriers also release updates at different times. Sometimes weeks to
months after other variants got them already. Luckily, all different variants of a model seem to
use the same firmware. This allows to install updates from another variant should they not be
available for the own device.
Update process in general
=========================
On the KEYone, there's an app called *Updates* pre-installed which sends the device's PRD number
and current firmware version to TCL's servers which then reply with "There's no update for you." or
the link to the update file.
The app then downloads said file and puts it at the right location so the Android bootloader can
find and install it.
Such OTA update contains a script with all instructions about what is to be updated. This script
also does various checks first to make sure it can be installed properly. So the risk using the
method described below is very small as a wrong update would abort automatically.
Enabling advanced mode in Updates app
=====================================
The *Updates* app on the KEYone has a hidden advanced mode with additional features. You can
activate that by tapping the three dots in the upper right and selecting *Help* to get to the
help screen. There, tap 8 times on the last item *Checking for updates*. A dialog box will appear
asking you for a password.
The password can be obtained by decompiling the APK file for the Updates app, either using some
[online service](http://www.javadecompilers.com/apk) or [an app](https://play.google.com/store/apps/details?id=com.njlabs.showjava)
and looking at the `/com/tcl/ota/AdvancedModeValidateFragment.java` file.
After you've entered the correct password, three new menu items appear in the Updater's main menu:
*Update manually*, *FOTA test* and *Project test*.
Menu item: Update manually
--------------------------
This one allows you to install a full firmware update manually from the device. You need to name
the update file something like `JSU_PRD-63117-123.zip` (replace the PRD number with that of your
device) and put it in the root directory of your MicroSD card or the internal storage.
It should then appear in this menu in the *Updates* app. You can install it by tapping the three
dots behind the filename and select *Install*.
Menu item: FOTA test
--------------------
Here you can simulate different phone models/variants with different firmware versions and test
if the updater works correctly. **This is exactly what we need during the process below.**
Menu item: Project test
-----------------------
This menu item shows a few parameters like your PRD number (called *Device CU Reference* here),
current firmware version, your IMEI and a few more parameters. You can also test the notification
Spark in the BlackBerry Launcher and the Play Services.
Finding out which variant gets what update
==========================================
OTAs are always differential updates for a specific firmware version to a newer one. To install it,
you **must** have the correct initial firmware installed. Otherwise, the updater script will fail
and abort the update.
To find out which updates are available for which variant, I found [this script](https://gist.github.com/thurask/f4ace564e6575ef41c4e35d2458ca2d0)
which I rewrote and improved. My version can be found here: