Skip to content

Eliminate need for SD_CARD permission  #661

Closed

Description

@codinguser

Steps to reproduce the behaviour

  1. Install app for the first time and run it

Actual behaviour

  1. First run wizard asks for SD card write permission

Expected behaviour

  1. No permissions are asked for

Software specifications

  • GnuCash Android version:
  • System Android version:
  • Device type:

Activity

  1. added this to the v2.2.0 milestone on Mar 27, 2017
  2. self-assigned this
    on Apr 11, 2017
  3. rivaldi8 commented on Apr 11, 2017

    @rivaldi8
    Collaborator

    I assume you meant the expected/actual behaviours to be the other way round. So it's just make it stop asking for the permissions from the wizard and when the AccountsActivity is started, isn't it?

  4. rivaldi8 commented on Apr 11, 2017

    @rivaldi8
    Collaborator

    Well, it also asks when the export form is opened. I guess we should be asking only when the user presses Export and has selected an export target that needs to write to the SD card.

  5. rivaldi8 commented on Apr 11, 2017

    @rivaldi8
    Collaborator

    I've just remembered you were working in the export package. I don't think you are changing ExportFormFragment much or anything at all, but I'll wait for your confirmation just in case.

  6. codinguser commented on Apr 12, 2017

    @codinguser
    OwnerAuthor

    @rivaldi8 yes, you are right about the expected/actual behaviour. I've updated the issue to reflect this.
    The reason SD_CARD permission was asked for, was so that default auto backups could be made directly to the external SD card. In case of crash or anything happening, the user could still then easily access the files.

    But I am now of the opinion that we move the default backups to the app private external file storage. Then we would not need the SD_CARD permission at all.

    I would suggest that we add a migration in 2.1.6 which moves the files from existing backup locations to the new internal one (we still need the SD_CARD permission for this). But then from the next releases, we can get rid of the permission completely. We've done this kind of migration before, so we can use that code.

    @rivaldi8 Btw, you can also go ahead with any export related optimization/fixes (e.g. #485 ). SAF use for backup/export is not feasible at the moment.

  7. changed the title [-]Delay SD_CARD permission until user attempts to export to SD card[/-] [+]Eliminate need for SD_CARD permission [/+] on Apr 12, 2017
  8. rivaldi8 commented on Apr 12, 2017

    @rivaldi8
    Collaborator

    Ok, I'll work on the migration of backup files then.

  9. codinguser commented on Apr 12, 2017

    @codinguser
    OwnerAuthor

    @rivaldi8 I could do the migration of the files for v2.1.6 if you'd like.
    I want to make a small release which fixes one rotation crash bug and updates translations, so I could bundle it in. Shall I?

  10. rivaldi8 commented on Apr 12, 2017

    @rivaldi8
    Collaborator

    @codinguser Sure, go ahead! :)

  11. added a commit that references this issue on Apr 17, 2017
    46859ae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions