1. 24 Aug, 2018 4 commits
    • spiiroin's avatar
      [android] Normalize numerical id-values to lower case hex. JB#41748 · 18efbfcc
      spiiroin authored
      Configfs wants to have numbers in '0xbeef' form while android usb wants to
      have 'beef'. Normalizing the output to expected format allows either form
      to be used in usb-moded configuration files.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      18efbfcc
    • spiiroin's avatar
      [android] Refactor android usb handling module. JB#41748 · 4f9ffa6d
      spiiroin authored
      Make it logically match what is available in configfs module.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      4f9ffa6d
    • spiiroin's avatar
      [usb_moded] Drop --android-bootup-function option. JB#41748 · 4f53cf48
      spiiroin authored
      The target is to always have android usb enabled with valid function, so
      this workaround is not relevant anymore.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      4f53cf48
    • spiiroin's avatar
      [usb_moded] Add configfs support. Fixes JB#42083 · 692c2cb3
      spiiroin authored
      Add custom Makefile for faster smoke-test rebuilds without spending time
      in configure, autotools, document generation and/or rolling rpm packages.
      
      Add multiple include protection to all header files.
      
      Move function prototypes away from header files that included in the
      development package.
      
      Mass rename functions to have a prefix giving context for the function.
      For the most part the prefix is derived from the name of the compilation
      module containing the function.
      
      Mass normalize indentation to four spaces in all source files.
      
      Augment author lists on each source file based on git committers.
      
      Remove "inline" attributes from not-really-inlineable functions.
      
      Remove .gitignore.
      
      Remove unused modules-android.c source file.
      
      Define _GNU_SOURCE for whole build rather than in individual files.
      
      Fix resource leaks here and there.
      
      Try to avoid hard-coding android usb paths.
      
      Add configfs backend for usb cadget configuration.
      
      Probe supported backends (configfs, android usb, or kmod) on usb-moded
      startup and make them mutually exclusive with each other.
      
      Allow configfs and android usb control structures some time to show up
      if usb-moded is started during device bootup.
      
      Refactor udev event listener to utilize a state machine. Simplifies
      book keeping and makes pc/charger detection heuristics easier to control.
      
      Refactor mode selection to utilize three interconnected mini state machines.
      Allows separating logically wanted mode from mode programmed to usb and
      mode exposed over D-Bus.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      692c2cb3
  2. 05 Jun, 2018 1 commit
  3. 08 Mar, 2018 1 commit
    • spiiroin's avatar
      [android] Do not require android configuration block. Fixes JB#41303 · 7a2607c1
      spiiroin authored
      Usb-moded does android usb initialization only if there is a non-empty
      configuration block in the ini-files. This does not make sense anymore
      as the values defined in the config file are used as fallback solution
      if required data can't be obtained by other means.
      
      If android_usb specific sysfs controls are present on the device, try
      to initialize them regardless of whether ubs-moded configuration files
      contain relevant information or not.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      7a2607c1
  4. 26 Apr, 2017 1 commit
  5. 07 Jul, 2016 1 commit
  6. 05 Nov, 2015 1 commit
  7. 11 Nov, 2014 1 commit
  8. 20 Sep, 2013 1 commit
  9. 19 Sep, 2013 1 commit
  10. 11 Sep, 2013 1 commit
  11. 23 Aug, 2013 1 commit
  12. 22 Aug, 2013 1 commit
  13. 14 Aug, 2013 2 commits
  14. 07 Aug, 2013 1 commit
  15. 02 Aug, 2013 2 commits