2012-05-25 13:39:54 +02:00
|
|
|
This is my first Android project, so some things may be done in a completely stupid way.
|
2012-04-23 00:07:02 +02:00
|
|
|
|
2012-05-25 13:39:54 +02:00
|
|
|
See the file todo.txt for ideas/not yet implemented features (and the bug tracker).
|
2012-04-23 00:07:02 +02:00
|
|
|
|
2012-05-25 13:39:54 +02:00
|
|
|
Build instraction:
|
2012-05-07 13:17:22 +02:00
|
|
|
|
2013-01-10 15:48:09 +01:00
|
|
|
Checkout google breakcode:
|
|
|
|
|
|
|
|
svn co http://google-breakpad.googlecode.com/svn/trunk/ google-breakpad
|
|
|
|
|
2012-05-25 13:39:54 +02:00
|
|
|
- Install sdk
|
|
|
|
- Install ndk
|
|
|
|
|
2012-10-10 22:01:43 +02:00
|
|
|
Do ./build-native.sh in the root directory of the project.
|
2012-05-25 13:39:54 +02:00
|
|
|
|
|
|
|
Use eclipse with android plugins to build the project.
|
|
|
|
|
|
|
|
Optional: Copy minivpn from lib/ to assets (if you want your own compiled version)
|
2012-06-18 23:37:33 +02:00
|
|
|
|
|
|
|
|
2013-02-11 16:32:07 +01:00
|
|
|
FAQ
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2012-06-18 23:37:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
2012-09-07 23:38:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
or from the shell:
|
|
|
|
|
|
|
|
am start -a android.intent.action.MAIN -n de.blinkt.openvpn/.LaunchVPN -e de.blinkt.openvpn.shortcutProfileName Home
|
|
|
|
|