mirror of https://github.com/tLDP/LDP
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:
commit
e566ef1697
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<title>Linux and Android HOWTO</title>
|
<title>Linux and Android HOWTO</title>
|
||||||
<author>Guido Gonzato, Ph.D. <tt>guido.gonzato at gmail.com</tt>
|
<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>
|
<abstract>
|
||||||
This HOWTO provides information on how to manage your Android device
|
This HOWTO provides information on how to manage your Android device
|
||||||
|
@ -112,7 +112,7 @@ following especially helpful:
|
||||||
</itemize>
|
</itemize>
|
||||||
|
|
||||||
<p>
|
<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.
|
me.
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
@ -1433,13 +1433,13 @@ kbox$ _
|
||||||
Once you have a terminal emulator, you can add a lot of command-line
|
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
|
based software to your Android box. If you're a geek, this is an
|
||||||
invaluable extension that makes your Andbox closer to a ``real''
|
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>
|
<p>
|
||||||
You can compile C programs both on your Andbox and, obviously,
|
You can compile C programs directly on your Andbox, and also on your
|
||||||
on your Linux box. In the latter case, you use a so-called <em>cross
|
Linux box. In the latter case, you use a so-called <em>cross compiler
|
||||||
compiler toolchain</em>: a compiler and associated binutils that
|
toolchain</em>: a compiler and associated binutils that produce code
|
||||||
produce code for Android. In this case, for the ARM cpu.
|
for Android. In many cases, but not only, for the ARM cpu.
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Most Linux distributions provide one or more cross compiler toolchains
|
Most Linux distributions provide one or more cross compiler toolchains
|
||||||
|
@ -1454,7 +1454,7 @@ name="http://developer.android.com/ndk/downloads/index.html">
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Another toolchain that targets Android on x86 CPUs is called
|
Another toolchain that targets Android on x86 CPUs is called
|
||||||
<tt>gcc-arm-linux-androideabi</tt>.
|
<tt>gcc-i686-linux-android</tt>.
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Choose the relevant architecture and download the binary package for
|
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$ cp /android_root/data/local/tmp/hello .
|
||||||
kbox$ ls
|
kbox$ ls
|
||||||
hello
|
hello
|
||||||
|
kbox$ chmod 755 hello
|
||||||
kbox$ ./hello
|
kbox$ ./hello
|
||||||
hello, world!
|
hello, world!
|
||||||
kbox$ _
|
kbox$ _
|
Loading…
Reference in New Issue