Commit Graph

7923 Commits

Author SHA1 Message Date
Svetoslav Ganov
a8a430670e Merge "Restricted permission whitelisted by default" into qt-dev
am: 650cb05202

Change-Id: Idcdec83acae25d83014b829e9d714f92462b3cac
2019-05-07 20:35:37 -07:00
Svetoslav Ganov
650cb05202 Merge "Restricted permission whitelisted by default" into qt-dev 2019-05-08 02:17:24 +00:00
Svet Ganov
83a3a4a9db Restricted permission whitelisted by default
To ensure existing installers would work without a change the
default state of installing a package is now that all restricted
permissions are whitelisted. If the installer specifies another
whitelist at install time, it determines the install state. In
addition to this we now enable the restricted permission checks
as a prebuilt installer is no longer required.

Test: atest CtsPermission2TestCases
Test: atest CtsPermissionTestCases
Test: atest CtsAppSecurityTestCases:android.appsecurity.cts.PermissionsHostTest

bug:132160728

Change-Id: I705e341faebe62fc2d88fd37ad8870b98e1b71b1
2019-05-07 12:25:39 -07:00
Tim Murray
9f0fd8c1ce Revert "Add optional reasons why permissions were denied"
am: d06c6d2932

Change-Id: I5f0d60ebdea3170f0c0769c8909e91b56b2848d9
2019-05-07 02:36:00 -07:00
Tim Murray
d06c6d2932 Revert "Add optional reasons why permissions were denied"
This reverts commit 3623f3219e.

Reason for revert: 40% startup perf regression

Test: revert
Bug 132129453
Exempt-From-Owner-Approval: critical revert

Change-Id: I19dc33e6a71c9254b4096154f4089c059fe408dd
2019-05-07 07:10:30 +00:00
Varun Shah
8a17c84a83 Merge "Add Locale#script to Configuration proto." into qt-dev
am: cc1159a166

Change-Id: I449f02fa3dcef56e4ff681f3919065bc94d2fddc
2019-05-06 12:12:44 -07:00
TreeHugger Robot
cc1159a166 Merge "Add Locale#script to Configuration proto." into qt-dev 2019-05-06 18:29:30 +00:00
Philip P. Moltmann
104cf9c862 Merge "Add optional reasons why permissions were denied" into qt-dev
am: dd82c4513b

Change-Id: Iba294f338743c86d126eb4c4d92eb4c3d1c31cf0
2019-05-05 23:40:52 -07:00
TreeHugger Robot
dd82c4513b Merge "Add optional reasons why permissions were denied" into qt-dev 2019-05-06 06:21:23 +00:00
Philip P. Moltmann
3623f3219e Add optional reasons why permissions were denied
Currently only for the ContextImpl.enforcePermission code paths and only
when 'secure debug_package_permission_check' is set.

This feature is disabled on user-builds.

Test: Enabled permission checking for my app and
      - checked runtime permision denial
      - permission denial because app is instant
Bug: 111075456
Change-Id: Ib85777db69ee490608e9dac32a3b97971c0ba215
2019-05-05 21:05:13 -07:00
Philip P. Moltmann
34541a6c06 Merge "Add new permission flags to @Flags int-def" into qt-dev
am: 94c556a2aa

Change-Id: I743a3d30814f32838c3e14a065956dada0881103
2019-05-03 20:11:21 -07:00
Richard Uhler
0153a1747c Merge "Ensure race between rollback and roll forward is properly handled" into qt-dev
am: 07a9e9f9f9

Change-Id: I19044b9fae99ef63956505937a0a5c95ba0f3dde
2019-05-03 12:18:43 -07:00
Philip P. Moltmann
55ecaac312 Add new permission flags to @Flags int-def
also expose all flags for being tested.

Test: built
Bug: 131188279
Change-Id: I2874298d87a76ee2bc95f18346d8ae597a3152ad
2019-05-03 08:33:27 -07:00
Svet Ganov
3367c62bc2 Merge "Address some comments for the soft restriction CL" into qt-dev
am: 2cf92e602a

Change-Id: I4fc612636cf9168166ccccb85086e5bab171ad54
2019-05-03 05:25:06 -07:00
Richard Uhler
07a9e9f9f9 Merge "Ensure race between rollback and roll forward is properly handled" into qt-dev 2019-05-03 08:09:17 +00:00
Ivan Chiang
2f18936449 Merge "Fix can't create thumbnail and wrong orientation issue" into qt-dev
am: b037feb130

Change-Id: Ie794dc44746df5a023a0af1832a0dfc6a904ec07
2019-05-02 16:14:14 -07:00
Ian Pedowitz
81320d1253 Merge "Revert "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q."" into qt-dev
am: 8b3b7771c1

Change-Id: Id0a6dbf04d575a644017c69c15a85189d6e13ff2
2019-05-02 15:11:28 -07:00
Ian Pedowitz
a266df5220 Merge "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q." into qt-dev
am: 3f38719b74

