Skip to content
Snippets Groups Projects
  1. Sep 22, 2023
    • 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
  2. Jul 27, 2023
    • Vova Sharaienko's avatar
      RESTRICT AUTOMERGE Make log reader thread a class member · 5a0f6c5b
      Vova Sharaienko authored
      pushedEventThread references class members after detaching. Making
      pushedEventThread as class member and joining in statsService
      destructor. Adding a method to stop readLogs thread.
      
      Ignore-AOSP-First: Bug is in still security triage and fuzzer is
      crashing on startup.
      Test: atest statsd_test
      Test: m statsd_service_fuzzer && adb sync data && adb shell
      /data/fuzz/arm64/statsd_service_fuzzer/statsd_service_fuzzer -runs=10000
      Bug: 285645039
      
      Change-Id: I1e886f9ccb7203714216da061c35e793b2a63d8a
      Merged-In: I1e886f9ccb7203714216da061c35e793b2a63d8a
      5a0f6c5b
    • Vova Sharaienko's avatar
      RESTRICT AUTOMERGE Make log reader thread a class member · 03de4e4f
      Vova Sharaienko authored
      pushedEventThread references class members after detaching. Making
      pushedEventThread as class member and joining in statsService
      destructor. Adding a method to stop readLogs thread.
      
      Ignore-AOSP-First: Bug is in still security triage and fuzzer is
      crashing on startup.
      Test: atest statsd_test
      Test: m statsd_service_fuzzer && adb sync data && adb shell
      /data/fuzz/arm64/statsd_service_fuzzer/statsd_service_fuzzer -runs=10000
      Bug: 285645039
      
      Change-Id: I1e886f9ccb7203714216da061c35e793b2a63d8a
      03de4e4f
  3. Feb 23, 2023
    • Manjeet Rulhania's avatar
      Rely on Display#getRealSize when dumping XML hierarchy · 74184991
      Manjeet Rulhania authored
      * Previously, the height returned by Display#getSize was used to
        determine visible objects. Based on the API level and the presence of system decorations (e.g. notches), this can cause objects near the
        bottom of the screen to be considered out of bounds (i.e. only objects
        within y=0 and y=partial_height are considered even if the omitted
        decorations are at the top of the screen). cherry pick from aosp/2384832
      
      Bug: 236669488
      Test: manual
      Merged-In: Iba21245c947cec0d0054f6d86e3585ba73233223
      Change-Id: I50f143528d1f5a5b677eb2628efbcd658f4cc1b0
      (cherry picked from commit afebeb7b)
      74184991
  4. May 24, 2022
  5. Apr 25, 2022
    • Lucas Dupin's avatar
      Try to load colors more frequently · bfd1812f
      Lucas Dupin authored
      During OTA, sysprops aren't available as early in the boot process.
      This causes the boot animation to not have dynamic colors.
      
      This CL tries to load the colors more frequently, at every part loop.
      Before we'd only try on the first frame of each animation part.
      
      Test: adb shell bootanimation
      Fixes: 229029861
      Change-Id: I1bbebf93b4fbc31d945c4181472576cf29f13bc7
      bfd1812f
  6. Apr 20, 2022
    • joenchen's avatar
      bootanimation: correct logo position and size after resolution changed · 85b339fb
      joenchen authored
      The resolution may be changed while the boot animation is playing.
      mInitWidth and mInitHeight store the original resolution, and then the
      animation coordinate and size are recalculated according to the ratio
      (mWidth/mInitWidth and mHeight/mInitHeight).
      
      Bug: 228605923
      Test: change resolution and then reboot to check the animation
      Change-Id: Id09490ecf7fc4b3e1a6baf073c134f357e9b327f
      (cherry picked from commit 764ea044)
      Merged-In: Id09490ecf7fc4b3e1a6baf073c134f357e9b327f
      85b339fb
  7. Apr 12, 2022
    • Tyler Gunn's avatar
      Add telecom log marking shell command. · 043bb30f
      Tyler Gunn authored
      We often get bugs where testers have executed a LONG list of test steps.
      It becomes extremely difficult to know where in the logs corresponds to
      which test script step.
      
      This adds a new telecom shell command:
      adb shell telecom log-mark Testing 1 2 3
      
      This command adds a USER_LOG_MARK event log item to all ongoing calls and
      to the general telecom logs with the specified message.
      
      Test: Tested using the new shell command to mark the telecom logs in and out of calls.
      Fixes: 228895073
      Change-Id: Ic11edc777e57a4fc8748a42c931379faf7cea671
      043bb30f
  8. Apr 05, 2022
    • Dave McCloskey's avatar
      Update LockSettingsCmd's showUsage method to defer to calling · 5a608433
      Dave McCloskey authored
      "locksettings help".
      
      This removes the duplication and also fixes the
      current behavior showing the incorrect documentation for "locksettings
      verify" which does *not* log in the user.
      
      Test: adb shell locksettings
      Test: adb shell locksettings clear --old 0000 (to verify other commands
      still work)
      
      Change-Id: I429288a9e4280d41213e1c0fd8234d3666888abc
      5a608433
  9. Apr 01, 2022
  10. Mar 29, 2022
    • Lucas Dupin's avatar
      Reload color sysprops after failing · cd25684a
      Lucas Dupin authored
      During OTA, sysprops aren't load as fast as during regular boot.
      This causes the animation to not be able to pick up the dynamic colors.
      
      We can mitigate this issue by trying to reload the sysprops at the
      beginning of each animation part.
      
      Test: manual
      Bug: 227381265
      Change-Id: I4397079aacc52acb5cda54a925f70e4f5c745b3f
      cd25684a
  11. Mar 18, 2022
    • Nikita Ioffe's avatar
      Add a way to instrument sdk sandbox processes · 99ba880e
      Nikita Ioffe authored
      The following restrictions applies to the instrumentation of the sdk
      sandbox processes:
      
      * Instrumentation must be signed with the same certificate as the client
        app the instrumented sdk sandbox belongs to.
      * If there is a running instance of to-be-instrumented sdk sandbox
        process, then it will be killed before the instrumentation starts.
      * While instrumentation is running the client app won't be allowed to
        connect to the instrumented sdk sandbox process.
      * The --no-restart instrumentation of the sdk sandbox processes is not
        supported.
      
      Bug: 209061624
      Test: atest SdkSandboxInprocessTests
      Change-Id: Ia4b145c091bf8da600a77ea82fc9e3cd97757275
      99ba880e
  12. Mar 16, 2022
    • Elliott Hughes's avatar
      Revert "Disable pointer authentication in app processes." · e1e57730
      Elliott Hughes authored
      Revert "Disable pointer authentication in app processes."
      
      Revert "[automerged blank] Disable pointer authentication in app..."
      
      Revert submission 16712509-sc-dev-I3030c47be9d02a27505bd4775c1982a20755758c-sc-v2-dev
      
      Reason for revert: PAC has shipped with S, and we're going with app compat outreach rather than regressing security.
      Reverted Changes:
      I3030c47be:Disable pointer authentication in app processes.
      I3030c47be:Disable pointer authentication in app processes.
      I84a696428:[automerged blank] Disable pointer authentication ...
      Ibc52deaf3:[automerged blank] Disable pointer authentication ...
      
      Change-Id: I7ebdfce99ef6387415eb21cd216344b8eaf64b61
      e1e57730
  13. Mar 10, 2022
    • Elliott Hughes's avatar
      Revert "Disable pointer authentication in app processes." · 90d4d604
      Elliott Hughes authored
      Revert "Disable pointer authentication in app processes."
      
      Revert submission 1954983-master-I3030c47be9d02a27505bd4775c1982a20755758c
      
      Reason for revert: PAC has shipped with S, and we're going with app compat outreach rather than regressing security.
      Reverted Changes:
      I3030c47be:Disable pointer authentication in app processes.
      I3030c47be:Disable pointer authentication in app processes.
      
      Change-Id: I75c4d2d3cf59aecf99d9c9d37c6750f999e74de8
      90d4d604
    • Pirama Arumuga Nainar's avatar
      Disable "-readability-duplicate-include" tidy warning in generated file · 8186f296
      Pirama Arumuga Nainar authored
      /buildbot/src/android/master-plus-llvm/out/soong/.intermediates/frameworks/base/cmds/idmap2/libidmap2_protos/android_arm64_armv8-2a_cortex-a55_static/gen/proto/frameworks/base/cmds/idmap2/libidmap2/proto/fabricated_v1.pb.h:34:1: error: duplicate include [readability-duplicate-include,-warnings-as-errors]
      
      Change-Id: I5da44b2714ce8455a4b8af7556decfc1c24c0d11
      Test: presubmit
      8186f296
  14. Mar 03, 2022
    • Yoshiaki Maruoka's avatar
      Add additional logs for bootanimation · 9ef19b85
      Yoshiaki Maruoka authored
      The information will be printed
       - Message if no animation file
       - File name when it's loaded
       - Image name and path, loop information when playing
       - Play time at the end
      
      Bug: 220161782
      Test: Manual, check logcat with and without bootanimation.zip
      Change-Id: I0e16bdeb4456a423649a27f7ae88f256e3fa3d19
      9ef19b85
  15. Feb 23, 2022
    • Tim Murray's avatar
      incidentd: fix race in waitpid_with_timeout · 2538e20d
      Tim Murray authored
      waitpid_with_timeout has a race between a child process exiting and
      the signal being blocked. Add an early waitpid to detect a child that
      exited quickly.
      
      Test: TH
      Bug: 215574756
      Change-Id: I6c7e9998d5b848c6144769f218fbcd7a0ee154bf
      (cherry picked from commit 1f3012d2)
      2538e20d
    • William Escande's avatar
      Forward `svc bluetooth` to "cmd bluetooth" · a9569665
      William Escande authored
      BluetoothShellCommand is now implementing the shell command
      Fix: 216233593
      Test: manual: adb shell svc bluetooth enable
      Test: manual: adb shell svc bluetooth disable
      
      Merged-In: Icbd0395624585d5a22663472b5897ed4518e2670
      Change-Id: Icbd0395624585d5a22663472b5897ed4518e2670
      a9569665
    • William Escande's avatar
      Forward `svc bluetooth` to "cmd bluetooth" · 3d43c234
      William Escande authored
      BluetoothShellCommand is now implementing the shell command
      Fix: 216233593
      Test: manual: adb shell svc bluetooth enable
      Test: manual: adb shell svc bluetooth disable
      
      Change-Id: Icbd0395624585d5a22663472b5897ed4518e2670
      3d43c234
  16. Feb 20, 2022
  17. Feb 17, 2022
    • Yi Kong's avatar
      idmap2: Remove redundant "using" statements · b0981d92
      Yi Kong authored
      They are already under the same namespace.
      
      Test: presubmit
      Bug: 219872355
      Change-Id: Ie09d529bc9d9f690feb5dba16fe174b89a14ee08
      b0981d92
    • Yurii Zubrytskyi's avatar
      [idmap] Add logging for the service start/stop · 280a4cfb
      Yurii Zubrytskyi authored
      As of now it's impossible to tell what happened or is happening
      to idmap2d - and that's the important thing in the bug. Adding
      some logging to help investigating it if it happens again
      
      Bug: 219393586
      Test: manual
      Change-Id: Ia6615f80d8a4b7ba94714f0af10e09ba9d709bb6
      280a4cfb
  18. Feb 16, 2022
    • Nikita Ioffe's avatar
      Add a flag to always do the cert signature check · 0b977ecd
      Nikita Ioffe authored
      Right now signature check is unconditionally bypassed on debuggable
      builds, which makes things a little bit confusing - instrumentation will
      succeed on debuggable build, but fail on the user build.
      
      Bug: 209061624
      Test: adb shell am --always-check-signature com.android.tests.supplemental.process/androidx.test.runner.AndroidJUnitRunner
      Change-Id: I66d6331156d4503e147141872cbe73a9330ea701
      0b977ecd
  19. Feb 14, 2022
  20. Jan 25, 2022
    • Peter Collingbourne's avatar
      Disable pointer authentication in app processes. · d2de7517
      Peter Collingbourne authored
      Unfortunately we have discovered that some applications in the wild
      are using PAC instructions incorrectly. To keep those applications
      working on PAC enabled devices, disable PAC in application processes
      for now.
      
      Bug: 212660282
      Change-Id: I3030c47be9d02a27505bd4775c1982a20755758c
      Merged-In: I3030c47be9d02a27505bd4775c1982a20755758c
      d2de7517
  21. Jan 21, 2022
    • Pirama Arumuga Nainar's avatar
      Fix Wbitwise-instead-of-logical introduced by clang-r445002 · bf3cc242
      Pirama Arumuga Nainar authored
      Bug: http://b/215753485
      
      frameworks/base/cmds/incidentd/src/WorkDirectory.cpp:283:38: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
                  report->set_all_sections(report->all_sections() | args.all());
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                  ||
      frameworks/base/cmds/incidentd/src/WorkDirectory.cpp:283:38: note: cast
      one or both operands to int to silence this warning
      
      Test: Build with new clang
      Change-Id: I8dc614e274c95f8941bf390cb68c60d0328bb31b
      bf3cc242
  22. Jan 19, 2022
  23. Jan 13, 2022
  24. Jan 12, 2022
    • Rafal Slawik's avatar
      Increase size limits · 1334f1a7
      Rafal Slawik authored
      Incidents contain traces with average size of 8 MB. We hit the upload
      size limit of 100 MB before the upload count limit of 50. Increase the
      size limit to 400 MB to upload more traces.
      
      Previous increase: http://ag/7695408
      
      Bug: 214244170
      Test: incidentd_test
      Change-Id: Iae2f856d375f126f23191d152e4a46243fa3f38f
      1334f1a7
  25. Dec 23, 2021
    • Josh Yang's avatar
      Change the bootanim time file location. · f95b2007
      Josh Yang authored
      This change moves the bootanim time file location from /data/system/time
      to /data/bootanim/time. This change helps us remove the access to
      system_data_file from bootanim.
      
      Bug: 210757252
      Test: Boot animation can show time. No SELinux violations.
      Change-Id: Ie61155f8976f3b8c6ad5ceac1826140c1455ad54
      f95b2007
  26. Nov 22, 2021
    • Thiébaud Weksteen's avatar
      Enable clock only when supported by product · 08de4439
      Thiébaud Weksteen authored
      In 9748086f, a detection for clock drifting was implemented. It relies on
      2 files that must be provided by the product
      (/data/system/time/last_time_change and
      /data/system/time/time_is_accurate). Generally, these files are not
      available which triggers an SELinux denial error message.
      
      Introduce a new property ("persist.sys.bootanim.clock.enabled") which
      can be set by a product to enable this feature (default is false). For
      future reference, it is not sufficient to only enable this property, the
      product must also provide the files described above (see
      BootAnimation::updateIsTimeAccurate).
      
      Bug: 62954877
      Test: lunch r11-userdebug && m
      Change-Id: Ia27e69547e3d898925029dc0c2be4ad717891c57
      08de4439
  27. Nov 19, 2021
    • Keith Mok's avatar
      Fix nanosleep in BootAnimation · 0f2e6686
      Keith Mok authored
      clock_nanosleep will return 0 or error no directly.
      
      Bug: 207149564
      Test: Build ok
      Change-Id: I15866728719d0672a16b4a76a8fd3be4d53d420a
      0f2e6686
  28. Nov 09, 2021
Loading