[guardian-dev] getting a native FD from my iocipher disk

Hans-Christoph Steiner hans at guardianproject.info
Wed Jul 17 20:18:46 EDT 2013


The file descriptor in IOCipher is not the same thing as a regular Java or
POSIX file descriptor.  The virtual disk is not actually mounted at all, that
would require root to do so.  So in order to see the virtual disk, you have to
access it thru the IOCipher classes.

IOCipher actually just uses the full path as the file descriptor, not an int
in POSIX.  You can pass around an IOCipher File object, but if the
MediaRecorder object needs to access the the file that the path points to, it
won't be able to since its in IOCipher and not in a mounted file system.

To make that MediaRecorder class work with IOCipher, there would need to be an
IOCipher version of that class, with all the java.io imports replaced by
info.guardianproject.iocipher imports, and the native code replaced with code
that can write to IOCipher, either Java or native.

.hc

On 07/17/2013 06:13 PM, Josh Steiner wrote:
> Hey,
> 
> Is there any way I can get a real FD from my IOCipher virtual disk?  For
> instance, in order to use the stock MediaRecorder object I either need a
> file path or a native FD, the object relies on native code to write to the
> file:
> 
> http://developer.android.com/reference/android/media/MediaRecorder.html#setOutputFile(java.io.FileDescriptor)
> 
> https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/media/java/android/media/MediaRecorder.java
> 
> Other suggestions welcome.
> 
> -Josh
> 
> 
> 
> _______________________________________________
> Guardian-dev mailing list
> 
> Post: Guardian-dev at lists.mayfirst.org
> List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
> 
> To Unsubscribe
>         Send email to:  Guardian-dev-unsubscribe at lists.mayfirst.org
>         Or visit: https://lists.mayfirst.org/mailman/options/guardian-dev/hans%40guardianproject.info
> 
> You are subscribed as: hans at guardianproject.info
> 

-- 
PGP fingerprint: 5E61 C878 0F86 295C E17D  8677 9F0F E587 374B BE81


More information about the Guardian-dev mailing list