Commit Graph

14660 Commits

Author SHA1 Message Date
Mathew Inwood
31755f94e1 Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 11:50:04 +00:00
Chavi Weingarten
89000d0687 Merge "Wait for enter animation to complete when calling startActivitySync" 2018-12-27 17:55:53 +00:00
Remi NGUYEN VAN
708c409598 Merge "Add NetworkStack app" am: d01eaecbd2 am: e1922923fc
am: 5673820f9b

Change-Id: Idcd7b9b6eb50a98bcee67f89b0112b91cd1b40fb
2018-12-25 17:21:18 -08:00
Remi NGUYEN VAN
5673820f9b Merge "Add NetworkStack app" am: d01eaecbd2
am: e1922923fc

Change-Id: Iebe5aa5ea7cd235b8a6e734bde0f9a14dce5acdc
2018-12-25 17:09:42 -08:00
Remi NGUYEN VAN
c094a5402c Add NetworkStack app
The app is not started yet, and does not contain any service for now.

Test: built, booted
Bug: b/112869080
Change-Id: Id5a0fd02c891100e85d86b1040e53beec3581950
2018-12-25 11:42:42 +09:00
Andrii Kulian
60e88ecdca Merge "Add API to check if activity can be started on a display" 2018-12-23 20:43:03 +00:00
Chandan Nath
9dc26b0fb6 Merge "[Backup cleanup] remove unused (and no-op) method setBackupProvisioned" 2018-12-23 14:50:13 +00:00
TreeHugger Robot
dd6ea3bf12 Merge "Users can change zen policy for system dnd rules" 2018-12-21 21:16:38 +00:00
chaviw
feb2e1e0b4 Wait for enter animation to complete when calling startActivitySync
Tests may need to wait until the Activity's enter animation
is complete before executing. This is to make sure the windows
are all in the correct place. This change ensures the startActivitySync
waits on enter animation to complete for that activity before
proceeding.

Change-Id: Ifd7bfd41b39518518f4013fad80c3acd1e8b2354
Fixes: 120430810
Test: InstrumentationTest#testSendPointerSync
2018-12-21 10:56:55 -08:00
Beverly
1219670629 Users can change zen policy for system dnd rules
- Check consolidated zen policy in volume dialog, seek bar volumizer
and ZenModeControllerImpl instead of default notification policy
- Save ZenPolicy changes on restore

Test: atest ZenModeHelperTest
Test: atest ZenModeControllerImplTest
Bug: 111475013
Change-Id: I43b6dc8c6453739c50c874fe37415d425223d8c4
2018-12-21 10:57:54 -05:00
Chandan Nath
91824ff096 [Backup cleanup] remove unused (and no-op) method setBackupProvisioned
Bug: 120120742

Test: 1) atest RunBackupFrameworksServicesRoboTests
2) atest $(find \
frameworks/base/services/tests/servicestests/src/com/android/server/backup \
-name '*Test.java')
3) atest CtsBackupTestCases
4) atest CtsBackupHostTestCases
5) atest GtsBackupTestCases
6) atest GtsBackupHostTestCases

Change-Id: I7b712f346f851ca4f2b6b7d62a0a8fdcc7c77a56
2018-12-21 12:11:23 +00:00
TreeHugger Robot
434cf654db Merge "Set UID appops mode instead of package appops mode" 2018-12-21 07:22:09 +00:00
Philip P. Moltmann
159d98bda1 Set UID appops mode instead of package appops mode
In PermissionManagerService and DefaultPermissionGrantPolicy.

This mirrors what the permission controller is doing. Better make sure
all modules changing app-ops for runtime permissions do it the same way.

Test: Looked at pre-grants after boot, changed permissions after boot
Change-Id: I88386ec6842324b28ab408ea5cd113c9cc7de9fe
2018-12-20 16:08:01 -08:00
Svetoslav Ganov
c60fbd4fcd Merge "Use raw op codes for the watch noted APIs." 2018-12-20 20:59:47 +00:00
Fabian Kozynski
0b4592cecb Use raw op codes for the watch noted APIs.
Test: atest com.android.server.AppOpsServiceTests
Test: atest com.android.systemui.appops.AppOpsControllerTest

