Commit Graph

423967 Commits

Author SHA1 Message Date
Felipe Leme
85382ce4d2 Disabled some DEBUG constants.
Bug: 138939803
Bug: 142965266
Bug: 148457657

Test: echo 'in TH we trust!'

Change-Id: Ie3112fa1965d9b03bc142924ca17cf27dd6aa44d
(cherry picked from commit e966b8e76d26283163721620528eea0bfd77b43c)
2020-02-07 11:52:28 -08:00
Heemin Seog
410b9a75d2 Merge "Add null check for handler on Clock view" into qt-qpr1-dev 2020-02-06 23:12:53 +00:00
Heemin Seog
fb23ff98d9 Add null check for handler on Clock view
On reboot, we've encountered an issue where the handler returns null,
causing a null pointer exception in the broadcast receiver.

In this CL, we add a null check and an error message to prevent a sysui
crash.

Bug: 148869042
Test: build, reboot a few times
Change-Id: Iac7f3a538be9a53d4a76926523aa2a3f4f22723d
Merged-In: Ie8a2627004876cf35291d52bd3686a5014498f52
2020-02-06 21:30:13 +00:00
TreeHugger Robot
4bfd23eb78 Merge changes I99720a37,I99a8f255 into qt-qpr1-dev
* changes:
  Force update uid state when pending uid state is applied
  Notify all packages is uid-mode is changed
2020-02-06 19:30:31 +00:00
Rhed Jao
53a56839b9 Merge "Fixed NPE in package installer session." into qt-qpr1-dev 2020-02-06 05:35:06 +00:00
Automerger Merge Worker
74c9ad17c2 Merge "Fix serialization issue of ExternalVibration" into qt-dev am: 02824fc2a9
Change-Id: I196882cf82416b3d4e84c487bd94b925f719dc1d
2020-02-06 00:25:37 +00:00
Chris Ye
02824fc2a9 Merge "Fix serialization issue of ExternalVibration" into qt-dev 2020-02-06 00:12:49 +00:00
Philip P. Moltmann
ab9be4fdb6 Force update uid state when pending uid state is applied
Before the state was update lazily when someone interacted with
appopsmanager.

Since Q the the uid state might change depending on the procState
and hence we might need to trigger the opChanged callbacks when the
procState is applied.

Bug: 148180766
Test: (on master) atest CtsAppOpsTestCases:android.app.appops.cts.ForegroundModeTest
Change-Id: I99720a372db6e79eaba30e4563c09e009cffe86f
Merged-In: Id974769a4e9d89c01890b7557dd93f8444a3908f
2020-02-04 13:32:51 -08:00
Philip P. Moltmann
29e092bf29 Notify all packages is uid-mode is changed
Multiple packages might share a UID, but appOpsService might not have
cached the uid->package mapping for those yet. Hence the only way to
list all packages for a uid is to ask package manager.

setUidMode already handled this correctly, hence factor out the code
into notifyOpChangedForAllPkgsInUid and reuse it from
commitUidStatePendingLocked.

Bug: 148180766
Test: (on master) atest CtsAppOpsTestCases:android.app.appops.cts.ForegroundModeTest
Change-Id: I99a8f255a60d3523da7eb36a8f2c9426af1a1fea
Merged-In: I2d5d6c7aa38d201707349a137c9c29b7987775be
2020-02-04 13:32:38 -08:00
Hai Zhang
e693b797bc Call getPackageInfo() with cleared calling identity in ensureSystemPackageName().
Otherwise non-primary users might get a SecurityException.

Bug: 145981139
Bug: 148763415
Test: manual
Change-Id: I5883e296a0d753e43075cbf0abc5dc4da91e2fca
2020-02-04 19:53:59 +00:00
TreeHugger Robot
25f9b23c6a Merge "resolve merge conflicts of 01f94b7cc0 to qt-qpr1-dev" into qt-qpr1-dev 2020-02-04 02:03:51 +00:00
Lucas Dupin
c93fa740aa resolve merge conflicts of 01f94b7cc0 to qt-qpr1-dev
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I2d15aaa7402e4e08f1630aa29892ad6cd68bd2b1
Merged-In: I34d1d5f9a751c1d7680a5a5941c39b9fe33a473b
2020-02-04 01:12:40 +00:00
Automerger Merge Worker
6c3cdcc7ac [automerger skipped] Merge "Update redaction upon profile changes" into qt-dev am: 01f94b7cc0 -s ours
am skip reason: skipped by user dupin

