Commit Graph

107990 Commits

Author SHA1 Message Date
Leon Scroggins
dde48febd6 Merge "Remove @hide from android.graphics.Color" 2020-05-18 14:14:54 +00:00
TreeHugger Robot
2adaca4206 Merge "Update documentation for ACTION_CLEAR_APP_CACHE" into rvc-dev am: 669b6a5987 am: 7b1bcf049b am: e7077fb944 am: 554f9178ef
Change-Id: Ib46eed57e418f9f9c4ba564f2fe0ed26acc351ea
2020-05-18 11:16:53 +00:00
TreeHugger Robot
e7077fb944 Merge "Update documentation for ACTION_CLEAR_APP_CACHE" into rvc-dev am: 669b6a5987 am: 7b1bcf049b
Change-Id: I9cbec2a3c9ba0f3771f5fe4e5cb1b140b9ce5097
2020-05-18 10:53:52 +00:00
TreeHugger Robot
7b1bcf049b Merge "Update documentation for ACTION_CLEAR_APP_CACHE" into rvc-dev am: 669b6a5987
Change-Id: Ie1aa08f25b14e2b112fe15a47dcab98e2a79fdab
2020-05-18 10:39:09 +00:00
TreeHugger Robot
669b6a5987 Merge "Update documentation for ACTION_CLEAR_APP_CACHE" into rvc-dev 2020-05-18 10:27:53 +00:00
shafik
75bb8caa55 Update documentation for ACTION_CLEAR_APP_CACHE
The actual cache clearing is not async anymore, so we can report the
status to the calling app. Here, we just change the documentation to
make the caller aware of the 3rd possible activity result: EIO.

This value is returned if an error happens while MediaProvider is
clearing the cache. In this case, we don't know how much of the cache
was deleted, if at all.

Test: build
Bug: 155290762
Change-Id: I3a04a9b5b6b07c6ec61e97a4cb0d3bc8b10b0370
2020-05-18 10:26:37 +00:00
TreeHugger Robot
d4c64e219f Merge "Add setSchedPolicyCgroup to AM service" 2020-05-16 03:19:41 +00:00
Kevin Chyn
8f1768320e Merge "Clean up BiometricPrompt bundle" 2020-05-16 02:46:59 +00:00
TreeHugger Robot
4c28890da6 Merge "Fix for goat detection code" into rvc-dev am: 7588f0d7a0 am: 4606688141 am: e43bd566f7 am: ab88e366e6
Change-Id: I628fcc4305b6e5d2ca94154295cc47f206a13f82
2020-05-16 02:33:33 +00:00
Winson Chiu
5a310af90b Merge "Remove PlatformCompat dependency from getPackageArchiveInfo" into rvc-dev am: 605ec6e272 am: 2c9397e828 am: 752261bb61 am: 7d3113a0e8
Change-Id: I6d65b87e6d890056dcb93960afdef2c7b7c94d2a
2020-05-16 02:32:51 +00:00
TreeHugger Robot
e43bd566f7 Merge "Fix for goat detection code" into rvc-dev am: 7588f0d7a0 am: 4606688141
Change-Id: Iaea55a2c07100eab390c162dba6343061fadf2da
2020-05-16 01:58:42 +00:00
TreeHugger Robot
4606688141 Merge "Fix for goat detection code" into rvc-dev am: 7588f0d7a0
Change-Id: I4d8370e8755b9e917477cd4434b1acc27345a62d
2020-05-16 01:58:01 +00:00
Winson Chiu
752261bb61 Merge "Remove PlatformCompat dependency from getPackageArchiveInfo" into rvc-dev am: 605ec6e272 am: 2c9397e828
Change-Id: I52ab327166c197e90ab56a8b47e91db42c331efc
2020-05-16 01:57:54 +00:00
TreeHugger Robot
7588f0d7a0 Merge "Fix for goat detection code" into rvc-dev 2020-05-16 01:41:30 +00:00
Winson Chiu
2c9397e828 Merge "Remove PlatformCompat dependency from getPackageArchiveInfo" into rvc-dev am: 605ec6e272
Change-Id: Ia84527c54a919d4020cebaf25756260a108fc4a3
2020-05-16 01:32:13 +00:00
Winson Chiu
605ec6e272 Merge "Remove PlatformCompat dependency from getPackageArchiveInfo" into rvc-dev 2020-05-16 01:12:23 +00:00
Automerger Merge Worker
3066a3352b Merge "Merge "Handle apps that upgrade to full conversations" into rvc-dev am: 01ae9d5c22 am: 944cf071e9" into rvc-d1-dev-plus-aosp am: 66f580d37f am: 519008f089
Change-Id: I6d9744b0429224b179c170dad3dad056576d3d4c
2020-05-16 00:06:02 +00:00
TreeHugger Robot
1f2f8b9835 Merge "Handle apps that upgrade to full conversations" into rvc-dev am: 01ae9d5c22 am: 944cf071e9
Change-Id: Iaa7cf064e5944322643fa30e01599974eddc861f
2020-05-15 23:45:34 +00:00
TreeHugger Robot
944cf071e9 Merge "Handle apps that upgrade to full conversations" into rvc-dev am: 01ae9d5c22
Change-Id: Ic8b81e6d967bbdaf257318fe5115f12339716e8f
2020-05-15 23:39:06 +00:00
TreeHugger Robot
01ae9d5c22 Merge "Handle apps that upgrade to full conversations" into rvc-dev 2020-05-15 23:35:06 +00:00
Winson
7029b75f67 Remove PlatformCompat dependency from getPackageArchiveInfo
It requires a permission which we can't force apps to take to
maintain backwards compatibility. We also arguably cannot because
it leaks visibility, although only for debuggable apps/non-release
builds.

