Android - Can't delete files from Kodi

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
LRa Offline
Fan
Posts: 398
Joined: Mar 2004
Reputation: 0
Post: #1
Hello,
I have an FTV 1 with the latest OS 5 and latest Kodi.
For some reason, I cannot delete files from any connected usb device.
Any easy solution?
find quote
cspack Offline
Junior Member
Posts: 25
Joined: Jan 2012
Reputation: 1
Post: #2
There is a Kodi setting in Settings->Media settings->General->'Allow file renaming and deletion'. I think you have to change to 'Advanced' or 'Expert' settings for it to appear though.
find quote
LRa Offline
Fan
Posts: 398
Joined: Mar 2004
Reputation: 0
Post: #3
This is already on.
It is not the problem...
find quote
cspack Offline
Junior Member
Posts: 25
Joined: Jan 2012
Reputation: 1
Post: #4
Then I would suggest turning on debug, try to delete a file, then check the kodi log for errors.
find quote
Pantsenu Offline
Member
Posts: 52
Joined: Jan 2017
Reputation: 2
Location: Inside
Post: #5
android is strict about file permissions. reading files is easy. deleting won't work unless they are in a special kodi folder. details should be somewhere on the forum i cant remember the details.
(This post was last modified: 2017-03-20 12:51 by Pantsenu.)
find quote
kinggo Offline
Fan
Posts: 311
Joined: Aug 2016
Reputation: 6
Post: #6
(2017-03-19 22:40)LRa Wrote:  This is already on.
It is not the problem...
if you are on MM, then the problem is KODI (by design) and there's nothing you can do about it. Use some other file manager that will ask for permission.
find quote
LRa Offline
Fan
Posts: 398
Joined: Mar 2004
Reputation: 0
Post: #7
(2017-03-20 12:50)Pantsenu Wrote:  android is strict about file permissions. reading files is easy. deleting won't work unless they are in a special kodi folder. details should be somewhere on the forum i cant remember the details.

I just found this:
http://forum.kodi.tv/showthread.php?tid=265372

"Use adbFire:

1. Connect to your device
2. Press ADB Shell

At the prompt "[email protected]:/$" enter
mkdir -p /storage/usbdisk/Android/data/org.xbmc.kodi

Then change the paths for download to /storage/usbdisk/Android/data/org.xbmc.kodi/files."


But what does change the paths for download means? Where is this?
(This post was last modified: 2017-03-21 07:12 by LRa.)
find quote
Tinwarble Offline
Team-Kodi Member
Posts: 2,295
Joined: Mar 2013
Reputation: 75
Location: In a Box.
Post: #8
(2017-03-20 13:08)kinggo Wrote:  if you are on MM, then the problem is KODI (by design) and there's nothing you can do about it. Use some other file manager that will ask for permission.

Nothing to do with Kodi, by design or otherwise, this is strictly an Android permissions issue.

(2017-03-21 07:12)LRa Wrote:  Then change the paths for download to /storage/usbdisk/Android/data/org.xbmc.kodi/files."

But what does change the paths for download means? Where is this?

On Android, at least since Android 6.x, apps only have permission to write to their own folder unless they ask for permission to write to other folders or to the root of external drives. In Kodis case, it does not ask for permission therefore the only folder that it can write too is /your_drive/Android/data/org.xbmc.kodi/ you can skip the files folder, or create another folder in org.xbmc.kodi.

This path is on your external storage. Once you attach the storage Android create the path /Android/data/ then after, and only after you launch an app after attaching the storage, the apps folder gets created.

[Image: appstore_button_google.png]

Forum Rules (wiki) | Banned add-ons (wiki) | Wiki (wiki) | Quick start guide (wiki)
find quote
LRa Offline
Fan
Posts: 398
Joined: Mar 2004
Reputation: 0
Post: #9
(2017-03-21 07:42)Tinwarble Wrote:  This path is on your external storage. Once you attach the storage Android create the path /Android/data/ then after, and only after you launch an app after attaching the storage, the apps folder gets created.

So I create the path (/storage/usbdisk/Android/data/org.xbmc.kodi) via ADB with the usb drive attached, then I just launch Kodi?
find quote
Tinwarble Offline
Team-Kodi Member
Posts: 2,295
Joined: Mar 2013
Reputation: 75
Location: In a Box.
Post: #10
No, it should get created automatically, as I described in the previous post.

[Image: appstore_button_google.png]

Forum Rules (wiki) | Banned add-ons (wiki) | Wiki (wiki) | Quick start guide (wiki)
find quote
kinggo Offline
Fan
Posts: 311
Joined: Aug 2016
Reputation: 6
Post: #11
(2017-03-21 07:42)Tinwarble Wrote:  Nothing to do with Kodi, by design or otherwise, this is strictly an Android permissions issue.


On Android, at least since Android 6.x, apps only have permission to write to their own folder unless they ask for permission to write to other folders or to the root of external drives. In Kodis case, it does not ask for permission therefore the only folder that it can write too is /your_drive/Android/data/org.xbmc.kodi/ you can skip the [b]files folder, or create another folder in org.xbmc.kodi.
But it could ask. Just like other apps do. So how is this not by design? I'm not questioning the team reasons behind this but it's not strictly android thing (agree on the fact that their constant perrmission changes and external storage treatment is a mess) since there's an option to ask for and set the permission.
find quote
Tinwarble Offline
Team-Kodi Member
Posts: 2,295
Joined: Mar 2013
Reputation: 75
Location: In a Box.
Post: #12
Because it requires going out of Kodi to acquire permission, so it is strictly an Android thing. This is why it's not being developed.

Though it is different with Android 7.x, so I can't say if it will ever be possible. But that doesn't help with Android 6.x.

[Image: appstore_button_google.png]

Forum Rules (wiki) | Banned add-ons (wiki) | Wiki (wiki) | Quick start guide (wiki)
find quote
kinggo Offline
Fan
Posts: 311
Joined: Aug 2016
Reputation: 6
Post: #13
Once. Never bothered me with any other app. While the benefitis are always there later on.
find quote