Change-Id: Iae319dff17a311c919db2f30a194bc9ce737c3eb
2020-02-04 00:34:39 +00:00
Lucas Dupin
01f94b7cc0 Merge "Update redaction upon profile changes" into qt-dev 2020-02-03 23:37:07 +00:00
Automerger Merge Worker
fcfca21b9f Change coverage dump to specify the output file instead of directory. am: 3f81e072da
Change-Id: I5424f4cc84bb970fa56b232886f14a4045a757af
2020-02-03 19:17:05 +00:00
Automerger Merge Worker
ac8e5e62a2 Merge "Add JVMTI agent to dump/reset JaCoCo coverage information" into qt-dev am: 638e92410c
Change-Id: I37f88d7db1dd8ef6c921223e8b73914e7a07a50d
2020-02-03 19:16:44 +00:00
Oliver Nguyen
3f81e072da Change coverage dump to specify the output file instead of directory.
Bug: 137857876
Test: manual
Change-Id: I2d835856d7a1b6b1ded561eca923f455b39317e4
Merged-In: I2d835856d7a1b6b1ded561eca923f455b39317e4
(cherry picked from commit 05b1c06a91)
2020-02-03 19:08:13 +00:00
Oliver Nguyen
638e92410c Merge "Add JVMTI agent to dump/reset JaCoCo coverage information" into qt-dev 2020-02-03 19:08:06 +00:00
Kavi Gupta
43c9497719 Add JVMTI agent to dump/reset JaCoCo coverage information
This agent can be attached to an arbitrary Android process with
arguments that cause it to either reset or dump the JaCoCo information
to a provided directory.

Bug: 148178774
Test: manual, used examples in README to test whether it works on a
userdebug_coverage build on cuttlefish

Change-Id: If6cee20046f790676b8085e1ca84652c063295fa
Merged-In: If6cee20046f790676b8085e1ca84652c063295fa
(cherry picked from commit 2d84ae7640)
2020-02-03 19:07:56 +00:00
Lucas Dupin
44d1c652ce Update redaction upon profile changes
We can't rely on status bar state changes to update the notification
list. The current user might not be set yet, causing wrong notifications
to become visible.

Fixes: 145135488
Test: manual
Test: atest NotificationStackScrollLayoutTest
Change-Id: I34d1d5f9a751c1d7680a5a5941c39b9fe33a473b
Merged-In: I34d1d5f9a751c1d7680a5a5941c39b9fe33a473b
2020-02-03 16:25:36 +00:00
Rhed Jao
692e120858 Fixed NPE in package installer session.
We updated staged sessions to activation failed state when they
aren't in terminal state, and device received ota and reboot. This
happend before the StagingManager resumes the sessions when
the whole set of parent+child sessions have been restored.
A parent session probably cannot find the child session, and a null
exception could happen.

In this change, we do not destroy child sessions before we destroy
the parent session. We only destroy a child session directly if we
are sure that its parent session doesn't exist.

Bug: 147651771
Test: StagedInstallTest
Change-Id: Iac6489a04df35f851aa18a91e1dde2d73928b8ec
Merged-in: Iac6489a04df35f851aa18a91e1dde2d73928b8ec
(cherry picked from commit 1fc8b36cf3)
2020-02-03 11:19:17 +08:00
Automerger Merge Worker
9b87773b60 [automerger skipped] Merge "Revoke 'always' web handler status when not autoverifying" into oc-dev am: ab012da3a2 am: 0cf31cf467 -s ours am: 41c009d172 -s ours am: 835e3a52bb -s ours am: c321f209c9 -s ours
am skip reason: Change-Id I58502d1b32d793aba9aa772fa2ad5ac38acca48a with SHA-1 a8fb6dc167 is in history

Change-Id: I957e0de935727d4ccb9263f27c123277329072a0
2020-02-01 02:06:17 +00:00
Automerger Merge Worker
c321f209c9 [automerger skipped] Merge "Revoke 'always' web handler status when not autoverifying" into oc-dev am: ab012da3a2 am: 0cf31cf467 -s ours am: 41c009d172 -s ours am: 835e3a52bb -s ours
am skip reason: Change-Id I58502d1b32d793aba9aa772fa2ad5ac38acca48a with SHA-1 a8fb6dc167 is in history

Change-Id: Ia0198d3592672180b0c2f13010d000c9e3c3e058
2020-02-01 01:52:51 +00:00
Automerger Merge Worker
835e3a52bb [automerger skipped] Merge "Revoke 'always' web handler status when not autoverifying" into oc-dev am: ab012da3a2 am: 0cf31cf467 -s ours am: 41c009d172 -s ours
am skip reason: Change-Id I58502d1b32d793aba9aa772fa2ad5ac38acca48a with SHA-1 ef5220e5b2 is in history

