Skip to content
  1. Sep 29, 2016
    • Tao Bao's avatar
      Handle the race condition when calling uncrypt services. · 794c8b0b
      Tao Bao authored
      We call uncrypt services to setup / clear bootloader control block (BCB)
      for scheduling tasks under recovery (applying OTAs, performing FDR).
      However, we cannot start multiple requests simultaneously. Because they
      all use the same socket (/dev/socket/uncrypt) for communication and init
      deletes the socket on service exits.
      
      This CL fixes the issue by a) adding synchronized blocks for the service
      requests; b) checking the availability of the socket before initiating a
      new one.
      
      Note that adding synchronized blocks to RecoverySystem doesn't help,
      because the calls could be made from different processes (e.g. priv-app,
      system_server).
      
      Bug: 31526152
      Test: FDR works while a priv-app keeps calling clear BCB.
      
      Change-Id: I95308989e849a9c98a9503ac509f2bc51ed3de19
      794c8b0b
  2. Sep 28, 2016
  3. Sep 27, 2016
  4. Sep 26, 2016
  5. Sep 24, 2016
  6. Sep 23, 2016
  7. Sep 22, 2016
Loading