[upload] fastboot and adb binaries for 64-bit linux - Android Software/Hacking General [Developers Only]

i've just compiled android, and have adb and fastboot which may be of use for you! i couldn't find anywhere to actually download fastboot (the links on the htc site are dead), so i thought i'd put them up here for you.
they were compiled on 64-bit debian, but should work on any 64-bit linux platform. heck, as i had to install a lot of 32-bit headers, they may even work on a 32-bit machine. i can't test, so let me know if they do, and i'll update this post.

MarkusPO said:
i've just compiled android, and have adb and fastboot which may be of use for you! i couldn't find anywhere to actually download fastboot (the links on the htc site are dead), so i thought i'd put them up here for you.
they were compiled on 64-bit debian, but should work on any 64-bit linux platform. heck, as i had to install a lot of 32-bit headers, they may even work on a 32-bit machine. i can't test, so let me know if they do, and i'll update this post.
Click to expand...
Click to collapse
bash-4.1$ file adb
adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped

I am usually on 64bit gentoo, but by netbook runs a 32bit gentoo.
You could give me the source and I'll try to compile it as 32bit for the others.
I would like to obtain the source anyway.
Thanks, man

Thanks a lot @MarkusPO. I had a bricked LG P500 phone after clockworkmod installation failure as it only booted in fastboot mode. So, your fastboot binary was instrumental to flash the recovery image again and get my phone back without restoring oficial LG ROM. It worked in Ubuntu 10.04 32-bits with SDK installed.

file fastboot
fastboot: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=0xe3aff04e690e0f530f8fe8f00b1845d50f39b203, not stripped
They are both 32bit binaries

Sorry for doing some necromancy on an old discussion, but when I was looking for fastboot and adb Debian 64bit binaries, this particular thread kept coming back.
The information needs however some update that could be useful for the next soul ending up here in the hope of finding these software without having to go through the trouble of installing the SDK and executing binaries without knowing where they are coming from!
There are official Debian packages for adb and fastboot and you can use your favourite package manager to install them.
At the time of this post, they are only available on Sid, which I use, but you should be able to download the *.deb below and install them without trouble on Wheezy (Squeeze might require more work).
http://packages.debian.org/sid/android-tools-adb
http://packages.debian.org/sid/android-tools-fastboot
Hope that helps!

Thank you so much for this, was looking for this forever

Huge thankk
Cheers mate,
I've been looking for a way to flash recovery image from ubuntu, for a whole month. You've done a marvelous job, thank you so much!
C
MarkusPO said:
i've just compiled android, and have adb and fastboot which may be of use for you! i couldn't find anywhere to actually download fastboot (the links on the htc site are dead), so i thought i'd put them up here for you.
they were compiled on 64-bit debian, but should work on any 64-bit linux platform. heck, as i had to install a lot of 32-bit headers, they may even work on a 32-bit machine. i can't test, so let me know if they do, and i'll update this post.
Click to expand...
Click to collapse

Not 64-bit
MarkusPO said:
i've just compiled android, and have adb and fastboot which may be of use for you! i couldn't find anywhere to actually download fastboot (the links on the htc site are dead), so i thought i'd put them up here for you.
they were compiled on 64-bit debian, but should work on any 64-bit linux platform. heck, as i had to install a lot of 32-bit headers, they may even work on a 32-bit machine. i can't test, so let me know if they do, and i'll update this post.
Click to expand...
Click to collapse
I found this thread looking for a 64-bit ADB binary, and..
That's a 32-bit binary.
It's not even statically linked, so it can't be used on a 64-bit machine without first installing a ton of 32-bit dependencies.
All those 32-bit headers you had to install were installed because you were making a 32-bit binary.
Code:
$ file adb
adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped
$ objdump -x adb | grep NEEDED
NEEDED librt.so.1
NEEDED libncurses.so.5
NEEDED libpthread.so.0
NEEDED libstdc++.so.6
NEEDED libm.so.6
NEEDED libgcc_s.so.1
NEEDED libc.so.6
NEEDED libdl.so.2
That means that on a 64-bit system, you'd have to install the 32-bit versions of librt, libncurses, libpthread, libstdc++, libm, libgcc_s, libc, and libdl.
This binary has no connection to the x86_64 architecture whatsoever, and ran flawlessly on an i686 Linux live CD.

Related

[Q] Arch Linux on TF101

Can someone give me a quick how-to how to load the Arch installer on my TF101? I'm already rooted, but I haven't felt it necessary to run Ubuntu on it because I don't really need it and am not really a fan of Debian-based systems. There is a distro for Arch compiled for ARM (and it supports Tegra 2) but the only guide they have is for a device called TrimSlice. Once I get the installer running, I'm good after that since I have installed Arch multiple times.
ArchLinux|ARM
http://archlinuxarm.org/forum/viewtopic.php?f=27&t=1720&sid=43b8c641e6e82affff4365d6d452cc15

Best way to run linux on android

