Skip to content
Snippets Groups Projects
  1. Jun 04, 2024
  2. May 31, 2024
  3. May 29, 2024
    • Julien Desprez's avatar
      Add FlickerTestsIme to platinum · 241a1efc
      Julien Desprez authored
      it's used in v2/android-platinum/suite/test-mapping-staged-platinum
      
      Change-Id: I87d9aff0dea6344908e44ed693730143f504dbf8
      Test: presubmit
      Bug: 341947105
      241a1efc
  4. May 25, 2024
  5. May 21, 2024
  6. May 17, 2024
  7. May 16, 2024
  8. May 07, 2024
    • Yan Yan's avatar
      Make VCN HSUM compatible · 43ee23b0
      Yan Yan authored
      Require VCN to be used by a "main user" instead of a "system user"
      since "system user" will no longer be a full user on HSUM devices
      
      Bug: 310310661
      Test: FrameworksVcnTests, CtsVcnTestCases on non-hsum and hsum devices
      Flag: android.net.vcn.enforce_main_user
      Change-Id: I5abfa7ba82055cd953083b1ab3f83e61bafd8a55
      43ee23b0
  9. May 06, 2024
    • Yan Yan's avatar
      Support disabling IPsec packet loss detector · ec173dea
      Yan Yan authored
      Allow disabling detector for better configurability
      
      Bug: 336638836
      Test: atest FrameworksVcnTests(new tests) && atest CtsVcnTestCases
      Flag: android.net.vcn.allow_disable_ipsec_loss_detector
      Change-Id: Icd7183d12fb287399a500ea9c0ee4125c749275c
      ec173dea
  10. May 03, 2024
  11. Apr 17, 2024
    • Yan Yan's avatar
      Check the existence of IpSecTransformState API with try catch · 0346207e
      Yan Yan authored
      IpSecTransformState is a new API that exposed from a mainline module.
      Ideally before SDK finalization, platform should check the API flag
      com.android.net.flags.ipsec_transform_state before calling the API.
      However the flag is defined in mainline module is not accessible from
      the platform. Thus previously a placeholder flag was used.
      
      This patch removes the usage of the placeholder flag. Instead the
      code will check the availability of the API with a try catch block
      
      Bug: 328844044
      Test: atest FrameworksVcnTests && atest CtsVcnTestCases
      Flag: NONE mainline API flag not accessible; using try catch
            block to gate the behavior
      Change-Id: Ibbcb14817a6d714cdc99cf0894f1fc935a602a2c
      0346207e
  12. Apr 15, 2024
  13. Apr 13, 2024
    • Yan Yan's avatar
      VCN: Ignore packet loss detection when there is too few traffic · 32637fbc
      Yan Yan authored
      When the expected received packet number is smaller than 10, the
      packet loss detection result will be ignored because the sample
      size is too small to ensure a reliable result.
      
      This patch also fixes the bug where the detector does not update
      ths packet loss threshold when carrier config updates
      
      Bug: 332598276
      Test: atest FrameworksVcnTests && atest CtsVcnTestCases
      Change-Id: Iccc47e83c48699d139029420572e2a2616c357cd
      32637fbc
    • Yan Yan's avatar
      VCN: Handle sequence number leap in packet loss detector · 6bc811da
      Yan Yan authored
      This pacth enables IPsec packet loss detector to handle the case when
      there is an intentional sequence number leap on the server's downlink.
      
      Previously the detector assumes that sequence number will always
      increase consecutively, which is not true. During load balancing the
      server might add a big leap on the sequence number intentionally. In
      such case a high packet loss rate does not always indicate a lossy
      network. At the same time, a low loss rate does mean the network is
      not lossy
      
      Bug: 332598276
      Test: atest FrameworksVcnTests (new tests) && atest CtsVcnTestCases
      Change-Id: I163cb274d293a305499fd60f7ad6eed394af5a4d
      6bc811da
  14. Apr 12, 2024
    • Yan Yan's avatar
      VCN: Refactor getPacketLossRatePercentage to return an object · 6b9f2df3
      Yan Yan authored
      Refactor getPacketLossRatePercentage to return an object instead of
      an integer. This is for extending the Packet Loss Detector's ability
      to handle inbound sequence number leap
      
      This patch does not include any behavior changes
      
      Bug: 332598276
      Test: atest FrameworksVcnTests && atest CtsVcnTestCases
      Change-Id: Ied42e581fb331ab0603225865236779f50cc4881
      6b9f2df3
  15. Apr 10, 2024
  16. Apr 09, 2024
  17. Apr 04, 2024
  18. Apr 03, 2024
    • Shrinidhi Hegde's avatar
      update package watchdog to perform mitigations after every reboot once threshold is reached. · 3c56021d
      Shrinidhi Hegde authored
      Since the bootloop is not for complete boot rather for  system-server
      restarts, we dont have to be as conscious about performing higher
      impact mitigations and we can perform them earlier. (Reboots
      initiated by user doesnt trigger a bootloop scenario.)
      
      Removed the increment boot count threshold needed between 2 mitigations.
      Also removed BOOT_LOOP_THRESHOLD(default value: 15) which was needed to
      perform any high impact mitigations.
      
      PackageWatchdog would wait for DEFAULT_BOOT_LOOP_TRIGGER_COUNT (default
      value: 5) after a reboot (ex: WARM_REBOOT step in rescue party, mainline
      rollback). Changed the behaviour to wait for DEFAULT_BOOT_LOOP_TRIGGER_COUNT
      only for first mitigation.
      
      MitigationCount was not getting reset properly after de-escalation
      window. Updated the logic to save mitigationCount to the file after reset.
      
      Did manual tests by killing system_server process using the following
      command:
      `adb shell kill -9 $(adb shell pidof system_server)`
      Verified that the first mitigation was performed at 5 restarts.
      Every restart after that resulted in next mitigation being executed.
      
      Ran `atest PackageEatcdogTest` to verify PackageWatchdogTest and
      CrashRecoveryTest changes.
      
      Test: Unit test, manual test
      Bug: 291137901
      Change-Id: Ia0174e0e5dca09c5d4e9d3a12909c5e5087b4dbf
      3c56021d
  19. Mar 27, 2024
  20. Mar 23, 2024
  21. Mar 22, 2024
  22. Mar 21, 2024
  23. Mar 20, 2024
  24. Mar 11, 2024
  25. Feb 26, 2024
  26. Feb 23, 2024
  27. Feb 16, 2024
  28. Feb 15, 2024
  29. Feb 14, 2024
  30. Feb 13, 2024
  31. Feb 08, 2024
    • Shrinidhi Hegde's avatar
      Rollback info API change. Added impact level to RollbackInfo. · d293fc8e
      Shrinidhi Hegde authored
      Rollbacks are currently stored only for some mainline packages, but
      rollbacks will be added for phonesky and GMS core in V. These new
      rollbacks should not be treated similar to mainline. We would want to
      perform GMS core rollback only when all other rescue party mitigations
      are already tried. And Phonesky should not be automatically rolled back.
      
      We introduce a new field rollbackImpactLevel to RollbackInfo, which is
      used to determine the order in which these rollbacks should be performed
      relative to other mitigations in PackageWatchdog.
      
      rollbackImpactLevel is exposed through PackageInstaller.SessionParams.
      
      Bug: 291135724
      Test: CTS test. Unit tests
      (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a3ae2464aac43d8bbc2129bdea7733d09b90e2da)
      Merged-In: I723405eb62577202893ff208af2ab01b212b112a
      Change-Id: I723405eb62577202893ff208af2ab01b212b112a
      d293fc8e
    • Motomu Utsumi's avatar
      Remove aconfig flags for Connectivity FlaggedAPI annotations · 1cd6cadb
      Motomu Utsumi authored
      Split flags.aconfig to platform flags and module flags.
      Platform flags are used from platform code.
      Module flags are used for FlaggedAPI annotations in modules.
      
      This CL cherry-pick ag/25977118 to aosp-main-future.
      After this CL, aosp/2919289 can be merged.
      
      Bug: 321624552
      Test: TH
      Change-Id: Ie8e0f911d0f7d7e81d108b8e8ab539b29a255ad0
      Merged-In: Ie8e0f911d0f7d7e81d108b8e8ab539b29a255ad0
      1cd6cadb
  32. Feb 07, 2024
    • Harshit Mahajan's avatar
      Mocking CrashRecoveryProperties in test · 9c0cfb1f
      Harshit Mahajan authored
      This test started failing as it was not able to access
      CrashRecoveryProperties. Mocking them in the test fixed it.
      
      Bug: b/323272250
      Test: atest PackageWatchdogTest:com.android.server.PackageWatchdogTest
      
      Change-Id: I6ec10adfc17cb85e1c370ff76d08c0aa7e14c11f
      9c0cfb1f
  33. Jan 31, 2024
    • Aditya Choudhary's avatar
      [DON'T BLOCK] Test ownership migration rules · b4262276
      Aditya Choudhary authored
      This CL is created as a best effort to migrate test targets
      to the new android ownership model. If you find incorrect or unnecessary
      attribution in this CL, please create a separate CL to fix that.
      
      For more details please refer to the link below,
      <add g3 doc link>
      
      Bug: 304529413
      Test: N/A
      Change-Id: Iee8a9d8357c174532902d88d5d59e41c6c518c2f
      b4262276
  34. Jan 30, 2024
    • Victor Hsieh's avatar
      Fix fs-verity API for secondary users · bbc133a2
      Victor Hsieh authored
      While the main fix is on the other change in the topic, this change:
       * Adjust to the installd API change by dropping userId in the call
       * Mark the test as suitable for secondary users
      
      Bug: 319280249
      Test: atest FsVerityTest
      Test: atest FsVerityTest --user-type secondary_user
      Merged-In: I1abc779ddc4fd79644d64b704698d0e7d67a9d75
      Change-Id: I1abc779ddc4fd79644d64b704698d0e7d67a9d75
      bbc133a2
  35. Jan 25, 2024
    • Motomu Utsumi's avatar
      Remove aconfig flags for Connectivity FlaggedAPI annotations · 4098ff51
      Motomu Utsumi authored
      Split flags.aconfig to platform flags and module flags.
      Platform flags are used from platform code.
      Module flags are used for FlaggedAPI annotations in modules.
      
      Bug: 321624552
      Test: TH
      Merged-In: Ie8e0f911d0f7d7e81d108b8e8ab539b29a255ad0
      Change-Id: Ic868b70b3be10d4e394f005cd55a858acc7ba14d
      4098ff51
Loading