ToolsInstallation » History » Version 15
Denis 'GNUtoo' Carikli, 11/28/2019 10:41 PM
Group tools together. It's way less time consuming to install all the tools at the same time.
1 | 5 | Paul Kocialkowski | h1. Tools installation |
---|---|---|---|
2 | 1 | Paul Kocialkowski | |
3 | This page explains how to install the various tools used with Replicant. It is assumed that you are running a GNU/Linux operating system. |
||
4 | |||
5 | 15 | Denis 'GNUtoo' Carikli | Note: you may need to run the tools as root if your current user doesn't have USB access privileges. |
6 | 1 | Paul Kocialkowski | |
7 | 15 | Denis 'GNUtoo' Carikli | h2. From distributions |
8 | 1 | Paul Kocialkowski | |
9 | 15 | Denis 'GNUtoo' Carikli | Many distributions already have packages for the most common tools |
10 | 1 | Paul Kocialkowski | |
11 | 15 | Denis 'GNUtoo' Carikli | h3. Parabola |
12 | 1 | Paul Kocialkowski | |
13 | <pre> |
||
14 | 15 | Denis 'GNUtoo' Carikli | sudo pacman -S android-tools android-udev heimdall |
15 | 1 | Paul Kocialkowski | </pre> |
16 | |||
17 | 15 | Denis 'GNUtoo' Carikli | h3. Debian |
18 | 1 | Paul Kocialkowski | |
19 | <pre> |
||
20 | 15 | Denis 'GNUtoo' Carikli | sudo apt-get install android-tools-adb android-tools-fastboot heimdall-flash |
21 | 11 | Wolfgang Wiedmeyer | </pre> |
22 | 2 | Paul Kocialkowski | |
23 | 15 | Denis 'GNUtoo' Carikli | h2. Installing it from Replicant |
24 | 13 | Denis 'GNUtoo' Carikli | |
25 | 15 | Denis 'GNUtoo' Carikli | Some of the tools are also built with the Replicant releases. |
26 | 8 | Denis 'GNUtoo' Carikli | |
27 | 15 | Denis 'GNUtoo' Carikli | 1. Download the @adb@, @fastboot@, @heimdall@, @mkbootimg@ and @unpackbootimg@ tools, with their corresponding @.asc@ signatures files from [[ReplicantImages]] for the latest image. |
28 | 13 | Denis 'GNUtoo' Carikli | 2. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] of the latest version to your GPG keyring |
29 | 15 | Denis 'GNUtoo' Carikli | 3. Check the signature of the each tools: |
30 | 12 | Wolfgang Wiedmeyer | <pre> |
31 | 15 | Denis 'GNUtoo' Carikli | gpg --armor --verify path/to/adb.asc path/to/adb |
32 | 11 | Wolfgang Wiedmeyer | gpg --armor --verify path/to/fastboot.asc path/to/fastboot |
33 | gpg --armor --verify path/to/heimdall.asc path/to/heimdall |
||
34 | 15 | Denis 'GNUtoo' Carikli | gpg --armor --verify path/to/mkbootimg.asc path/to/mkbootimg |
35 | gpg --armor --verify path/to/unpackbootimg.asc path/to/unpackbootimg |
||
36 | 11 | Wolfgang Wiedmeyer | </pre> |
37 | 4. Make sure the check succeeds, *do not run the binary if it doesn't*! |
||
38 | |||
39 | 15 | Denis 'GNUtoo' Carikli | As the tools are built as a 32 bit binary, you will need to install compatibility libraries for 32 bits executables if your computer is running on a 64 bit architecture. |
40 | 5. Make sure tools can be executed: |
||
41 | 11 | Wolfgang Wiedmeyer | <pre> |
42 | 15 | Denis 'GNUtoo' Carikli | chmod a+x adb |
43 | chmod a+x fastboot |
||
44 | 11 | Wolfgang Wiedmeyer | chmod a+x heimdall |
45 | 15 | Denis 'GNUtoo' Carikli | chmod a+x mkbootimg |
46 | chmod a+x unpackbootimg |
||
47 | 11 | Wolfgang Wiedmeyer | </pre> |
48 | |||
49 | 15 | Denis 'GNUtoo' Carikli | 6. You can now use the tools. As they weren't installed in the system path, you need to go in the directory they were downloaded in and add a './' in front of the commands. |
50 | For instance if you want to obtain a list of commands accepted by adb you can use the following command: |
||
51 | 11 | Wolfgang Wiedmeyer | <pre> |
52 | 15 | Denis 'GNUtoo' Carikli | ./adb --help |
53 | 1 | Paul Kocialkowski | </pre> |