Project

General

Profile

ADB » History » Revision 5

Revision 4 (Wolfgang Wiedmeyer, 03/07/2017 09:57 PM) → Revision 5/10 (Wolfgang Wiedmeyer, 03/25/2017 07:01 PM)

h1. ADB 

 h2. Installing ADB 

 Instructions to [[ToolsInstallation#ADB|install ADB]]. 

 h2. Enabling ADB 

 In the settings, open *Developer options*. In the Debugging section, enable *Android debugging*. 

 h2. Authorizing the device 

 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.  
 *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.* 

 h2. Accessing root shell 

 Once allowed, you can access the device shell using: 

 <pre> 
 adb shell 
 </pre> 

 The shell is running as an unprivileged user. 

 To allow root access, open the *Developer options* in the settings. There, press *Root access*. In the pop-up menu, select either *ADB only* or *Apps and ADB*. 

 To finally gain root access, use: 

 <pre> 
 adb root 
 </pre> 

 The following shells will then be run as root. 

 h2. Modifying the system partition 

 Replicant is installed on the system partition. By default with most devices, default, this partition is mounted as read-only and can't be modified. 
 You can mount the partition as writable filesystem using: 

 <pre> 
 adb remount 
 </pre> 

 Files under @/system/@ can now be edited.