7120 Commits

Author SHA1 Message Date
Cole Faust
d633c8e430 Fix module-file name collisions
Bazel doesn't allow a module and file with the same name.

These are some extra modules I missed in aosp/2201115

Bug: 198619163
Test: m am, verified it was still installed to out/target/product/emulator64_x86_64/system/bin/am and not am.sh
Change-Id: I763a938918854541ec5b0bcf740b1b6cf0fce771
2022-09-01 15:04:37 -07:00
Ryan Prichard
565f2ab115 Merge "Add missing cassert includes" 2022-09-01 18:23:38 +00:00
Ryan Prichard
d9a3ffa6f8 Add missing cassert includes
Bug: http://b/175635923
Test: treehugger
Change-Id: I8caf940f7b6e2fdd921516efea4aed14e0c2afb7
2022-08-31 19:09:21 -07:00
Cole Faust
325fb3e2aa Fix module-file name collisions
Bazel doesn't allow a module and file with the same name.

Bug: 198619163
Test: m ime, verified it was still installed to out/target/product/emulator64_x86_64/system/bin/ime and not ime.sh
Change-Id: I214e190e159a7aff9149e77146d1a493992e885d
2022-08-29 18:42:32 -07:00
Patrick Williams
7d825e6880 Merge "Add OWNERS for screencap" 2022-08-29 16:38:30 +00:00
Patrick Williams
7ccc37414b Add OWNERS for screencap
Test: n/a, OWNERS changes only
Change-Id: I84b14a46846f2bf29acb6cae37ed93b7258d50de
2022-08-29 15:08:40 +00:00
Zimuzo Ezeozue
5b999ecd30 Merge "Fix ATRACE_TAG redefinition in SysTrace.h" 2022-08-26 08:35:47 +00:00
Zim
cabd966568 Fix ATRACE_TAG redefinition in SysTrace.h
Split SysTrace.h into SysTrace.cpp to avoid defining ATRACE_TAG
in the clients of SysTrace.h

This is in preparation to land aosp/2190022

Test: m
Bug: 161393989
Change-Id: I0ed94c9f66043aa83a59e8042ec9e61ee47db0f2
2022-08-25 14:03:49 +00:00
Mikhail Naganov
b523e5e6dc app_process: Fix className check
Emptyness of a String8 variable was not checked correctly.
As a result, even when no arguments were provided,
`app_process` was still launching runtime.

Test: adb shell app_process64
Change-Id: Ia303edb5a74b61efad24b475008a3642a07ab789
2022-08-24 19:54:48 +00:00
Kevin Jeon
faef3a82de Merge "Exclude dumpsys from incident in dumpstate" am: 6e1ac19115
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2156679

Change-Id: I5c81d8ed230d499c6ab97d99643bb5a23f8d20e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 16:35:06 +00:00
Kevin Jeon
6e1ac19115 Merge "Exclude dumpsys from incident in dumpstate" 2022-07-25 16:17:32 +00:00
Thomas Stuart
6ff1ff9e20 cleanupOrphanPA's feature framework (2/2)*
Bug: 210134615
Test: Unit + manual
Change-Id: Ic350e4e45c0d1597c6f61e3e3e717b3a2c1bb099
Merged-In: Ic350e4e45c0d1597c6f61e3e3e717b3a2c1bb099
2022-07-21 00:43:36 +00:00
Kevin Jeon
4ee5ba59ef Exclude dumpsys from incident in dumpstate
This change adds all dumpsys sections defined in incident.proto from
being included when incident is called from dumpstate, since these
sections are already included elsewhere in bug reports. This reduces the
time taken in the INCIDENT REPORT section by ~6.8s (18.64s -> 11.83s).

Test: - atest incidentd_test
Test: - Took a bug report and verified that the incident report in bug
        reports no longer contained dumpsys sections.
      - atest incident_d test
Bug: 239444802
Change-Id: Ia090131687401fcbfea9708e80fd02899a8fb643
2022-07-18 22:26:56 +00:00
Jayant Chowdhary
8a289a650c s/get_interesting_hal_pids/get_interesting_pids.
Since pids can belong to non hal processes as well, in theory.

Bug: 233130219

Test: build