Change-Id: I1e39ae47fabb0eb668ac759f1e164771612c582a
2020-02-01 01:39:31 +00:00
Automerger Merge Worker
41c009d172 [automerger skipped] Merge "Revoke 'always' web handler status when not autoverifying" into oc-dev am: ab012da3a2 am: 0cf31cf467 -s ours
am skip reason: Change-Id I58502d1b32d793aba9aa772fa2ad5ac38acca48a with SHA-1 ef5220e5b2 is in history

Change-Id: I80e44d4cb30a8648df50be2f5fc1b0fd084b3815
2020-02-01 01:24:48 +00:00
Automerger Merge Worker
4e38a2c248 [automerger skipped] Merge "Revoke 'always' web handler status when not autoverifying" into oc-mr1-dev am: f98fee618c -s ours am: 6b6f6a2b09 -s ours am: 5410fb8eb8 -s ours
am skip reason: Change-Id I58502d1b32d793aba9aa772fa2ad5ac38acca48a with SHA-1 a8fb6dc167 is in history

Change-Id: Ib4651eddc8a8bbf00671515372f987902572424e
2020-02-01 01:15:26 +00:00
Automerger Merge Worker
8e5969a697 [automerger skipped] Merge "Revoke 'always' web handler status when not autoverifying" into pi-dev am: 187f52a4d7 -s ours am: 4427828992 -s ours
am skip reason: Change-Id I58502d1b32d793aba9aa772fa2ad5ac38acca48a with SHA-1 a8fb6dc167 is in history

Change-Id: I205597d434fa161742798c3ec22d39b1b4454908
2020-02-01 01:15:18 +00:00
Automerger Merge Worker
5410fb8eb8 [automerger skipped] Merge "Revoke 'always' web handler status when not autoverifying" into oc-mr1-dev am: f98fee618c -s ours am: 6b6f6a2b09 -s ours
am skip reason: Change-Id I58502d1b32d793aba9aa772fa2ad5ac38acca48a with SHA-1 a8fb6dc167 is in history

Change-Id: I07cddcbfad7f4841ef99796c8a7a64b9a5ac13c4
2020-02-01 01:12:50 +00:00
Automerger Merge Worker
0cf31cf467 Merge "Revoke 'always' web handler status when not autoverifying" into oc-dev am: ab012da3a2
Change-Id: I9515e311ff75532171bd893ddc6f3971a1fdea0c
2020-02-01 01:12:41 +00:00
Automerger Merge Worker
4427828992 [automerger skipped] Merge "Revoke 'always' web handler status when not autoverifying" into pi-dev am: 187f52a4d7 -s ours
am skip reason: Change-Id I58502d1b32d793aba9aa772fa2ad5ac38acca48a with SHA-1 a8fb6dc167 is in history

Change-Id: I1d9a4edd563df9c2a5b40c630517a34a241b3a55
2020-02-01 01:12:40 +00:00
Automerger Merge Worker
6b6f6a2b09 [automerger skipped] Merge "Revoke 'always' web handler status when not autoverifying" into oc-mr1-dev am: f98fee618c -s ours
am skip reason: Change-Id I58502d1b32d793aba9aa772fa2ad5ac38acca48a with SHA-1 ce22265eed is in history

Change-Id: I7cbffcbb84841e9faf9f55d8423bb91c6165a83c
2020-02-01 01:12:28 +00:00
Automerger Merge Worker
2d1928e0c1 [automerger skipped] Merge "Revoke 'always' web handler status when not autoverifying" into qt-dev am: 2a7eff2057 -s ours
am skip reason: Change-Id I58502d1b32d793aba9aa772fa2ad5ac38acca48a with SHA-1 d2a71cc4b8 is in history

Change-Id: I1e92a69fbd5f1c2ac656bfb8f7f8e62b1ce402a0
2020-02-01 01:12:19 +00:00
Chris Tate
2a7eff2057 Merge "Revoke 'always' web handler status when not autoverifying" into qt-dev 2020-02-01 01:01:45 +00:00
Chris Tate
fd3ce4f71e Merge "Revoke 'always' web handler status when not autoverifying" into qt-qpr1-dev 2020-02-01 01:01:42 +00:00
Chris Tate
f98fee618c Merge "Revoke 'always' web handler status when not autoverifying" into oc-mr1-dev 2020-02-01 01:01:36 +00:00
Chris Tate
187f52a4d7 Merge "Revoke 'always' web handler status when not autoverifying" into pi-dev 2020-02-01 01:01:35 +00:00
Chris Tate
ab012da3a2 Merge "Revoke 'always' web handler status when not autoverifying" into oc-dev 2020-02-01 01:01:34 +00:00
TreeHugger Robot
a8422821ac Merge "DO NOT MERGE Unregister notification listener before creating a new one to avoid duplicate Heads Up notifications." into qt-qpr1-dev 2020-02-01 00:37:50 +00:00
Eric Berglund
71801c6ac1 DO NOT MERGE Unregister notification listener before creating a new one to avoid
duplicate Heads Up notifications.

