Skip to content

Commit

Permalink
Remove PRNGFixes file (#2036)
Browse files Browse the repository at this point in the history
The security workarounds contained in the `PRNGFixes` class were needed
for devices older Android APIs (16, 17, 18) while the current min sdk
API is 21.
Therefore this workaround is no longer needed.
  • Loading branch information
adamszewe authored Jan 7, 2024
1 parent 5c249ae commit eb0e1d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 347 deletions.
338 changes: 0 additions & 338 deletions app/src/main/java/com/android/PRNGFixes.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
package com.nutomic.syncthingandroid.service;

import android.Manifest;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.os.AsyncTask;
import android.os.Handler;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;
import android.util.Log;

import com.android.PRNGFixes;
import androidx.annotation.Nullable;

import com.google.common.io.Files;
import com.nutomic.syncthingandroid.R;
import com.nutomic.syncthingandroid.SyncthingApp;
Expand All @@ -24,11 +21,8 @@
import java.io.IOException;
import java.lang.ref.WeakReference;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.concurrent.atomic.AtomicReference;

import javax.inject.Inject;
Expand Down Expand Up @@ -195,7 +189,6 @@ public enum State {
public void onCreate() {
Log.v(TAG, "onCreate");
super.onCreate();
PRNGFixes.apply();
((SyncthingApp) getApplication()).component().inject(this);
mHandler = new Handler();

Expand Down

0 comments on commit eb0e1d6

Please sign in to comment.