- Sep 22, 2023
-
-
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)
-
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)
-
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)
-
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)
-
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)
-
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)
-
- Jul 27, 2023
-
-
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
-
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
-
- Feb 23, 2023
-
-
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)
-
- May 24, 2022
-
-
Jayant Chowdhary authored
Since pids can belong to non hal processes as well, in theory. Bug: 233130219 Test: build Change-Id: I8ef6b2aaa871f6a8f992887a394d81c544e9cba4 Signed-off-by:
Jayant Chowdhary <jchowdhary@google.com>
-
- Apr 25, 2022
-
-
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
-
- Apr 20, 2022
-
-
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
-
- Apr 12, 2022
-
-
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
-
- Apr 05, 2022
-
-
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
-
- Apr 01, 2022
-
-
Ricky Niu authored
Because the resetUsbPort API modified to Asynchronous, related function need to be modified. Bug: 217369748 Signed-off-by:
Ricky Niu <rickyniu@google.com> Change-Id: Ieef549736532688ff356b4bb8fa790fb10403300
-
Ricky Niu authored
Implement resetUsbPort to support manual testing on real device to verify feature functionality from App layer and VTS test. Bug: 216387845 Test: Manual test with "svc usb reset UsbPort" correctly Signed-off-by:
Ricky Niu <rickyniu@google.com> Change-Id: Ieb29de3dd398859607490548a1f3a16f8359ae8f (cherry picked from commit 519062ea) Merged-In: Ieb29de3dd398859607490548a1f3a16f8359ae8f
-
- Mar 29, 2022
-
-
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
-
- Mar 18, 2022
-
-
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
-
- Mar 16, 2022
-
-
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
-
- Mar 10, 2022
-
-
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
-
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
-
- Mar 03, 2022
-
-
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
-
- Feb 23, 2022
-
-
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)
-
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
-
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
-
- Feb 20, 2022
-
-
Yi Kong authored
Test: presubmit Bug: 219872355 Change-Id: I74e5b38400060477f9d50b51b1f261ec6a181dd1
-
- Feb 17, 2022
-
-
Yi Kong authored
They are already under the same namespace. Test: presubmit Bug: 219872355 Change-Id: Ie09d529bc9d9f690feb5dba16fe174b89a14ee08
-
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
-
- Feb 16, 2022
-
-
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
-
- Feb 14, 2022
-
-
Mårten Kongstad authored
Bug: N/A Test: frameworks/base/cmds/idmap2/static-checks.sh Test: atest --host idmap2_tests Change-Id: I5cd8d512df188371d4b2096246e51effbcbc1a61
-
- Jan 25, 2022
-
-
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
-
- Jan 21, 2022
-
-
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
-
- Jan 19, 2022
-
-
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
-
Thomas Stuart authored
Bug: 210134615 Test: Unit + manual Change-Id: Ic350e4e45c0d1597c6f61e3e3e717b3a2c1bb099
-
- Jan 13, 2022
-
-
Ricky Wai authored
As the feature is not enabled yet, we should not throw exception and block all tests. We should show error message instead. Bug: 213442885 Test: atest android.os.storage.cts.StorageManagerTest#testCallback Change-Id: I9a46c9ed1aeb59d982ba3841943016bd7a357ac5
-
- Jan 12, 2022
-
-
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
-
- Dec 23, 2021
-
-
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
-
- Nov 22, 2021
-
-
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
-
- Nov 19, 2021
-
-
Keith Mok authored
clock_nanosleep will return 0 or error no directly. Bug: 207149564 Test: Build ok Change-Id: I15866728719d0672a16b4a76a8fd3be4d53d420a
-
- Nov 09, 2021
-
-
Yurii Zubrytskyi authored
Bug: 205633893 Test: n/a Change-Id: Ib9cf70c9acb200e8019a6522cb6a85f85b760651
-