Commit Graph

25062 Commits

Author SHA1 Message Date
Chiachang Wang
574705c4d1 Merge "Move data stall definitions out from Setting" into qt-dev
am: 6839f419de

Change-Id: I0a2a1e5d3de14ea86556ca471e26064df3481412
2019-04-09 05:30:34 -07:00
Chiachang Wang
0b98441205 Move data stall definitions out from Setting
From mainline perspective, we should use android flag api
instead of using Settings. Thus, move the definitions into
NetworkStack.

Bug:120013793
Test: atest NetworkStackTests SettingsBackupTest
Change-Id: I8e1fb5b47fff3bf624131ba1f5732daabd991e6d
2019-04-09 08:32:55 +00:00
Andrew Sapperstein
e01b71f1ef Merge "Adds annotations in response to API feedback." into qt-dev
am: b7cbb87e90

Change-Id: I4cba298d55bf8188b37a3e0e30fe5eb812fd0d1e
2019-04-08 20:59:25 -07:00
TreeHugger Robot
b7cbb87e90 Merge "Adds annotations in response to API feedback." into qt-dev 2019-04-09 03:10:37 +00:00
Andrew Sapperstein
1bde3e7473 Adds annotations in response to API feedback.
Fixes: 126699535
Test: is annotation change
Change-Id: Iba61b36386db78e568a5dfc5720646904c75b989
2019-04-08 16:58:04 -07:00
Tor Norbye
c14e105f90 Merge "Revert "Revert "Update MbmsDownloadServiceBase to reflect implements IInterface""" am: 412e701ff2
am: 346b610db6

Change-Id: Ia02b9af411b6a5b5cc3575649fe269e49c069cef
2019-04-08 10:48:55 -07:00
Neil Fuller
90075d9bf2 Merge "Track ErrnoException API changes in libcore" am: 8ca1a0530f
am: ca237545f4

Change-Id: Ia5ff263bf04f73d70334031991bc230e5dfec14b
2019-04-08 10:20:32 -07:00
TreeHugger Robot
e9d146ec9a Merge "Remove DELEGATION_PACKAGE_INSTALLATION" into qt-dev 2019-04-08 15:10:59 +00:00
Svetoslav Ganov
9dfc48d06e Merge "Restricted permission mechanism - framework" into qt-dev 2019-04-08 14:54:03 +00:00
Anthony Tripaldi
8c1ebec4f1 Remove OPTED_OUT Secure Setting based on API Council feedback.
Bug:129768185
Test: manual
Change-Id: I51d47142cfb2abeb17d6ad5e99b8f7d1ea585fc7
2019-04-08 08:35:38 +00:00
Remi NGUYEN VAN
28fd318974 Merge "Remove SocketUtils#setSocketTimeValueOption" into qt-dev 2019-04-08 08:27:49 +00:00
Remi NGUYEN VAN
7d4a9b5b26 Merge "Move attach*Filter() and addArpEntry() methods to NetworkStack" into qt-dev 2019-04-08 08:27:19 +00:00
TreeHugger Robot
aaae9b2426 Merge "Revert "Depecrate flags, and try to match them to actions"" into qt-dev 2019-04-08 08:15:12 +00:00
Svet Ganov
d8eb8b2690 Restricted permission mechanism - framework
This change adds a mechanism for restricting permissions (only runtime
for now), so that an app cannot hold the permission if it is not white
listed. The whitelisting can happen at install or at any later point.

There are three whitelists: system: OS managed with default grants
and role holders being on it; upgrade: only OS puts on this list
apps when upgrading from a pre to post restriction permission database
version and OS and installer on record can remove; installer: only
the installer on record can add and remove (and the system of course).

Added a permission policy service that sits on top of permissions
and app ops and is responsible to sync between permissions and app
ops when there is an interdependecy in any direction.

Added versioning to the runtime permissions database to allow operations
that need to be done once on upgrade such as adding all permissions held
by apps pre upgrade to the upgrade whitelist if the new permisison version
inctroduces a new restricted permission. The upgrade logic is in the
permission controller and we will eventually put the default grants there.

NOTE: This change is reacting to a VP feedback for how we would handle
SMS/CallLog restriction as we pivoted from role based approach to roles
for things the user would understand plus whitelist for everything else.
This would also help us roll out softly the storage permisison as there
is too much churm coming from developer feedback.

Exempt-From-Owner-Approval: trivial change due to APi adjustment

Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.PermissionsHostTest
Test: atest CtsPermissionTestCases
Test: atest CtsPermission2TestCases
Test: atest RoleManagerTestCases

bug:124769181

Change-Id: Ic48e3c728387ecf02f89d517ba1fe785ab9c75fd
2019-04-07 22:39:54 -07:00
Remi NGUYEN VAN
909dfd1352 Remove SocketUtils#setSocketTimeValueOption
This API was added in Q but is not necessary anymore as
Os#setsockoptTimeval was exposed as public API.

Test: m
Fixes: 129433363
Merged-In: If4a75f23c6c0589c23cadce3b088966649062463
(cherry picked from commit 77f9d85f12)

