1.1 KiB
1.1 KiB
ADB and Fastboot
2021-05-30
ADB and Fastboot are tools for installing custom ROMs on Android devices.
- Download package from https://dl.google.com/android/repository/platform-tools-latest-linux.zip
- Extract to
~/adb-fastboot
- Add the following to
~/.bashrc
if [ -d "$HOME/adb-fastboot/platform-tools" ] ; then export PATH="$HOME/adb-fastboot/platform-tools:$PATH" fi
. ~/.bashrc
udev rules
Permissions issues may arise when using fastboot
. This can be resolved by doing the following (source):
git clone https://github.com/M0Rf30/android-udev-rules.git
cd android-udev-rules
sudo cp -v 51-android.rules /etc/udev/rules.d/51-android.rules
sudo chmod a+r /etc/udev/rules.d/51-android.rules
sudo cp android-udev.conf /usr/lib/sysusers.d/
sudo systemd-sysusers
sudo gpasswd -a $(whoami) adbusers
sudo udevadm control --reload-rules
sudo systemctl restart systemd-udevd.service
adb kill-server
# Reconnect Android device, then run the following to test
adb devices