Commit Graph

14831 Commits

Author SHA1 Message Date
Philip P. Moltmann
87969723fc Merge "Reset per-pkg app-ops for runtime permissions" 2019-01-28 17:04:24 +00:00
Hongming Jin
175e2f24a2 Merge "Add API in SmsManager to return sms messages for financial app." 2019-01-28 15:57:32 +00:00
Remi NGUYEN VAN
a6ee9704a3 Merge "Add INetd to SystemServiceRegistry" am: e3f18bd77c am: 9268c0be32
am: 50c95ba67c

Change-Id: I10cbfc198a0713dc53bfca611c082bbb387c1194
2019-01-28 00:59:28 -08:00
Remi NGUYEN VAN
50c95ba67c Merge "Add INetd to SystemServiceRegistry" am: e3f18bd77c
am: 9268c0be32

Change-Id: I92cd23a587ab0f7df2db92918011a9a488c31668
2019-01-28 00:47:45 -08:00
Philip P. Moltmann
dde0785228 Reset per-pkg app-ops for runtime permissions
... on every boot.

These should never have been set, but we allow settings them via the
shell.

- Also previously a bug set per-pkg app-ops.
- Also set the app-op correctly when a fg/bg permission looses it's bg
permission.

Test: Set per-pkg app-opp. Rebooted and saw log message.
      atest --test-mapping frameworks/base/services/core/java/com/android/server/pm/permission/:presubmit
Change-Id: If3b56fc08783ea99b4dba70c5fa275b94411ce94
Fixes: 123177944
2019-01-27 20:47:02 -08:00
Remi NGUYEN VAN
3193598566 Add INetd to SystemServiceRegistry
Includes @SystemApi for Context.NETD_SERVICE so system apps (including
the network stack) can obtain the service.

Test: m
Bug: 112869080
Change-Id: Ida63747cd30abb7b3c19559803353eb0e42e6efa
2019-01-28 12:13:08 +09:00
Tej Singh
bd37b5f8b3 Merge "APIs for registering config activation broadcasts" 2019-01-27 02:32:37 +00:00
Hongming Jin
08496b0e98 Add API in SmsManager to return sms messages for financial app.
Test: atest android.telephony.cts.SmsManagerTest
Bug: 111207447
Change-Id: I1571cb005f7c1374a9acbec27041bca291fa7153
2019-01-26 14:26:47 -08:00
Kevin Chyn
1b2137cf42 Deprecate CC and add BP#buildIntent()
To ensure future BP builder changes don't require a 1:1 addition to the
CC API, we're deprecating CC and moving the API to BP.

Since CDC is an activity, and BP can't receive onActivityResult from CDC,
we need to have BiometricService launch CDC. CDC will return auth/reject
results to BiometricService using a private protected aidl method, which
can then forward the reuslt to BP/app.

Bug: 111461540

Test: builds
Test: demo app, receives correct callbacks

Change-Id: I7111ca2842534a596302fe0eb7338fbfaca72eec
2019-01-25 18:09:03 -08:00
Tej Singh
2c9ef2a92e APIs for registering config activation broadcasts
Creates a StatsManager API to register a pending intent that is invoked
whenever the active status of any of any config sent by that uid
changes.

ag/6112554 and further cls are needed to properly send back the pending
intent.

Bug: 123372077
Test: build success on blueline-eng. More thorough testing should be
done once ag/6112554 is submitted.

Change-Id: I36985c9820d4e7ac178064924190af88ea822254
2019-01-25 17:58:02 -08:00
Kevin Chyn
6a2121763c Revert "Add plumbing for setRequireConfirmation to CC"
This reverts commit d75a03b722.

Reason for revert: Adding functionality differently

Change-Id: I90ac64c89566589797f1ad0bf69fefee3fbd04e1
2019-01-25 17:49:14 -08:00
Mady Mellor
b091bc9431 Merge "BubbleMetadata flags: suppress initial notif & auto expand when posted" 2019-01-25 17:26:38 +00:00
TreeHugger Robot
90deb1cfe9 Merge "Fixes an issue where the ambient layout could be null" 2019-01-25 02:00:45 +00:00
Chad Brubaker
22d8f8d41d Merge "Add temp debug logging for app ops" 2019-01-25 01:15:33 +00:00
Selim Cinek
0e06994b73 Fixes an issue where the ambient layout could be null
Change-Id: I0dd190b2349445fbaafe4a5b612619e2dd002539
Fixes: 123247127
2019-01-24 16:09:41 -08:00
Mady Mellor
0157ff27e2 BubbleMetadata flags: suppress initial notif & auto expand when posted
Test: atest NotificationTest
Bug: 111236845
Change-Id: Idd1d23a91f2bf45454d1598637c8d7979b7f5287
2019-01-24 15:49:21 -08:00
Dan Albert
fe1cdd047f resolve merge conflicts of fb54fde402 to master
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I7256999a13b713607cfb4c844bf1bc7b37b827a7
2019-01-24 14:46:02 -08:00
Dan Albert
fb54fde402 Merge "Revert "Whitelist packages from VPN lockdown."" am: 9f73671651
am: 2f94ef95c4