Change-Id: Iccd685618d79b3357944fc5278e072448a58376d
2019-05-02 14:28:52 -07:00
Varun Shah
95fabaf389 Add Locale#script to Configuration proto.
Read/Write Locale#script along with language, country, and variant
for the Configuration proto.

Bug: 131507134
Test: atest UsageStatsDatabaseTest
Test: atest LocaleListTest [unit-test, cts, gts]
Change-Id: I09b7d3b2e6c6d339cbb75bf19f89251b777bbbe6
2019-05-02 11:56:50 -07:00
TreeHugger Robot
2cf92e602a Merge "Address some comments for the soft restriction CL" into qt-dev 2019-05-02 17:02:23 +00:00
TreeHugger Robot
b037feb130 Merge "Fix can't create thumbnail and wrong orientation issue" into qt-dev 2019-05-02 05:01:15 +00:00
Ian Pedowitz
8b3b7771c1 Merge "Revert "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q."" into qt-dev 2019-05-02 00:59:09 +00:00
Ian Pedowitz
79a19effee Revert "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q."
This reverts commit 02014297fd.

Reason for revert: QT SDK Finalization. Will be merged again on/after May 13th

Bug: 129975435
Change-Id: Ia054b193a982dee669630555974d2d7831fe2b50
2019-05-02 00:54:39 +00:00
Ian Pedowitz
3f38719b74 Merge "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q." into qt-dev 2019-05-02 00:53:29 +00:00
Dianne Hackborn
d8bb29837e Merge "Fix issue #126884118: API Review: API Review: Enabling Chrome Site Isolation" into qt-dev
am: 9f514dbb27

Change-Id: Idd8f1e9109eced50c3dab555df5d3fab0f7ea8e1
2019-05-01 16:43:20 -07:00
TreeHugger Robot
9f514dbb27 Merge "Fix issue #126884118: API Review: API Review: Enabling Chrome Site Isolation" into qt-dev 2019-05-01 20:08:37 +00:00
Sudheer Shanka
d8a04614a3 Merge "Un-deprecate PackageManager.replacePreferredActivity." into qt-dev
am: 552edb80ad

Change-Id: I2774b283ceac505c467ee5350196b9adb6679a4a
2019-05-01 12:38:56 -07:00
TreeHugger Robot
552edb80ad Merge "Un-deprecate PackageManager.replacePreferredActivity." into qt-dev 2019-05-01 16:57:06 +00:00
Winson Chung
8534a0d31a Merge changes from topic "p4_default_gestural_nav" into qt-dev
am: 1557fc99a0

Change-Id: I053e408c3deb6ad4815d522fe2fda33853526720
2019-05-01 08:56:53 -07:00
Richard Uhler
2124d4b313 Ensure race between rollback and roll forward is properly handled
If rollback for a package is committed at the same time the package is
updated, it's possible we will incorrectly roll back the newly updated
version of the application.

Add a hidden API to the package installer that lets you set a required
existing version of a package to be updated. If the expected package
version is not installed at the time of commit, the update install
fails.

The RollbackManager uses this new API to ensure that rollback will fail
if the package in question was just updated.

Test: atest RollbackTest, with new test added and manual confirmation
      that the race condition was exercised by the new test.
Bug: 128831080

Change-Id: Ifa5627e257d2ef13e2b213ef0dbc93932797ce0d
2019-05-01 09:10:36 +00:00
Svet Ganov
b687fad0dd Address some comments for the soft restriction CL
Test: compiles

bug:130739772

Change-Id: Ibf545434db59d17affcc0bba54a9ca7cf16c4012
2019-04-30 17:32:48 -07:00
Sudheer Shanka
02014297fd RESTRICT AUTOMERGE Remove deprecated System APIs added in Q.
Test: Builds, boots
Bug: 129975435
Change-Id: I4bfd0bfbbc52b7822477ec0c70a08de6f85a3672
2019-04-30 10:49:28 -07:00
Hai Zhang
8ef5712f8a Merge "Add FLAG_PERMISSION_GRANTED_BY_ROLE." into qt-dev
am: 9ab1a0daf3

Change-Id: I56007c9fa5c27bc6429e98891da3ab04b830b26e
2019-04-30 09:12:45 -07:00
Robert Sesek
bf7098c77c Merge "Restrict bindIsolatedService instanceName to just letters, digits, '_', and '.'" into qt-dev
am: da64a2a49f

Change-Id: I314e1b3a4c41d042b95642fafe93aa07b361ae5e
2019-04-30 03:42:02 -07:00
Sudheer Shanka
d4122490da Un-deprecate PackageManager.replacePreferredActivity.
PermissionController needs this.

