0
0
mirror of https://github.com/schwabe/ics-openvpn.git synced 2024-09-20 03:52:27 +02:00
OpenVPN for Android
Go to file
Arne Schwabe 23a783836e Update openvpn to Version 2.3_alpha3
--HG--
rename : openvpn/src/plugins/README => openvpn/doc/README.plugins
rename : openvpn/src/plugins/defer/README => openvpn/sample/sample-plugins/defer/README
rename : openvpn/src/plugins/defer/build => openvpn/sample/sample-plugins/defer/build
rename : openvpn/src/plugins/defer/simple.c => openvpn/sample/sample-plugins/defer/simple.c
rename : openvpn/src/plugins/examples/simple.def => openvpn/sample/sample-plugins/defer/simple.def
rename : openvpn/src/plugins/defer/winbuild => openvpn/sample/sample-plugins/defer/winbuild
rename : openvpn/src/plugins/examples/build => openvpn/sample/sample-plugins/log/build
rename : openvpn/src/plugins/examples/log.c => openvpn/sample/sample-plugins/log/log.c
rename : openvpn/src/plugins/examples/log_v3.c => openvpn/sample/sample-plugins/log/log_v3.c
rename : openvpn/src/plugins/examples/winbuild => openvpn/sample/sample-plugins/log/winbuild
rename : openvpn/src/plugins/examples/README => openvpn/sample/sample-plugins/simple/README
rename : openvpn/src/plugins/examples/build => openvpn/sample/sample-plugins/simple/build
rename : openvpn/src/plugins/examples/simple.c => openvpn/sample/sample-plugins/simple/simple.c
rename : openvpn/src/plugins/examples/simple.def => openvpn/sample/sample-plugins/simple/simple.def
rename : openvpn/src/plugins/examples/winbuild => openvpn/sample/sample-plugins/simple/winbuild
rename : openvpn/src/plugins/auth-pam/README => openvpn/src/plugins/auth-pam/README.auth-pam
rename : openvpn/src/plugins/down-root/README => openvpn/src/plugins/down-root/README.down-root
2012-07-21 01:11:36 +02:00
.settings - After installing Juno I need the core prefs for whatever reason 2012-07-18 10:07:51 +02:00
assets Add the minivpn to repository to avoid copying it around. 2012-05-09 13:17:37 +02:00
jni Add warning if no dns is set. 2012-07-15 17:01:33 +02:00
lzo Update lzo version 2012-07-02 17:28:05 +02:00
misc Rework icon + add status bar icon 2012-06-20 22:21:01 +02:00
openssl Version 0.5.0 + minimal faq addition 2012-05-09 14:22:15 +02:00
openvpn Update openvpn to Version 2.3_alpha3 2012-07-21 01:11:36 +02:00
res Hide the keyboard in the settings by default 2012-07-21 00:36:01 +02:00
src Allow clearing of the CA Cert (closes issue #57) 2012-07-21 00:23:13 +02:00
.classpath Initial import 2012-04-16 19:21:14 +02:00
.hgignore bring openvpn in sync with openvpn git master and patches submitted to mailing list 2012-06-02 15:45:11 +02:00
.hgtags Added tag v0.5.14 for changeset 21fd68421904 2012-07-21 00:38:23 +02:00
.project Initial import 2012-04-16 19:21:14 +02:00
AndroidManifest.xml Hide the keyboard in the settings by default 2012-07-21 00:36:01 +02:00
project.properties Initial import 2012-04-16 19:21:14 +02:00
README.txt A requrested feature. How to start a VPN from an external app. 2012-06-18 23:37:33 +02:00
todo.txt Update todo.txt 2012-07-07 10:16:17 +00:00

This is my first Android project, so some things may be done in a completely stupid way.

See  the file todo.txt for ideas/not yet implemented features (and the bug tracker).

Build instraction:

- Install sdk
- Install ndk

Do ndk-build in the root directory of the project.

Use eclipse with android plugins to build the project.

Optional: Copy minivpn from lib/ to assets (if you want your own compiled version)




Starting a VPN by name from an external app:

public class StartOpenVPNActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
    	final String EXTRA_NAME = "de.blinkt.openvpn.shortcutProfileName";

        Intent shortcutIntent = new Intent(Intent.ACTION_MAIN);
		shortcutIntent.setClassName("de.blinkt.openvpn", "de.blinkt.openvpn.LaunchVPN");
		shortcutIntent.putExtra(EXTRA_NAME,"upb ssl");
		startActivity(shortcutIntent);
    }
}