Looking for recent Android tools
#1
Does anyone with Linux arm64 knowledge care to explain if it's possible to compile adb and fastboot for an arm64 architecture using the PineBookPro? The ones available in Debian is of api23 and in Manjaro I believe it's the same or slightly newer but definitely not the latest. I have two Android devices both running Android 9 or 10 which use api28/29 so flashing anything on the pb will cause problems.
#2
It should be possible if previous versions can install. I've installed a few different versions to push to an Anbox install, and they worked fine. I'd start by checking what's in the AUR, adding aarch64 to the PKGBUILD as needed, and going from there. I'm sure you could build it from source, too.
#3
Rainbow 
(06-18-2020, 06:41 AM)tophneal Wrote: It should be possible if previous versions can install. I've installed a few different versions to push to an Anbox install, and they worked fine. I'd start by checking what's in the AUR, adding aarch64 to the PKGBUILD as needed, and going from there. I'm sure you could build it from source, too.
Thank you, I just found how to enable AUR as I was going to try to install Android studio to get the latest and forgot to just look for android tools. I'll do that as soon as I get home. Forgive my next question as I'm still learning, but what do you mean by adding aarch64 to the PKGBUILD? I found this article https://cloudcone.com/docs/article/insta...-from-aur/ is that what you mean?
#4
(06-19-2020, 03:51 AM)FeMike Wrote: Thank you, I just found how to enable AUR as I was going to try to install Android studio to get the latest and forgot to just look for android tools. I'll do that as soon as I get home. Forgive my next question as I'm still learning, but what do you mean by adding aarch64 to the PKGBUILD? I found this article https://cloudcone.com/docs/article/insta...-from-aur/ is that what you mean?

No exactly, that page is really just outlining how to use different aur helpers/package managers. I'll use the AUR package for android-tools-git (https://aur.archlinux.org/packages/android-tools-git/) to demo what i mean, even though it may not be the right package for you, you may need to try adb-arm64.

Let's say you're using pamac (UI or CLI) when you select a package to install, before it installs the new package, you'll be asked if you want to edit its PKGBUILD (https://aur.archlinux.org/cgit/aur.git/t...-tools-git). That is essentially a text file with important info for the package manager to install the software, it lists dependencies, conflicts, supported architectures, compiling flags, etc. In every PKGBUILD will be a line with something like:
Code:
arch=(i686 x86_64)

In this case, let's say you looked up all the dependencies for this package, and you know they'll all install/run on aarch64. You can edit that line in the PKGBUILD to include aarch64:
Code:
arch=(i686 x86_64 aarch64)

Pamac will then see that as software supporting aarch64 and try to install it.
#5
(06-19-2020, 06:28 AM)tophneal Wrote:
(06-19-2020, 03:51 AM)FeMike Wrote: Thank you, I just found how to enable AUR as I was going to try to install Android studio to get the latest and forgot to just look for android tools. I'll do that as soon as I get home. Forgive my next question as I'm still learning, but what do you mean by adding aarch64 to the PKGBUILD? I found this article https://cloudcone.com/docs/article/insta...-from-aur/ is that what you mean?

No exactly, that page is really just outlining how to use different aur helpers/package managers. I'll use the AUR package for android-tools-git (https://aur.archlinux.org/packages/android-tools-git/) to demo what i mean, even though it may not be the right package for you, you may need to try adb-arm64.

Let's say you're using pamac (UI or CLI) when you select a package to install, before it installs the new package, you'll be asked if you want to edit its PKGBUILD (https://aur.archlinux.org/cgit/aur.git/t...-tools-git). That is essentially a text file with important info for the package manager to install the software, it lists dependencies, conflicts, supported architectures, compiling flags, etc. In every PKGBUILD will be a line with something like:

Code:
arch=(i686 x86_64)

In this case, let's say you looked up all the dependencies for this package, and you know they'll all install/run on aarch64. You can edit that line in the PKGBUILD to include aarch64:
Code:
arch=(i686 x86_64 aarch64)

Pamac will then see that as software supporting aarch64 and try to install it.
Your awesome thank you. Is pacmac a typo or is that different than pacman? I'll try using the adb-arm64. If you could in using your example above but with adb-arm64 could you take it from the top as far as the steps? Or tell me if my steps are the way to go? 
1- git clone  https://aur.archlinux.org/adb-arm64.git
2- cd into downloads/ and unzip
3- cd into adb-arm64
4- makepkg -sri
5- ??

Edit: I'm trying to build adb-arm64 now through the GUI , I'll report back when its done. GUI is way easier but I'd like to learn the cli though.

Edit 2 So using the gui worked but that was only adb and I need both adb and fastboot. When I just install the android-tools from the offical repo when I run adb version I get an error while loading shared libraries: libprotobuf-lite.so.22 Can not open shared object file. Is everything thats in the official repo meant for ManjaroArm or is it every architect in the repo?
#6
(06-19-2020, 10:10 AM)FeMike Wrote: Your awesome thank you. Is pacmac a typo or is that different than pacman? I'll try using the adb-arm64. If you could in using your example above but with adb-arm64 could you take it from the top as far as the steps? Or tell me if my steps are the way to go? 
1- git clone  https://aur.archlinux.org/adb-arm64.git
2- cd into downloads/ and unzip
3- cd into adb-arm64
4- makepkg -sri
5- ??

Edit: I'm trying to build adb-arm64 now through the GUI , I'll report back when its done. GUI is way easier but I'd like to learn the cli though.

pacmac was a typo. however, in Manjaro there is pamac and pacman. pamac-gtk is the "Add/Remove Software" app (you can enable AUR access in the GUI settings. pamac is useable in CLI ex: pamac install adb-arm64

I don' think you'd need to go through those steps if installing from the AUR. for adb-arm64 either open pamac-gtk, enable AUR, and search for adb-arm64, or in terminal run 'pamac install adb-arm64'
#7
Looks like anything for the PineBookPro is behind on Android tools. I did try the adb-arm and that did work but still of the older API. And now after trying chromos, latest Manjaro, Ubuntu, and even the script for building Debian 10, they all have the older tools. I lack the knowledge to compile so I'll have to wait till someone updates these which is fine, beggars can't be choosers. Thank you.


Possibly Related Threads…
Thread Author Replies Views Last Post
  RAM deficiency after recent large Manjaro update? stozi 1 1,741 11-12-2021, 06:19 AM
Last Post: maxjrh
  pinebook pro tools xmixahlx 51 72,342 04-05-2021, 09:22 AM
Last Post: mjhammel

Forum Jump:


Users browsing this thread: 1 Guest(s)