guardianproject / IOCipher

make non-root mountable encrypted disk shares
GNU Lesser General Public License v3.0
139 stars 44 forks source link

First pass at basic i/o implementation #3

Closed Ramblurr closed 12 years ago

Ramblurr commented 12 years ago

This commit pulls in a minimal set if java.io.* classes from the android source. It also pulls in the required implementation files. Strategic commenting out and import replacements ensures that this compiles.

The java.io.* package and the associated libcore.io.* classes do much more than pure file i/o (e.g., sockets, pipes). I commented out much of that which we don't need (marked with the "needed?" TODO). If we decide we don't need much of that, we can delete it. Additionally, we can also probably delete the many stub Struct* classes

I also commented out some bits that we need to decide if we want to implement (marked with the "implement" TODO).

Finally, if we decide we don't want the BlockGuardOs functionality (see Libcore.java) we can get rif of the Os->SqlFsPosix abstraction later.

minimal set from java.io.*:

Implementation helpers:

n8fr8 commented 12 years ago

Great progress. Eager to review, so will take a look as soon as I can.