That's not true. It's possible to manipulate file-like objects without ever touching the filesystem. BytesIO in Python for example ([0]).
I'm not an expert in Java Android, but I'm pretty certain there must be something like that.
I'm not an expert in Java Android, but I'm pretty certain there must be something like that.
You can't check chapter markers or frame counts because they are encrypted.You can't usually partially decrypt a file either.
Every time you want to read some data off flash, you read it then immediately decrypt it. Any time you want to write data to flash, you decrypt it first. Checking chapter markers or frame counts will be the same as before as long as you decrypt those bytes immediately after reading them from flash.
For the non-private media, just write it to storage straight away.