Loading src/org/lineageos/updater/download/HttpURLConnectionClient.java +5 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,11 @@ public class HttpURLConnectionClient implements DownloadClient { DownloadClient.DownloadCallback callback, boolean useDuplicateLinks) throws IOException { mClient = (HttpURLConnection) new URL(url).openConnection(); String defaultUserAgent = mClient.getRequestProperty("User-Agent"); String newUserAgent = defaultUserAgent+" ota_007_eels"; mClient.setRequestProperty("User-Agent", newUserAgent); mDestination = destination; mProgressListener = progressListener; mCallback = callback; Loading Loading
src/org/lineageos/updater/download/HttpURLConnectionClient.java +5 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,11 @@ public class HttpURLConnectionClient implements DownloadClient { DownloadClient.DownloadCallback callback, boolean useDuplicateLinks) throws IOException { mClient = (HttpURLConnection) new URL(url).openConnection(); String defaultUserAgent = mClient.getRequestProperty("User-Agent"); String newUserAgent = defaultUserAgent+" ota_007_eels"; mClient.setRequestProperty("User-Agent", newUserAgent); mDestination = destination; mProgressListener = progressListener; mCallback = callback; Loading