Page MenuHomeSolus

Initial commit of android-tools
ClosedPublic

Authored by Staudey on Apr 30 2019, 8:25 PM.

Details

Summary

Initial commit of android tools
Based on the previous work by mariogrip in D4804

Fixes T7381

Test Plan

Connected to my phone via adb (tested with scrcpy), ran fastboot help (didn't actually use fastboot because I don't want to brick my new phone)

Diff Detail

Repository
R4737 android-tools
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
Staudey created this revision.Apr 30 2019, 8:25 PM
Staudey requested review of this revision.Apr 30 2019, 8:25 PM
chax added a subscriber: chax.May 5 2019, 8:52 PM

You should include udev rules for android usb devices, so you don't have to use sudo to execute adb command or fastboot command.
You can find udev file here: https://github.com/snowdream/51-android
Ubuntu package for android-tools already contains that udev.rules file (contained it package android-sdk-platform-tools-common)
You can put it in files/ or download it from git and install it using package.yml on correct location /usr/lib/udev/rules.d

@chax: Okay, thanks for the tip. I'll take a look at it. (though I didn't have to use sudo to run adb anyway)

chax added a comment.May 9 2019, 1:19 PM

hmmmm, i can see that this can be installed from third party repository already.
https://github.com/getsolus/3rd-party/tree/master/programming/tools/android-tools

Indeed it can, but that's a suboptimal situation. Not that this package is the crème de la crème, but it's a start ^^
For one this is pretty outdated, but building from Android source code directly is a horror show.

DataDrake accepted this revision.May 16 2019, 10:03 PM
DataDrake added a subscriber: DataDrake.

LGTM. Thanks!

This revision is now accepted and ready to land.May 16 2019, 10:03 PM
This revision was automatically updated to reflect the committed changes.