Android L2TP connection to server - java

This is my letter of hope. I'm using android 4.* to create a l2tp connection to the server. The problem is in authorization. I have a server key , user login and password. I search any solution along the internet, not for android only but for java at all, and didnt find any code sample for start. I have no idea how I can authorize on server. ToyVpn in android samples didnt help, its just sample of regular connection(without any authorization). Please, somebody, help! I'll be grateful for for any useful information in this question.

Related

how to use Frida-Gadget to MITM in android

Hi i like to track all the get requests of a website i browse.
lets assume im using an app in that app there is a WebView that leads to a website.
the website is doing get requests.
the website has SSL pinning.
i like to know what are those get requests that the website is doing.
During a google research I found that Frida help me bypass the SSL pinning However, Frida must be used on Rooted devices. I need for not rooted devices.
It comes to my attention that Frida-Gadget can do that for me.
is there any explicit guide to do so?
my goal is simple to go to a SSL website using my phone and track all the "get" request that the website is doing.
Thank you !

Email verification from gmail account in selenium webdriver (JAVA)

I am very beginner to Selenium, java and SQA automation. I wanted to do automated EMAIL VERIFICATION FROM GMAIL ACCOUNT.
Help me please..
For this I found & followed a tutorial but failed. I don't know what happened to my code even I can't understand the error.
I followed this link step by step:
http://www.abodeqa.com/email-verification-gmail-account-selenium-webdriver-java/
Here is the whole code, which I tried.
http://www.abodeqa.com/email-verification-gmail-account-selenium-webdriver-java/
I found too many errors but I am including some main & top errors at following:
Could not connect to the message store.
javax.mail.MessagingException: Connection dropped by server?; nested
exception is: java.io.IOException: Connection dropped by server?
Also, Being a newbie I feel this tutorial too much difficult. Can anyone please share some other easy & brief tutorials with me ? Please..
Thanks in advance!
To lookup emails on a gmail account I recommend you use the java gmail api. Tutorial here: https://developers.google.com/gmail/api/quickstart/java
You should be good with that tutorial, the sample code works (you will need to setup correctly your gmail account to permit access and also create the corresponding credentials).
Probably you will need to call a couple of methods, one to search for the email you are looking for, and then another to get the detail of it.
Full docs of library here: https://developers.google.com/resources/api-libraries/documentation/gmail/v1/java/latest/

BillingClient: getSkuDetails() failed. Response code: 6

I've integrated Google inApp billing in my android App. It was working fine, But now I noticed that on one device its always returning BILLING_RESPONSE_RESULT_ERROR response. In Logcat it shows following error.
BillingClient: getSkuDetails() failed. Response code: 6
I couldn't find any help regarding this issue, Can someone help me what could be the possible problems and solution. Thanks.
This generally happens when you have signed out from Google account in your device. All you need to do is just sign in again, if needed do a full restart.
Well, my situation is the connection between my device and google's servers is unstable.Try to open the GooglePlay,and check if the connection is healthy.And it wroks.
In my case, this happened when a new app I submitted was in "Draft" status, not yet approved by Google. Just wait until it's approved and payments will start to work.
An alternative would be to submit it in the internal track and add the email for you play account as a test user.

I have some problems using my app for the second time

I have developed an app using Android Studio, which include login and register activities. when I copied my code to my new computer I have launched the app for the first time and it worked just fine. The day after, when I was trying again to launch the app once again. I wasn't able to sign-in to an existing user. I even could not create a new one. Does someone have any idea what caused it' and how could it be fixed?
Your question has no details at all..
Do you store the user credentials on a db?(it could be that you cannot login because you didn't connect correctly to the db) which type of db? is a Web service to an admin panel or some code posted on a hosting/vps?
Find out which is the error inside the logcat and post ONLY the error, maybe the stacktrace can help you.
So you can launch the app but the data inside is missing(credentials).. Do you see everything as usual or are there any images/details missing?
Stupid but easy to forget: do you have an active internet connection on the emulator?
have you tried to debug the code, have to tried to debug at least the authentication/register process?
Add more details, check your manifest is ok and you have all the permissions(internet, wifi or anything else), post the logcat error(if there is an error) or post the debug error, then someone can answer

Facebook Sharing Fails on Non Admin Devices

I have and android app in which i want to Post image and message to faceboook. I Have completed all Steps including facebook key from console hash key from program and save to facebook console. So when i run App it is posting image and message successfully only from my device in which same facebook account is used. But When i try from any other device it is not posting data to facebook and it gives me error "publish permission [publish action] not accepted by user". i got stuck at this point. please help me. what should i do. I read some articles and got idea that facebook change its policy and app should send to review. but i have not idea what and how necessary credentials required to facebook. please help me i have to complete my app as soon as possible. i am already getting late. i am searching from 2 weeks but at last decided to post question here. please help me. thanks in advance.

Categories

Resources