Merged-In: I8ef6b2aaa871f6a8f992887a394d81c544e9cba4
Change-Id: I8ef6b2aaa871f6a8f992887a394d81c544e9cba4
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
(cherry picked from commit d1ce457da1f7c467c11d74f6550f6918806744a9)
2022-06-16 18:15:48 +00:00
Eric Biggers
cb6e4d4cda Merge "Remove obsolete support for emulated FBE" am: d96c8701dd am: 5f2aa0bd19
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2101871

Change-Id: Idd5e502f12216c2de212b68682fb97a4bb28e874
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 19:52:48 +00:00
Eric Biggers
a0da4eb791 Remove obsolete support for emulated FBE
Emulated FBE was a developer-mode feature intended to allow developers
to add Direct Boot support to apps before native FBE devices became
widely available.  Since all devices running the latest version of
Android now use native FBE (except for a couple edge cases not relevant
here, like in-development devices on which encryption hasn't been
enabled yet), and emulated FBE doesn't work on native FBE devices
anyway, there's no longer any need to carry the code for emulated FBE.

Bug: 232458753
Change-Id: I2ab35472c872b19b2bf64aa99424b5ccd9f6170f
2022-06-02 00:53:48 +00:00
Jayant Chowdhary
1d4c0cc6a8 Merge "s/get_interesting_hal_pids/get_interesting_pids." into tm-dev am: 09261f42c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18587492

Change-Id: Id0300de82061fa529f7b03b0515e765783f9e922
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-27 00:16:13 +00:00
Jayant Chowdhary
d1ce457da1 s/get_interesting_hal_pids/get_interesting_pids.
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>
2022-05-24 20:50:08 +00:00
Lucas Dupin
8ab593e3a8 Merge "[Bugfix][BootAnimation] Fix the issue of the transparent background image shows transparent background unexpectedly in BootAnimation on some MTK platforms." am: 6562eb87f3 am: e3f08c403e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2092083

Change-Id: Iae7ebfe443056439545dec77f4f2e6b19afe79bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-14 00:23:15 +00:00
xi yu
c341544c80 [Bugfix][BootAnimation] Fix the issue of the transparent background image shows transparent background unexpectedly in BootAnimation on some MTK platforms.
Test: manual

Change-Id: I2074a48c6d3fc11f393bfa4fbcbcd8d0df5c780f
2022-05-13 09:03:00 +00:00
Lucas Dupin
bfd1812fcb Try to load colors more frequently
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
2022-04-25 15:57:38 -07:00
joenchen
85b339fb24 bootanimation: correct logo position and size after resolution changed
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 764ea0442141b4b961bb6c6af18e66cfaa617b7f)
Merged-In: Id09490ecf7fc4b3e1a6baf073c134f357e9b327f
2022-04-20 07:05:15 +00:00
Tyler Gunn
e1edc97d38 Merge "Add telecom log marking shell command." am: 5b04c63c64 am: b984978ad7 am: 5f44a37baa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2061586

Change-Id: I8b7c0ed95bb77dd0761eebafa2deb645ec728163
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 16:36:33 +00:00
Tyler Gunn
043bb30f98 Add telecom log marking shell command.
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
2022-04-12 11:14:14 -07:00
Dave McCloskey
5a608433a3 Update LockSettingsCmd's showUsage method to defer to calling
"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
2022-04-05 17:06:15 +00:00
Ricky Niu
9d86af2555 Modified the resetUsbPort command to Asynchronous
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
2022-04-01 18:16:45 +00:00
Ricky Niu
66c77dfdf9 Add resetUsbPort in svc usb command
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 519062eabd54d4f961bb3c1ac65e937a678f905b)
Merged-In: Ieb29de3dd398859607490548a1f3a16f8359ae8f
2022-04-01 18:12:33 +00:00
Lucas Dupin
cd25684a0c Reload color sysprops after failing
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
2022-03-29 23:38:50 +00:00
Nikita Ioffe
99ba880e55 Add a way to instrument sdk sandbox processes
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
2022-03-18 14:50:21 +00:00
Elliott Hughes
ff645f8555 Merge "Revert "Disable pointer authentication in app processes."" am: b9fc2910ca am: a236c37517 am: 95dc32f484
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2021036

