Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emergency config export fails #759

Closed
balihb opened this issue Mar 16, 2021 · 8 comments · Fixed by #808 or #809
Closed

emergency config export fails #759

balihb opened this issue Mar 16, 2021 · 8 comments · Fixed by #808 or #809
Assignees
Labels
Milestone

Comments

@balihb
Copy link

balihb commented Mar 16, 2021

Clicking the emergency expot button gives a nondescriptive error (with a suggestion to look for it in logcat). The message I found in logcat:
Failed to export config. Could not determine app's private files directory on external storage.

The directory /storage/emulated/0/Android/media/com.github.catfriend1.syncthingandroid is created, but empty.

Description of the issue

Reproduction Steps

Version Information

  • App Version: 1.14.0.1
  • Syncthing Version: v1.x.y
  • Android Version: Android 11 MIUI 12.2.4
  • Device manufacturer: POCO (Xiaomi)
  • Device model: f2 pro

Device platform info

Android Log

@balihb
Copy link
Author

balihb commented Mar 16, 2021

Screenshot_2021-03-16-08-43-10-553_com ghisler android TotalCommander
Screenshot_2021-03-16-08-45-52-389_com dp logcatapp

@balihb
Copy link
Author

balihb commented Mar 16, 2021

Screenshot_2021-03-16-08-48-20-922_com github catfriend1 syncthingandroid

@Catfriend1
Copy link
Owner

Hi,

what is your absolute path to the internal storage root? I've got /storage/emulated/0 .

@balihb
Copy link
Author

balihb commented Mar 21, 2021 via email

@Catfriend1
Copy link
Owner

The question (from my mind) is , the last drive could be an external sdcard where prior Android 11 the export never worked because of SAF requirements. Will re-check this when I have more time and on PC.

@Finkregh
Copy link

Finkregh commented May 6, 2021

Could you try to get root for this? At least some people would then have a possibility to workaround this.

@Catfriend1 Catfriend1 self-assigned this May 16, 2021
@Catfriend1 Catfriend1 added this to the v1.14.0 milestone May 16, 2021
@Catfriend1
Copy link
Owner

Solved by #787 (We now got all files access on Android 11.) If it does not solve the storage root detection, I honestly don't know why it fails on some rare makes and models.

@Catfriend1
Copy link
Owner

Bug on some devices: #541

@Catfriend1 Catfriend1 modified the milestones: v1.14.0, v1.16.0 May 25, 2021
Catfriend1 added a commit that referenced this issue May 25, 2021
#808)

* PhotoShootActivity: Move getExternalFilesDir to FileUtils

* Update ConfigXml.java

* Update PhotoShootActivity.java

* Update Constants.java

* Update SyncthingRunnable.java

* Update SyncthingRunnable.java

* Update PhotoShootActivity.java

* Update FileUtils.java

* Update FirstStartActivity.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment