Skip to content

Commit

Permalink
[Backup] Temporary workaround for scoped storage
Browse files Browse the repository at this point in the history
  • Loading branch information
MuntashirAkon committed Aug 7, 2020
1 parent 7bd8120 commit 74e0bd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:requestLegacyExternalStorage="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/AppTheme">
android:theme="@style/AppTheme"
tools:ignore="UnusedAttribute">
<activity
android:name=".activities.OneClickOpsActivity"
android:exported="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;

import org.json.JSONException;

Expand Down Expand Up @@ -53,8 +54,7 @@ public class BackupStorageManager implements AutoCloseable {
private static final String RULES_TSV = "rules.am.tsv";
private static final String TMP_BACKUP_SUFFIX = "~";
static final String APK_SAVING_DIRECTORY = "apks";
@SuppressLint("SdCardPath")
private static final File DEFAULT_BACKUP_PATH = new File("/sdcard/AppManager");
private static final File DEFAULT_BACKUP_PATH = new File(Environment.getExternalStorageDirectory(), "AppManager");

private static BackupStorageManager instance;
public static BackupStorageManager getInstance(String packageName) {
Expand Down

0 comments on commit 74e0bd9

Please sign in to comment.