Commit Graph

7772 Commits

Author SHA1 Message Date
TreeHugger Robot
778423d951 Merge "Make Resources.Theme.rebase() public API" 2019-03-23 05:00:14 +00:00
TreeHugger Robot
1987dfa035 Merge "Added a "lite" flag on ContentCaptureOptions." 2019-03-23 04:33:21 +00:00
TreeHugger Robot
0369790fac Merge "Add Shell permission for CTS test." 2019-03-22 22:31:32 +00:00
Winson
173f573a8b Make Resources.Theme.rebase() public API
Needed for androidx dark mode to recreate UI without triggering
lifecycle event.

Bug: 128982541

Test: none needed

Change-Id: I7d16692f074cc7e50470868a6e232e26ff9d1ed3
2019-03-22 14:47:46 -07:00
Ryan Mitchell
fb1ed2258a Merge "Add targetOverlayableName to OverlayInfo" 2019-03-22 21:39:41 +00:00
TreeHugger Robot
f870dc12bb Merge "Introduce new service bind flag to permit capabilities" 2019-03-22 17:23:48 +00:00
TreeHugger Robot
c396d6738c Merge "API review followup: DynamicAndroidClient" 2019-03-22 17:21:39 +00:00
Hyunyoung Song
67a72e8172 Merge "OverlayManager API fixes" 2019-03-22 15:07:19 +00:00
Hai Zhang
be1fe6f31a Merge "Add getDeclaredShareLibraries() for role qualification checking." 2019-03-22 09:43:48 +00:00
Amith Yamasani
f178c96cab Introduce new service bind flag to permit capabilities
Any process state-based capabilities such as location
can be allowed to permeate to the bound app, if the app
has the required permissions as well.

Bug: 128337543
Test: N/A
Change-Id: I0b066d2667333fbd65985959e202785641f704fc
2019-03-21 19:40:11 -07:00
Hai Zhang
1ad238f935 Add getDeclaredShareLibraries() for role qualification checking.
Bug: 124452117
Test: build
Change-Id: I13e4313c4ab5305335fc9490dfc58b03a24a86dd
2019-03-21 18:37:08 -07:00
TreeHugger Robot
4bb646d204 Merge "Allow to listen for addition of work profiles." 2019-03-22 01:35:43 +00:00
TreeHugger Robot
5935252373 Merge "Remove Intent.ACTION_REVIEW_APP_PERMISSION_USAGE." 2019-03-22 01:15:50 +00:00
wilsonshih
5db7b39dd8 Add Shell permission for CTS test.
Add Shell permission for new CTS tests to test the multi-display
functionality in WallpaperService/WallpaperManagerService.

Bug: 123707989
Test: atest WallpaperManagerMultiDisplayTests
Test: atest ActivityManagerMultiDisplayTests

Change-Id: Id97db050a0b9d1940c2dfaa793fbe526df578105
2019-03-22 09:13:10 +08:00
Hyunyoung Song
8a78caff8d OverlayManager API fixes
Bug: 124402715
Bug: 128925918
Test: builds

Addressed all the requests except on OverlayInfo class as much of it's
definition will change in this Q release.

Change-Id: I3a860c2b569b78763c1f65d06246225a931d57f6
2019-03-21 16:40:34 -07:00
Nikita Dubrovsky
94edd0c737 Merge "Update deprecation javadocs of APIs related to preferred activities" 2019-03-21 22:49:11 +00:00
Ryan Mitchell
d57fb1fbcc Add targetOverlayableName to OverlayInfo
This change add information about the target overlayable to the
OverlayInfo class.

Bug: 128830059
Test: atest OverlayInfoTest
Test: cmd overlay dump
Test: overlays.xml generated correctly

Change-Id: Ice9b4dee20d7d5ea4dcbc2b1a1179ab4fa5b1f7a
2019-03-21 15:35:00 -07:00
Ricky Wai
9f6f3eceb2 Merge "Change PackageManager.getSyntheticAppDetailsActivityEnabled to public api" 2019-03-21 18:04:28 +00:00
Felipe Leme
5001b3bb44 Added a "lite" flag on ContentCaptureOptions.
It will be used to let activities from the ContentCapture service package to use
the ContentCaptureManager APIs (such as isContentCaptureFeatureEnabled()), without
triggering content capture per se.

Bug: 122958583
Test: manual verification
Test: atest CtsContentCaptureServiceTestCases # sanity check

