Skip to content
Snippets Groups Projects
  1. May 28, 2024
    • Edward Savage-Jones's avatar
      Add missing newline in notification cmd usage · 9df37a58
      Edward Savage-Jones authored
      The help/usage text for the notification cmd is not wrapped
      correctly when displaying the 'allow_dnd' parameter.
      
      This was introduced in commit 08d381b8.
      
      Test: manual, run cmd notification and check the wrapping
      Change-Id: I9a7af1d9e3de91c9124f21eb66817bb73a3512be
      9df37a58
  2. May 25, 2024
  3. May 24, 2024
  4. May 22, 2024
  5. May 20, 2024
  6. May 17, 2024
  7. May 16, 2024
    • 张倞诚's avatar
      Fixed device restart caused by starting Activity under split-screen root task. · 2f5d3e9f
      张倞诚 authored
      The root task used for split screen contains two or more sub-tasks. In this case, the activity should not be allowed to be started under the root task, which will cause a null pointer and cause the device to restart. Therefore, when the activity is started by specifying the taskid, check that the task is leaftask.
      
      Change-Id: I095feb549ce2d3a4e61d999a342f64bea8264288
      2f5d3e9f
  8. May 15, 2024
    • Suprabh Shukla's avatar
      Use metered firewalls for metered uid policy · 68e9bc59
      Suprabh Shukla authored
      Since the underlying code in connectivity manager is moving to metered
      firewalls to denote the uid policy for metered restrictions, NPMS can
      start using them now.
      Rather than having a single PENALTY_BOX, we have separate firewalls for
      user and admin imposed restrictions. Once NPMS uses the appropriate
      firewalls for these, it does not need to separately convey the blocked
      reasons for metered restrictions on uids to the ConnectivityManager.
      
      Flag: com.android.server.net.use_metered_firewall_chains
      
      Test: atest FrameworksServicesTests:NetworkManagementServiceTest
      Test: atest FrameworksServicesTests:NetworkPolicyManagerTest
      Test: atest CtsHostsideNetworkPolicyTests
      
      Bug: 336693007
      Change-Id: I8da11ff663257d3dafcb5e22ae3313a9255ef0a6
      Merged-In: I8da11ff663257d3dafcb5e22ae3313a9255ef0a6
      68e9bc59
    • Fabien Sanglard's avatar
      Add vm name and version to am capabilities · 40a79783
      Fabien Sanglard authored
      This CL is part of the go/kddm project, to deprecate DDM protocol.
      HELO packet currently return the VM name and version, this CL allows
      to retrieves the same invo from a tool accessible from shell.
      
      The data is retrieved the same way it is retrieved in DdmHandleHello.
      handleHELO (System.getproperty).
      
      Test: NA
      Bug: go/kddm
      
      Change-Id: Id5cf9bf768f397bf3595e577f0da7a001b7ec394
      40a79783
    • 张倞诚's avatar
      Fix incorrect gid config leads to process/system cannot start. · a7d6c674
      张倞诚 authored
      We found that if the system application misconfigures the gid in the permissions, -1 will be added to the application's gid list, which will cause the application process or system startup to fail, so consider adding a check to prevent this unexpected situation.
      
      Change-Id: Ic3133067285ecfd9310b4bca56ff402180e7c2aa
      a7d6c674
  9. May 14, 2024
    • Divya Dubey's avatar
      Do not overwrite user set or live wallpapers · 5d602200
      Divya Dubey authored
      WallpaperUpdateReceiver unconditionally updates the wallpaper
      to the default_wallpaper when DEVICE_CUSTOMIZATION_READY is
      received.
      
      This overwrites live wallpapers and user set wallpapers.
      Just clear the wallpaper when there is no live wallpaper to
      avoid this from happening.
      
      Test: set a wallpaper and run
      adb shell am broadcast \
        -a android.intent.action.DEVICE_CUSTOMIZATION_READY \
        -f 0x01000000
      
      Bug: 159673283
      Change-Id: I385c28be84b9146e8620910258495f5d71b9c04e
      5d602200
    • guangkui.ren's avatar
      Fix potential crash issue in NonRequiredPackageDeleteObserver · 43d93da7
      guangkui.ren authored
      mLatch.notifyAll() will not help wake the thread which is blocked by
      mLatch.await, instead, it will cause system server crash.
      
      So, mark state as failed if any package is failed to be deleted, and let
      mLatch.countDown work until it comes to 0 and wake the thread blocked by
      await.
      
      Bug: 333845008
      Change-Id: Ida1c3c128ddef376aaaacda1358717d0d4e9ca8b
      43d93da7
    • xialei6's avatar
      [Bugfix] Fix the issue where the spatializer available status could not be updated · 3a8f2e01
      xialei6 authored
      
      When a device (such as a projection device) is connected, the spatializer available status should be updated regardless of whether this feature is turned on or not. Because other functions (such as the spatializer UI switch) need to change according to the spatializer available status.
      
      Change-Id: I43d6d5d0ea4d69a0d4559390dcf34885b96bc488
      Signed-off-by: default avatarxialei6 <xialei6@xiaomi.com>
      3a8f2e01
  10. May 13, 2024
  11. May 11, 2024
  12. May 10, 2024
    • Shrinidhi Hegde's avatar
      Update rollback reason in logging. · fcbc9671
      Shrinidhi Hegde authored
      Noticed that Rollback reason during boot loop was getting logged and
      unknown because of a missing reason to string map. Updated that.
      
      Test: manual
      Bug: 291137901
      Change-Id: I2ea6206d07099a413aeeca464e0d1ebd97c04840
      fcbc9671
    • liutianxiang's avatar
      audio: add USAGE_UNKNOWN to mediaActive condition · 1bd69280
      liutianxiang authored
      
      1.If an app play media but the usage of attributes is unknown, musicActivecheck should be started.
      2.USAGE_UNKNOWN default value is MEDIA.
      3.Otherwise, the mMusicActiveMs will not increase for safe volume when above safe volume.
      4.Users listen to music until 20 hours later but the volume does not drop.
      
      Change-Id: I5f84b2c6376b283376d65d398e880a8716c98f59
      Signed-off-by: default avatarliutianxiang <liutianxiang@xiaomi.com>
      1bd69280
    • 张倞诚's avatar
      Support dumping according to package name in the PermissionService · 8c717188
      张倞诚 authored
      Package name is more commonly used than appid, so we hope to support obtaining permission and appop status based on package name.
      
      Change-Id: I4f0e9bcb979132d99222cadaf306034bf58e092a
      8c717188
  13. May 09, 2024
    • Alexei Nicoara's avatar
      Update OWNERS · 65ff85f1
      Alexei Nicoara authored
      Bug: 335982533
      Change-Id: I975641f193917101645cfcf2b78e198801c59a2c
      65ff85f1
    • Harshit Mahajan's avatar
      Fix RescuePartyTest · 00e50067
      Harshit Mahajan authored
      Disable flags in old test, these could be removed during flag cleanup
      
      Bug: 333720513
      Test: atest RescuePartyTest
      Change-Id: If659c702e3348c1c814f922f55d97776b99f2ff8
      00e50067
    • lijilou's avatar
      AppDataHelper:fix ArrayIndexOutOfBoundsException happen in fixAppsDataOnBoot... · 5d3eb229
      lijilou authored
      AppDataHelper:fix ArrayIndexOutOfBoundsException happen in fixAppsDataOnBoot method due to forget add lock.
      
         from the code:
          @GuardedBy("mPm.mInstallLock")
          void reconcileAppsDataLI(String volumeUuid, int userId, @StorageManager.StorageFlags int flags,
                  boolean migrateAppData) {
              reconcileAppsDataLI(volumeUuid, userId, flags, migrateAppData, false /* onlyCoreApps */);
          }
          we should call the  reconcileAppsDataLI method by mPm.mInstallLock.
      
      Bug: 338600619
      Change-Id: I05f8aa84d71d5083c27427e3a9957b456ac57ce4
      5d3eb229
  14. May 08, 2024
  15. 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
    • Deeraj's avatar
      AudioService: Register MASTER_BALANCE/MONO observer for all users · 1eb5088a
      Deeraj authored
      Audioservice register content observer for MASTER_BALANCE/MONO at the time of initialization/boot up. Registration by default is only applicable for current user which in this case is primary user.
      So even when audio balance/mono changes for secondary user, the callback
      won't be received in audioservice and hence the settings update won't
      have any effect on the audio output.
      
      Bug: 339131898
      Test: manual
      - Validated that audio output balance and mono varies based on the settings in the secondary user
      - atest AudioManagerTest
      - atest AudioServiceTest
      
      Change-Id: Ifce17d23e0dd0af61d6e27de7c7da629e9480e77
      1eb5088a
  16. 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
  17. May 04, 2024
  18. May 03, 2024
  19. May 02, 2024
    • Tim Yu's avatar
      Add Autofill OWNERS · a506bf80
      Tim Yu authored
      To services/tests/servicestests/src/com/android/server/autofill
      
      Change-Id: Ibcd6798627dc3506e4ef4ed690daf5c4e90c53d1
      Test: n/a
      Bug: n/a
      a506bf80
    • Dominic Lemire's avatar
      HDMICEC: handle hdmi_control help command · a233e553
      Dominic Lemire authored
      The onHelp function is supposed to be invoked (by handleDefaultCommands)
      for the "help" command (in addition to the null command).
      
      Bug: 338392163
      Test: adb shell cmd hdmi_control help
      Change-Id: I1a6743ba793493322e9ccafff2861d4418ba4d7c
      a233e553
  20. May 01, 2024
    • ot_chenqi.c's avatar
      Fix unbind service error for MusicFxHelper · a3431c7b
      ot_chenqi.c authored
      Unbinding an unbound service will cause an exception,
      for example: service not registered: com.android.server.audio.MusicFxHelper.
      
      Bug: 332454067
      Test: run MTBF test and no crash
      Test: MusicFx panel enable/disable
      Test: atest com.android.server.audio.MusicFxHelperTest
      
      Change-Id: Ic519221b2bb7d28e5378a995519f8b3269d03c70
      a3431c7b
  21. Apr 30, 2024
    • Ronald Braunstein's avatar
      Fix test-suite for test_module_configs · cffaa00f
      Ronald Braunstein authored
      With upcoming changes, test_module_config modules need to live in
      the same test-suite as their base, in this case FrameworksServicesTests.
      It lives in device-tests, so the derived tests should as well.
      
      In the future we can migrate to general-tests if that makes more sense.
      FYI: b/149420197 has some context on the difference.
      
      Test: mm
      Test: atest FrameworksServicesTests_contentprotection
      Change-Id: I8358e2b026eea4b8fe449e9c51d13ea5623389a1
      cffaa00f
    • Ellen Arteca's avatar
      Revert "Wipe the LockscreenCredential in DPMS#resetPasswordInternal" · a0ab1d43
      Ellen Arteca authored
      This reverts commit eec02e9f.
      
      Reason for revert: Investigating b/338122208, this CL causes an error.
      
      Change-Id: I7bb87951011d6bda957efc776bb67bb938d8cdb5
      a0ab1d43
Loading