DEV Community

Matheus
Matheus

Posted on

ADBD: binary size-reduced version

Android Debug Bridge
Following my previous post on ADB access from stock recovery, I implemented a static version based on lollipop-release.

root@Digitron:~/adbd-lollipop-release/adb# wc -c < adbd
552296
Enter fullscreen mode Exit fullscreen mode
root@Digitron:~/adbd-lollipop-release/adb# file adbd
adbd: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), statically linked, BuildID[sha1]=b3c3b7ad245a3bec2e40df678fd1a70bc9db0198, for GNU/Linux 3.2.0, stripped
Enter fullscreen mode Exit fullscreen mode

The work provides an ADBD binary worth of reduced size. The original, marshmallow implementation holds 3 Mbytes if statically linked + stripped. The lollipop-release implementation holds half a Mbyte if statically linked + stripped.

Those who have limited mobile storage might find interesting running the lollipop-release version.

My Galaxy Gran Prime is successfully running Devuan GNU/Linux. Sadly, some apps don't work, due to dated kernel. Still a great solution to those owning an unused Android device.

Top comments (0)