| 93 | |
| 94 | ==== Getting the debug token ==== |
| 95 | To install correctly to the BB10 device, the package needs to be signed with a valid debug token. |
| 96 | |
| 97 | 1. ''source'' the ''bbndk-env.sh'' script to your shell, so that you have the various BlackBerry utilities in your ''$PATH'' |
| 98 | {{{ |
| 99 | source bbndk-env.sh |
| 100 | }}} |
| 101 | |
| 102 | 2. fill in the online form for signing keys |
| 103 | Note the PIN you've entered somewhere. |
| 104 | |
| 105 | 3. generate a keypair |
| 106 | '''NOTE: This step is very important, as it is completely omitted in the official BB10 documentation and without it the debug token generation will fail with a ''author.p12 file missing'' error''' |
| 107 | |
| 108 | '''NOTE2: use only lowercase letters and numbers in the store password as reportedly uppercase letters cause problems. ''' |
| 109 | |
| 110 | {{{ |
| 111 | blackberry-keytool -genkeypair -storepass <new keystore password>3 -author <some string without spaces> |
| 112 | }}} |
| 113 | |
| 114 | 4. register the signing keys |
| 115 | {{{ |
| 116 | blackberry-debugtokenrequest -register -csjpin <the pin you entered to the online form> -cskpass <probably also the pin you entered to the online form> client-RDK-*.csj |
| 117 | }}} |
| 118 | The following is probably only needed for the Playbook ? |
| 119 | {{{ |
| 120 | blackberry-debugtokenrequest -register -csjpin <the pin you entered to the online form> -cskpass <probably also the pin you entered to the online form> client-PBDT-*.csj |
| 121 | }}} |
| 122 | |
| 123 | 6. find you device PIN |
| 124 | Should be visible on-device in settings->About->Harware |
| 125 | |
| 126 | 5. generate the debug token |
| 127 | {{{ |
| 128 | blackberry-debugtokenrequest -storepass <the keystore password you've entered in step 3> -devicepin <device PIN> debug_token.bar |
| 129 | }}} |
| 130 | |
| 131 | The debug_token.bar file now contains the debug token you can use to build packages (just for) your BB10 device. Plain and easy, not needlessly convoluted at all. :) |
| 132 | |
| 133 | ==== Package contents ==== |
| 134 | |