How to add files to, and receive files from, Rhizome

Rhizome is the Serval Project's secure content distribution service.

This page describes the Android Permissions and Intents that Serval Mesh provides for other Android apps. This interface is deprecated, so apps should use the correct Rhizome API instead.

Adding a file to Rhizome

To add a file to Rhizome, an application must declare that it uses the permission:

org.servalproject.rhizome.ADD_FILE

The application must also declare that it uses the permission

android.permission.WRITE_EXTERNAL_STORAGE

as files added to Rhizome must be on the external storage of the device. The Serval Mesh software can only add to Rhizome files that are on the external storage of the device.

The RhizomeAddFileActivity of the Serval Mesh Sampler application provides sample code on how to add a file to Rhizome.

Important Note

Each time the same file is added to Rhizome, the manifest's version field must be incremented by at least 1.

Receiving a new file from Rhizome

To receive a new file from Rhizome, an application must declare that is uses the permission:

org.servalproject.rhizome.RECIEVE_FILE

The NewFileFromRhizomeReceiver in the Serval Mesh Sampler application provides sample code that shows how to extract the value from the intent.

The RhizomeReceiveFileActivity in the Serval Mesh Sampler application uses the receiver to display the string representation of the state.


Login