TeamAmaze / TeamAmaze/AmazeFileManager

Cannot stream media via StreamServer on Android >= 9

Open
#1,839 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-SMB Area-Ssh/Scp/Sftp Issue-Bug
Dominant language
Kotlin
Stars
6.4k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
1

Description

Android disallowed HTTP (cleartext HTTP traffic) by default from Android 9 onwards. This will affect media streaming via StreamServer inside Amaze.

Symptom can be verified with Android 10 emulator, connect to a SMB server, and try to open an image of any size.

2020-02-16 11:20:43.364 4051-4080/com.android.gallery3d W/DownloadService: fail to download
    java.io.IOException: Cleartext HTTP traffic to 127.0.0.1 not permitted
        at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:124)
...

Reference: https://developer.android.com/training/articles/security-config.html

Solution being working on to whitelist 127.0.0.1 per described like this, just haven't fixed the problem yet.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with an Android 10 emulator, an SMB server, and an image opened through StreamServer. Start by inspecting StreamServer and the app's Android network security configuration, then verify that media served from 127.0.0.1 opens successfully without the cleartext-traffic error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.