2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 18:07:55 +00:00

Revert "Remove arcconfig"

Had unrelated changes

This reverts commit 53e2e0be100eca7aca867dab2f96ad87a0f1f79c.
This commit is contained in:
Nicolas Fella 2022-08-05 01:23:55 +02:00
parent 53e2e0be10
commit a94eeb4947
3 changed files with 4 additions and 13 deletions

3
.arcconfig Normal file
View File

@ -0,0 +1,3 @@
{
"phabricator.uri" : "https://phabricator.kde.org/project/profile/159/"
}

View File

@ -46,7 +46,7 @@
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.READ_LOGS" tools:ignore="ProtectedPermissions" /> <uses-permission android:name="android.permission.READ_LOGS" tools:ignore="ProtectedPermissions" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<application <application

View File

@ -8,13 +8,10 @@ package org.kde.kdeconnect.Plugins.SftpPlugin;
import android.app.Activity; import android.app.Activity;
import android.content.ContentResolver; import android.content.ContentResolver;
import android.content.Intent;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.net.Uri; import android.net.Uri;
import android.os.Build; import android.os.Build;
import android.provider.Settings;
import android.util.Log; import android.util.Log;
import android.os.Environment;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
@ -61,8 +58,6 @@ public class SftpPlugin extends Plugin implements SharedPreferences.OnSharedPref
try { try {
server.init(context, device); server.init(context, device);
Log.e("KDECONNECT", "has it " + Environment.isExternalStorageManager());
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT) { if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT) {
return SftpSettingsFragment.getStorageInfoList(context, this).size() != 0; return SftpSettingsFragment.getStorageInfoList(context, this).size() != 0;
} }
@ -85,13 +80,6 @@ public class SftpPlugin extends Plugin implements SharedPreferences.OnSharedPref
@Override @Override
public AlertDialogFragment getOptionalPermissionExplanationDialog() { public AlertDialogFragment getOptionalPermissionExplanationDialog() {
Intent intent = new Intent(Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
return new DeviceSettingsAlertDialogFragment.Builder() return new DeviceSettingsAlertDialogFragment.Builder()
.setTitle(getDisplayName()) .setTitle(getDisplayName())
.setMessage(R.string.sftp_saf_permission_explanation) .setMessage(R.string.sftp_saf_permission_explanation)