Commit Graph

7497 Commits

Author SHA1 Message Date
Neil Fuller
1b883e2118 Merge "Remove System APIs not required for R" 2020-02-05 11:47:13 +00:00
Alex Buynytskyy
716588dec9 Minor renaming: IIncrementalManagerNative -> IIncrementalService.
Manager(client)->Service(server) seems to be easier to understand.

Test: builds
Bug: b/136132412 b/133435829
Change-Id: I3bc447fbf7a7aac917df7b4632def75e0da3f1a0
2020-02-05 01:35:06 +00:00
Automerger Merge Worker
e0c14895d6 Merge "Add getExtension to android.os.IBinder interface" am: 935dfd2ce9 am: 84642d37d5 am: fcc3a08dd4
Change-Id: I3e36d8ab9a629377529afbb1c0276c79d3414a00
2020-02-04 22:58:57 +00:00
Automerger Merge Worker
fcc3a08dd4 Merge "Add getExtension to android.os.IBinder interface" am: 935dfd2ce9 am: 84642d37d5
Change-Id: I7e67000c0434f9f8b72af643d4fd23892fcbbb6c
2020-02-04 22:43:51 +00:00
Automerger Merge Worker
84642d37d5 Merge "Add getExtension to android.os.IBinder interface" am: 935dfd2ce9
Change-Id: I0379693d0c87e77eaed7dd133edb00c410d2dfd5
2020-02-04 22:28:29 +00:00
Automerger Merge Worker
cc8a66cb12 Merge "Allow credstore to call into KeyAttestationApplicationIdProviderService" am: 715e754115 am: 11e5071fbb am: 406f067b69
Change-Id: I1e7159c7110dfd157f25d36bcfe75c56de8e026c
2020-02-04 22:22:38 +00:00
Yo Chiang
935dfd2ce9 Merge "Add getExtension to android.os.IBinder interface" 2020-02-04 22:17:24 +00:00
Automerger Merge Worker
406f067b69 Merge "Allow credstore to call into KeyAttestationApplicationIdProviderService" am: 715e754115 am: 11e5071fbb
Change-Id: I63f2cdcd2240b842614093761390bad866ef091b
2020-02-04 22:08:52 +00:00
Automerger Merge Worker
11e5071fbb Merge "Allow credstore to call into KeyAttestationApplicationIdProviderService" am: 715e754115
Change-Id: I0d0c1be195ec894570c1fcbebca3f8b3298b1b34
2020-02-04 21:49:42 +00:00
Treehugger Robot
715e754115 Merge "Allow credstore to call into KeyAttestationApplicationIdProviderService" 2020-02-04 21:31:31 +00:00
Neil Fuller
567a91279f Remove System APIs not required for R
Test: treehugger
Bug: 148842434
Change-Id: If022a726a058a90cb5446d220628c76800da8e96
2020-02-04 18:59:23 +00:00
David Zeuthen
117fcb6c33 Allow credstore to call into KeyAttestationApplicationIdProviderService
This was previously reserved for keystore only but since credstore
also needs to do attestations, this is needed.

Bug: 111446262
Test: atest android.security.identity.cts
Test: Manually verifying the AttestationApplicationId from credstore
Change-Id: Ie44f9e4c8f2e1bd916ccbe7c7e5537dc498d8154
2020-02-04 10:18:33 -05:00
Howard Ro
756e44741e Merge "Move StatsDimensionsValue.java to statsd apex" 2020-02-04 06:38:37 +00:00
Alex Buynytskyy
c5682f5b68 Unifying non-incremental and incremental.
Step 1 moving all Incremental code into prepareDataLoaderLocked - where
non-incremental DataLoader calls reside.

Test: atest PackageManagerShellCommandTest
Bug: b/136132412 b/133435829 b/136132412
Change-Id: Icf670de6d4802bf52cd4a93fa4475629d9ac9bc0
2020-02-03 20:28:09 -08:00
Tej Singh
8ffe1eae8b Move StatsDimensionsValue.java to statsd apex
Test: builds, boots
Bug: 146578788
Change-Id: Iaeb9eaf8c412964ccf57debca1445063e9120ef9
2020-02-03 19:03:44 -08:00
Automerger Merge Worker
3f10146fe6 Merge changes Ib7daba9c,Ib692bff0 am: 75b7e58c47 am: 72dcf0a781 am: 3503f24fe4
Change-Id: I77cc4ef70bcad85d921496a8e307997973de43b4
2020-02-03 20:28:53 +00:00
Automerger Merge Worker
3503f24fe4 Merge changes Ib7daba9c,Ib692bff0 am: 75b7e58c47 am: 72dcf0a781
Change-Id: I881ade99a6dde6566b12974b058efa4a5ef13073
2020-02-03 20:17:49 +00:00
Automerger Merge Worker
72dcf0a781 Merge changes Ib7daba9c,Ib692bff0 am: 75b7e58c47
Change-Id: I3067f3dfa8a5d0167f27af5af768d303bccd5510
2020-02-03 20:08:24 +00:00
Treehugger Robot
75b7e58c47 Merge changes Ib7daba9c,Ib692bff0
* changes:
  UpdateEngine: add WorkerThread annotation.
  UpdateEngine.AllocateSpaceResult: rename functions