Bug: 131634653
Test: builds
Change-Id: If1639d8a0abbc8b3840a5868be9aa94963280a9d
2019-04-30 00:48:09 -07:00
Dianne Hackborn
cc67f96ef6 Fix issue #126884118: API Review: API Review: Enabling Chrome Site Isolation
Improve documentation.

Fixes: 126884118
Test: manually built docs
Change-Id: I31118e792ceeeea8390bccedc06cf6655fc064f9
2019-04-29 16:34:24 -07:00
Winson Chung
43f311e9ec Exposing default theme overlays to system callers
Bug: 130185871
Test: Manual
Change-Id: Iadb08d76ef7e176e270d4f052c86b631f0810b80
2019-04-29 15:34:45 -07:00
Ivan Chiang
6da7b0adcc Fix can't create thumbnail and wrong orientation issue
- When MediaMetadataRetriever can't create the thumbnail of some
  HEIF files, attempt decoding it from ExifInterface.

- ImageDecoder can't create the thumbnail with getThumbnailBytes
  from ExifInterface in some cases. It will occur DecodeException:
  Failed to create image decoder with message 'unimplemented'Input
  contained an error. Attempt to decoding the full image in these
  cases.

- Use orientation from ExifInterface to transform the thumbnail to
  right orientation.

Test: manual
Test: atest ThumbnailUtilsTest
Bug: 130775874
Fix: 130446058
Change-Id: Icd0726ec49fe85651150736199c3caa184fa1a3f
2019-04-29 21:18:57 +08:00
Hai Zhang
9ab1a0daf3 Merge "Add FLAG_PERMISSION_GRANTED_BY_ROLE." into qt-dev 2019-04-28 14:41:09 +00:00
Hai Zhang
e617076fb5 Add FLAG_PERMISSION_GRANTED_BY_ROLE.
We need a flag to track permissions granted by role, otherwise upon
revocation we might revoke permission that was already granted before
the role is granted.

Bug: 124452117
Bug: 130231314
Bug: 131252995
Test: presubmit
Change-Id: I0abd89756e8dc943c19d18315a8dcc6890f6fd2d
2019-04-26 23:56:58 +08:00
Mårten Kongstad
802013d73b Merge "Fix broken test case 'testOverlayInfoStateTransitions'" into qt-dev
am: 22f79f250c

Change-Id: Id44dbec56c7355a3e67a95d452606c11da247546
2019-04-24 13:37:07 -07:00
Robert Sesek
e3a5bc6e0d Restrict bindIsolatedService instanceName to just letters, digits, '_', and '.'
Test: CtsAppTestCases:android.app.cts.ServiceTest
Bug: 130164289
Change-Id: I7d720fcf845631e300d8f1e8cc74d4efff182fda
2019-04-24 16:37:02 -04:00
Neil Fuller
01e95772de Merge "Switch to HexEncoding from ByteStringUtils" am: 6badf7c7da
am: 78ccbc3bec

Change-Id: Id4ca66a608a9df9fb357d5fd5e7179dc73cc8475
2019-04-24 06:19:51 -07:00
Neil Fuller
78ccbc3bec Merge "Switch to HexEncoding from ByteStringUtils"
am: 6badf7c7da

Change-Id: I0af52cb2289e1df89ac65fa01334d4e9de69e010
2019-04-24 06:08:15 -07:00
Mårten Kongstad
c49d524b0c Fix broken test case 'testOverlayInfoStateTransitions'
Commit e0b984e805 "Diff overlays between PackageManagerService and
OverlayManagerService" removed the OverlayInfo.STATE_TARGET_UPGRADING
state. Update the OverlayManagerServiceImplTests tests accordingly.

Bug: 130257545
Test: atest 'com.android.server.om.OverlayManagerServiceImplTests#testOverlayInfoStateTransitions'
Change-Id: I06fed8cfe4daf0206843d140ae7ab594cc89ab09
2019-04-24 02:24:31 -07:00
Svet Ganov
2224cb827f Address API council feedback
Test: manual

bug:130643623

Change-Id: I489f32858abfa4fe8eeda96cbb103d75e2a87551
2019-04-24 02:14:48 +00:00
Dianne Hackborn
3f5447d8ae Merge "Finish up Intent identifier implementation." into qt-dev 2019-04-23 22:43:34 +00:00
TreeHugger Robot
606f1c9ffb Merge "Vulkan Doc: update descriptions for Vulkan feature flags" into qt-dev 2019-04-23 02:04:05 +00:00
TreeHugger Robot
845d5ee587 Merge "Fixed content capture whitelist for specific activities." into qt-dev 2019-04-22 22:34:09 +00:00
Yiwei Zhang
c8231cb32d Vulkan Doc: update descriptions for Vulkan feature flags
Bug: 111695747
Test: build
Change-Id: I9ac897ef31cdf46c75a369866601062ba8033874
2019-04-22 13:18:14 -07:00