bug:121246606

Change-Id: Id99923c566fbf132914b15c676cb766d8793e875
2018-12-20 12:58:45 -05:00
Svetoslav Ganov
f0bfb0427c Merge "Make sure unsafeCheckOpRaw ops check raw ops" 2018-12-20 15:38:35 +00:00
Svet Ganov
9d528a1171 Make sure unsafeCheckOpRaw ops check raw ops
Test: manual

bug:119323172

Change-Id: Ic21d03af3a08bdca76821f2bc644482e7e5a1300
2018-12-19 17:25:52 -08:00
Gustav Sennton
38c573fef3 Merge "Add javadoc for Notification.getAllowSystemGeneratedContextualActions()" 2018-12-19 22:11:46 +00:00
TreeHugger Robot
802c621509 Merge "Move app overlay permission to app level" 2018-12-19 21:27:29 +00:00
TreeHugger Robot
70f04ce261 Merge "Allow delegates to see the notifications they post" 2018-12-19 15:33:50 +00:00
Julia Reynolds
33ab8a0cda Move app overlay permission to app level
Test: cts, atest
Bug: 111236845
Change-Id: I21c52cc7ce6d8e48354a7f258ee8b07d96dcef47
2018-12-19 10:29:36 -05:00
Chandan Nath
2ec8b91026 Merge "[Multi-user] Change more BackupManager AIDL methods to accept userId in methods" 2018-12-19 11:50:10 +00:00
Gustav Sennton
79ebf4bf24 Add javadoc for Notification.getAllowSystemGeneratedContextualActions()
Bug: 121188848
Test: N/A
Change-Id: I66c3403fb55833494572fc5d85073a631c8212fb
2018-12-19 10:33:20 +00:00
Dianne Hackborn
2da290134f Merge "Add package information to association sources." 2018-12-18 23:58:33 +00:00
Andrii Kulian
2eb84b2877 Add API to check if activity can be started on a display
Some activity launch restrictions apply to virtual displays, which
are not communicated to apps. Currently there is no way to check
this in advance before starting an activity. This means that an app
get an unexpected SecurityException after calling startActivity and
therefore cannot know when to show in their UI a possible option to
launch on a secondary display.

This CL gives adds a public API to check the possibility of launch
on a specific display.

Test: ActivityManagerMultiDisplayTests
Bug: 119575501
Change-Id: Ieb70f0bb79b1a88b7284a19af2efeeb1fcb90f75
2018-12-18 15:07:04 -08:00
Svet Ganov
b3d2ae2644 Add private APIs to watch noted app ops - framework.
This change adds simple APIs to watch for noted ops. We are now
reporting a callback for every note which could lead to too many
call but until this is found to be the case we stick to the simple
solution. We already have APIs to watch started and stopped ops
which in theory could have the same frequence as noted ops, so
this is consistent to our approach.

bug:117617221
bug:119323172

Test: atest androidx.test.runner.AndroidJUnitRunner

Change-Id: I46c4b00e765eb14df8c30471d2b80dda905b8125
2018-12-18 13:04:51 -08:00
Dianne Hackborn
24bbe58df6 Add package information to association sources.
This is often known by the system, though not always.  But when
we do know it, it is really useful to maintain that info so we can
do queries like "give me all of the associations that package X is
involved with".

Bug: 121146315
Test: manual
Change-Id: I0dd7aeb9147ecfd65a510d3b2a8bb4a0fbab57e3
2018-12-18 11:09:55 -08:00
Chandan Nath
d1ee43e576 [Multi-user] Change more BackupManager AIDL methods to accept userId in methods
Bug: 120120742