Change-Id: I933a58f97b48f7a2db372cff6fb43318c840c6f8
2019-01-24 13:58:15 -08:00
Zak Cohen
d8e2cc5308 Merge "Add documentation for ContentSuggestionsManager classes." 2019-01-24 21:48:59 +00:00
Evan Rosky
1af8494f70 Merge "Add per-display RemoteAnimation overrides and flag to disable snapshots" 2019-01-24 21:46:37 +00:00
Mark Renouf
86f6ec6ea0 Merge "Adds callbacks for task creation and removal" 2019-01-24 21:28:32 +00:00
Zak Cohen
b399c842dc Add documentation for ContentSuggestionsManager classes.
Bug: 122545621
Change-Id: I449cd71a438410c4cd4796f99af0653750329654
Test: compile, documentation only change
2019-01-24 13:23:15 -08:00
Dan Albert
9f73671651 Merge "Revert "Whitelist packages from VPN lockdown."" 2019-01-24 21:08:46 +00:00
Dan Albert
ee8e6a0fae Revert "Whitelist packages from VPN lockdown."
This reverts commit bb9cef04c5.

Reason for revert: broke pi-dev-plus-aosp

Change-Id: Iaf5c8aa4a8720eb2852da8cd91c81a77ccb92b68
2019-01-24 21:05:39 +00:00
Philip P. Moltmann
a0f377fbe8 Merge "Set assistant as a role" 2019-01-24 20:51:41 +00:00
Chad Brubaker
7c6dba62d1 Add temp debug logging for app ops
To help track down potential bugs add adb commands to enable detailed
stack trace logging of calls to noteOp

Test: Manual
Bug: 123351070
Change-Id: I7817eea95a8861b3979504d16b03076beef1ac13
2019-01-24 12:29:53 -08:00
TreeHugger Robot
356227b0f6 Merge "Add back @NonNull to DevicePolicyManager.wipeData" 2019-01-24 20:19:22 +00:00
Evan Rosky
966759f60a Add per-display RemoteAnimation overrides and flag to disable snapshots
This CL adds a display-level fallback for remoteanimation overrides
and a property to RemoteAnimationAdapter specifying whether it needs
a snapshot for change transitions or not.

During a mode-change, this check for an override and then asks it
whether it needs a snapshot before creating one.

Bug: 113252739
Test: Added AppChangeTransitionTests
Change-Id: I47c933bd08fe512dc6cf029607819e2c908ab4cd
2019-01-24 11:18:42 -08:00
Irina Dumitrescu
b866a5b6e6 Merge "Add API for proxy configuration over VPN." am: 8b5917965d
am: ac77629a1e

Change-Id: I51930e4ed99cc3df10db2c8bbef27989f0a06a46
2019-01-24 10:20:32 -08:00
Pavel Grafov
52e0e403d2 Merge "Whitelist packages from VPN lockdown." am: efc773525c
am: 295016b22b

Change-Id: I643fc2603f7cd2b928fe517eb473048004273835
2019-01-24 10:06:37 -08:00
Treehugger Robot
8b5917965d Merge "Add API for proxy configuration over VPN." 2019-01-24 17:52:22 +00:00
TreeHugger Robot
c1b889d261 Merge "Fix a copy-paste typo." 2019-01-24 17:11:27 +00:00
Mark Renouf
7b71a5d222 Adds callbacks for task creation and removal
Test: ?
Bug: 112574121
Change-Id: Ifb6b82e3656b82f103e529089ae43f79b810aca3
2019-01-24 11:33:52 -05:00
Pavel Grafov
bb9cef04c5 Whitelist packages from VPN lockdown.
Bug: 77468593
Test: atest com.android.server.connectivity.VpnTest
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpn
Test: MixedDeviceOwnerTest#testAlwaysOnVpnAcrossReboot
Change-Id: I7f6c5b9172063b588feacd6b9930a6cb88f764ab
Merged-In: I7f6c5b9172063b588feacd6b9930a6cb88f764ab
2019-01-24 16:17:11 +00:00
Pavel Grafov
46165b5d61 Merge "Whitelist packages from VPN lockdown." 2019-01-24 16:15:08 +00:00
Irina Dumitrescu
044a436ac9 Add API for proxy configuration over VPN.
Test: runtest -x
frameworks/base/tests/net/java/com/android/server/ConnectivityServiceTest.java
&& atest HostsideVpnTests
Bug: 76001058
Change-Id: Id4dde4a4103fd93bfbbacc52d0e5ade56ae67a6a
Merged-In: Id4dde4a4103fd93bfbbacc52d0e5ade56ae67a6a
2019-01-24 16:07:20 +00:00
TreeHugger Robot
06928f4422 Merge "Add API for proxy configuration over VPN." 2019-01-24 15:09:18 +00:00
Lenka Trochtova
eca4ae464a Fix a copy-paste typo.
Bug: 111072170
Bug: 111071972
Test: make

