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
2012-07-21 16:29:00 +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 make openvpn compile again 2012-07-21 16:29:00 +02:00
res Hide the keyboard in the settings by default 2012-07-21 00:36:01 +02:00
src Save stat in VPNPreferences 2012-07-21 12:44:17 +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 make openvpn compile again 2012-07-21 16:29:00 +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);
    }
}