ADB for ARM
This is an all-in-one script to build the Android adb tool (v. 1.0.31) for ARM architecture. When executed, the script will download all the necessary files and it will run a custom makefile to build the adb.
References
- Android.ServerBox (which contains the most useful information)
- XDA
- StackOverflow
Requirements
- a Git client
- an ARM cross compile toolchain (you can get one from YOCTOproject)
Setup
The script should be ready to execute without any configuration, except for the TOOLCHAIN variable inside makefile.sample:
...
#TODO change TOOLCHAIN variable to your toolchain path
TOOLCHAIN= /opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
CC= $(TOOLCHAIN)gcc
LD= $(TOOLCHAIN)gcc
CXX=$(CC)
...
Run
sh adb-download-make.sh
If the script compile successfully, you will find the adb executable in your current directory. If something went wrong, feel free to open an issue with your error. You can also use the pre-compiled ARM binary (adb-arm-binary).
Verify binary
- Verify architecture
file adb-arm-binary
- Verify dependecies
objdump -x adb-arm-binary | grep NEEDED
License
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org/>