Test: 1) atest RunFrameworksServicesRoboTests
2) atest $(find \
frameworks/base/services/tests/servicestests/src/com/android/server/backup \
-name '*Test.java')
3) atest CtsBackupTestCases
4) atest CtsBackupHostTestCases
5) atest GtsBackupTestCases
6) atest GtsBackupHostTestCases
7) 'adb shell bmgr' enabled/backupnow flow

Change-Id: Ia0641f66dd0a935420f1aee332bb2e21ca03610e
2018-12-18 14:10:17 +00:00
Dario Freni
8aeec22e28 Merge "Implement ModuleInfoProvider" 2018-12-17 21:45:29 +00:00
Julia Reynolds
feb504cb66 Merge "Deprecate ConditionProviderService." 2018-12-17 21:08:55 +00:00
Ruslan Tkhakokhov
938e0f56a8 Merge "[Multi-user] Add -user param to adb backup/restore" 2018-12-17 20:33:50 +00:00
Julia Reynolds
d12392c427 Allow delegates to see the notifications they post
Via getActiveNotifications().

Test: cts
Bug: 116512137
Change-Id: Ic5a95725ab4297b25d75d375f6fdb2bd34b55306
2018-12-17 19:10:54 +00:00
Eugene Susla
b3469e7390 Merge "On role revocation, don't revoke appops/perms for other held roles" 2018-12-17 18:42:49 +00:00
TreeHugger Robot
56208f49dc Merge "Another round of changes on Content Capture." 2018-12-17 17:59:40 +00:00
TreeHugger Robot
c698e729bb Merge "Adds DESTROY_CONTENT_ON_REMOVAL to VirtualDisplay flags" 2018-12-17 17:56:25 +00:00
Ruslan Tkhakokhov
a2fe6c5bb9 [Multi-user] Add -user param to adb backup/restore
Add an optional parameter -user to provide ID of the user for which to
run backup/restore operation. Add robolectric test to verify the
new parameter is proccessed correctly.

Bug: 119908153
Test: 1) atest BackupTest
      2) atest BackupManagerServiceTest
      3) atest TrampolineTest
      4) atest GtsBackupTestCases
      5) atest GtsBackupHostTestCases
      6) Manual:
        - Run "adb backup -all" and verify that backup is successfull
        - Run "adb restore" and verify that restore is successfull
        - Run "adb backup -all -user 10" and verify that backup faield as
          it's only currently supported for system user
        - Run "adb restore -user 10" and verify that restore failed as it's
          only currently supported for system user

Change-Id: I6dbf9c87eedd5a72da0446beff7d2551f98f2654
2018-12-17 16:48:13 +00:00
Paul Duffin
6e5de81b95 Merge "Remove uses of libcore.io DropBox and EventLogger" am: 1c3592a865
am: 14c0c4185c

Change-Id: I7450fe00df591155dc84e405d13e887e5c03f651
2018-12-17 07:39:26 -08:00
Julia Reynolds
68062074c6 Deprecate ConditionProviderService.
And replace it with something more battery friendly!

Test: CTS, runtest systemui-notification
Bug: 111474881
Change-Id: I45af94135fb8d2de050d5f7baaa9724b95bb1907
2018-12-17 09:13:59 -05:00
Paul Duffin
bf76cf7c82 Remove uses of libcore.io DropBox and EventLogger
DropBox and EventLogger provide hooks for use by framework to intercept
messages sent by libcore. However, neither of these mechanisms are
actually used by libcore so there is no point in framework code using
it.

(cherry picked from commit ecb6124d54)

Bug: 119748341
Test: make checkbuild, flash
Merged-In: I9dbd1b6dea92f7441efb6d0a579efd13bc0e5139
Change-Id: I65425e49ab9ad9752b65772d27f788d1a674eeff
2018-12-17 12:10:11 +00:00
Paul Duffin
407396e349 Merge "Remove uses of libcore.io DropBox and EventLogger" 2018-12-17 11:19:50 +00:00
Michael Groover
f1a5b6e0bf Merge changes from topic "SensorPrivacyMode"
* changes:
  Add SensorPrivacy constants to SettingsBackupTest
  Prototype Spaceship mode qstile
