Skip to content
Snippets Groups Projects
  1. May 22, 2024
  2. May 14, 2024
  3. May 13, 2024
    • derek.li's avatar
      Fix Boot animation display issue on android 14 devices · 9231011c
      derek.li authored
      Use the size of limitSurfaceSize to set the window
      
      Bug: 339763174
      Test: 1. set the property:
      	    [ro.surface_flinger.max_graphics_height]: [1080]
          	[ro.surface_flinger.max_graphics_width]: [1920]
          2. Repeatedly Turn on/off while connecting to 4K TV and check the boot animation
      Change-Id: I378aab715d75b8ddb47068cb0e81503d83339021
      9231011c
  4. May 09, 2024
  5. Apr 05, 2024
    • Ronald Braunstein's avatar
      Migrating test options From TEST_MAPPING -> Android.bp · d9b0dc59
      Ronald Braunstein authored
      See parent cl: aosp/3028633
      
      Test: atest -p cmds/locksettings:postsubmit
      Test: atest -p services/core/java/com/android/server/locksettings:postsubmit
      Test: atest -p services/devicepolicy:postsubmit
      Change-Id: I6d0d0320e0bf8927f9b8b27b471ae58ace56124a
      d9b0dc59
  6. Apr 04, 2024
  7. Feb 28, 2024
    • Paul Lawrence's avatar
      Prevent error message on svc power reboot · 86b8d5e5
      Paul Lawrence authored
      With the changes to sys.powerctl this variable is no longer set on a
      power event - the power action is simply carried out. (This is to avoid
      possible DoS of these power functions.) However, this means that this
      property can no longer be read to see if a power event is happening.
      Since there is no longer a way of telling if a remote exception is real
      or not, best not to print out an error.
      
      Note that this bug occurs on some devices, not all. I was able to
      reproduce it reliably on a Pixel 7a, but not on a Pixel 7 or Cuttlefish.
      
      Bug: 318323013
      Test: adb shell svc power reboot
      
      Change-Id: Icbc1ec1b7882140d4d742b056ea2adaafae67ee9
      86b8d5e5
  8. Dec 05, 2023
    • Jeremy Meyer's avatar
      Handle 9patches being used for frros · deb46f31
      Jeremy Meyer authored
      This adds an api that allows creation of nine patch frros.
      We process them the same as aapt2 does so that
      when they are used at runtime they work correctly.
      
      API-Coverage-Bug: 314168567
      Test: manual and automatic
      Bug: 296324826
      Change-Id: I40da020189e9ec914fbea0c17f181209347d83de
      deb46f31
  9. Nov 22, 2023
  10. Nov 21, 2023
    • Harry Cutts's avatar
      uinput: support evemu recordings · 4ec6969f
      Harry Cutts authored
      evemu [0] is a system used by the wider Linux community to record
      sequences of evdev events and descriptions of the device that created
      them. Together with the evemu-record implementation added to
      frameworks/native, implementing support for evemu recordings in uinput
      gives us a system for event recording and replay that's compatible with
      other Linux systems.
      
      Since the format looks quite different from the existing JSON-style one,
      we can automatically detect which type of data is being passed in,
      instead of having to change the command-line interface.
      
      As part of the implementation, the Event.Bus enum is replaced with plain
      integers. This allows the tool to support new bus IDs that are added to
      Linux's input.h without code changes, at least for evemu files.
      
      [0]: https://gitlab.freedesktop.org/libevdev/evemu
      
      Bug: 302297266
      Test: replay recordings made using Android and FreeDesktop
            evemu-record implementations
      Change-Id: Ie2f969da24db9aa04037335d5b697cdc0db0b3ca
      4ec6969f
    • Pascal Muetschard's avatar
      Move counter producer off of vendor partition. · 342e37d2
      Pascal Muetschard authored
      Although the binary looks for a vendor provided shared library,
      it is an otherwise vendor agnostic tool. Moving it off the
      vendor partition also has the added benefit of it not requiring
      root to be run.
      
      Bug: b/273907878
      Test: manual
      Change-Id: I81726ffb7d96acef69b7b77c864be254be9a74c5
      342e37d2
  11. Nov 16, 2023
    • Harry Cutts's avatar
      uinput: pass Commands to Event.Builder.setCommand · 766ff01f
      Harry Cutts authored
      Parsing strings into enum values should be done by the parser, not the
      builder, and this means that the evemu parser will be able to pass
      properly typed values to setCommand rather than "magic" strings.
      
      Bug: 302297266
      Test: m uinput
      Change-Id: Icac5764a66025412c87c326280d1895f3da78cac
      766ff01f
    • Harry Cutts's avatar
      uinput: crash if device creation fails · e28db5f1
      Harry Cutts authored
      Previously the tool just carried on, with event injections being
      silently dropped, which isn't very obvious behaviour.
      
      Bug: 302297266
      Test: cause device creation to fail somehow, check the tool exits
      Change-Id: I94e931729339bff0f6fc7ab5b591f062043a1d7a
      e28db5f1
    • Harry Cutts's avatar
      uinput: report errors from configuration ioctls · 2bec9191
      Harry Cutts authored
      This came in useful when debugging the evemu support, and seems like
      something we should be checking anyway.
      
      Bug: 302297266
      Test: pass some invalid arguments (e.g. large numbers that aren't valid
            event codes) to the ioctls, check errors are logged
      Change-Id: Id3e32dad96c9db8819009b815ee2574ef63e96f7
      2bec9191
  12. Nov 15, 2023
  13. Nov 14, 2023
    • Harry Cutts's avatar
      uinput: improve Event.Builder API · 822e9c80
      Harry Cutts authored
      Rename setDuration and associated identifiers to make the units clearer,
      fix a typo in setInputport, and add some JavaDoc to clarify the
      structure of configuration arrays.
      
      Bug: 302297266
      Test: m uinput
      Change-Id: I9b9ae8970389da3cdfe06738883ef02ebf07ff77
      822e9c80
    • Harry Cutts's avatar
      uinput: use enum valueOf method · 55a23758
      Harry Cutts authored
      This makes the Command and UinputControlCode enums and the code to look
      up their values a little tidier.
      
      Bug: 302297266
      Test: atest CtsInputHostTestCases
      Change-Id: Iad98088b93dc1e1b72df1efbeb9010f78c6962e9
      55a23758
    • Harry Cutts's avatar
      uinput: move Event.Reader to its own file · 37e7df39
      Harry Cutts authored
      We'll shortly be adding a parser for a different file format (evemu),
      and having the different parsers in separate files will make the code
      nicer to navigate.
      
      In addition to moving it to a separate file, this CL renames Reader to
      JsonStyleParser to avoid confusion with Java's Reader classes, and
      replaces some switch statements with the new-style switch syntax to
      improve readability.
      
      Bug: 302297266
      Test: atest CtsInputHostTestCases
      Change-Id: Id6c7536a2caea3b61fac615dce071129bf4dc1e4
      37e7df39
  14. Nov 13, 2023
  15. Nov 08, 2023
  16. Oct 24, 2023
  17. Oct 23, 2023
  18. Oct 20, 2023
  19. Oct 16, 2023
  20. Sep 28, 2023
  21. Sep 22, 2023
    • Pawan Wagh's avatar
      Use readUniqueFileDescriptor in incidentd service · eb695e1f
      Pawan Wagh authored
      readFileDescriptor doesn't provide ownership of the fds. fdopen
      needs ownership of the fds. Fds read from parcel should be duped
      in this scenario and readUniqueFileDescriptor dups fds internally.
      
      Test: m incidentd_service_fuzzer && adb sync data && adb shell /data/fuzz/x86_64/incidentd_service_fuzzer/incidentd_service_fuzzer
      Test: atest incidentd_test
      Bug: 286931110
      Bug: 283699145
      
      Merged-In: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      Change-Id: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      (cherry picked from commit ba78ef27)
      eb695e1f
    • Pawan Wagh's avatar
      Use readUniqueFileDescriptor in incidentd service · 5ae8b810
      Pawan Wagh authored
      readFileDescriptor doesn't provide ownership of the fds. fdopen
      needs ownership of the fds. Fds read from parcel should be duped
      in this scenario and readUniqueFileDescriptor dups fds internally.
      
      Test: m incidentd_service_fuzzer && adb sync data && adb shell /data/fuzz/x86_64/incidentd_service_fuzzer/incidentd_service_fuzzer
      Test: atest incidentd_test
      Bug: 286931110
      Bug: 283699145
      
      Merged-In: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      Change-Id: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      (cherry picked from commit ba78ef27)
      5ae8b810
    • Pawan Wagh's avatar
      Use readUniqueFileDescriptor in incidentd service · 3904fb61
      Pawan Wagh authored
      readFileDescriptor doesn't provide ownership of the fds. fdopen
      needs ownership of the fds. Fds read from parcel should be duped
      in this scenario and readUniqueFileDescriptor dups fds internally.
      
      Test: m incidentd_service_fuzzer && adb sync data && adb shell /data/fuzz/x86_64/incidentd_service_fuzzer/incidentd_service_fuzzer
      Test: atest incidentd_test
      Bug: 286931110
      Bug: 283699145
      
      Merged-In: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      Change-Id: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      (cherry picked from commit ba78ef27)
      3904fb61
    • Pawan Wagh's avatar
      Use readUniqueFileDescriptor in incidentd service · 6fe75d9d
      Pawan Wagh authored
      readFileDescriptor doesn't provide ownership of the fds. fdopen
      needs ownership of the fds. Fds read from parcel should be duped
      in this scenario and readUniqueFileDescriptor dups fds internally.
      
      Test: m incidentd_service_fuzzer && adb sync data && adb shell /data/fuzz/x86_64/incidentd_service_fuzzer/incidentd_service_fuzzer
      Test: atest incidentd_test
      Bug: 286931110
      Bug: 283699145
      
      Merged-In: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      Change-Id: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      (cherry picked from commit ba78ef27)
      6fe75d9d
    • Pawan Wagh's avatar
      Use readUniqueFileDescriptor in incidentd service · db60b2f5
      Pawan Wagh authored
      readFileDescriptor doesn't provide ownership of the fds. fdopen
      needs ownership of the fds. Fds read from parcel should be duped
      in this scenario and readUniqueFileDescriptor dups fds internally.
      
      Test: m incidentd_service_fuzzer && adb sync data && adb shell /data/fuzz/x86_64/incidentd_service_fuzzer/incidentd_service_fuzzer
      Test: atest incidentd_test
      Bug: 286931110
      Bug: 283699145
      
      Merged-In: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      Change-Id: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      (cherry picked from commit ba78ef27)
      db60b2f5
    • Pawan Wagh's avatar
      Use readUniqueFileDescriptor in incidentd service · d28f10d8
      Pawan Wagh authored
      readFileDescriptor doesn't provide ownership of the fds. fdopen
      needs ownership of the fds. Fds read from parcel should be duped
      in this scenario and readUniqueFileDescriptor dups fds internally.
      
      Test: m incidentd_service_fuzzer && adb sync data && adb shell /data/fuzz/x86_64/incidentd_service_fuzzer/incidentd_service_fuzzer
      Test: atest incidentd_test
      Bug: 286931110
      Bug: 283699145
      
      Merged-In: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      Change-Id: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      (cherry picked from commit ba78ef27)
      d28f10d8
    • Pawan Wagh's avatar
      Use readUniqueFileDescriptor in incidentd service · 598dc664
      Pawan Wagh authored
      readFileDescriptor doesn't provide ownership of the fds. fdopen
      needs ownership of the fds. Fds read from parcel should be duped
      in this scenario and readUniqueFileDescriptor dups fds internally.
      
      Test: m incidentd_service_fuzzer && adb sync data && adb shell /data/fuzz/x86_64/incidentd_service_fuzzer/incidentd_service_fuzzer
      Test: atest incidentd_test
      Bug: 286931110
      Bug: 283699145
      
      Merged-In: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      Change-Id: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      (cherry picked from commit ba78ef27)
      598dc664
    • Pawan Wagh's avatar
      Use readUniqueFileDescriptor in incidentd service · 6fe53e86
      Pawan Wagh authored
      readFileDescriptor doesn't provide ownership of the fds. fdopen
      needs ownership of the fds. Fds read from parcel should be duped
      in this scenario and readUniqueFileDescriptor dups fds internally.
      
      Test: m incidentd_service_fuzzer && adb sync data && adb shell /data/fuzz/x86_64/incidentd_service_fuzzer/incidentd_service_fuzzer
      Test: atest incidentd_test
      Bug: 286931110
      Bug: 283699145
      
      Merged-In: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      Change-Id: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      (cherry picked from commit ba78ef27)
      6fe53e86
    • Pawan Wagh's avatar
      Use readUniqueFileDescriptor in incidentd service · b4aaf180
      Pawan Wagh authored
      readFileDescriptor doesn't provide ownership of the fds. fdopen
      needs ownership of the fds. Fds read from parcel should be duped
      in this scenario and readUniqueFileDescriptor dups fds internally.
      
      Test: m incidentd_service_fuzzer && adb sync data && adb shell /data/fuzz/x86_64/incidentd_service_fuzzer/incidentd_service_fuzzer
      Test: atest incidentd_test
      Bug: 286931110
      Bug: 283699145
      Merged-In: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      Change-Id: Ibe03a17dee91ac5bf25d123d4fd9c0bdd3c7d80e
      (cherry picked from commit ba78ef27)
      b4aaf180
  22. Sep 21, 2023
    • beatricemarch's avatar
      Add more BackupManagerMonitor events to PerformUnifiedRestoreTask. · 501eeee2
      beatricemarch authored
      In particular
      add events to cover
      -If this is KV or Full restore
      -For each package, when the restore started and when it ended
      -When a restore operation starts, if it is system restore or restore at install
      -Any errors
      
      Test: manual testing. Run `adb shell bmgr restore 1` and verify that the
      new restore events are added to the dumpsys
      atest CtsBackupHostTestCases, GtsBackupHostTestCases
      atest BackupManagerMonitorDumpsysUtilsTest,
      BackupManagerMonitorEventSenderTest, UserBackupManagerServiceTest,
      PerformUnifiedRestoreTaskTest, BmgrTest
      Bug: 290747920
      
      Change-Id: I0d221f10932fea3e8fb90a1827c7f1b5bf21d25d
      501eeee2
Loading