1. 09 Apr, 2019 13 commits
  2. 08 Mar, 2019 2 commits
    • spiiroin's avatar
      [dbus] Add Qt specific annotation to usb-moded Introspect XML · ee7f6b99
      spiiroin authored
      Attempting to generate code from usb-moded introspect data with
      qdbusxml2cpp fails because "a{sv}" is by design mystery to it.
      
      Add annotation to tell qdbusxml2cpp that "a{sv}" is QVariantMap.
      
      And add couple of missing "\n" chars while at it.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      ee7f6b99
    • spiiroin's avatar
      [dbus] Expose dynamic mode configuration on D-Bus. JB#43928 · 57f8c996
      spiiroin authored
      When usb-moded causes network interfaces to be brought up/down, firewall
      rules should be adjusted accordingly. However currently there is no way
      for connman to know which interface changes might be related to for
      example developer mode activation.
      
      Expose dynamic usb mode configuration (attributes relevant to connman)
      on D-Bus.
      
      Broadcast a signal whenever target mode changes (mode transition begins,
      or fallback mode gets activated due to mode transition errors).
      
      Also provide a method call for querying the current target configuration.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      57f8c996
  3. 21 Feb, 2019 3 commits
    • spiiroin's avatar
      [usb-moded] Normalize backend startup/cleanup functionality · 97107d13
      spiiroin authored
      Use backend_init() and backend_quit() functions for settings up and
      cleaning up all backends.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      97107d13
    • spiiroin's avatar
      [configfs] Make control details configurable. JB#44679 · 9ae49bb2
      spiiroin authored
      Configfs support was orginally developed in Sony XA2 context. Now it turns
      out some details need tweaking to make it work with other devices.
      
      Make location of configfs control file hierarchy, configuration and
      functions to use tweakable via usb-moded configuration files.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      9ae49bb2
    • spiiroin's avatar
      [settings] Do not write dynamic data to /etc. Fixes JB#38241 · 0e9f72cb
      spiiroin authored
      While combining all configuration data into /etc/usb-moded/usb-moded.ini
      works as expected when new configuration files are installed to the device,
      it also means that 1) uninstalling / updating configuration files has no
      effect and 2) /etc can't reside on a read-only file-system.
      
      Maintain "delta to static configuration" and store it outside /etc - in
      /var/lib/usb-moded/usb-moded.ini, so that also changes in / removal of
      existing configuration files are handled in deterministic manner.
      
      If /etc/usb-moded/usb-moded.ini exists, migrate data from it and then remove
      the now unnecessary file.
      
      Streamline handling of non-existing configuration and remove functions made
      redundant in the process.
      
      Note: The "read from filesystem on each setting access" is retained for now
      to avoid regression is situations where such behavior might be expected.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      0e9f72cb
  4. 20 Feb, 2019 2 commits
  5. 07 Feb, 2019 1 commit
    • spiiroin's avatar
      [dbus] Add target mode signaling. JB#44479 · 87936ffc
      spiiroin authored
      Some transitions such as activating mtp mode can take so long that giving
      user feedback becomes necessary. However as usb-moded exposes only what
      has happened, there is no reliable source of information for what is
      going on.
      
      Also, the "sig_usb_state_ind" D-Bus signal is used for transmitting both
      mode change notifications and transient events - which is confusing and
      can cause problems if new signals are ever added as there is no backwards
      compatible ways to tell apart mode names from event names.
      
      Add dbus query / change notifications for target mode. The target mode
      is changed before starting mode transition, so that processes listening
      to signals from usb-moded know what kind of transition is happening when
      the current mode changes to "busy".
      
      Add separate dbus signals for mode changes and events. The legacy
      "sig_usb_state_ind" is retained as-is for the sake of backwards
      compatibility.
      
      Also synchronize the content of D-Bus Introspect xml data provided as
      a file in development package and made available at runtime via D-Bus
      method call.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      87936ffc
  6. 13 Nov, 2018 3 commits
  7. 12 Sep, 2018 1 commit
  8. 05 Sep, 2018 15 commits