Change-Id: I65d329792a5d8d6146711125ad54815c6411b693
2019-01-24 15:45:25 +01:00
TreeHugger Robot
e1a96063bc Merge changes from topic "calendar-package"
* changes:
  Handle null for the return of getCrossProfileCalendarPackages.
  API change for cross profile calendar feature.
2019-01-24 14:25:45 +00:00
Fabian Kozynski
e56b55182c Merge "Remove @SystemAPI from NotificationAssistantService" 2019-01-24 13:55:30 +00:00
Varun Shah
52792d160a Merge "Added APIs for App Usage Limits." 2019-01-24 13:35:28 +00:00
Irina Dumitrescu
18622d3d35 Add API for proxy configuration over VPN.
Test: runtest -x
frameworks/base/tests/net/java/com/android/server/ConnectivityServiceTest.java
&& atest HostsideVpnTests
Bug: 76001058
Change-Id: Id4dde4a4103fd93bfbbacc52d0e5ade56ae67a6a
2019-01-24 12:54:19 +00:00
Alex Chau
d4ad549702 Add back @NonNull to DevicePolicyManager.wipeData
- Added WIPE_SILENTLY to skip notifying user

Bug: 114711242
Test: cts-tradefed run singleCommand cts -m CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.ManagedProfileTest#testWipeDataWithoutReason
Change-Id: I163e0f3e1ab1e6feef668070a73b1f86db9691b3
2019-01-24 12:08:22 +00:00
Pavel Grafov
1d58621a1f Whitelist packages from VPN lockdown.
Bug: 77468593
Test: atest com.android.server.connectivity.VpnTest
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpn
Test: MixedDeviceOwnerTest#testAlwaysOnVpnAcrossReboot
Change-Id: I7f6c5b9172063b588feacd6b9930a6cb88f764ab
2019-01-24 11:34:17 +00:00
yuemingw
d2bfbc8246 API change for cross profile calendar feature.
According to new requirements in b/121179845, we are changing the
API pattern from "add/remove" to "set(set<string>)" to support
"enable all packages" operation. Setting the whitelist to null
will enable all packages. This behavior is consistent with existing
methods in DevicePolicyManager, e.g. setPermittedInputMethods.

Also corrected some languages in the comments and annotations.

Bug: 121179845
Test: atest ManagedProfileTest#testCrossProfileCalendar
atest DevicePolicyManagerTest

Change-Id: I87f17a2094792e44fdeb672658bddb871c2c1eeb
2019-01-24 10:04:50 +00:00
Kevin Chyn
d75a03b722 Add plumbing for setRequireConfirmation to CC
Bug: 111461540

Test: Builds
Change-Id: I3fdb93282ceea091a459d014759ba747892f1a8c
2019-01-23 20:54:40 -08:00
Varun Shah
2546cef56c Added APIs for App Usage Limits.
Added a new AppUsageLimit group observer which follows the same pattern as
other UsageGroups. This specific observer allows the launcher to query
for the AppUsageLimit, available via the new LauncherApps API below. The
observer can be registered and unregistered via the respective new APIs in
UsageStats.

LauncherApps has a new API which allows it to get the AppUsageLimit for
a specified package and user, initally set via the API in UsageStats.
This new API allows the launcher to query specifics about the limit such
as how much usage time the limit has, and how much total usage time is
remaining.

Bug: 117409586
Test: atest FrameworksServicesTests:AppTimeLimitControllerTests
Test: atest android.app.usage.cts.UsageStatsTest#testObserveUsagePermissionForRegisterObserver
Test: atest android.app.usage.cts.UsageStatsTest#testObserveUsagePermissionForUnregisterObserver
Test: manual (mmma frameworks/base/tests/UsageStatsTest/)
Change-Id: Ifaffab629409e9191e40404a949c8df70bd3f7cb
2019-01-23 20:30:25 -08:00
Fabian Kozynski
b0da4bcb3a Remove @SystemAPI from NotificationAssistantService
Test: CTS tests
Bug: 120852766
Change-Id: I7b755dda96091dba50e12771804aa2ade07e3141
2019-01-23 16:15:54 -05:00
Philip P. Moltmann
5d894505f7 Set assistant as a role
- Register a role observer in VoiceInteractionManagerService. Once the
role is changes map the new role setting onto the old settings.
- As the assistant role is now always set, there is no need to have code
in AssistUtil for the case the assistant setting is not set
- Remove old config option for the default assistant. The default
assistant is not configured via the roles config

Bug: 110557011
Test: - Set, unset and swtiched assistant via the settings UI
        - for voice interaction service
	- for assist activity
      - Booted from freshly wiped device and saw assitant to be set to
        default
Change-Id: I8596f49c6f6496e8b70cf3236aaa7d7557443a93
2019-01-23 13:05:32 -08:00
TreeHugger Robot
e0b050e1c3 Merge "Changed the virtual ids on ContentCapture to be long." 2019-01-23 20:04:51 +00:00