Change-Id: I4669eb2f9fa073d765be6bcb5863a5887eaf1ab5
2019-04-08 04:38:37 +00:00
Remi NGUYEN VAN
995aada788 Move attach*Filter() and addArpEntry() methods to NetworkStack
The SocketUtils.attach*Filter and SocketUtils.addArpEntry methods
were added there because they could not be added as JNI inside
the NetworkStack. This was not possible because on Go devices,
the NetworkStack was a jar library. But now, Go also uses an APK.
Hence, move these methods to the NetworkStack.

Fixes: 129433183
Merged-In: I66d7b3e4fbfa32bb0bc853e8cf9399031daff8a9
(cherry picked from commit fe71be2b04)

Change-Id: Ice433a41469e784385f19498c154345d7b9c69b5
2019-04-08 01:41:39 +00:00
TreeHugger Robot
986f1f4e5f Merge "Add provisioning extra definition to skip education screens" into qt-dev 2019-04-07 10:33:28 +00:00
Yu-Han Yang
3cd9a8631c Change elapsedRealtimeUncertaintyNanos from long to double
Bug: 129166160
Fixes: 129166160

Test: builds and existing tests passed
Change-Id: I948382a9e486b8ddc1ba6a9fe0fd9bb88e9bfb71
2019-04-05 23:23:51 +00:00
Tor Norbye
346b610db6 Merge "Revert "Revert "Update MbmsDownloadServiceBase to reflect implements IInterface"""
am: 412e701ff2

Change-Id: I989adf61ad3a58c6029a9db75d0f883376ad4853
2019-04-05 12:52:40 -07:00
Qasid Ahmad Sadiq
7bcdd702c9 Revert "Depecrate flags, and try to match them to actions"
This reverts commit 063eefa78a.
The problem with this fix is that services expect to be able to
determine if a node has certain capabilities, even if it is disabled,
and doesn't have the action associated with them.

Change-Id: Ia17ed6ed5f92737226cfe704dc71957f2ae5541b
Fix: 120247282
Test: it builds.
2019-04-05 19:47:41 +00:00
Zimuzo Ezeozue
dc269b5a4a Merge "Add supported PackageInfo to ExplicitHealthCheckService API" into qt-dev 2019-04-05 19:06:47 +00:00
Tor Norbye
412e701ff2 Merge "Revert "Revert "Update MbmsDownloadServiceBase to reflect implements IInterface""" 2019-04-05 18:44:55 +00:00
Philip P. Moltmann
ddb9bb211c Merge "Remove Gallery and Music role" into qt-dev 2019-04-05 18:13:14 +00:00
Neil Fuller
ca237545f4 Merge "Track ErrnoException API changes in libcore"
am: 8ca1a0530f

Change-Id: Ide4e8402bb77793ea6d7084ec5473d737a9098ec
2019-04-05 10:07:04 -07:00
Neil Fuller
8ca1a0530f Merge "Track ErrnoException API changes in libcore" 2019-04-05 16:18:42 +00:00
Zimuzo
cd6b11575f Add supported PackageInfo to ExplicitHealthCheckService API
With the change in I4f13638598037acaeb30d61c8d5178f45882fcba
to separate the PackageWatchdog package expiry deadline from the explicit
health check deadline. It would be cleaner for ExtServices to supply
this deadline per-package. We now do that as a field in
PackageInfo.

Bug: 120598832
Test: Builds

Change-Id: I29e2d619a5296716c29893ab3aa2f35f69bfb4d7
2019-04-05 16:05:45 +00:00
Remi NGUYEN VAN
2e74de0a31 Merge "Remove SocketUtils#setSocketTimeValueOption"
am: 7fdf4e958d

Change-Id: I64ed8d74f6a508d6a7ba64a601f6c58f23ae6def
2019-04-05 00:30:28 -07:00
Remi NGUYEN VAN
7fdf4e958d Merge "Remove SocketUtils#setSocketTimeValueOption" 2019-04-05 07:13:54 +00:00
Remi NGUYEN VAN
6652f5242a Merge "Move attach*Filter() and addArpEntry() methods to NetworkStack"
am: 1ddf974859

