[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2023-09-02 Thread Varisht
https://bugs.kde.org/show_bug.cgi?id=447636

Varisht  changed:

   What|Removed |Added

   Version Fixed In||1.24.0

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2023-03-19 Thread Albert Vaca
https://bugs.kde.org/show_bug.cgi?id=447636

Albert Vaca  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|CONFIRMED   |RESOLVED
  Latest Commit||https://invent.kde.org/netw
   ||ork/kdeconnect-android/comm
   ||it/1ba9e59872e811615a152882
   ||469e9b9f07cc7001

--- Comment #8 from Albert Vaca  ---
Git commit 1ba9e59872e811615a152882469e9b9f07cc7001 by Albert Vaca Cintora, on
behalf of Albert Vaca Cintora.
Committed on 19/03/2023 at 20:26.
Pushed by albertvaka into branch 'master'.

SftpPlugin: use MANAGE_EXTERNAL_STORAGE instead of SAF in Android 11+

https://developer.android.com/training/data-storage/manage-all-files
Related: bug 464431

M  +1-0AndroidManifest.xml
M  +1-0res/values/strings.xml
M  +63   -26   src/org/kde/kdeconnect/Plugins/SftpPlugin/SftpPlugin.java
M  +14   -5src/org/kde/kdeconnect/Plugins/SftpPlugin/SimpleSftpServer.java
M  +20   -2   
src/org/kde/kdeconnect/UserInterface/StartActivityAlertDialogFragment.java

https://invent.kde.org/network/kdeconnect-android/commit/1ba9e59872e811615a152882469e9b9f07cc7001

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2023-02-27 Thread Jan Rathmann
https://bugs.kde.org/show_bug.cgi?id=447636

Jan Rathmann  changed:

   What|Removed |Added

 CC||jan.rathm...@gmx.de

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2023-02-27 Thread Jan Rathmann
https://bugs.kde.org/show_bug.cgi?id=447636

Jan Rathmann  changed:

   What|Removed |Added

 CC||l12c-account_for_kde@l12c.e
   ||u

--- Comment #7 from Jan Rathmann  ---
*** Bug 447774 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2023-02-07 Thread Andreas T
https://bugs.kde.org/show_bug.cgi?id=447636

Andreas T  changed:

   What|Removed |Added

 CC||a.tetz...@gmx.de

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2022-09-03 Thread Teoh Han Hui
https://bugs.kde.org/show_bug.cgi?id=447636

Teoh Han Hui  changed:

   What|Removed |Added

 CC||teohhan...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2022-06-04 Thread Andrew Gunnerson
https://bugs.kde.org/show_bug.cgi?id=447636

Andrew Gunnerson  changed:

   What|Removed |Added

 CC||accounts+...@chiller3.com

--- Comment #6 from Andrew Gunnerson  ---
I was able to get it working with MANAGE_EXTERNAL_STORAGE, but it's not quite
as simple as adding the permission to the manifest. Once the "All files"
permission is granted by the user via the Android Settings [1], KDE Connect is
immediately allowed access to the root of the storage volume. However, it must
do so via standard filesystem APIs, not via SAF's ACTION_OPEN_DOCUMENT_TREE.
Even with the permission, accessing the storage root via SAF is not allowed.

I made a very hacky hardcoded proof of concept here:
https://invent.kde.org/chenxiaolong/kdeconnect-android/-/commit/53370709d607055a0593a1dd743733858977cf05
It's working fine on a Google Pixel 6 Pro running Android 13 Beta 2.1. I can
read and write files from the primary storage root.

For a proper implementation, I believe these are the necessary changes:

* A UI option for selecting the primary storage volume. If the "All files"
permission hasn't been granted, the
ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION intent can take the user straight
to the permissions settings. The file:// URI for the primary storage volume can
be retrieved from StorageManager.getPrimaryStorageVolume().getDirectory().
* Adjust some Build.VERSION.SDK_INT checks that enable file:// support to be
uri.getScheme().equals(ContentResolver.SCHEME_FILE) instead.
* Maybe refactor the FileSystemView abstraction to allow a mixture of SAF and
non-SAF roots? Eg. the user might select the primary storage (non-SAF with
MANAGE_EXTERNAL_STORAGE) as well as an SD card (SAF).

I unfortunately don't have time to implement this myself, but hope this
information might be useful to others.

[1] Either by sending the user there via the
ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION intent or manually going to
Settings -> Apps -> Special app access -> All files access -> KDE Connect ->
Allow

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2022-05-26 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=447636

varish...@gmail.com changed:

   What|Removed |Added

 CC||varish...@gmail.com

--- Comment #5 from varish...@gmail.com ---
This bug affects Android 12 (Lineage OS 19.1 on Poco F1) as well. Dunno how I
didn't encounter it on Android 11 (Lineage OS 18.1 on Poco F1), maybe because
the permissions were carried over from my previous install. I recently did a
fresh install of Lineage OS 19.1 on Poco F1 and encountered this bug there.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2022-05-11 Thread Yaroslav Sidlovsky
https://bugs.kde.org/show_bug.cgi?id=447636

Yaroslav Sidlovsky  changed:

   What|Removed |Added

 CC||zawer...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2022-05-04 Thread Simon Redman
https://bugs.kde.org/show_bug.cgi?id=447636

Simon Redman  changed:

   What|Removed |Added

   Keywords||junior-jobs

--- Comment #4 from Simon Redman  ---
Set the junior-jobs keyword since this is hopefully we simple as adding the
permission and changing the intent action, both described in the documentation
linked in my previous comment.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2022-05-04 Thread Simon Redman
https://bugs.kde.org/show_bug.cgi?id=447636

Simon Redman  changed:

   What|Removed |Added

 CC||si...@ergotech.com
 Ever confirmed|0   |1
 Status|REPORTED|CONFIRMED

--- Comment #3 from Simon Redman  ---
For reference of anyone working on this, here's the Android documentation link
for MANAGE_EXTERNAL_STORAGE -- I suspect adding this permission will solve the
issue described, though we will have to grovel to Google to let us continue
publishing on the Play Store.
https://developer.android.com/training/data-storage/manage-all-files

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2022-05-04 Thread Simon Redman
https://bugs.kde.org/show_bug.cgi?id=447636

Simon Redman  changed:

   What|Removed |Added

 CC||adr...@fowle.co.uk

--- Comment #2 from Simon Redman  ---
*** Bug 439342 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2022-02-21 Thread Carlo
https://bugs.kde.org/show_bug.cgi?id=447636

Carlo  changed:

   What|Removed |Added

 CC||cirlo...@msn.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2022-01-28 Thread Reuben
https://bugs.kde.org/show_bug.cgi?id=447636

Reuben  changed:

   What|Removed |Added

 CC||maxxxreu...@gmail.com

--- Comment #1 from Reuben  ---
I face the same issue. Was previously able to select root folder of my phone as
mount point, but it doesn't allow anymore in Android 11.0.5.1 on a OnePlus 7T
running OxygenOS. 
Kdeconnect app version: 1.19.1

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdeconnect] [Bug 447636] Android 11: scoped storage does not allow to share the root of the filesystem

2022-01-07 Thread Clay Weber
https://bugs.kde.org/show_bug.cgi?id=447636

Clay Weber  changed:

   What|Removed |Added

 CC||c...@claydoh.com

-- 
You are receiving this mail because:
You are watching all bug changes.