summaryrefslogtreecommitdiff
path: root/android/README
diff options
context:
space:
mode:
Diffstat (limited to 'android/README')
-rw-r--r--android/README44
1 files changed, 23 insertions, 21 deletions
diff --git a/android/README b/android/README
index c22ab604d1..04436b3c65 100644
--- a/android/README
+++ b/android/README
@@ -3,39 +3,41 @@ application for android.
3 3
4* Prerequisites 4* Prerequisites
5 5
6Download and install the Android SDK[1] and NDK[2]. After you extracted the SDK, you need to run <sdk-dir>/tools/android in order to install the actual platform sdk from the available packages tab (SDK Platform Android 1.5 or above should work). In the virtual devices tab you can also setup a emulator. 6Download and install the Android SDK[1] and NDK[2].
7After you extracted the SDK, you need to run <sdk-dir>/tools/android in order to
8install the actual platform sdk from the available packages tab (SDK Platform
9Android 1.5 or above should work).
10In the virtual devices tab you can also setup a emulator.
7 11
8 12
9Then, make sure you have the ANDROID_NDK_PATH (pointing to the NDK's root directory) environment variable set up, 13Then, make sure you have the ANDROID_SDK_PATH and ANDROID_NDK_PATH (pointing to
10otherwise configure will fail to find the compiler. 14the each's root directory) environment variables set up, otherwise configure will fail to find the compiler and
11 15compiling the java files will fail.
12 16
13* Build instructions 17* Build instructions
14 18
15Until there's a script which does all the work the procedure is documented here.
16
17Use this as your build folder, using '../tools/configure' etc. 19Use this as your build folder, using '../tools/configure' etc.
18 $ ../tools/configure 20 $ ../tools/configure # type 200, then chose A for android and your screen resolution
19 $ make 21 $ make
20 22
21After the build finished, you need to copy librockbox.so to libs/armeabi/ (create that dir if it doesn't exit) 23After the build finished, you can create a Rockbox.apk in bin/
22 $ mkdir -p libs/armeabi 24 $ make apk
23 $ cp librockbox.so libs/armeabi
24
25For the other files (codecs, themes), you execute 'make zip'. Then you copy the
26zip to libs/armeabi, using the name libmisc.so. This is needed, since there's no
27way to bundle stuff into apk's and have access to them from native code other
28than pretending it was a library.
29 $ make zip
30 $ cp rockbox.zip libs/armeabi/libmisc.so
31 25
32rockbox.zip..err, libmisc.so will be unpacked at runtime. 26You can install that on the device
27 $ $ANDROID_SDK_PATH/tools/adb install -r bin/Rockbox.apk
33 28
34To finish, you can follow this guide [3], or use eclipse. Simply install eclipse
35and the android plugins, then import this folder as a new Android project and run it.
36See [4] for a guide on how to set up eclipse for android development.
37 29
30NOTE: make apk needs creates a debug signed .apk, not suitable for distribution.
31It expects that this key already exists.
32You should be able to generate it with "keytool" using the following options:
33* Keystore name: "debug.keystore"
34* Keystore password: "android"
35* Key alias: "androiddebugkey"
36* Key password: "android"
37* CN: "CN=Android Debug,O=Android,C=US"
38* validity: 365 days
38 39
40Google docs mention the SDK tools can generate it as well, but I haven't found how yet.
39 41
40[1]: http://developer.android.com/sdk/index.html 42[1]: http://developer.android.com/sdk/index.html
41[2]: http://developer.android.com/sdk/ndk/index.html 43[2]: http://developer.android.com/sdk/ndk/index.html