According to Android docs, the VpnService.Builder.setHttpProxy method has been added in API level 29. Which is fine. But the setHttpProxy method needs and object for ProxyInfo class, which is deprecated in API level 22.
Now I need to use the buildPacProxy method of the ProxyInfo class, which isn't working for me.
Can anyone please help me set a PAC URI to the VPN service by any alternate way? My end goal is to apply a PAC Uri to the device, which will monitor all the device traffic. I was thinking of using a VPN to apply the PAC Uri, bu creating a fake VPN, which does not connect to any server.
Any help would be appreciated.