Instead, there's a new static method for getting the raw targetSdk
to gate against and the check is done manually, ignoring
enabled/disabled state. This will cause a mismatch between certain
apps and some system services like AppIntegrityManager, but the
effects should be minimal if we assume that most people ship
valid APKs. At worse the integrity check will pass an APK that
PM will fail, which doesn't break the feature.

Bug: 156356591
Bug: 156778241

Test: manual device boots

Change-Id: I877a5061476b86b9d63c34e75f16b38be8c3e1c2
2020-05-15 15:52:05 -07:00
Kevin Chyn
6b0c536b93 Clean up BiometricPrompt bundle
We should stop using a bundle between BiometricPrompt (API),
AuthService/BiometricService, and AuthController (SystemUI)
For the below reasons

1) Bundles are too generic, and also less readable
2) Avoid needing to define default values everywhere
3) Cleaner interface
4) Convenience functions can be added within PromptInfo

We can consider having separate parcelables for
- BiometricPrompt->BiometricService
- BiometricService->AuthController
But that seems a bit overkill at the moment

Test: atest com.android.systemui.biometrics
Test: atest com.android.server.biometrics
Test: BiometricPromptDemo

Change-Id: I2911a876bf00197a13f6a406ab735a8bad5b960f
2020-05-15 15:47:43 -07:00
Amith Yamasani
1f6e0b89b2 Fix for goat detection code
Since as of R, apps can no longer query other apps by default,
deprecate the isUserAGoat API's undocumented behavior and
always return false.