Change-Id: I1d6a490a42f68d01e3d0649035cd0015cb522da3
2019-04-04 23:50:27 -07:00
Remi NGUYEN VAN
1ddf974859 Merge "Move attach*Filter() and addArpEntry() methods to NetworkStack" 2019-04-05 06:38:08 +00:00
Tyler Gunn
4d97d127fd resolve merge conflicts of 37f6620029 to stage-aosp-master
Bug: 129531123
Test: I solemnly swear I didn't test this conflict resolution.
Change-Id: I9efdae311353efc40402db6080312d3683330c41
2019-04-04 20:54:37 +00:00
Tyler Gunn
37f6620029 Merge "Remove call identification APIs." 2019-04-04 19:35:10 +00:00
Todd Kennedy
7ea2e485fe fix nullability
Bug: 126701951
Test: It builds, it runs
Merged-In: I43e02551ced8a6aa51b84dd8df7e57e75e1d58a9
Change-Id: I43e02551ced8a6aa51b84dd8df7e57e75e1d58a9
2019-04-04 18:11:01 +00:00
Philip P. Moltmann
206445526b Remove Gallery and Music role
Test: atest CtsRoleTestCases
Bug: 129789528
Change-Id: I10b43f5186e27f2087bbb37d731c557cc1b57cf6
2019-04-04 10:00:05 -07:00
arangelov
373a0eb1a7 Add provisioning extra definition to skip education screens
Bug: 129750998
Test: none
Change-Id: I874c80d36d2d3e7f2a602c2e231a73dab3baef21
2019-04-04 15:33:36 +00:00
Rubin Xu
edeb2ffab3 Remove DELEGATION_PACKAGE_INSTALLATION
Bug: 112982695
Test: atest MixedDeviceOwnerTest.testDelegation
Change-Id: I729f27e132e608e81d4971966743b3988e612ab5
2019-04-04 15:39:09 +01:00
Neil Fuller
4ff211f291 Track ErrnoException API changes in libcore
See the associated change in libcore.

Bug: 129935077
Test: See libcore/ change
Change-Id: I68a98df35f070db31fa3eb2967d7fab0a78d0ecf
2019-04-04 12:59:07 +00:00
Remi NGUYEN VAN
fecb63075b Remove SocketUtils#setSocketTimeValueOption
This API was added in Q but is not necessary anymore as
Os#setsockoptTimeval was exposed as public API.

Test: m
Fixes: 129433363
Change-Id: Ifd04c0314f7f7c0dbd0ed89dbaf69b9c152d3330
2019-04-04 18:02:49 +09:00
Todd Kennedy
605d6b1d46 Merge "Return the update timestamp in getStagedSessions()" 2019-04-03 22:57:48 +00:00
Chen Xu
1ec46998a0 Merge "SDK API doesSwitchModemConfigTriggerReboot" 2019-04-03 22:17:47 +00:00
Ryan Mitchell
e0c0c883aa Merge changes from topic "rro-cts"
* changes:
  RRO CTS Test APIs
  Relax restrictions on non-system overlays
2019-04-03 20:04:41 +00:00
Todd Kennedy
719082db68 Merge "OverlayInfo API: fix @Nullable -> @NonNull" 2019-04-03 17:48:11 +00:00
chen xu
c320f2cb37 SDK API doesSwitchModemConfigTriggerReboot
Bug: 129424775
Change-Id: If03e376ad0e91ad69f8444567700ed3fe76d66f6
2019-04-03 10:21:33 -07:00
Tyler Gunn
6b9102d88b Merge "Remove call identification APIs." 2019-04-03 17:18:10 +00:00
Dario Freni
56c14ddc53 Return the update timestamp in getStagedSessions()
This CL adds a SessionInfo.getUpdateMillis() call to the API in order
for callers to figure out which session was applied last.

Change-Id: I3eed6c80f4777ee248671d17d9428eed2fe73aa8
Fix: 129546185
Test: atest CtsStagedInstallHostTestCases; atest apex_e2e_tests
2019-04-03 16:18:31 +00:00
Mårten Kongstad
900debd671 OverlayInfo API: fix @Nullable -> @NonNull
OverlayInfo#getTargetPackageName will never return null. Correct
@Nullable annotation to say @NonNull instead.

Fixes: 129853770
Test: builds, boots
Change-Id: I70a9634e4f7da99be5d9044a7884b9ad01a22fd8
2019-04-03 16:09:38 +00:00
Olivier Gaillard
f84f4f8a34 Change visibility of *WorkSourceUid APIs to public instead of @SystemApi.
Bug: 127465468
Test: atest BinderWorkSourceTest
Change-Id: Ib5743219ed44b893a64825d3d8c66e2f20b4197f
2019-04-03 14:49:24 +01:00
paulhu
931cdd273f Move attach*Filter() and addArpEntry() methods to NetworkStack
The SocketUtils.attach*Filter and SocketUtils.addArpEntry methods
were added there because they could not be added as JNI inside
the NetworkStack. This was not possible because on Go devices,
the NetworkStack was a jar library. But now, Go also uses an APK.
Hence, move these methods to the NetworkStack.

Change-Id: I1d88a0f0be23f2b15d5103fa092b9bf982329d7c
Fix: 129433183
Test: atest NetworkStackTests FrameworksNetTests
2019-04-03 17:49:36 +08:00
Remi NGUYEN VAN
34495dc292 Merge "Fix API in CaptivePortal, StaticIpConfiguration" am: 0470353c2e am: 77daae9b3d
am: e86dfa92fe

Change-Id: Icda65fe4a009a754b6a1a763d402820652d55391
2019-04-03 02:28:11 -07:00
Remi NGUYEN VAN
e86dfa92fe Merge "Fix API in CaptivePortal, StaticIpConfiguration" am: 0470353c2e
am: 77daae9b3d

Change-Id: I82eee20855710de2b4fb541dd5e2b887140ed364
2019-04-03 02:12:22 -07:00