Looking for recent Android tools - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114) +--- Thread: Looking for recent Android tools (/showthread.php?tid=10310) |
Looking for recent Android tools - FeMike - 06-18-2020 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. RE: Looking for recent Android tools - tophneal - 06-18-2020 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. RE: Looking for recent Android tools - FeMike - 06-19-2020 (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/install-packages-in-arch-linux-from-aur/ is that what you mean? RE: Looking for recent Android tools - tophneal - 06-19-2020 (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/install-packages-in-arch-linux-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/tree/PKGBUILD?h=android-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. RE: Looking for recent Android tools - FeMike - 06-19-2020 (06-19-2020, 06:28 AM)tophneal 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?(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/install-packages-in-arch-linux-from-aur/ is that what you mean? 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? RE: Looking for recent Android tools - tophneal - 06-19-2020 (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? 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' RE: Looking for recent Android tools - FeMike - 06-24-2020 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. |