tech stuff

Main - Archive - About - Feed

adb on N900

These days I normally carry minimum 2 devices:

  • Android phone as a regular phone
  • Nokia N900 as a linux terminal

Recent android phone now has more computing power than it needs, but lacks handy keyboard present in N900 to fully utilise these resources when needed. So, I am going to use N900 as a terminal towards android phone via wireles adb (Android Debug Bridge).

On N900:

Nokia-N900:~# apt-get install git build-essential libssl-dev
Nokia-N900:~# git clone
Nokia-N900:~# cd adb-arm/
Nokia-N900:~/adb-arm# rm adb-arm-binary
Nokia-N900:~/adb-arm# cp makefile.sample makefile.sample.dist
Nokia-N900:~/adb-arm# vi makefile.sample
Nokia-N900:~/adb-arm# diff -U 0 -u makefile.sample.dist makefile.sample
--- makefile.sample.dist
+++ makefile.sample
@@ -5 +5 @@
-TOOLCHAIN= /opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
+#TOOLCHAIN= /opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
@@ -61 +61 @@
-CPPFLAGS+= -std=c++11 
+#CPPFLAGS+= -std=c++11

Nokia-N900:~/adb-arm# chmod +x
Nokia-N900:~/adb-arm# ./
Nokia-N900:~/adb-arm# install adb /usr/local/bin/
Nokia-N900:~/adb-arm# cd
Nokia-N900:~# adb version
Android Debug Bridge version 1.0.31

On Anrdoid device:

Install wirebug via F-Droid

Configure and enable "Mobile hostpot"

Launch wirebug, enable it

Dont' forget to tick USB debugging in settings

On N900:

Connect to resulting access point. Check gateway IP address:

Nokia-N900:~# route -e | grep default | awk '{print $2}'

Connect adb:

Nokia-N900:~# adb connect
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
connected to

Android device should display debugging authorization window:

Accept it, and launch the shell:

Nokia-N900:~# adb shell

shell@a3lte:/ $ uname -a
Linux localhost 3.10.49-641794 #1 SMP PREEMPT Sat Jul 11 00:57:58 KST 2015 armv7l GNU/Linux

shell@a3lte:/ $ grep ^Hardware /proc/cpuinfo
Hardware        : Qualcomm Technologies, Inc MSM8916

shell@a3lte:/ $ exit

Nokia-N900:~# adb kill-server