Create L2TP/IPSec VPN base on VpnService programmatically in Android - android

I have searched for a day , about create L2TP/IPSec VPN base on VpnService . But there is no matched result .
With LocalVPN (https://github.com/hexene/LocalVPN ) , I can create a VPN(OpenVPN) android app base on VPNService . But i want to create a L2TP/IPSec VPN Android App .
Is there any way to do it ?

Simply cannot be done.
The VPNService does not allow you to create a profile with username and password and there is no support for creating a L2TP or PPTP programmatically. Lots of people have been looking for this but Google are just not sharing their toys.
Even attempting to use the Hidden API has no support. Many VPN apps out there default to use OpenVPN-ICS or IKEV2(strongSwan) or require you to manually create the L2TP/ PPTP VPN connection on the device yourself.
Many people have requested this from Google but they either get a message saying the request is now obsolete or it is not financially viable.

Related

I want every http url request in the device from any source to pass through my android app

I am developing an application in which I have to first examine the URL and then allow or disallow the HTTP request. So I wanted to know how can we do this in the Android Studio i.e. to examine every URL HTTP request in the device to pass through my android app so that I can analyze it.
Have a look at Android VpnService (added in API 14.)
There is also a Guide on it.
It probably also would not hurt to look at current opensource VPN projects for android: https://github.com/schwabe/ics-openvpn

Shopify in Android application

I am creating a android application for eCommerce website.
Here at server side, i am using Shopify's eCommerce software.
So how could i call web service generated through Shopify's eCommerce software.
I have make research on it..
I found one link also link, but that demo is not running.
I need one simple demo where how can i use shopify api in android application
That Demo is working, I checked it today only. You can make a webview and use the Java/Android Library to make the call.
Use this part to make your call (for more details check demo code or api page):
JsonDirectoryCredentialsStore store = new JsonDirectoryCredentialsStore(getFilesDir());
Credential emptyCredential = makeEmptyCredential(shopname);
store.saveCredential(emptyCredential);
APIAuthorization auth = new APIAuthorization(emptyCredential);
URI authRequest = auth.generateAuthRequest();
Pass this authRequest to a webview and set a webviewclient to handle redirections by shopify.
You can then set up a callback to your localhost in the dev store you created and connect to that with the emulator loopback interface 10.0.2.2 from the app to test. At least that's the most convenient way I found.

SUP android native app

Is it possible to have user put in connection properties like ip address in the app to connect to Sybase. I need to find out for a test to connect to our DR Site which has a different IP address. (So user uses production system and something happens and need to switch to the DR Site to continue working.)
Thanks
Louis
I don't know much about SUP, but it seems the IP address of the server is in the generated code (Activity classes), you cam edit this code to get the IP from somewhere (e.g. the application settings).
If you don't have access to the source code of the application and this is just for a test you can configure your android device to use a proxy (How to change proxy settings in Android (especially in Chrome)) and then make a simple proxy that redirects connections to another host (such as those described in seriously simple python HTTP proxy?).

Java code to register a new user in SIP(Session Initiation Protocol)

I am trying to create an Android application using SIP in order to enable voice conferencing. What is the java code to register a new user? And how do I communicate with a proxy server?
You should check Android's SIP test application that you can locate at:
<ANDROID_SDK_PATH>/samples/<ANDROID_SDK_VERSION>/SipDemo
Please, also check Android SIP stack official documentation

Android, configure Wifi Enterprise PEAP & EAP-Fast

I am writing an application to help test android devices' capabilities to connect to wlan's with varying security settings (ex. wpa aes peap). However, I noticed that the published android.net.wifi api does not contain fields to set parameters needed for peap and eap-fast authentication. Does anybody know how to establish a connection to peap programatically?
Below is a link that shows the WifiConfiguration() class possessing unpublished fields (ex. eap, phase2, identity, password). However, eclipse will not let me utilize these fields in my code since they are not officially in the android api.
http://www.netmite.com/android/mydroid/1.6/frameworks/base/wifi/java/android/net/wifi/WifiConfiguration.java
I was having a similar problem. The solution is to use "Reflection".
Here is a link that should be very applicable to you.
How to programmatically create and read WEP/EAP WiFi configurations in Android?

Categories

Resources