split out section on udev rules

This commit is contained in:
Daniel Micay 2021-01-03 21:55:44 -05:00
parent a88a4d1563
commit ed720c49a6

View File

@ -70,6 +70,7 @@
</ul> </ul>
</li> </li>
<li><a href="#enabling-oem-unlocking">Enabling OEM unlocking</a></li> <li><a href="#enabling-oem-unlocking">Enabling OEM unlocking</a></li>
<li><a href="#fastboot-as-non-root">Fastboot as non-root</a></li>
<li><a href="#connecting-phone">Connecting the phone</a></li> <li><a href="#connecting-phone">Connecting the phone</a></li>
<li><a href="#unlocking-the-bootloader">Unlocking the bootloader</a></li> <li><a href="#unlocking-the-bootloader">Unlocking the bootloader</a></li>
<li><a href="#obtaining-signify">Obtaining signify</a></li> <li><a href="#obtaining-signify">Obtaining signify</a></li>
@ -157,16 +158,12 @@
<ul> <ul>
<li>Arch Linux: <code>android-tools</code> provides fastboot and other useful <li>Arch Linux: <code>android-tools</code> provides fastboot and other useful
tools not required for installation such as adb. <code>android-udev</code> tools not required for installation such as adb. Skip the section
provides udev rules allowing fastboot and adb to work in local sessions
without root. Install both of these packages and skip the section
below on using the standalone platform-tools releases.</li> below on using the standalone platform-tools releases.</li>
<li>Debian and Ubuntu: <code>android-sdk-platform-tools-common</code> provides <li>Debian and Ubuntu: The adb and fastboot packages are currently both
udev rules allowing fastboot and adb to work in local sessions without root. broken and far too out-of-date to be any use, so avoid those. The
The udev rules in Debian and Ubuntu are out-of-date, but it has the necessary version check in the flashing script will prevent accidentally using
entries for Pixel phones. The adb and fastboot packages are currently both these.</li>
broken and far too out-of-date to be any use, so avoid those. The version
check in the flashing script will prevent accidentally using these.</li>
</ul> </ul>
<section id="standalone-platform-tools"> <section id="standalone-platform-tools">
@ -239,10 +236,30 @@ Installed as /home/username/platform-tools/fastboot</pre>
Play services as part of Factory Reset Protection (FRP) for anti-theft protection.</p> Play services as part of Factory Reset Protection (FRP) for anti-theft protection.</p>
</section> </section>
<section id="fastboot-as-non-root">
<h2><a href="#fastboot-as-non-root">Fastboot as non-root</a></h2>
<p>On Linux, in order to run the <code>fastboot</code> command as non-root you'll
need udev rules to properly set up the USB device.</p>
<p>On Arch Linux:</p>
<pre>sudo pacman -S android-udev</pre>
<p>On Debian and Ubuntu:</p>
<pre>sudo apt install android-sdk-platform-tools-common</pre>
<p>The udev rules on Debian and Ubuntu are very out-of-date but the package has
the rules needed for Pixel phones since the same USB IDs have been used for many
years.</p>
</section>
<section id="connecting-phone"> <section id="connecting-phone">
<h2><a href="#connecting-phone">Connecting the phone</a></h2> <h2><a href="#connecting-phone">Connecting the phone</a></h2>
<p>Connect the phone to the computer if you haven't already.</p> <p>Connect the phone to the computer. On Linux, you'll need to do this again if
you didn't have the udev rules set up when you connected it.</p>
</section> </section>
<section id="unlocking-the-bootloader"> <section id="unlocking-the-bootloader">