Merge pull request #51 from martin-a-brown/master

final fixes to Linux-Android-HOWTO; moved into howto/linuxdoc area
This commit is contained in:
Martin A. Brown 2016-03-22 05:52:54 -07:00
commit e566ef1697
1 changed files with 12 additions and 11 deletions

View File

@ -4,7 +4,7 @@
<title>Linux and Android HOWTO</title>
<author>Guido Gonzato, Ph.D. <tt>guido.gonzato at gmail.com</tt>
<date>March 2016, version 0.0
<date>March 2016, version 1.0.0
<abstract>
This HOWTO provides information on how to manage your Android device
@ -58,7 +58,7 @@ with Android devices. With a bit of hacking, as usual.
In the following, I will share a few tricks I have collected:
<itemize>
<item> using the Android Debug Bridge;
<item> understanding and using the Android file system;
<item> installing programs from other markets;
@ -102,7 +102,7 @@ refer to Android forums. Among the many available, I find the
following especially helpful:
<itemize>
<item> <htmlurl url="http://forum.xda-developers.com/"
name="http://forum.xda-developers.com/">
@ -112,7 +112,7 @@ following especially helpful:
</itemize>
<p>
Besides: if you find any error in this guide, please report them to
Besides: if you find any errors in this guide, please report them to
me.
<p>
@ -196,7 +196,7 @@ options to get an information screen. You should become familiar at
least with the following options:
<itemize>
<item> <tt>adb devices</tt>: list connected devices
<item> <tt>adb push</tt>: copy file/dir from Linux to device
<item> <tt>adb pull</tt>: copy file/dir from device to Linux
@ -1433,13 +1433,13 @@ kbox$ _
Once you have a terminal emulator, you can add a lot of command-line
based software to your Android box. If you're a geek, this is an
invaluable extension that makes your Andbox closer to a ``real''
computer ; but even if you're a casual user, please read on.
computer; but even if you're a casual user, please read on.
<p>
You can compile C programs both on your Andbox and, obviously,
on your Linux box. In the latter case, you use a so-called <em>cross
compiler toolchain</em>: a compiler and associated binutils that
produce code for Android. In this case, for the ARM cpu.
You can compile C programs directly on your Andbox, and also on your
Linux box. In the latter case, you use a so-called <em>cross compiler
toolchain</em>: a compiler and associated binutils that produce code
for Android. In many cases, but not only, for the ARM cpu.
<p>
Most Linux distributions provide one or more cross compiler toolchains
@ -1454,7 +1454,7 @@ name="http://developer.android.com/ndk/downloads/index.html">
<p>
Another toolchain that targets Android on x86 CPUs is called
<tt>gcc-arm-linux-androideabi</tt>.
<tt>gcc-i686-linux-android</tt>.
<p>
Choose the relevant architecture and download the binary package for
@ -1539,6 +1539,7 @@ ls: cannot open directory /android_root/data/local/tmp: permission denied
kbox$ cp /android_root/data/local/tmp/hello .
kbox$ ls
hello
kbox$ chmod 755 hello
kbox$ ./hello
hello, world!
kbox$ _