Skip to content
bulutmf edited this page Apr 20, 2012 · 5 revisions

C2DM Messages are sent through JSON object where message key contains the following values that are currently supported by the PhoneLab app:

{     
   message:"new_manifest"
   metadata:   
   {   
      ...   
   }    
}
  1. new_manifest: Phone fetches the manifest from the server
  2. get_device_info: Phone sends a JSON object including all the applications and status monitor parameters
  3. uninstall_all_apps: Uninstall all the apps on the phone
  4. remove_manifest: Remove the manifest on the device
  5. start_status_monitoring: Start the Status Monitoring
  6. stop_status_monitoring: Stop the Status Monitoring
  7. start_periodic_checking: Start periodic checking of the status of Status Monitoring/Logger Service/Transfer of Log files etc.
  8. stop_periodic_checking: Stop the periodic checking
  9. remove_logcat_pid: Remove the log cat from phone's database. New one will be created afterwards.
  10. set_status_monitor_location_provider: Set the location provider for status monitoring. metadata should include "type" as a key and values as "network", "gps" or "both".

Clone this wiki locally