Hello, I have a Micromax Funbook tablet with ICS running on it. It's got a 1.2Ghz Cortex A8 and 512MB RAM.
I wanted to increase my productivity, so I found some ways to run linux on android.
But now I'm confused and want to know which out of the three methods listed below, is the best and most efficient way to run linux on android:
1. Using the VPN
2. Using Bochs or QEMU
3. Using chroot
I'm not sure what is meant by "VPN", but the other two are vastly different.
Bochs and Qemu will emulate a CPU architecture, like x86. You'd most likely need this if you wanted to run something closed-source on Linux, since most commercial Linux software is compiled for x86 and not ARM (Cortex A8). It would be dog-slow doing this on a mobile device.
If you're just wanting the OS and open source software (KDE, Firefox, etc.), you'd be better off setting up a chroot. The software in this case would be communicating directly to the same Linux kernel that's running Android, so it would be much faster. It would limit you to using that kernel as well, which may or may not be a problem for your project. You'll need a distribution that is compatible with your CPU. I believe there's a Debian branch for ARM.
p.s. When I say "commercial Linux software", I should probably specify I meant commercial software compatible with GNU/Linux, because Android apps are also Linux software. Linux is the kernel. GNU or Android is the rest of the OS. Praise be to RMS and all that.
The VPN method
humanophile said:
I'm not sure what is meant by "VPN"
Click to expand...
Click to collapse
The VPN method is this(It requires three files: ubuntu.img, ubuntu.sh and ubuntu.sh.md5):
Make a folder named Ubuntu on your SD card and transfer them there.
Finally open up termial emulator and type "su" then hit enter
Next type "cd sdcard/ubuntu"
After that type " sh ubuntu.sh"
(ignore the warning) Then go and open up Android VNC.
Address: localhost ((or keep empty, it may work better for some that way))
Password: ubuntu
Port: 5900
BPP 24
You're all set!!
Click to expand...
Click to collapse
I think the VPN method is similar to chroot.
Bochs consumes high cpu
Hi,
I am using bochs to run tinycore linux on my Micromax Funbook Infinity, but it uses almost 89% of cpu. I there any way to lower the utilization? My device heats up fast.
Thanks

Guys Need Help Running Ubuntu

Well i wanted to develop some Roms from scratch! so i decided to get hold of VirtualBox abd Ubuntu!
I downloaded virtualBox 4.2.6 and Went to their site downloaded
Ubuntu 10.4 VDI
After Starting the VDI i am getting stuck at this window.
Cant run it..Help me guys?
-Rik[Rittik]
What do You mean by "stuck"? It seems that You downloaded server version of Ubuntu 12.04.2 which doesn't have any GUI installed by default (I assume that this is the problem).
Just like ximian said. Server version does not come with GUI.
You can still install it with command: sudo apt-get install ubuntu-desktop
Or download desktop version.
O thanks a lot
-Rik[Rittik]

[HELP]Windows 10 Enterprise ARM64 on limbo ARM emulator

Hello guys and girls,
today i downloaded the ARM version of Windows 10 Enterprise and wanted to try it on Limbo pc emulator (arm version), but the problem is i can't get it to work! i tried several settings but without luck. the only thing i get is a ''serial0 console'' message when it starts, so my question is: did i something wrong? can somebody get it to work?
i hope people take my question seriously, and check it out.
Every help will be appreciated!
O and btw this is the ISO i downloaded:
h.t.t.p.s://mega.co.nz/#!aoszTJ6C!xDAsrv-R4x3zxhORnFbSpwdX8TxLJmlqm9QSBjOCUI8
INFO: Windows 10 Enterprise [ARM64] (en-US)
16353.1000.170825-1423.RS_PRERELEASE_CLIENTENTERPRISE_VOL_ARM64FRE_EN-US.ISO (3,51 GB)
And i used the Limbo ARM emulator that matches with my CPU, so x64ARM Snapdragon 625
Thank you very much!
The Limbo Emulator only has an "arm" platform emulate now, but win10 arm is arm64(aarch64).
And you need a bootloader of UEFI bios for the qemu.
Any other way to do this then?
~sincerely a user with an arm64 device
I have multiple answers. 1. The emulator isn't powerful. 2. Ask for a lightweight Windows. 3. Limbo wasn't made to emulate Windows 10.
I also tried emulating Android arm on it but it said "guest did not initialize the display."
I got edk2 implementation to work on limbo arm emulator, now I will try to boot woa iso
ivosz said:
I got edk2 implementation to work on limbo arm emulator, now I will try to boot woa iso
Click to expand...
Click to collapse
where you able to get windows on arm running?

Does someone know how to flash Xperia phones on Linux?

I really think Windows 10 sucks, I've been having serious problems installing the drivers for the XZ P, and I was reading newflasher tool was designed for multiplatform including Linux but haven't found any information explaining how to install and use newflasher on Linux, can someone please help me with this information and if possible it will include the flasher tool for the Xperia XZ (F8331), thank you.
Hello bro
The Newflasher was provided precompile binary on its thread,just download it and decompress, use it like before.
If u wanna use Flashtool, u need to install Oracle JRE or OpenJDK as your like, then download Linux version by the link below
For XperiaFirm, u need to install the MONO environment by ur PackageManager first. Please refer to its thread.
I hope this can help you.
links:
Newflasher: https://forum.xda-developers.com/crossdevice-dev/sony/progress-newflasher-xperia-command-line-t3619426
Flashtool http://www.flashtool.net/downloads_linux.php
Xperifirm https://forum.xda-developers.com/crossdevice-dev/sony/pc-xperifirm-xperia-firmware-downloader-t2834142/
Precompiled binary didn't for me on Mint 19.3, so I had compile myself from source.
Window 10 indeed sucks, I switched to linux like 2 years ago and never looked back.
I recommend looking forward for basic terminal command and how to compile apps from source. It's not that difficult as it sounds.
For example check newflasher github, it provides building instructions
https://github.com/newflasher/newflasher/blob/master/readme.md
Easy version: download zip from github, unpack it.
Open terminal in that folder and type
make newflasher.x64 (if I guessed your architecture)
You will get a new binary "newflasher.x64"
Then you will need to drop it in folder with unpacked firmware and run "./newflasher.x64", if you get an error, try with sudo.
If you are lucky, you won't need compilation

Categories

Resources