Author Topic: Use with Samsung Knox  (Read 9476 times)

jko

  • Newbie
  • *
  • Posts: 5
Use with Samsung Knox
« on: January 21, 2016, 12:19:36 am »
The organisation I work for has now insisted we use improved security for our email if we are accessing it on personal devices.
I can use Knox on my Samsung phone, which creates a password-protected, encrypted area of the phone for apps and data.
AquaMail sets up correctly and retrieves and sends emails.
The only problem I have is with attachments. I get the error message:
"Error loading attachments. Error writing to memory card"
I've tried selecting alternative storage areas, but with no success.
Has anyone else been able to get AquaMail fully working with Knox?
Thanks,
John

jko

  • Newbie
  • *
  • Posts: 5
Re: Use with Samsung Knox
« Reply #1 on: January 21, 2016, 12:45:21 am »
And a little update:
If I save the file first it saves and opens correctly.
It is only if I attempt to view the file without first saving it that I get the problem.
John

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Use with Samsung Knox
« Reply #2 on: January 21, 2016, 01:03:17 am »
Re: It is only if I attempt to view the file without first saving it that I get the problem.

Then AquaMail is writing to the standard "application-private" storage directory, which should always be accessible.

The function call on my side is:

context.getExternalFilesDir(null);

Normally this is mapped by the system to something like "/mnt/sdcard/Android/data/org.kman.AquaMail" and then my code creates directories and files as needed below that.

On newer phones (4.4 and above), it's "/storage/emulated/0" in place of "/mnt/sdcard".

Either way, this standard Android function is specifically to provide a directory which is "owned" by the app.

---

I would dearly love for some way to contact Samsung, if they actually provided developer support.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

jko

  • Newbie
  • *
  • Posts: 5
Re: Use with Samsung Knox
« Reply #3 on: January 21, 2016, 02:29:04 am »
Thanks for the prompt reply.
I'm not a developer but I'm glad you know what is going on.
I guess Samsung's Knox utility is locking down too tightly.
I can live with the save first workaround.
John

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Use with Samsung Knox
« Reply #4 on: January 22, 2016, 02:48:18 pm »
Actually, what I'm saying is -- I don't know what's going on.

It should "just work", Knox should not be blocking the app's access to its own "private data" directory.

I included the technical details in case you wanted to contact Samsung.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

jko

  • Newbie
  • *
  • Posts: 5
Re: Use with Samsung Knox
« Reply #5 on: January 23, 2016, 08:14:03 pm »
Thank you,
I'll follow it up with them and see what they say.