2018-12-15 18:07:26 +00:00
Felipe Leme
aa5088ede6 Another round of changes on Content Capture.
- Get rid of activity-level events.
- Renamed InteractionSessionId and InteractionContext to
  ContentCaptureSessionId and ContentCaptureContext (and made them public)
- Create the explicit concept of ContentCaptureSesssion (and moved notification
  APIs to it).
- Added APIs to let apps create new sessions (not implemented yet).
- Added APIs to remove user data based on some context properties (like URI).

The reasoning behind this change is to let app developers explicitly associate
the captured content with some app-level domain (and also let the app ask the
service to clear such data at user's request). For example, a browser app
(and WebView) can use these APIs to associate the content capture events with
the URL being rendered.

Bug: 117944706
Fixes: 121034139

Test: atest CtsContentCaptureServiceTestCases
Test: m update-api && m

Change-Id: I7841da303b6a39c825651b03a07e3081fbd0bdf5
2018-12-14 18:02:24 -08:00
TreeHugger Robot
72ea8b20a4 Merge "Allowing Jobs with no constraints." 2018-12-15 01:43:25 +00:00
Chad Brubaker
90f391fe87 Prototype Spaceship mode qstile
Initial prototype disabling location/sensors and enabling airplane mode.
Camera/Mic will come in a followup.

Test: manual
Bug: 110842805
Change-Id: I26132fcc9ffea83e3e78a0e54882d23c99ee590c
2018-12-14 20:46:04 +00:00
Mark Renouf
97fcc1807b Adds DESTROY_CONTENT_ON_REMOVAL to VirtualDisplay flags
Currently when an ActivityView is removed/released, any remaining
tasks on the display are moved to the main display. This change
causes those tasks to be destroyed instead.

Bug: 111236845
Test: manual, built and tested with ActivityView SystemUI plugin
Change-Id: Ifaa9df6fab05ce82e1bad4e2f5a19c4c7476aec6
2018-12-14 14:25:59 -05:00
Andrew Solovay
ad7477b192 docs: Fixing malformed javadoc
am: 6eaf48ea57

Change-Id: Idf8415ee4fb85e52d74e1f8bec8d0e2f8d1f58f1
2018-12-14 10:50:44 -08:00
Adrian Roos
19cc34233c Merge "KeyguardDisableHandler: make properly user aware" 2018-12-14 18:42:56 +00:00
Paul Duffin
ecb6124d54 Remove uses of libcore.io DropBox and EventLogger
DropBox and EventLogger provide hooks for use by framework to intercept
messages sent by libcore. However, neither of these mechanisms are
actually used by libcore so there is no point in framework code using
it.

Bug: 119748341
Test: make checkbuild, flash
Change-Id: I9dbd1b6dea92f7441efb6d0a579efd13bc0e5139
2018-12-14 15:27:05 +00:00
Eugene Susla
a2a8032641 On role revocation, don't revoke appops/perms for other held roles
Bug: 110557011
Test: atest android.app.role.cts.RoleManagerTest#revokeSingleRoleThenEnsureOtherRolesAppopsIntact
Change-Id: I4ff110ae950b2a6b6acbef1195d69877d2f34c72
2018-12-14 00:59:35 +00:00
Andrew Solovay
6eaf48ea57 docs: Fixing malformed javadoc
Several @link & @see javadoc directives were malformed, resulting in the
Javadoc code being output to the HTML.

Staged to:

http://go/dac-stage/reference/android/app/slice/Slice.Builder
http://go/dac-stage/reference/android/app/slice/SliceProvider
http://go/dac-stage/reference/android/text/style/ImageSpan
http://go/dac-stage/reference/android/content/ContentProvider

Bug: 120743732
Test: make ds-docs
Change-Id: I589644f8d266a116441409fbdaf7a0c533e0e356
Merged-In: I589644f8d266a116441409fbdaf7a0c533e0e356
Exempt-From-Owner-Approval: Doc-only change
2018-12-14 00:11:19 +00:00