Change-Id: I0305fa9f3adb68e6faff80afcb965ae4643f2992
2019-03-21 10:13:49 -07:00
Joel Galenson
3d1a6a5974 Remove Intent.ACTION_REVIEW_APP_PERMISSION_USAGE.
This API is no longer needed.

Fixes: 129006895
Test: Build.
Change-Id: I76be7e529f9d4c2d69452e7aa437853f3fe922fe
2019-03-21 09:49:28 -07:00
Ricky Wai
1ea8743210 Change PackageManager.getSyntheticAppDetailsActivityEnabled to public api
Bug: 127713970
Test: Able to compile
Change-Id: Ic927d6f0ba25289103441d32ca8e16db96dbec3d
2019-03-21 11:34:46 +00:00
Po-Chien Hsueh
4e908c24ca API review followup: DynamicAndroidClient
Some API changes per API reivew:
- Move DynamicAndroidClient and ~Manager to android.os.image.
- Rename them to DynamicSystemClient and ~Manager.
- Rename permission MANAGE_DYNAMIC_ANDROID to MANAGE_DYNAMIC_SYSTEM
- Corresponding changes in the installation service.
- Corresponding changes in privapp-permissions-platform.xml.
- Add missing annotations.
- Change setOnStatusChangedListener's parameters order.
- Improve documentations.
- Re-generate api/system-current.txt.

Bug: 126613281
Test: adb shell am
Change-Id: Ia920e9ccf6de1dbbd38c52910cb72cb81b9b5b32
2019-03-21 17:25:59 +08:00
Joel Galenson
37f8b72a30 Add an API to launch the ongoing usage dialog.
Bug: 128690096
Test: Send intent and open the dialog.
Change-Id: Idc77a0f366ffc3ffe593dce66f28a27fdbe76b1d
2019-03-20 18:26:25 -07:00
Philip P. Moltmann
c586a5cc3e Allow to listen for addition of work profiles.
Test: Built
Bug: 124317989
Change-Id: I293959b3ad1d7c8182a6aac89a5b0cb2bb11fbbc
2019-03-20 16:57:55 -07:00
Jeff Sharkey
8c6eee1124 Merge "Implement dual-permission model for storage." 2019-03-20 23:49:08 +00:00
TreeHugger Robot
84c457fb39 Merge "API cleanup: remove PackageInstaller.SessionParams#setEnableRollback" 2019-03-20 22:39:25 +00:00
Nikita Dubrovsky
13d2335c70 Update deprecation javadocs of APIs related to preferred activities
Added a note to point to the new RoleManager API.

Bug: 123661518
Test: build (javadoc-only change)
Change-Id: Icd2b265375ca89fe7cd4af217de874ef099e8c38
2019-03-20 14:58:53 -07:00
Todd Kennedy
29162935f0 Merge "OMS: expose getOverlayInfo API" 2019-03-20 20:15:48 +00:00
TreeHugger Robot
e0bbc2761f Merge "RRO: Flag ApplicationInfo if it's an RRO" 2019-03-20 20:13:44 +00:00
TreeHugger Robot
a1feb4cd63 Merge "Refine broadcast in commitRollback" 2019-03-20 19:12:02 +00:00
Steven Moreland
91fbb6235c Merge "pm: SharedLibraryInfo: toString closing bracket" am: 05a8e0b44c am: 48b058ef41
am: c56862250d

Change-Id: I65675ef168b7c0a17cf0598ad2124e978ad8131c
2019-03-20 11:41:23 -07:00
Steven Moreland
c56862250d Merge "pm: SharedLibraryInfo: toString closing bracket" am: 05a8e0b44c
am: 48b058ef41

Change-Id: Ib7d2078a0f995a8d6a1ba7ea39dd6e1dd5ea0963
2019-03-20 11:22:29 -07:00
Steven Moreland
48b058ef41 Merge "pm: SharedLibraryInfo: toString closing bracket"
am: 05a8e0b44c

Change-Id: I373baed1fdd987bef7dafdbabacb86a0ef6cfbc0
2019-03-20 11:06:08 -07:00
Treehugger Robot
05a8e0b44c Merge "pm: SharedLibraryInfo: toString closing bracket" 2019-03-20 17:51:00 +00:00
shafik
74fec184ac Refine broadcast in commitRollback
Silence qualified user warning by using sendBroadcastAsUser.
The user is UserHandle.SYSTEM.
Limit recievers to those holding MANAGE_ROLLBACKS permission.

