Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 704659fb authored by Alexandre Roux's avatar Alexandre Roux
Browse files

remove eels from agent string + adding /e/ version

parent f96e94d1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@
package org.lineageos.updater.download;

import android.os.SystemClock;
import android.os.SystemProperties;

import android.util.Log;

import java.io.File;
@@ -61,7 +63,7 @@ public class HttpURLConnectionClient implements DownloadClient {
        mClient = (HttpURLConnection) new URL(url).openConnection();

        String defaultUserAgent = mClient.getRequestProperty("User-Agent");
        String newUserAgent = defaultUserAgent+" ota_007_eels";
        String newUserAgent = defaultUserAgent+" eOS v"+SystemProperties.get(Constants.PROP_BUILD_VERSION);
        mClient.setRequestProperty("User-Agent", newUserAgent);

        mDestination = destination;