【问题标题】:Apps did not download after vpn is connected连接VPN后应用程序没有下载
【发布时间】:2018-06-16 18:48:14
【问题描述】:

我正在制作一个阻止某些网络和应用程序的应用程序,但问题出在某些设备制造商上,如摩托罗拉和 HTC(Android OS 牛轧糖和奥利奥)应用程序在 VPN 连接后没有下载和更新,但互联网工作完美。我正在使用本地 VPN 监控网络流量。请帮助我卡在这个阶段。

我尝试了google上提到的所有方法

以下是本地VPN代码的截图

private void connect() {
       int i;
    isRunning=true;

    Builder builder = new Builder();
    StringBuilder stringBuilder = new StringBuilder("10.0.0.");
    if (lastInt == 254) {
        i = 0;
        lastInt = 0;
    } else {
        i = lastInt;
        lastInt = i + 1;
    }
    this.localAddress = stringBuilder.append(i).toString();
    try {
        if (this.parcelFileDescriptor != null) {
            this.parcelFileDescriptor.close();
        }
    } catch (Exception e) {
    }
    try {
        builder.addAddress(this.localAddress, 24);
        builder.addDnsServer(dns1);
        builder.addDnsServer(dns2);
        this.parcelFileDescriptor = builder.setSession(getString(R.string.app_name)).setConfigureIntent(this.pendingIntent).establish();
        Intent intent = new Intent("STARTEDDNSCHANGER");
        intent.setAction(getPackageName() + ".STARTED_DNS_CHANGER");
        sendBroadcast(intent);

    } catch (Throwable e2) {
        throw new IllegalArgumentException(e2);
    }
}

【问题讨论】:

    标签: android dns google-play vpn


    【解决方案1】:

    Play 通过 HTTPS 下载应用程序。如果您收到错误 495,则表明 VPN 正在干扰 HTTPS / TLS 握手,因此 Play 不会下载应用程序。可能您没有正确支持密码算法协商。

    【讨论】:

    • 感谢 Nick 的回答。能否进一步阐述和分享一些有用的资源来实现密码算法协商?
    • 抱歉,这超出了我的专业范围
    猜你喜欢
    • 2013-01-04
    • 1970-01-01
    • 2018-07-20
    • 2021-09-28
    • 2011-08-27
    • 2018-07-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多