Evan Severson
bcd4a6d26d
Merge changes from topics "remove_bg_mic_cam_public", "remove_role_exempt" into sc-dev am: 768cddd98e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13679456
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I00f1edcad186eabcdb6743285bb052dfe007fa2c
2021-02-26 18:19:09 +00:00
Evan Severson
768cddd98e
Merge changes from topics "remove_bg_mic_cam_public", "remove_role_exempt" into sc-dev
...
* changes:
Remove role exempt flag
Remove background microphone and camera from public api
2021-02-26 18:09:50 +00:00
Kholoud Mohamed
0215a5bfdc
Merge "Exposed some testAPIs in UserManager" into sc-dev am: b3d381a109
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13462285
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I295b60fe5ec071a7e79297c643a78f203342b546
2021-02-26 13:00:22 +00:00
Kholoud Mohamed
afb12625a9
Exposed some testAPIs in UserManager
...
The following changes in UserManager are required for ongoing
improvements to CTS/GTS infrastructure.
- Exposed the following as testAPIs:
* isGuestUserEphemeral
* createUser
* preCreateUser
* createProfileForUser
* createRestrictedProfile
* getUsers
* getUserType
- Added permissions to the following APIs:
* CREATE_USERS for getUserName
* INTERACT_ACROSS_USERS for getProfileParent
- Added CREATE_USERS permission to the documentation of
getUsers and the APIs that call it.
Test: Confirmed that a CTS test can call these APIs
Bug: 178695365
Change-Id: Id9105db3bfefb926139715b728acedefd2a5ca3e
2021-02-26 10:08:18 +00:00
Alex Buynytskyy
437a4f2e79
Merge "Remove INSTALLER_V2 permission since the API is finalized in S." into sc-dev am: a1ec6ad5e2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13698061
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I0eb30a923e8e5040ed3bcf1937eacb0e6eec4248
2021-02-26 10:03:26 +00:00
Alex Buynytskyy
a1ec6ad5e2
Merge "Remove INSTALLER_V2 permission since the API is finalized in S." into sc-dev
2021-02-26 09:50:23 +00:00
Riddle Hsu
9d539f2c33
Merge "Optimize the Parcel read/write of common window data" into sc-dev am: ed46310238
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13674730
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: If7facfd0a3bb394cac47e12f1197bac479f2d885
2021-02-26 04:18:11 +00:00
Riddle Hsu
ed46310238
Merge "Optimize the Parcel read/write of common window data" into sc-dev
2021-02-26 04:07:39 +00:00
Alex Buynytskyy
28d0b7b712
Remove INSTALLER_V2 permission since the API is finalized in S.
...
Bug: 152310230
Fixes: 152310230
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I624eb44a455ba65f156064c57787af5903567d96
2021-02-25 19:50:42 -08:00
Alex Buynytskyy
321dba2923
Merge "Fixing some AIDL warnings." into sc-dev am: 30a9255320
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13698059
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ibc5eeef9caa1248520f13cc460520747443c7572
2021-02-26 00:32:15 +00:00
Evan Severson
c5d33bfde2
Remove role exempt flag
...
There is no use for this currently.
Bug: 158311343
Test: atest CtsPermission{1,3}TestCases
Change-Id: I102b30ccb3354e248e4e6be304c6dfe6135ba2a6
2021-02-25 14:04:41 -08:00
Evan Severson
e2887a761b
Remove background microphone and camera from public api
...
Also make them ungrantable. These permissions only exist so that
RECORD_AUDIO and CAMERA are true foreground permissions.
Test: atest CtsPermission{1,3}TestCases
Attempt to grant the permissions
Bug: 158311343
Change-Id: I383883a67acee9a0fb4ade5ca34092c29f8ac254
2021-02-25 14:04:41 -08:00
Alex Buynytskyy
2645c147b7
Fixing some AIDL warnings.
...
Can't change the enum values as they are a part of public API (and enum-zero is not a warning apparently).
Fixes: 179836890
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I4d59410ec3476298cc98fdcc9584468b1debcb41
2021-02-25 20:08:39 +00:00
Evan Severson
ecf2837b41
Merge "Expose SensorPrivacy as SystemApi" into sc-dev am: 445abca30e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13606535
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I310df792ad039f5dad97875457905df8bb1c6602
2021-02-25 18:41:13 +00:00
Evan Severson
445abca30e
Merge "Expose SensorPrivacy as SystemApi" into sc-dev
2021-02-25 18:29:43 +00:00
Sudheer Shanka
b455116706
Merge "Allow EJs to obtain new network capability." into sc-dev am: 8632838c50
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13526199
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I17dc44c86f41545b859de0afa3f7749e0cfef10e
2021-02-25 14:40:07 +00:00
Charles Chen
ff2cf5155c
Merge "Unhide isUiContext()" into sc-dev am: f225921153
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13636799
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I2569a3d0e1465853b637d4ecc16200d9afc8eb19
2021-02-25 14:37:14 +00:00
Alex Buynytskyy
99afc66507
Merge "API feedback: getVersion instead of isV2." into sc-dev am: 02492968c6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13676256
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Iedc9f7ed0ccd583c462ddb740e38fefed11db9af
2021-02-25 14:35:37 +00:00
Ruslan Tkhakokhov
f4f5414433
Merge "Introduce 'dataExtractionRules' manifest attribute" into sc-dev am: f7bc904f44
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13586918
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ib1e399fb8486bad449e231f76de6b105dcb93805
2021-02-25 14:32:37 +00:00
Sudheer Shanka
8632838c50
Merge "Allow EJs to obtain new network capability." into sc-dev
2021-02-25 09:19:15 +00:00
Charles Chen
f225921153
Merge "Unhide isUiContext()" into sc-dev
2021-02-25 04:05:49 +00:00
Alex Buynytskyy
414d9ecc26
API feedback: getVersion instead of isV2.
...
Bug: 181015045
Fixes: 181015045
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I623f73b834759d9a1c599d7c7f3ff585fa75c4aa
2021-02-25 02:06:08 +00:00
Sudheer Shanka
6831749cb4
Allow EJs to obtain new network capability.
...
- Introduce new oom_adj score to be used for EJs so that they won't
be killed before normal jobs but before any FGS. Also, add a new
bind flag to instruct the OomAdjuster about when to use this
new oom_adj score.
- Unlike other capabilities, any app (regardless of it's proc_state)
with network capability will be able to transfer it's capability
to other app by binding to it.
Bug: 177641226
Test: atest ./tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java
Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Test: atest ./services/tests/mockingservicestests/src/com/android/server/am/MockingOomAdjusterTests.java
Test: atest CtsJobSchedulerTestCases
Change-Id: I888764ff22fba92fe2cccf3d8442ed318a19ad2a
2021-02-24 17:17:55 -08:00
Evan Severson
0f9d5aea50
Expose SensorPrivacy as SystemApi
...
Rename the apis to be more consistent.
Also expose to test api.
Have the aosp mark that it supports the toggle features by default.
Test: atest CtsSensorPrivacyTestCases
Bug: 162549680
Change-Id: Ib38c16adfc5cec931347e1a1891618983d78248b
2021-02-24 15:39:19 -08:00
Ruslan Tkhakokhov
f7bc904f44
Merge "Introduce 'dataExtractionRules' manifest attribute" into sc-dev
2021-02-24 23:20:54 +00:00
Soonil Nagarkar
6294f03724
Merge "Proposal: Reduce the number of IPCs in PendingIntent" into sc-dev am: 2409543ce8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13618861
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I72f56ca7d750cf9e9c2b5596dd4dcaef7e6c830f
2021-02-24 21:54:59 +00:00
Soonil Nagarkar
2409543ce8
Merge "Proposal: Reduce the number of IPCs in PendingIntent" into sc-dev
2021-02-24 21:48:46 +00:00
Ruslan Tkhakokhov
e32b3b5773
Introduce 'dataExtractionRules' manifest attribute
...
Introduce the attribute apps targeting Android S+ can use to point to an
XML file that contains rules for copying app data during backup and
transfer operations. If this attribute is specified, the config pointed
to by the existing 'fullBackupContent' will be ignored.
Bug: 174216309
Test: m -j
Change-Id: I6ad57a24b40cf5b80b312c719747e8ba89aa0a93
2021-02-24 21:48:37 +00:00
TreeHugger Robot
43c59829eb
Merge "Allow syncs to be scheduled as EJs." into sc-dev am: 5c9a0355f8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13593463
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Idc0f0d446b009e70a16bcf25d6db6249ae1d428b
2021-02-24 21:18:50 +00:00
TreeHugger Robot
5c9a0355f8
Merge "Allow syncs to be scheduled as EJs." into sc-dev
2021-02-24 20:12:50 +00:00
Riddle Hsu
b293d933e0
Optimize the Parcel read/write of common window data
...
The Parcel read/write speed of MergedConfiguration/InsetsSource
becomes 4x+ faster.
Because writeParcelable sends additional type info which is
unnecessary if the type is known on the reading side, replace
the usages to writeTypedObject and well-written readFromParcel.
That saves the time of class lookup and object creation.
Bug: 181025587
Test: vogar --mode app_process --benchmark \
frameworks/base/core/tests/benchmarks/src/android/os/ParcelableBenchmark.java
Change-Id: I29548ce6c2e5886f0e90a5dc70d8e9ecc0fb25a8
2021-02-24 23:33:16 +08:00
Varun Shah
c516abcf46
Allow syncs to be scheduled as EJs.
...
Bug: 178852366
Test: atest SyncRequestTest
Test: atest SyncOperationTest
Test: atest SyncManagerTest
Test: atest CtsSyncManagerTest
Test: atest ContentResolverTest [all]
Change-Id: I4a78abdc1f2f5313ac18f739209b76fdf49388e5
2021-02-23 12:15:53 -08:00
Makoto Onuki
0f4b4cafb8
Merge "Throw more descriptive exceptions when service start isn't allowed." into sc-dev am: 35c53e2a73
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13606034
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I7c4170e2472b9a60683095227255e5f52fd4130f
2021-02-23 16:29:50 +00:00
Makoto Onuki
35c53e2a73
Merge "Throw more descriptive exceptions when service start isn't allowed." into sc-dev
2021-02-23 16:05:30 +00:00
TreeHugger Robot
7d511c3aa1
Merge "Expose ApplicationInfo compileSdkVersion" into sc-dev am: 3d187a3ff5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13663213
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I48a4da22fe91ca2e15088c848fcbbc367fa3d11a
2021-02-23 00:00:55 +00:00
TreeHugger Robot
3d187a3ff5
Merge "Expose ApplicationInfo compileSdkVersion" into sc-dev
2021-02-22 23:41:15 +00:00
Winson
1206e776d4
Expose ApplicationInfo compileSdkVersion
...
Bug: 178116560
Test: none, move to public API
Change-Id: I321feec49f7c9d1a94f5a2140e0c4244ab776ce8
2021-02-22 13:58:47 -08:00
TreeHugger Robot
5bbc115545
Merge "Require .dm to install with .fsv_sig if supported" into sc-dev am: c952ffe7a0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13587178
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Iece1b7b6e7e0aab36621002264f40465cf391f4e
2021-02-22 18:02:43 +00:00
TreeHugger Robot
c952ffe7a0
Merge "Require .dm to install with .fsv_sig if supported" into sc-dev
2021-02-22 17:46:27 +00:00
Charles Chen
aa6de2e6e8
Unhide isUiContext()
...
... because it is more tied to Context instance that developers
are working with.
Bug: 179308116
Test: atest ContextIsUiContextTest
Change-Id: I41d90c4b5b81b430fc8007a0bdf86c6fd1c54400
2021-02-22 08:38:52 +00:00
Gavin Corkery
1704279f24
Merge "Add REBOOT_READY broadcast" into sc-dev am: 515af7889f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13454847
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I56f602bb71c99dafb1572fc2da387834939cf174
2021-02-20 11:36:46 +00:00
Gavin Corkery
515af7889f
Merge "Add REBOOT_READY broadcast" into sc-dev
2021-02-20 10:44:38 +00:00
Nadav Bar
2e8c7896bf
Merge "Add a system TextToSpeech implementation that initiates the connection through the system server." into sc-dev am: e8d124dc20
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13612148
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Id3a124df5b058cedb4c22e877fc3834b1f560cb3
2021-02-20 06:31:39 +00:00
Nadav Bar
e8d124dc20
Merge "Add a system TextToSpeech implementation that initiates the connection through the system server." into sc-dev
2021-02-20 06:21:18 +00:00
Makoto Onuki
0549b1f782
Throw more descriptive exceptions when service start isn't allowed.
...
Fix: 180518252
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: Ia38a159f9ededdc9885ce6b8dc61640c3af5ef72
2021-02-19 14:36:05 -08:00
Guojing Yuan
fadb97ccff
Merge "Provide an example for FLAG_PERMISSION_SELECTED_LOCATION_ACCURACY" into sc-dev am: bade294311
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13562598
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ib1767dcb165c07afd37c19f81f0aee52de709bda
2021-02-19 19:34:00 +00:00
Guojing Yuan
bade294311
Merge "Provide an example for FLAG_PERMISSION_SELECTED_LOCATION_ACCURACY" into sc-dev
2021-02-19 19:10:25 +00:00
Chavi Weingarten
3ebe6a968b
Merge "Added public APIs to generate and validate a DisplayHash." into sc-dev am: c14465c2bb
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13429136
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Iecbd79812c4d905035dc68bde44a4416a02a9022
2021-02-19 02:26:19 +00:00
Chavi Weingarten
c14465c2bb
Merge "Added public APIs to generate and validate a DisplayHash." into sc-dev
2021-02-19 01:47:14 +00:00
Soonil Nagarkar
2501c2728b
Proposal: Reduce the number of IPCs in PendingIntent
...
Several PendingIntent methods are named such that there is very little
hint they involve any IPC, leading devs to overuse them, and thus adds
substantial strain on the system. Caching some of the most used method
results could remove 1000s of unnecessary IPCs.
Bug: 180518680
Test: manual sanity check
Change-Id: I7658251113ebb1e51280a4b8f3b49159d4f764f0
2021-02-18 16:40:06 -08:00