Integration into the Android VPN frontend » History » Version 1
Tobias Brunner, 05.07.2010 11:09
added description of the frontend patches
1 | 1 | Tobias Brunner | h1. Integration into the Android VPN frontend |
---|---|---|---|
2 | 1 | Tobias Brunner | |
3 | 1 | Tobias Brunner | To easily setup IKEv2/IPsec VPN connections with EAP-authentication on Android we prepared a set of patches that integrate strongSwan into the default Android VPN frontend. |
4 | 1 | Tobias Brunner | |
5 | 1 | Tobias Brunner | The patches should apply cleanly to the Android 2.2 (Froyo) sources. |
6 | 1 | Tobias Brunner | |
7 | 1 | Tobias Brunner | h2. Register charon |
8 | 1 | Tobias Brunner | |
9 | 1 | Tobias Brunner | We [[Android|previously]] described how to build strongSwan, the Kernel and libvstr. To register [[Charon|charon]] as a daemon, the @init.rc@ file of the @system/core@ project has to be patched (attachment:system.core.patch). |
10 | 1 | Tobias Brunner | |
11 | 1 | Tobias Brunner | <pre> |
12 | 1 | Tobias Brunner | cd /patch/to/android/source |
13 | 1 | Tobias Brunner | cd system/core |
14 | 1 | Tobias Brunner | patch -p1 < /path/to/system.core.patch |
15 | 1 | Tobias Brunner | cd - |
16 | 1 | Tobias Brunner | </pre> |
17 | 1 | Tobias Brunner | |
18 | 1 | Tobias Brunner | h2. Framework |
19 | 1 | Tobias Brunner | |
20 | 1 | Tobias Brunner | The actual VPN types and the Daemon Proxy provided in the @frameworks/base@ project have to be extended by another patch (attachment:frameworks.base.patch). |
21 | 1 | Tobias Brunner | |
22 | 1 | Tobias Brunner | <pre> |
23 | 1 | Tobias Brunner | cd frameworks/base |
24 | 1 | Tobias Brunner | patch -p1 < /path/to/frameworks.base.patch |
25 | 1 | Tobias Brunner | cd - |
26 | 1 | Tobias Brunner | </pre> |
27 | 1 | Tobias Brunner | |
28 | 1 | Tobias Brunner | h2. Settings (Frontend) |
29 | 1 | Tobias Brunner | |
30 | 1 | Tobias Brunner | And with a final patch (attachment:packages.apps.Settings.patch) the actual frontend in the @packages/apps/Settings@ project is extended. |
31 | 1 | Tobias Brunner | |
32 | 1 | Tobias Brunner | <pre> |
33 | 1 | Tobias Brunner | cd packages/apps/Settings |
34 | 1 | Tobias Brunner | patch -p1 < /path/to/packages.apps.Settings.patch |
35 | 1 | Tobias Brunner | cd - |
36 | 1 | Tobias Brunner | </pre> |
37 | 1 | Tobias Brunner | |
38 | 1 | Tobias Brunner | Building the complete source tree completes the integration. |