Commit Graph

7133 Commits

Author SHA1 Message Date
Jayant Chowdhary
375e3056c4 Merge "s/get_interesting_hal_pids/get_interesting_pids." into tm-dev am: 09261f42c2 am: 06694a109b am: f295b662ee am: 7c40f8751b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18587492

Change-Id: I7e3fc4d7167e126b8defb03f38c141200d3052ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-27 20:42:36 +00:00
Jayant Chowdhary
7c40f8751b Merge "s/get_interesting_hal_pids/get_interesting_pids." into tm-dev am: 09261f42c2 am: 06694a109b am: f295b662ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18587492

Change-Id: Ie7b75875fb402b71e036bfc2cc84627381eb57cc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-27 00:14:56 +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
Rhed Jao
744a05e943 Fix cross user package visibility leakage for queryInstrumentation
Returns false for querying instrumentation APIs if the target package
does not installed in the calling user.

Also adding a user id parameter to APIs for the system modules to
specify the correct user id when querying the instrumentation.

NoNonSdkCheck: The equivalent apis are available in PackageManager.
Bug: 229684723
Test: atest CrossUserPackageVisibilityTests
Change-Id: I0798e543705cb8866231ee376e07b853b419b6f3
2022-05-24 17:31:38 +08:00
Lucas Dupin
4e43fa9194 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 am: 8ab593e3a8 am: 11aec9327a am: 09a38f4d9f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2092083

Change-Id: I810f5980140cfb02e7c282d179c42c0c44469d7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-14 01:41:01 +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
55e86f55e0 Merge "Try to load colors more frequently" into tm-dev am: af8e6e4eba am: 51de64061b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17944265

Change-Id: I33c9221a8143e363e7a98f822a4c0c954d916ed4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-26 23:25:22 +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 764ea04421)
Merged-In: Id09490ecf7fc4b3e1a6baf073c134f357e9b327f
2022-04-20 07:05:15 +00:00
Joen Chen
233c241f21 Merge "bootanimation: correct logo position and size after resolution changed" into tm-d1-dev am: aa991f8f39 am: 05c6a7eac5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17750681

Change-Id: Ia3b58875474fbf419b6d0c5d247c01f068eabdc0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 00:46:59 +00:00
Joen Chen
aa991f8f39 Merge "bootanimation: correct logo position and size after resolution changed" into tm-d1-dev 2022-04-19 23:47:24 +00:00
joenchen
764ea04421 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
2022-04-19 02:05:33 +00:00
Eric Biggers
ee234ad4cb Merge "Remove unused support for "encrypted" boot animations" 2022-04-13 18:04:49 +00:00
Tyler Gunn
d049b95370 Merge "Add telecom log marking shell command." am: 5b04c63c64 am: b984978ad7 am: 5f44a37baa am: e1edc97d38 am: 2d1b010c55
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2061586

Change-Id: I8a0c1569f1e23e9fdc8de86f96d8bdb40ee5d1d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 16:57:50 +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
Eric Biggers
c552aca5e2 Remove unused support for "encrypted" boot animations
Since support for Full Disk Encryption was removed in favor of
File Based Encryption, "CryptKeeper mode" no longer exists and the
"vold.decrypt" system property is never set.  Therefore, remove the
unused code that supported showing special boot animations in this mode.

Bug: 208476087
Change-Id: I3fa2549338e1889dd9e9b381c60c264b95181b35
2022-04-12 01:31:51 +00:00
TreeHugger Robot
adcdbe776c Merge "Update LockSettingsCmd's showUsage method to defer to calling "locksettings help"." into tm-dev am: a2d50b2bbf am: a3f8fa9123
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17575563

Change-Id: Ic200b983b4f074ac87d944024857da66dc531884
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-05 20:03:55 +00: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
TreeHugger Robot
7bd319b55f Merge changes from topic "asynchronous_resetUsbPort" into tm-dev am: 901ab79568 am: 3d3cf71e87
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17526306

Change-Id: I523c625c73bd7298bd5cb9197ab93ace09207f1c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-02 01:56:23 +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 519062eabd)
Merged-In: Ieb29de3dd398859607490548a1f3a16f8359ae8f
2022-04-01 18:12:33 +00:00
Lucas Dupin
b3e8b2e30b Merge "Reload color sysprops after failing" into tm-dev am: 319a36fe50
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17490242

Change-Id: I31750e63242a05b8e8def371564c3d57bc296cd7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-30 21:55:09 +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
Arthur Hung
7298692865 Expose input association to be testable
- Expose api via TestApi
- Add ASSOCIATE_INPUT_DEVICE_TO_DISPLAY permission to Shell
- Add port for uinput command

Bug: 215631144
Test: atest CtsInputTestCases
Ignore-AOSP-First: Permission that should be kept internal until T releases
Change-Id: I55f2141aabceb71475f5e7f7d590b2f95e05c5aa
2022-03-21 13:05:08 +08:00
Nikita Ioffe
c79d536268 Merge changes from topics "presubmit-am-1dec1aa04236490e8d2a03998a4272b7", "sdk-sandbox-instr" into tm-dev am: 3b5de448c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17220107

Change-Id: I9b6ac48f1fdfb08305f4afcf2ef8bceb164eef0d
2022-03-19 02:26:26 +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
7ac351b05a Merge "Revert "Disable pointer authentication in app processes."" am: b9fc2910ca am: a236c37517 am: 95dc32f484 am: ff645f8555
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2021036

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

Change-Id: I699618c3301ea50aaa0e579cc9b69dcb2c5d301d
2022-03-14 22:16:13 +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
cffa9b0ddc Merge "Add additional logs for bootanimation" am: 51a4954076 am: 4aa84137f0 am: a73e533986 am: 780bfed3f9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1991970

Change-Id: Ia34e6499a709bb8d24962e5669d84dce6dd70a42
2022-03-04 03:26:26 +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
ace3e7bacf Merge "Forward svc bluetooth to "cmd bluetooth"" into tm-dev am: c66198eec4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16989003

Change-Id: Id91c6b25e415fd0bf8760144c965a058504b0605
2022-03-01 16:21:33 +00:00
TreeHugger Robot
c66198eec4 Merge "Forward svc bluetooth to "cmd bluetooth"" into tm-dev 2022-03-01 16:18:52 +00:00
TreeHugger Robot
97f524ebba Merge "Add resetUsbPort in svc usb command" 2022-02-25 05:14:50 +00:00
Ricky Niu
519062eabd 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
2022-02-25 11:14:59 +08: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 1f3012d223)
2022-02-23 22:20:18 +00:00
Yi Kong
206bd671be Merge "idmap2: Remove more redundant "using" statements" am: ee8e50ac1f am: a872a08411 am: e676492866 am: 0a1eeefb0d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1991775

Change-Id: I35885a21d227ba0597e3d16d58c363f124465d97
2022-02-23 20:42:10 +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