Test: warning does not appear in logcat when running atest RollbackTest
Fixes: 128280826
Change-Id: I85b905d2b20f3993859ec87948f309c1934a4a26
2019-03-20 17:05:47 +00:00
TreeHugger Robot
53cc8bf12c Merge "Resources.getSystem docs: not affected by RRO" 2019-03-20 17:05:17 +00:00
shafik
2603027f99 API cleanup: remove PackageInstaller.SessionParams#setEnableRollback
Test: build
Fixes: 127282838
Change-Id: Id17b88cc0f8e73fefc1047cd571298ae75086e96
2019-03-20 16:57:37 +00:00
Zoran Jovanovic
946e32f394 RRO: Flag ApplicationInfo if it's an RRO
This is important when deciding whether or not to create
a hidden app detail activity or within AppInfo in Settings
application.

Bug: 119440359
Bug: 124556507
Test: build and test with Settings app
Change-Id: I02324e5c0a146f4df4cc4a5b1b62059bc9153d23
2019-03-20 06:47:00 -07:00
TreeHugger Robot
544ff6d65b Merge "Revert "Add Foldable feature flag"" 2019-03-20 12:22:17 +00:00
Sam Lin
dbf5312511 Revert "Add Foldable feature flag"
This reverts commit 821f43aa64.

Reason for revert: better fit:
- restrict the Package Manager feature flags to features for which the app developer would need to "target"
- typically hardware types should be mutually exclusive to each other

Bug: 124406307
Test: make checkbuild
Change-Id: Ie247a21eb8bbc83efad833ca8db675fd11e7ea4e
2019-03-20 12:21:45 +00:00
Richard Uhler
ce844797cd Merge "Only allow rollback to be enabled on modules." 2019-03-20 09:40:13 +00:00
Nadav Bar
66a2bdb3a5 Merge "Grant record audio permission to SystemCaptionsService instead of ContentCaptureService" 2019-03-20 08:00:52 +00:00
Mårten Kongstad
371da73d40 Resources.getSystem docs: not affected by RRO
Clarify the docs around Resources.getSystem: the object returned is not
affected by Runtime Resource Overlay.

Test: builds, boots
Change-Id: I1011f37c98d81b8b1977f4dbc579bc2a536208cd
2019-03-19 15:43:37 -07:00
Chenbo Feng
89ca736711 Merge "Add uid information in PackageListObserver" am: 62e041a6dd
am: c059f56e0f

Change-Id: I61f46bf443c2027ed70a884f0cbb3ede80a8c1f3
2019-03-19 14:53:10 -07:00
Chenbo Feng
c059f56e0f Merge "Add uid information in PackageListObserver"
am: 62e041a6dd

Change-Id: I4fef26fed802902d6a69563c19704a94916ff834
2019-03-19 14:42:14 -07:00
Treehugger Robot
62e041a6dd Merge "Add uid information in PackageListObserver" 2019-03-19 21:19:16 +00:00
Zoran Jovanovic
d507e2f49f OMS: expose getOverlayInfo API
Expose getOverlayInfo API on OMS in order to
implement additional AppInfo UI for resource
overlay in Settings app.

Bug: 124556507
Bug: 124540315
Test: make RunSettingsRoboTests ROBOTEST_FILTER=AppButtonsPreferenceControllerTest
Change-Id: Ib2cc257fe628e9cc855047cce7ed81a9786b2635
2019-03-19 14:15:09 -07:00
Matt Pape
417059b13e Merge "Remove interface for Rollback and Rollback Boot." 2019-03-19 16:14:05 +00:00
TreeHugger Robot
0a96038c85 Merge changes I7bf9bde4,I8d655d1c,Ibc59aa36
* changes:
  Adds class and method documentation in all app prediction classes
  Link Intent.EXTRA_SHORTCUT_ID to ACTION_SEND Intent
  Change ShortcutInfo.Builder.setLongLived to take a boolean
2019-03-19 14:22:28 +00:00
Xiao Ma
2ce206c82d Merge "Move the IpMemoryStore to the network stack." am: 93bf5ef495 am: 5db1518bfa
am: 3176d57308

Change-Id: I243056012d2f099d96a33657c0eb63a5b66a2cfe
2019-03-19 06:54:43 -07:00