Fixes: 156543788
Test: atest CtsMultiUserTestCases
Change-Id: I9743d87b762aabb01dc010ba6d5a6c01643a1f92
2020-05-15 14:45:01 -07:00
Joshua Duong
0a2b8b0528 Merge "Don't attach PendingIntent if settings app is hidden." into rvc-dev am: 8ba3431761 am: c28d70db77 am: c30bd22a24 am: 861cca118a
Change-Id: I411ae00aace0564988325f4432b91525c98f1dbb
2020-05-15 21:39:45 +00:00
TreeHugger Robot
62dd613bb5 Merge "Some improvements to process state dumpsys output." into rvc-dev am: 02ed46782e am: 805df51104 am: f14fb4fc93 am: 5f623756d8
Change-Id: I30e55425a47e45d25ed509bb2efc56ddff5b29db
2020-05-15 21:34:40 +00:00
Joshua Duong
861cca118a Merge "Don't attach PendingIntent if settings app is hidden." into rvc-dev am: 8ba3431761 am: c28d70db77 am: c30bd22a24
Change-Id: Iba522e75d59c39ae1040888118deb682ba0105eb
2020-05-15 21:26:31 +00:00
Joshua Duong
9c770fdf70 Merge "Don't attach PendingIntent if settings app is hidden." into rvc-dev am: 8ba3431761 am: c28d70db77
Change-Id: I233efb216824c8933e8416601bcaa5ae583ecc17
2020-05-15 21:20:27 +00:00
Joshua Duong
7cf0e15ee8 Merge "Don't attach PendingIntent if settings app is hidden." into rvc-dev am: 8ba3431761
Change-Id: I2a7957ee89c3c50b7aeb178b263dae150e590ce0
2020-05-15 21:16:40 +00:00
Joshua Duong
c28d70db77 Merge "Don't attach PendingIntent if settings app is hidden." into rvc-dev am: 8ba3431761
Change-Id: Ib618a2537340cd1e9683387ff6377c282b5ace7a
2020-05-15 21:15:21 +00:00
Joshua Duong
8ba3431761 Merge "Don't attach PendingIntent if settings app is hidden." into rvc-dev 2020-05-15 21:14:39 +00:00
TreeHugger Robot
5f623756d8 Merge "Some improvements to process state dumpsys output." into rvc-dev am: 02ed46782e am: 805df51104 am: f14fb4fc93
Change-Id: Ieba4572368526d4c44c15196b060ada2ed82a09c
2020-05-15 21:04:09 +00:00
TreeHugger Robot
161e7a5b8a Merge "Some improvements to process state dumpsys output." into rvc-dev am: 02ed46782e am: 805df51104
Change-Id: I646d2db734ff7f2e2fcbd0b4560064755c29d6dd
2020-05-15 21:03:21 +00:00
TreeHugger Robot
bb95962723 Merge "Some improvements to process state dumpsys output." into rvc-dev am: 02ed46782e
Change-Id: I0b979b08628fbb511b18f37f5c605c3e89a44d10
2020-05-15 21:02:58 +00:00
TreeHugger Robot
805df51104 Merge "Some improvements to process state dumpsys output." into rvc-dev am: 02ed46782e
Change-Id: Ieb76f02abe86fd0792e42c266860285e330a2e9d
2020-05-15 21:02:51 +00:00
Automerger Merge Worker
9d81ad5574 Merge "Merge "Camera: Docs: Improve info on key removal in CameraCharacteristics" into rvc-dev am: 48105b5c6e am: 54b4c3dd7a am: 287941339b" into rvc-qpr-dev-plus-aosp am: 7ffecad956
Change-Id: Id41aa99ade534080435238912b018651083740f6
2020-05-15 20:55:47 +00:00
TreeHugger Robot
02ed46782e Merge "Some improvements to process state dumpsys output." into rvc-dev 2020-05-15 20:55:13 +00:00
Evan Rosky
66b56829f0 Merge "Add a window dump for uiautomator" into rvc-dev am: bddd280556 am: d87824f3dc am: a55b5a7faf am: 6c0f286b4f
Change-Id: Ie585ea14c2315e161585897b5e4b36a891f24fbb
2020-05-15 20:54:58 +00:00
TreeHugger Robot
c567137c02 Merge "Treat mimegroup as wildcard for app enumeration" into rvc-dev am: cd1c478655 am: 17ccecea24 am: e16ac10996 am: cdbb51b1df
Change-Id: Ib734d5365efb9da3567975e067ac427b969f340f
2020-05-15 20:47:47 +00:00
TreeHugger Robot
24b477835c Merge "Ignore port when matching with wildcards" into rvc-dev am: d1b6afcc19 am: 7a1f6344fd am: f8dff3cc6c am: 5458a6a8f9
Change-Id: Idae3a72bd5ad8d8083088201e8fa65e8ad64a828
2020-05-15 20:46:44 +00:00
TreeHugger Robot
0122936698 Merge "Camera: Docs: Improve info on key removal in CameraCharacteristics" into rvc-dev am: 48105b5c6e am: 54b4c3dd7a am: 287941339b
Change-Id: Ib64f91e3d20811530ab74279685790711800c908
2020-05-15 19:02:57 +00:00
Joshua Duong
b381dfaf18 Don't attach PendingIntent if settings app is hidden.
The settings app may not be available. In that case, just show the adb
notification without a PendingIntent.