Bug: 148530083
Test: manual
Change-Id: I3f55b60a390f847b81b2de7da06d12b5725b3b39
2020-01-31 13:12:23 -08:00
Heemin Seog
347c14cb47 Merge "DO NOT MERGE Only set the LAYOUT flags if the window is fullscreen" into qt-qpr1-dev 2020-01-31 20:38:37 +00:00
TreeHugger Robot
4af0a5bc27 Merge "Concurrent collections for Bluetooth callbacks." into qt-qpr1-dev 2020-01-31 20:11:31 +00:00
TreeHugger Robot
055fcec87e Merge "DO NOT MERGE: Use a copy of bt device profile list when updating" into qt-qpr1-dev 2020-01-31 20:02:08 +00:00
TreeHugger Robot
e10e0fffcf Merge "GraphicsEnv: refactor to unify the debuggable logic" into qt-qpr1-dev 2020-01-31 18:09:16 +00:00
TreeHugger Robot
f2a1775a86 Merge "DO NOT MERGE Ensure package names read from config are system packages." into qt-qpr1-dev 2020-01-31 00:36:50 +00:00
Hai Zhang
6a56247200 DO NOT MERGE Ensure package names read from config are system packages.
Fixes: 145981139
Test: manually tested ensureSystemPackageName() returns null for non-system app
Change-Id: I1d23910cbd282f6702785c9dfb059d7be6b0e895
2020-01-31 00:20:45 +00:00
Alexey Kuzmin
b1a33a8b4f Fix serialization issue of ExternalVibration
Remove excessive serialization of Audio Attributes
Bug: 140417434
Test: atest ExternalVibrationTest#testSerialization

Change-Id: Ib7ceaed875889126a53f874eec64fab4817e48d1
2020-01-30 11:30:04 -08:00
Fabian Kozynski
7891cda862 Merge "Do not destroy CustomTile when in QSCustomizer" into qt-qpr1-dev 2020-01-30 18:44:10 +00:00
Yiwei Zhang
a3acf85a3b GraphicsEnv: refactor to unify the debuggable logic
By default, PR_SET_DUMPABLE is 0 for zygote spawned apps, except in the
following circumstances:
1. ro.debuggable=1 (global debuggable enabled, i.e., userdebug or eng builds).
2. android:debuggable="true" in the manifest for an individual application.
3. An app which explicitly calls prctl(PR_SET_DUMPABLE, 1).
4. GraphicsEnv calls prctl(PR_SET_DUMPABLE, 1) in the presence of
   <meta-data android:name="com.android.graphics.injectLayers.enable"
              android:value="true"/>
   in the application manifest.

So checking both ro.debuggable=1 and PR_GET_DUMPABLE is redundant.

Bug: b/144186877, b/148566223
Test: CtsAngleIntegrationHostTestCases
Test: CtsRootlessGpuDebugHostTest
Change-Id: Ica49254df2c7c090808411935cdeb8efd4e3cb51
Merged-In: Ica49254df2c7c090808411935cdeb8efd4e3cb51
(cherry picked from commit 097a3062b9)
2020-01-29 21:29:56 -08:00
Heemin Seog
5c31a5c18d DO NOT MERGE Only set the LAYOUT flags if the window is fullscreen
This addresses an issue where toasts will be hidden due to the setting
of the LAYOUT_HIDE_NAVIGATION flag.

Bug: 148180738
Test: manual (adb shell settings put global policy_control "immersive.navigation=*" then try to show a toast with gravity top)
Change-Id: Ic47edc5423c4daf373fc3a8bfc30af15cadd6d90
2020-01-29 12:35:57 -08:00
Automerger Merge Worker
7a091e335c [automerger skipped] Fix potential double destroy of AssetManager am: 93320661ca am: aefc05c016 am: 8e5d6a25b2 -s ours am: e38a710477 -s ours am: b5357be3a9 -s ours
am skip reason: Change-Id Ia938502d2443f5a6de6a3cabdb7ce1d41d3ff6d1 with SHA-1 0a8a1e9d40 is in history

Change-Id: Ie771ffdfc4cfc2d58d0b74ea29f56655462924ca
2020-01-29 15:39:44 +00:00