Change-Id: Ic1be7b048ce64956ce5276c26a5a031e6192e3d6
2022-03-14 22:11:21 +00:00
Pirama Arumuga Nainar
3900e2887b Merge "Disable "-readability-duplicate-include" tidy warning in generated file" am: e6c05a8fd7 am: 07888666d2 am: 92d4ec9cd5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2019339

Change-Id: Id5cca221c2e7c80c66d3233020e0900faee230c2
2022-03-14 21:59:01 +00:00
Elliott Hughes
b9fc2910ca Merge "Revert "Disable pointer authentication in app processes."" 2022-03-14 21:09:31 +00:00
Elliott Hughes
90d4d6040c Revert "Disable pointer authentication in app processes."
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
2022-03-10 18:01:04 +00:00
Pirama Arumuga Nainar
8186f296d0 Disable "-readability-duplicate-include" tidy warning in generated file
/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
2022-03-10 05:25:35 +00:00
Treehugger Robot
199359822e Merge "Forward svc bluetooth to "cmd bluetooth"" 2022-03-09 12:50:31 +00:00
Treehugger Robot
780bfed3f9 Merge "Add additional logs for bootanimation" am: 51a4954076 am: 4aa84137f0 am: a73e533986
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1991970

Change-Id: Ia36255c49f4323125ac37b812b28a87091c8cd79
2022-03-04 03:03:17 +00:00
Treehugger Robot
4aa84137f0 Merge "Add additional logs for bootanimation" am: 51a4954076
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1991970

Change-Id: Ie8d99a45040925a1e9957dcf4ac1dfbcf65d9752
2022-03-04 02:29:48 +00:00
Treehugger Robot
51a4954076 Merge "Add additional logs for bootanimation" 2022-03-03 20:08:23 +00:00
Yoshiaki Maruoka
9ef19b85cb Add additional logs for bootanimation
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
2022-03-03 07:40:43 +00:00
TreeHugger Robot
c66198eec4 Merge "Forward svc bluetooth to "cmd bluetooth"" into tm-dev 2022-03-01 16:18:52 +00:00
Tim Murray
2538e20d62 incidentd: fix race in waitpid_with_timeout
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 1f3012d2235276348edda1f8a0564c223b7aff8e)
2022-02-23 22:20:18 +00:00
Yi Kong
0a1eeefb0d Merge "idmap2: Remove more redundant "using" statements" am: ee8e50ac1f am: a872a08411 am: e676492866
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1991775

Change-Id: I2bef74e6be9d76721e6ef5f4e516f7da8dc574ab
2022-02-23 19:05:49 +00:00
Yi Kong
a872a08411 Merge "idmap2: Remove more redundant "using" statements" am: ee8e50ac1f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1991775

Change-Id: I029e6c4037a86993923a3e204df4fef60a4de2bf
2022-02-23 18:20:44 +00:00
William Escande
a956966554 Forward svc bluetooth to "cmd bluetooth"
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
2022-02-23 16:30:15 +01:00
William Escande
3d43c2345c Forward svc bluetooth to "cmd bluetooth"
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
2022-02-23 15:48:56 +01:00
Yi Kong
56f2cf6fa5 idmap2: Remove more redundant "using" statements
Test: presubmit
Bug: 219872355
Change-Id: I74e5b38400060477f9d50b51b1f261ec6a181dd1
2022-02-20 14:36:15 +08:00
Yurii Zubrytskyi
279475e4e6 Merge "idmap2: Remove redundant "using" statements" am: 871327e261 am: 5e0db6292d am: 22af5f4dd0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1990330

Change-Id: Id60f75ef1d69b8f501e21ce8c1ccd8ff9f8548a6
2022-02-18 05:55:09 +00:00
Yurii Zubrytskyi
5e0db6292d Merge "idmap2: Remove redundant "using" statements" am: 871327e261
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1990330

Change-Id: I362da94b4ee8445aff305872024a4aff55cc9d3d
2022-02-18 05:09:39 +00:00
Yurii Zubrytskyi
6c47b0b3d9 Merge "[idmap] Add logging for the service start/stop" 2022-02-17 20:21:51 +00:00
Yi Kong
b0981d9287 idmap2: Remove redundant "using" statements
They are already under the same namespace.

Test: presubmit
Bug: 219872355
Change-Id: Ie09d529bc9d9f690feb5dba16fe174b89a14ee08
2022-02-17 17:53:42 +00:00