summaryrefslogtreecommitdiff
path: root/cmds
AgeCommit message (Collapse)Author
2025-04-04dumpstate: Emit cgroup configuration T.J. Mercier
This file contains: * A list of all controllers * The version for each controller * Whether each controller is enabled or not * The total number of cgroups for each controller Bug: 406851260 Test: adb bugreport br.zip # Check inside for /proc/cgroups contents Flag: NONE Fails gracefully even if file doesn't exist / can't be accessed (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:661d07c035324343c159ff05b328ef132f075ce2) Merged-In: I0dce60b73db4d0b366e71892e0c0f1bb1fcc4ca0 Change-Id: I0dce60b73db4d0b366e71892e0c0f1bb1fcc4ca0
2025-03-18Merge "atrace.rc: remove mm_events support" into main am: d16c47b2ed am: ↵ Treehugger Robot
fd85121ac4 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3548185 Change-Id: I76ec7ca9d67100cc698f675f0aba27e509ba602b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-18atrace.rc: remove mm_events support Ryan Savitski
See r.android.com/3544832 for context. Bug: 183037386 Change-Id: Ib7ab94de464fcd8190f9a048a48e2e31ec39a8e1
2025-03-17Harden construction sites of android::StrongPointer in frameworks/native Anton Ivanov
Test: presubmit Flag: EXEMPT refactor Bug: 393217449 Change-Id: I25857739af659a52d2e33fc0e05799959f4024ab
2025-03-06REmove AdoptableHostTest from TEST_MAPPING Julien Desprez
That entry doesn't match any Android.bp so it executes nothing. This was notified before via b/155715039 This CL simply clean the invalid entry. Flag: TEST_ONLY Test: presubmit Bug: 401287460 Change-Id: I24fd3b0154b891eddaf573fcc7d145bfbd7dff61
2025-03-05Merge "Provide better default screenshot" into main Kunduz Baryktabasova
2025-03-04Provide better default screenshot Kunduz
Flag: EXEMPT minor bugfix Test: manual test BUG=371951936 Change-Id: I396d29b235b6c3a4312eb0b2f80dbddbe8ca8b87
2025-03-04Merge "Remove IVibrator HIDL dependencies from idlcli" into main Lais Andrade
2025-02-28Remove IVibrator HIDL dependencies from idlcli Lais Andrade
Android Q is now no longer supported for launching or upgrading devices in Android V so the vibrator HIDL HAL versions no longer needs to be supported by the platform. Bug: 308452413 Test: manually using the command line Flag: EXEMPT internal command line tools Change-Id: I5ac0d7d895996d095f990e3b78d9c80e73bcaf97
2025-02-26Merge 25Q1 (ab/12770256) to aosp-main-future Xin Li
Bug: 385190204 Merged-In: I0fb567cbcca67a2fc6c088f652c8af570b8d7e53 Change-Id: Iaae8cd491ff963cf422f4b19c54be33e1244a9a1
2025-02-25BufferQueues: clean up constructors for GLConsumer and CpuConsumer Jim Shargo
These currently use flags that muddy up client code. We've added nice new *::create methods, so lets use those and clean things up. BYPASS_IGBP_IGBC_API_REASON=warren buffers Bug: 398822412 Flag: EXEMPT refactor Test: builds, presubmit Change-Id: If86b22a6ddaed044afdaa06a2e2fb1c7a79ba941
2025-02-14dumpstate: attach more than 1 trace to BR Primiano Tucci
perfetto now allows stopping multiple ongoing traces by using `--save-all-for-bugreport`. This change serializes all the traces, not just the main one, in the BR. Bug: 321196572 Flag: perfetto.flags.save_all_traces_in_bugreport Test: atest dumpstate_smoke_test -- --test-arg com.android.tradefed.testtype.GTest:native-test-flag:"--gtest_filter=DumpstateTracingTest*" Change-Id: Ibf6e2c7d9620f49cd50a49716586b9b29c94e6a7
2025-02-12Merge "Update otapreopt_script to support Async Pre-reboot Dexopt." into ↵ Jiakai Zhang
main am: cf5a4f1855 am: 46f66ef83c Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3465700 Change-Id: I03965b61500094e3821476f7c10d10aec5760be3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-12Update otapreopt_script to support Async Pre-reboot Dexopt. Jiakai Zhang
Bug: 377557749 Test: - 1. system/update_engine/scripts/update_device.py out/dist/$TARGET_PRODUCT-ota-$USER.zip 2. adb shell cmd jobscheduler run android 27873781 Change-Id: I4fc7c4a08516bc48a69cfe7e01402838b27dfdea
2025-02-05SF: Turn DisplayId::fromValue to an explicit wrapper Gil Dekel
Currently, fromValue() would run a tryCast() check before returning an object, otherwise returning a nullopt. This is now an issue because tryCast() is reading the bits in the ID value, which is something we are trying to eliminate. Remove the tryCast() checks from fromValue(), thus relaxing it and turning it into a simple wrapper. Since fromValue() can no longer fail, make it always return the requested type. It is now up to SF to validate given DisplayIds via its different APIs. Flag: com.android.graphics.surfaceflinger.flags.stable_edid_ids Bug: 393193354 Test: Display{Id | Identification}Test && libsurfaceflinger_unittest Change-Id: I0858567a1769bd94609919bd64bc471f4310ae55
2025-01-22Merge "installd: fix build with ToT LLVM" into main am: d2e8444c88 am: ↵ Treehugger Robot
f4d3fb18ad Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3460493 Change-Id: I700dc80b92dd3d5e76738549fc7765a8ae6885c6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-23installd: fix build with ToT LLVM Yi Kong
Fixes: frameworks/native/cmds/installd/otapreopt_chroot.cpp:176:17: error: use of undeclared identifier 'CLONE_NEWNS' 176 | if (unshare(CLONE_NEWNS) != 0) { | ^ Test: presubmit Change-Id: I66251394098c4d70ce5cb09082fa707a7f8539c5
2025-01-20Merge "Enable searching for mounted public volumes under any user" into main ↵ Treehugger Robot
am: 52b4e75352 am: 8ebdab5e97 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3431354 Change-Id: I6fc5ba981ae8261e148bc519dad51fb7ef3767f0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-20Merge "Enable searching for mounted public volumes under any user" into main Treehugger Robot
2025-01-20Enable searching for mounted public volumes under any user Samuel Johnson
Currently, InstalldNativeServices when collecting mounted storage to invalidate, only looks for mounts under /mnt/pass_through/0. This means that public volumes mounted under users that aren't user 0 are never collected. This change ensures that all of these public volumes are collected by checking for /mnt/pass_through/0/emulated and for /mnt/pass_through/x/UUID, where x is an integer greater than or equal to 0 and UUID is of the format HHHH-HHHH, H being any uppercase letter or a digit. In this change, the regex checks for /emulated only under user 0 because /mnt/pass_through/x/emulated/10 points to the same thing regardless of the value of x, so only checking under user 0, which is always mounted, prevents killing the same mount twice. Test: atest ExternalStorageHostTest Fixes: 299996244 Flag: EXEMPT refactor Change-Id: Icb4fca7213f9e656594625a83ba16a7ffc8251fe
2025-01-17Merge "Remove device-side printflags from dumpstate" into main am: ↵ Ted Bauer
d17f9c4be5 am: ca731ffff7 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3455499 Change-Id: I04992cd8ed99e86a7fbfb007c09b19d37648eeae Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-16Remove device-side printflags from dumpstate Ted Bauer
To report device flag values, we are using aflags list, which shows up in the bugreport under ACONFIG FLAGS DUMP. Remove to avoid redundant information. Change-Id: Ie7d1676f60cbbbf4d190c0e46da0649da35d943b Test: m Bug: 388777619
2025-01-13Merge "dumpstate: notes on usage" into main am: cbd1764034 am: 77f0c5506d Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3446594 Change-Id: I64d356bbfc983ec1ac2cbf93bb01f6a62637bfad Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-10dumpstate: notes on usage Steven Moreland
This is what a few old maintainers of dumpstate told me when I made changes to it back ~2016 or so: always exec stuff, never link it. Well, there have been quite a few divergences from this, and it's come up in a couple of reviews I've seen here. So, I've added notes on this into the readme and comments on some of the worst offender. For instance, we could have probably avoided a lot of this async/exec logic for these custom cases if we used the standard run command with timeout stuff. Bug: N/A Test: N/A Change-Id: I4c33f3042ca16d4433082b8d78ebdd29cb75f0b3
2025-01-09Merge "[native] Restore ServiceManager#checkService() to return IBinder" ↵ Alice Wang
into main am: 87a06b7f8a am: 89b506d0ad Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3431862 Change-Id: I7d2f4d6f1a503ca36bfad683e188a6210294083c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-09Merge "[native] Restore ServiceManager#checkService() to return IBinder" ↵ Alice Wang
into main
2025-01-08Merge changes from topic "aidl-partition-check" into main am: 4ac78a180d am: ↵ Steven Moreland
86b835d349 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3440648 Change-Id: Id61670f359cda566ea11f692446e2de43f1794c1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-08Merge changes from topic "aidl-partition-check" into main Steven Moreland
* changes: libbinder: integration test for stability libprocpartition: support product/system_ext
2025-01-08[native] Restore ServiceManager#checkService() to return IBinder Alice Wang
This fixes crashes in 3p libraries. A new API ServiceManager#checkService2() has been introduced to work with the Service enum type. Bug: 387175643 Test: atest servicemanager_test Change-Id: I647f4a11469717c54111afab562a0be2d5260044
2025-01-07libprocpartition: support product/system_ext Steven Moreland
Relevant in AIDL world. Bug: 385355208 Test: atest vts_treble_vintf_vendor_test Change-Id: Icc970949e4590aa1ec0c24339f998eaa644f2b10
2024-12-30Merge "Add kernel memory allocations to bugreport" into main am: 7e6edf5c58 ↵ Treehugger Robot
am: ef53884492 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3406679 Change-Id: I21683dfcebfb88be4a48734cbdff2073b69423f1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-27Add kernel memory allocations to bugreport Alessio Balsini
Add the contents of /proc/allocinfo to the bugreport. This file shows the current snapshot of all the memory allocated and the number of allocations associated with kernel code locations. The collection and processing of /proc/allocinfo is done by calling the alloctop tool, to return the top entries that allocated most memory. The kernel memory allocations entry is added to the bugreport only if the /proc/allocinfo file exists. As shown below, a rough measurement of the execution time of this command on Cuttlefish shows an average of ~43 ms. On the same device, the total number of characters generated by the command is 6704, so ~6.6 KiB uncompressed. ``` vsoc_x86_64:/ # time for i in $(seq 1 1000); do alloctop --once --sort s --min 1 --lines 100 > /dev/null done 0m42.25s real 0m00.17s user 0m03.63s system vsoc_x86_64:/ # alloctop --once --sort s --min 1 --lines 100 | wc -c 6704 ``` Bug: 384777823 Test: adb shell dumpstate Change-Id: Ib8f7eeebe5ad88fc608e2d84582ad32e1b069985 Signed-off-by: Alessio Balsini <balsini@google.com>
2024-12-11Merge "servicemanager: remove pre-4.4 pidcon path" into main Treehugger Robot
2024-12-09Merge "servicemanager: set consistent flags for self-reg" into main Steven Moreland
2024-12-07servicemanager: remove pre-4.4 pidcon path Steven Moreland
setRequestingSid was added since kernel version 4.4, so we should no longer need it. Bug: 376122465 Test: boot Change-Id: I1ebc04570aae6a441f3a37103b50815514aa6a57
2024-12-06servicemanager: set consistent flags for self-reg Steven Moreland
SM has special flags set to become a context object, but these were not set when it registers as itself. Bug: 382775095 Test: boot w/ harsher checks Change-Id: I0fb567cbcca67a2fc6c088f652c8af570b8d7e53
2024-12-06Merge "installd_service_fuzzer: Add signal() to handle SIGPIPE" into main ↵ Treehugger Robot
am: cf0a7edb95 am: 18e7ac7467 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3382172 Change-Id: I5f6bb9a74f3687ed463d971a4a21502a42928c93 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-06Merge "installd_service_fuzzer: Add signal() to handle SIGPIPE" into main ↵ Treehugger Robot
am: cf0a7edb95 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3382172 Change-Id: Icf871e1b8aaf42a3e8a0a0267659d31814b4dba3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-06Merge "installd_service_fuzzer: Add signal() to handle SIGPIPE" into main Treehugger Robot
2024-12-04Merge "Remove static list in libbinder for caching" into main am: 6dc67007e2 ↵ Treehugger Robot
am: 186bccddb0 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3380036 Change-Id: I5d5b496e731582861c521c1903139d5af8e365c8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04Merge "Remove static list in libbinder for caching" into main am: 6dc67007e2 Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3380036 Change-Id: Ic2e273b0123034f30e1f97f0e8eca9abd1c35501 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04Merge "IDLCLI: Update android.hardware.vibrator to V3 for idlcli" into main Nathan Kulczak
2024-12-03Remove static list in libbinder for caching Parth Sane
This adds a new flag to identify Lazy services. This flag is set when addService is called from LazyServiceRegistrar. This flag is then used by libbinder in a client. When getService is called, libbinder decides if the binder should be cached or not using this flag. Doc: go/libbinder-cache-v2 Flag: RELEASE_LIBBINDER_REMOVE_STATIC_LIST Test: atest binderCacheUnitTest Bug: 333854840 Change-Id: I5fff0140f635dddb4f5a6d618f4e9abace6feb54
2024-12-02IDLCLI: Update android.hardware.vibrator to V3 for idlcli Nathan Kulczak
Implement the following functions to enable testing of new interfaces: - performVendorEffect (stub) - getPwleFrequencyToOutputAccelerationMap - getPwleV2PrimitiveDurationMinMillis - getPwleV2PrimitiveDurationMaxMillis - getPwleV2CompositionSizeMax - composePwleV2 Flag: EXEMPT internal dev tools Bug: 346570576 Test: Flash to device and execute PWLEV2 methods Change-Id: Ida977bcad5b592836a2778cc2697ef7503b81d52 Signed-off-by: Nathan Kulczak <nathankulczak@google.com>
2024-12-02Merge "Add binder to libbinder cache after addService" into main am: ↵ Parth Sane
d1cd5731bc am: 6b7aab856a Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3350828 Change-Id: I2f9fa8f88e313c044ad4c9885de80ccb273cdbdc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-02Merge "Add binder to libbinder cache after addService" into main am: d1cd5731bc Parth Sane
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3350828 Change-Id: I39a6d032dc2f98888a5e7820af49aab5bddbda64 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-29Add binder to libbinder cache after addService Parth Sane
This will prevent system_server and other applications from calling servicemanager for local binders. Flag: RELEASE_LIBBINDER_CLIENT_CACHE Bug: 333854840 Test: atest binderCacheUnitTest Change-Id: I2693f21a3f5b7a5770481e5ac79719444284524d
2024-11-29installd_service_fuzzer: Add signal() to handle SIGPIPE Akhilesh Sanikop
Adding signal handler to avoid abort() due to broken pipe. Test: ./installd_service_fuzzer Bug: 376201407 Change-Id: I4ae951c3cb900ffa7727d54b6083951aa69fc677
2024-11-21Revert "IDLCLI: Update android.hardware.vibrator to V3 for idlcli" Nathan Kulczak
Revert submission 29769949-PWLEV2_AIDLV3 Reason for revert: Build breakage Reverted changes: /q/submissionid:29769949-PWLEV2_AIDLV3 Change-Id: If7e4c2c8b04ab06eab59cb50144c1e64b798a738
2024-11-19IDLCLI: Update android.hardware.vibrator to V3 for idlcli Nathan Kulczak
Implement the following functions to enable testing of new interfaces: - performVendorEffect (stub) - getPwleFrequencyToOutputAccelerationMap - getPwleV2PrimitiveDurationMinMillis - getPwleV2PrimitiveDurationMaxMillis - getPwleV2CompositionSizeMax - composePwleV2 Flag: EXEMPT internal dev tools Bug: 346570576 Test: Flash to device and execute PWLEV2 methods Change-Id: Id51781194f7fe8ef11fb783700b2b14a763018b4 Signed-off-by: Nathan Kulczak <nathankulczak@google.com>