Home Forum

In-app URL redirection

Hello,
I want to create an android application that redirect a URL to an other (for example, if I go to google.com, the application redirect to yahoo.fr).
It must works with default android browser or Chrome, firefox or event the in-app browser of facebook.
I don't really know how it works and I don't have a lot of references in this particular domain of android programming.
Another constraint is that it could work without rooting the phone. Is this possible ? If yes, do you have some hints or references to give me ?
(I've already search a bit on Proxy server or VPN but noting concret yet).
Thanks.
 

Related:

#1 Armand Baglin, Apr 13, 2018 at 9:34 AM
You should have your own proxy that captures all request from the device to network.
Like Charles https://stackoverflow.com/questions...-http-requests-with-non-rooted-android-device
I think it's not a trivial task.

In the case of Chrome or Facebook https://security.stackexchange.com/...u-capture-all-the-traffic-from-an-android-app
You should have certificates for HTTPS that you don't have. Without certificates you will get encoded HTTPS requests, where the site name is visible only. All other information looks like garbage.
If you can capture and read SSL traffic from any application, like Facebook, without certificates, you have access to all Play Store application's secret keys and unlimited access to any private site or store.
So you are going to compromise all the Internet security. Good luck :)
 
#2 v777779, Apr 13, 2018 at 12:44 PM Last edited: Apr 13, 2018 at 12:53 PM
Thanks for your answer !
About Charles, this applicaiton seems to do what I want to do but I don't want to capture on a PC, but in the application that I am currently working on...
 
#3 Armand Baglin, Apr 16, 2018 at 10:01 AM
I want my android app to "listen" on the web browser in order to capture Url's that are entered
 
#4 Armand Baglin, Apr 16, 2018 at 10:02 AM
If you are the author of application and want to capture URL that was entered inside the app, yes you can do it easily.
If you are working with Web View, the URL is under your control and again you can do it easily.
if you call Chrome from your application with the entered URL, yes, you can replace URL with new one and call Chrome with modified URL.
But when Chrome is started and you enter URL in Chrome address tab, it's impossible to capture that request, Chrome is independent application, no matter how you have launched it.
I'm not sure for last sentence, but I think yes it's impossible with simple tools.
May be the way is to replace something on system level of Android. So you are going to hack Android :)
 
#5 v777779, Apr 16, 2018 at 10:50 AM
Ok so I think that this is not possible...
I want to recover Url that I enter (in the navigation browser default app of my phone) in my app (the one i'm working on) so it's totally independent as you said...
 
#6 Armand Baglin, Apr 16, 2018 at 10:55 AM