OSDN Git Service

Update README.md
[android-x86/external-koush-Superuser.git] / README.md
1 ## Checking out the source
2
3 You'll need the "Widgets" dependency.
4
5 * $ mkdir /path/to/src
6 * $ cd /path/to/src
7 * $ git clone git://github.com/koush/Superuser
8 * $ git clone git://github.com/koush/Widgets
9
10 These repositories do not keep the actual projects in the top level directory.
11 This is because they contain tests, libs, and samples.
12
13 ## Eclipse
14
15 In Eclipse, import Widgets/Widgets and Superuser/Superuser. It should Just Work (TM).
16
17 ## Ant
18
19 Same old, same old.
20
21 * $ mkdir /path/to/src
22 * $ cd /path/to/src
23 * $ cd Superuser/Superuser
24 * $ ant release
25
26 Outputs:
27 * bin/update.zip - Recovery installable zip
28 * bin/Superuser.apk - Superuser Android app
29 * libs/armeabi/su - ARM su binary
30 * libs/x86/su - x86 su binary
31
32 ## Building the su binary
33
34 Make sure you have the android-ndk downloaded with the tool "ndk-build" in your path.
35
36 * $ cd /path/to/src/
37 * $ cd Superuser/Superuser
38 * $ ndk-build
39
40 The su binary will built into Superuser/Superuser/libs/armeabi/su.
41
42
43
44 ## Building with AOSP, CyanogenMod, etc
45
46 TODO!