Project

General

Profile

ADB » History » Version 4

Wolfgang Wiedmeyer, 03/07/2017 09:57 PM
add section about modifying the system partition

1 1 Paul Kocialkowski
h1. ADB
2
3
h2. Installing ADB
4
5 3 Paul Kocialkowski
Instructions to [[ToolsInstallation#ADB|install ADB]].
6 1 Paul Kocialkowski
7
h2. Authorizing the device
8
9
In order to allow your host computer to access ADB on the device, it must be allowed on the device. A window should pop up when connecting USB, asking whether to allow USB debugging. 
10 2 Paul Kocialkowski
*Note: when booting with USB plugged in, the window doesn't pop up and you have to disconnect and reconnect the USB cable to see it happen.*
11 1 Paul Kocialkowski
12
h2. Accessing root shell
13
14
Once allowed, you can access the device shell using:
15 4 Wolfgang Wiedmeyer
16 1 Paul Kocialkowski
<pre>
17
adb shell
18
</pre>
19
20
The shell is running as an unprivileged user. To gain root access, use:
21 4 Wolfgang Wiedmeyer
22 1 Paul Kocialkowski
<pre>
23
adb root
24
</pre>
25
26
The following shells will then be run as root.
27 4 Wolfgang Wiedmeyer
28
h2. Modifying the system partition
29
30
Replicant is installed on the system partition. By default, this partition is mounted as read-only and can't be modified.
31
You can mount the partition as writable filesystem using:
32
33
<pre>
34
adb remount
35
</pre>
36
37
Files under @/system/@ can now be edited.