Skip to content
Snippets Groups Projects
  1. Oct 12, 2023
  2. Oct 11, 2023
  3. Oct 10, 2023
    • Kyle Zhang's avatar
    • Jack Wu's avatar
      Merge changes from topic "stateOfHealth-public_api" into main · ba342a4a
      Jack Wu authored
      * changes:
        BatteryManager: make stateOfHealth a public api
        Add flag for state_of_health_public
      ba342a4a
    • Eric Biggers's avatar
      LockSettingsService: fix names of user lifecycle methods · 37ae2d50
      Eric Biggers authored
      Rename some methods to avoid confusion.  No change in behavior.
      
      Test: presubmit
      Change-Id: I9885c934be4f99cf556aa6fcfadb6f65faf30e52
      Merged-In: I9885c934be4f99cf556aa6fcfadb6f65faf30e52
      (cherry picked from commit decb4ee3)
      37ae2d50
    • Yi-Yo Chiang's avatar
      locksettings: Don't use AIDL V1 weaver · 0ed52ac4
      Yi-Yo Chiang authored
      V1 and V2 reports IWeaver.read() errors differently.
      V1 throws ServiceSpecificException wrapping an error code.
      V2 returns the error code in the output parcel.
      
      The current client code expects the weaver HAL to be V2 or newer,
      however it doesn't check if the actual service version is V2 or not.
      If the service is V1, then IWeaver.read() errors would become
      unhandled exception, crashing the system_server.
      Since Weaver AIDL V1 is broken and should never be used, don't use
      Weaver AIDL V1 services. This fixes a regression in Android 14 where
      AIDL V1 started being used when available.
      
      Bug: 296984182
      Bug: 296512452
      Test: Boot on old (tm) vendor
      Change-Id: I32306fb8473c655e68d89d63a1e4f00c8bb5d61f
      Merged-In: I32306fb8473c655e68d89d63a1e4f00c8bb5d61f
      (cherry picked from commit 048aaf42)
      0ed52ac4
    • Eric Biggers's avatar
      Reconnect if weaver service connection dies · 5f8125f5
      Eric Biggers authored
      For robustness reasons, reconnect to the Weaver service if it dies.
      This should not be relied on, but it's easy to do and is the same thing
      that LockSettingsService does for the Gatekeeper service.
      
      Bug: 287705522
      Test: Treehugger
      Change-Id: Ic06c45353c6b7282e2f22eef13ea1c6e36fe5c58
      Merged-In: Ic06c45353c6b7282e2f22eef13ea1c6e36fe5c58
      (cherry picked from commit 5b21e30b)
      5f8125f5
Loading