2020-02-03 19:55:48 +00:00
Songchun Fan
7bf70c97b1 Merge "make adb install --incremental work" 2020-02-03 17:39:00 +00:00
TreeHugger Robot
3f5ed8b0ae Merge "Add API for updating quota type of files on external storage." 2020-02-03 11:18:32 +00:00
Martijn Coenen
6caa2d15be Add API for updating quota type of files on external storage.
In recent releases, Android has used the GID of files on external
storage to compute quota for various media types. This was implemented
by the kernel sdcard filesystem, which kept a mapping of file
extension->GID, and automatically set the correct GID on the lower
filesystem. We then simply asked the kernel "how much space is used by
the GID corresponding to image files" to determine how much space image
files took up on external storage.

sdcardfs will be removed starting with devices launching with R; this
means that the quota tracking implementation can no longer live in the
kernel on these devices. MediaProvider is a logical place to initiate
the quote handling in userspace, since it is responsible for all files
on external storage.

But since MediaProvider is now a mainline module, we don't want the
quota tracking implementation to live in MediaProvider itself. Instead,
provide a new @SystemAPI on StorageManager that can be called whenever
we need to set the quota type for a file on external storage. This
allows MediaProvider to call this API whenever a file is created on
external storage, or whenever its type is changed such that it requires
using a different quota type (eg going from an image file to an audio
file, which is presumably a rare case).

The API doesn't require a special permission, because the current
implementation is not a binder call, but an in-process call to modify
filesystem attributes. That means that the caller must already be in an
SELinux domain that allows these attribute modifications. Currently,
only MediaProvider and vold are allowed to modify these attributes.
Therefore, this API is effectively protected by SELinux.

Bug: 146419093
Test: builds. Functionality will be tested with existing
      StorageHostTest CTS test, but running that tests depends on other
      changes (eg a device without sdcardfs). This is tracked in the
      test plan for removing sdcardfs.
Change-Id: I9ffb11a89b17e5596fce70e96c06a8af2142e41f
2020-02-03 09:36:00 +01:00
Yo Chiang
b031685032 Add getExtension to android.os.IBinder interface
Provide a mechanism to extend and customize a binder interface without
having to modify the original (base) interface.
See the full motivation here: aosp/1099664

Bug: 147834064
Test: atest FrameworksCoreTests:BinderTest FrameworksCoreTests:BinderProxyTest
Change-Id: Idd3595b1302cf7ac0590d064e795ba0b75811af6
2020-02-03 16:07:35 +08:00
Songchun Fan
54c6aed58d make adb install --incremental work
With a simple Java apk (flipboard.app).

BUG: 133435829
Test: manual
Change-Id: If702afffc0e01cbb03f88560c0569fd23dda2350
2020-01-31 19:48:35 -08:00
Automerger Merge Worker
dc9e5ee91f Merge "GraphicsEnv: refactor to unify the debuggable logic" into qt-qpr1-dev am: e10e0fffcf
Change-Id: I15a25d43561f3176efaad4c92c928ea5d4223066
2020-01-31 18:37:58 +00:00
Chris Ye
24dc2c2d53 Merge "Change VibrationAttributes.Builder.replaceFlags() to @hide." 2020-01-31 17:19:08 +00:00
TreeHugger Robot
cd0c0c63b6 Merge "Clarified docs on WorkSource#size()" 2020-01-31 01:46:21 +00:00
Andrii Kulian
e11e951f66 Merge changes from topic "add_bundle_to_window_context"
* changes:
  Exempt-From-Owner-Approval: Fix usages of WindowManager.getDefaultDisplay() in f/b
  Add bundle options to Context#createWindowContext API
2020-01-31 01:16:34 +00:00
Andrii Kulian
e57f2dc246 Exempt-From-Owner-Approval: Fix usages of WindowManager.getDefaultDisplay() in f/b
Replace the existing usages of now-deprecated API
WindowManager.getDefaultDisplay() with WindowMetrics or
Context.getDisplay() in frameworks/base.

Bug: 128338354
Test: Build, auto test
Change-Id: I02d38a022c5e0e6e9d699f03d35b65d6c8126da9
2020-01-31 01:15:21 +00:00
Adam Bookatz
61899e5970 Remove UM.isUserOfType(userHandle) API
isUserOfType is @UserHandleAware, so there is no need for the version
that takes in a userHandle.
(See ag/9259675)

Test: atest UserManagerTest#testProfileTypeInformation
Bug: 139914710
Change-Id: I283900a6c0571c2dd1cdfd96fe7413f32ddb7adf
2020-01-30 11:48:29 -08: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
Yifan Hong
f64f31e7be UpdateEngine: add WorkerThread annotation.
Add @WorkerThread to allocateSpace and cleanupAppliedPayload
because they take a non-trivial amount of time.

