0
0
mirror of https://github.com/schwabe/ics-openvpn.git synced 2024-09-20 12:02:28 +02:00
OpenVPN for Android
Go to file
2013-03-01 13:48:47 +01:00
.settings - After installing Juno I need the core prefs for whatever reason 2012-07-18 10:07:51 +02:00
jni Merge non OpenVPN3 specific into main 2013-02-09 17:03:27 +01:00
lzo Update lzo version 2012-07-02 17:28:05 +02:00
misc Add more graphics for notification icon 2013-02-10 15:25:43 +01:00
openssl Build openssl as shared library again, build for all Android ABIs 2012-07-24 21:31:20 +02:00
openvpn Fix Locale related errors/bugs. Update … to unicode replacement. Fix the speed display. 2013-02-05 09:49:06 +01:00
res fetch latest translation before release 2013-03-01 10:47:58 +01:00
src small cleanup of SendDumpFragment 2013-03-01 13:48:47 +01:00
.classpath Initial import 2012-04-16 19:21:14 +02:00
.hgignore Merge non OpenVPN3 specific into main 2013-02-09 17:03:27 +01:00
.hgtags Added tag v0.5.33 for changeset 3e7860f945e2 2013-03-01 10:48:15 +01:00
.project Initial import 2012-04-16 19:21:14 +02:00
AndroidManifest.xml Fix stupid bug when importing profiles 2013-03-01 10:26:28 +01:00
build-native.bat Accessing wifi state... (commented out, not as useful as I thought) 2012-08-12 23:01:24 +02:00
build-native.sh fix encoding of build-native.sh 2012-08-13 13:49:21 +02:00
fetchtranslations.sh Adding Ukraine translation 2013-01-18 11:21:19 +01:00
genFAQ.py Make FAQ Wiki code nicer 2013-01-27 16:54:22 +01:00
project.properties Minimal rework of notifications for JB 2012-12-15 20:36:44 +01:00
README.txt More FAQ 2013-02-11 16:36:20 +01:00
todo.txt Menu fine tuning 2013-02-28 23:42:07 +01: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:

Checkout google breakcode:

svn co http://google-breakpad.googlecode.com/svn/trunk/ google-breakpad

- Install sdk
- Install ndk

Do ./build-native.sh 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)


FAQ

Q: How is the OpenVPN version different from normal OpenVPN

A: OpenVPN for Android uses a OpenVPN 2.3 master branch + Android patches + dual stack client patches. 
   A git repository of the OpenVPN source code and changes is under: 
   https://github.com/schwabe/openvpn/tree/android_2.3rc1%2Bds

Q: what is minivpn?

A: minivpn is only a executable thats links against libopenvpn which is the normal openvpn build as
   library. It is done this way so the Android Play/Store apk will treat the library as normal library
   and update it on updates of the application. Also the application does not need to take care of 
   keeping minivpn up to date because it contains no code. For almost all intents and purposes
   minivpn + libopenvpn.so is the same as the normal openvpn binary

Q: How to a VPN by name from an external app

A: 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);
    }
}

or from the shell:

am start -a android.intent.action.MAIN -n de.blinkt.openvpn/.LaunchVPN -e de.blinkt.openvpn.shortcutProfileName Home