Skip to content

createFile fails on network content providers #151

@Demizo

Description

@Demizo

First off, thank you for the awesome plugin!
Describe the bug
Operations that require network calls (i.e. createFile on an external content provider) fail due to Android blocking network calls on the main thread. (If curious see nextcloud/android#8028).

To Reproduce
Attempt to create a file on an external network content provider.

Expected behavior
Files can be created on network content providers.

Smartphone (please complete the following information):

  • Device: Google Pixel 7
  • OS: Graphene OS
  • Content Provider: Nextcloud
  • Version: Android 14

Additional context
I was able to quickly fix the problem on a fork of the plugin by running the API actions in the IO thread (Demizo@636c9e3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions