Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 9 of 9
  1. Thread Author  Thread Author    #1  
    PVO
    PVO is offline
    PVO's Avatar

    Posts
    5 Posts

    Lightbulb Redirecting all data to SD Card

    I am trying to find a solution for intercepting the data from the Native Android Mail Client, flagging it and then directing it to the SD Card so that the controller on the SD card knows that the data needs to be encrypted.

    This needs to work for all Mail Client Data as well as for Attachments.

    Any suggestions are welcome.

    Regards,
    Peter
  2. #2  
    Vsweety's Avatar
    Banned

    Posts
    409 Posts
    Global Posts
    414 Global Posts

    Default Re: Redirecting all data to SD Card

    On what Android version and what device?
  3. Thread Author  Thread Author    #3  
    PVO
    PVO is offline
    PVO's Avatar

    Posts
    5 Posts

    Default Re: Redirecting all data to SD Card

    Specifically on HTC Devices (e.g.Desire 500) - Android Jelly Bean and upwards.
    Regards, Peter
  4. #4  
    Vsweety's Avatar
    Banned

    Posts
    409 Posts
    Global Posts
    414 Global Posts

    Default Re: Redirecting all data to SD Card

    "Upwards" will be a problem because starting with Kitkat Google/Android has seen fit to disable writing user-selected files to the external SD card.

    If that wasn't a pretty fundamental problem I would see if the apps Tasker or llama could execute what you want.
  5. Thread Author  Thread Author    #5  
    PVO
    PVO is offline
    PVO's Avatar

    Posts
    5 Posts

    Default Re: Redirecting all data to SD Card

    thanks - the directIO buffer alignment bug for KitKat has been fixed by google and will be rolled out by the OEM in OTA Updates so in the near future that will be solved - writing code that "manually" picks the data, flags it, then saves it on the SD card and then deletes the original data might be a workaround but leaves a lot of opportunity for a man in the middle to read all the data AND after deleting the original data, the mail client will not know where to look for its data anymore which leads to synchronization issues - ideally, there would be a mail client API that one can integrate with to define the storage path as well enabling an on the fly flagging of the data in order to allow the SD card controller to identify and encrypt the data that is coming in.

    Any Ideas where to start?
  6. #6  
    Vsweety's Avatar
    Banned

    Posts
    409 Posts
    Global Posts
    414 Global Posts

    Default Re: Redirecting all data to SD Card

    Quote Originally Posted by PVO View Post
    the directIO buffer alignment bug for KitKat has been fixed by google and will be rolled out by the OEM in OTA Updates so in the near future that will be solved
    What is your source for that?
    "In the near future" sounds like maana to me.
    So I'll believe it when I see it.
  7. Thread Author  Thread Author    #7  
    PVO
    PVO is offline
    PVO's Avatar

    Posts
    5 Posts

    Default Re: Redirecting all data to SD Card

    This fix was for directIO read buffer alignment:
    https://android-review.googlesource.com/#/c/82141/

    And this fix was for directIO write buffer alignment:
    https://android-review.googlesource.com/#/c/82570/

    It is now OEM dependent when the fix will be rolled out but failing to do so puts a complete smart SD card industry out of business.

    That is a complete different topic however, my problem remains unsolved...
  8. #8  
    Vsweety's Avatar
    Banned

    Posts
    409 Posts
    Global Posts
    414 Global Posts

    Default Re: Redirecting all data to SD Card

    Tada!
    Geeksoft beat 'm to the punch with the free app "Kitkat External SD card patch".
  9. Thread Author  Thread Author    #9  
    PVO
    PVO is offline
    PVO's Avatar

    Posts
    5 Posts

    Default Re: Redirecting all data to SD Card

    Sure - for rooted devices, not a very Enterprise Grade solution as many public administrations use Secure SD card solutions...

Similar Threads

  1. Data usage is getting higher, need help.
    By zerrisk in forum Samsung Galaxy S5
    Replies: 10
    Last Post: 10-02-2014, 06:31 PM
  2. switching from BB Z10 to S5
    By bbmjack in forum Samsung Galaxy S5
    Replies: 0
    Last Post: 04-22-2014, 03:09 AM
  3. Photos saved to Photos not gallery SAMSUNG GALAXY NOTE 2
    By coralggs in forum Samsung Galaxy Note 2
    Replies: 0
    Last Post: 04-22-2014, 02:15 AM

Posting Permissions