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

Improvements to scoped storage #1488

Merged
merged 1 commit into from
Nov 6, 2020
Merged

Improvements to scoped storage #1488

merged 1 commit into from
Nov 6, 2020

Conversation

ahmedre
Copy link
Contributor

@ahmedre ahmedre commented Nov 6, 2020

This patch updates scoped storage, making the following changes:

  1. only force copying on Android 11 (sdk 30) and above. Before, this was
    also enabled for Android 10 (sdk 29).
  2. disable the advanced settings move option to copy to /sdcard on
    Android 30 and above (since it doesn't make sense anymore).
  3. warn people on Android 29 when they try to explicitly use /sdcard
    that data might not remain accessible on future Android versions.
  4. show warning before asking for external sdcard permissions if
    required.

Fixes #1478.

Comment on lines 348 to 349
<string name="scoped_storage_message">
بسبب تغييرات في الاندرويد، إستخدام مكان غير مكان التطبيق قد يسبب في عدم تمكن التطبيق من الوصول للملفات في الاصدارات المستقبلية لاندرويد. هل ترغب في تكملة نقل البيانات ؟
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benomaire does this sound ok or can you suggest something better?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another variation:
بسبب القيود الجديدة في أندرويد 11، تخزين بيانات التطبيق في مكان غير مجلد التطبيق الافتراضي قد يؤدي إلى عدم تمكن التطبيق من الوصول لملفاته في إصدارات أندرويد القادمة، هل ترغب في نقل البيانات على أية حال؟

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

جزاكم الله خيراً

@@ -343,7 +343,10 @@
<string name="import_data_error">ملف النسخة الاحتياطية تالف (أو فشلت قراءة النسخة الاحتياطية)</string>
<string name="import_data_permissions_error">فشلت قراءة ملف النسخة الاحتياطية بسبب فقدان الإذن</string>
<string name="please_grant_permissions">رجاء امنح الإذن في الإعدادات</string>
<string name="about_noorhidayat" translatable="false">نور وهداية (Noorhidayat)</string>
<string name="about_noorhidayat" translatable="false">نور هداية (Noorhidayat)</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guessed from the url and the logo that 'e' stands for 'و' in urdu. I am not sure though!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i'll leave it like it was

This patch updates scoped storage, making the following changes:
1. only force copying on Android 11 (sdk 30) and above. Before, this was
   also enabled for Android 10 (sdk 29).
2. disable the advanced settings move option to copy to /sdcard on
   Android 30 and above (since it doesn't make sense anymore).
3. warn people on Android 29 when they try to explicitly use /sdcard
   that data might not remain accessible on future Android versions.
4. show warning before asking for external sdcard permissions if
   required.

Fixes #1478.
@ahmedre ahmedre merged commit b72aa69 into master Nov 6, 2020
@ahmedre ahmedre deleted the scoped_storage branch November 6, 2020 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Saving application directory
2 participants