Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 2.13 KB

README.md

File metadata and controls

45 lines (34 loc) · 2.13 KB

Remote Inter-Component Communication -- RICCi reproducibility repository

This repository contains the RICCi code generator, code samples, energy readings, and collected metrics from the samples projects built both using RICCi and hand-written for the data exchange patterns copy, remote, and stream.

*- RICCi demos are based on the PigeonMessanger project available at https://github.com/deib-polimi/PigeonMessanger. *- In order to run the demos, you will need to use two Android devices with WiFi capabilities, as the demos use WiFi direct to communicate. *- RICCi's published work:

Installing

<service android:name="com.example.riccilib.ricci.services.BasicIntentService" />
  • Register RICCi's broadcast receiver
registerReceiver(new BasicIntentBroadcastReceiver(), filter);
  • Define how the RemoteIntent will be handled by the target application by calling one of the pre-implemented functions for either stream, copy, or remote and forward the generated Intent object to the RICCi service.
Intent intent = handleCopyIntent(data);
startService(intent);

  • With the previous steps in place and with two devices connected you should be able to send a RemoteIntent
RemoteIntent remoteIntent = new RemoteIntent(Intent.ACTION_PICK, Transfer.COPY);
remoteIntent.setData(ContactsContract.Contacts.CONTENT_URI);
remoteIntent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE);

Authors

  • Breno Dantas Cruz

Acknowledgments