Bug: 148486809
Test: builds
Change-Id: Ib7daba9c662b9e141430df71401d069577221b8a
2020-01-29 17:44:49 -08:00
Yifan Hong
e8380c9876 UpdateEngine.AllocateSpaceResult: rename functions
Rename functions from X() to getX().

Also update docs.

Bug: 148486809
Test: builds

Change-Id: Ib692bff06bcf0018826e78b28f0a9b2ed0431060
2020-01-29 17:44:47 -08:00
Suprabh Shukla
c656670c8a Clarified docs on WorkSource#size()
Test: make -j docs

Fixes: 148515277
Change-Id: I1814d05deab932ae3ba93fd987ac7a14a0ea89c5
2020-01-29 15:32:27 -08:00
Chris Ye
cb7378d989 Change VibrationAttributes.Builder.replaceFlags() to @hide.
Remove VibrationAttributes.Builder.replaceFlags() from public API.
Add VibrationAttributes.Builder.setFlags() as public API.

Bug: 148286757
Test: atest VibrationAttributesTest
Change-Id: I573268d75f70b36552bd1ecd547906a4b50b77cb
2020-01-29 13:00:41 -08:00
Alex Johnston
b7fc2ab443 Merge "Update profile owner of org-owned device global restrictions" 2020-01-29 17:51:25 +00:00
TreeHugger Robot
e0206059a1 Merge "Revert "Partial Revert of ag/10161061"" 2020-01-29 02:32:59 +00:00
Yurii Zubrytskyi
577c74b861 Merge "Port the current code to new IncFS" 2020-01-29 01:37:01 +00:00
Roshan Pius
28b79072a9 Revert "Partial Revert of ag/10161061"
This reverts commit 81d7cece57.

Reason for revert: The telephony unit tests are fixed.
Bug: 148282682

Change-Id: Ib835f0abf4faf33ea3a54420c84c1f8383d663c3
2020-01-29 00:51:25 +00:00
Yurii Zubrytskyi
4a25dfb2de Port the current code to new IncFS
Bug: 146080380
Test: manual, "cmd incremental install-start"

Change-Id: I6761c3f0e58b6d4de1ae3c4b31c23204fba9f740
2020-01-28 12:10:17 -08:00
Alex Johnston
9722abe539 Update profile owner of org-owned device global restrictions
Added user restrictions to the list of user restrictions that are
applied globally when set on the parent profile DPM instance
by the profile owner of an organization-owned device.

Bug: 148437699
Test: atest com.android.server.pm.UserRestrictionsUtilsTest
      atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testDevicePolicyManagerParentSupport
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testUserRestrictionsSetOnParentAreEnforced

Change-Id: Ic202524d5bc643f9704c98d6c5d60c206d9b663a
2020-01-28 16:15:55 +00:00
TreeHugger Robot
f335551b69 Merge "Add haptic composition API." 2020-01-28 12:17:28 +00:00
Automerger Merge Worker
6100cdb620 Merge "Add @RequiresPermission annotation to reboot APIs" am: 147863d9fc am: dab92d5611 am: f613e166f2
Change-Id: I4c9e098636584896625e31fb2ee5099aaef12278
2020-01-28 11:18:55 +00:00
Automerger Merge Worker
f613e166f2 Merge "Add @RequiresPermission annotation to reboot APIs" am: 147863d9fc am: dab92d5611
Change-Id: I6d1bd40becf31ddf274c79dd34b38c90f5f83cbe
2020-01-28 11:04:18 +00:00
Nikita Ioffe
dab92d5611 Merge "Add @RequiresPermission annotation to reboot APIs"
am: 147863d9fc

Change-Id: I5ca246de4d4f8912271d222c3e82e96d3d47fa6d
2020-01-28 02:57:56 -08:00
Peter Wang
f3ad937082 Merge "[Telephony Mainline] Make ServiceRegisterer static" 2020-01-28 00:02:14 +00:00
Automerger Merge Worker
251a110c45 DO NOT MERGE: Adds artificial package handler latency am: de626c28d7 am: 895d932835
Change-Id: Icbf1e5c7475260bee1c147f92aa328dd29f4fb17
2020-01-27 20:22:29 +00:00
Automerger Merge Worker
895d932835 DO NOT MERGE: Adds artificial package handler latency am: de626c28d7
Change-Id: I5303926e34c973ca9e4a7d12d0f4cd46e2fbcde8
2020-01-27 20:14:59 +00:00
Anton Hansson
db59208477 Merge "Hide Status @IntDef" 2020-01-27 19:10:21 +00:00
Michael Wright
274640e756 Add haptic composition API.
Not all effects will be thought of by system owners. By exposing the
underlying primitives we use to design effects we can enable our own
future development in an unbundled fashion while at the same time
providing the ecosystem more freedom to create novel and meaningful
haptic experiences.

This CL implements the fundamental parts of the APIs but doesn't yet do
a number of things (e.g. intensity scaling, breaking up long delay
durations with NOOP primitives, etc.)

Bug: 139762802
Test: atest VibratorTest
      manual testing
Change-Id: I15d12f34137a81ca64390b4ef06927341b6ca1ac
2020-01-27 18:53:55 +00:00