Bug: 156453114

Test: atest AdbNotificationsTest
Test: With USB debugging enabled, install TestDPC, and use it to hide settings app.
Unplug and replug USB. USB debugging notification shows up and clicking
it does nothing.
Change-Id: Ie29d2c425c05bce9371600d76e4eb2eaba692fd7

Change-Id: Ie5f746cbc7b8a32fc280177bf281a9e973c8df12
2020-05-15 18:58:33 +00:00
TreeHugger Robot
7621458515 Merge "Camera: Docs: Improve info on key removal in CameraCharacteristics" into rvc-dev am: 48105b5c6e am: 54b4c3dd7a
Change-Id: Ie5ed786b179489719b614735f9ae4f5db26ddc71
2020-05-15 18:30:29 +00:00
Evan Rosky
a55b5a7faf Merge "Add a window dump for uiautomator" into rvc-dev am: bddd280556 am: d87824f3dc
Change-Id: Icaa279b1c8107d6d0ffc1e62e7a0adeefcba269f
2020-05-15 18:30:01 +00:00
TreeHugger Robot
54b4c3dd7a Merge "Camera: Docs: Improve info on key removal in CameraCharacteristics" into rvc-dev am: 48105b5c6e
Change-Id: Ie04199bd3265ef00d0e55fa1f10a968f7d314adb
2020-05-15 18:27:08 +00:00
Evan Rosky
d87824f3dc Merge "Add a window dump for uiautomator" into rvc-dev am: bddd280556
Change-Id: I814094c108ca9cff166b39003d12d3d8d387de7f
2020-05-15 18:25:45 +00:00
TreeHugger Robot
bfa417e7dd Merge "Camera: Docs: Improve info on key removal in CameraCharacteristics" into rvc-dev am: 48105b5c6e
Change-Id: Ieeb849337217098578a15df3cc4e91c62c27d320
2020-05-15 18:17:35 +00:00
TreeHugger Robot
48105b5c6e Merge "Camera: Docs: Improve info on key removal in CameraCharacteristics" into rvc-dev 2020-05-15 18:17:04 +00:00
Evan Rosky
79da850cfe Merge "Add a window dump for uiautomator" into rvc-dev am: bddd280556
Change-Id: I5b9b5d0536dd2a735b78926df6c1c2e72f67e29a
2020-05-15 18:16:56 +00:00
Evan Rosky
bddd280556 Merge "Add a window dump for uiautomator" into rvc-dev 2020-05-15 18:15:36 +00:00
TreeHugger Robot
cdbb51b1df Merge "Treat mimegroup as wildcard for app enumeration" into rvc-dev am: cd1c478655 am: 17ccecea24 am: e16ac10996
Change-Id: Ideec2b23cc913ede317f326d29e7fd671c15bdc5
2020-05-15 18:14:08 +00:00