Issue: How to integrate HTTPS proxy into Chromium for Android?

94 views
Skip to first unread message

Shilpika Verma

unread,
Apr 5, 2017, 3:47:46 AM4/5/17
to Chromium-discuss

Hello guys


I want to integrate HTTPS proxy into Chromium for Android for which I had made the following changes in the below mentioned files:


File Name use for proxy configuration:- "proxy_config_service_android.cc" 
 
In below given function I had added few lines indicated by (+) sign.
=========================================
void FetchInitialConfig() {
    DCHECK(OnJNIThread());
    ProxyConfig proxy_config;
 + //  GetLatestProxyConfigInternal(get_property_callback_, &proxy_config);
 +   std::string host="HTTPS 89.36.212.227";
 +   int port=3128;
    
  CreateStaticProxyConfig(host,port,””,exclusion_list,config)
    network_task_runner_->PostTask(
        FROM_HERE,
        base::Bind(&Delegate::SetNewConfigOnNetworkThread, this, proxy_config));
  }

Here I have mentioned the various HTTPS IPs and Port no. But they are not working. 
I have also tried including pac_script :-
"pacScript: {n data: "function FindProxyForURL(url, host) {\n" +n "if(host=='89.36.212.227') \n" +n "return 'HTTPS 89.36.212.227:3128;DIRECT;';\n" +n " return 'HTTPS 89.36.212.227:3128;HTTPS 89.36.212.227:3128;';\n" +nn "}"n }", but this is also not working.

Please suggest me some solution.

Thanks in advance.

Chen Zhixiang

unread,
Apr 26, 2017, 8:47:30 AM4/26/17
to Chromium-discuss
I thought you should config by a builtin PAC (proxy config file), not by specifying the HTTPS proxyHost:port pair directly.
It's more flexible.

Satish Nada

unread,
May 5, 2021, 3:16:24 AM5/5/21
to Chromium-discuss, cten...@gmail.com
Hello Respected, 
Have you got solution or have you implemented Proxy in Android chromium build 
i also trying to setup proxy on chromium but did not find working solution yet,
Can you please share solution or suggestion to implement proxy in android chromium app.
Thank you very much 

Reply all
Reply to author
Forward
0 new messages