Commit Graph

109 Commits

Author SHA1 Message Date
Bill Yi
0e639c237b Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I9017a05ce7436c928dd54201ae7e1e8889cbe1f6
2020-05-15 05:08:11 +00:00
Bill Yi
95e0d83865 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I449265f732a36a29d608dd74fa463187cdf6113b
2020-05-09 14:50:49 +00:00
Winson
6b6adc1163 Migrate remaining parsePackage V1 to V2
Uses ParsingPackageImpl to generate the PackageInfo for
PackageManager's getPackageArchiveInfo API.

This keeps the migration to v2 hidden and thus the API can
be shipped for this release and then deprecated entirely
if necessary.

Exempt-From-Owner-Approval: Has approval on rvc-dev CL, moving to master
    to resolve merge conflict

Bug: 135203078
Bug: 146575910
Bug: 153880854
Bug: 155512461

Test: atest com.android.server.pm.parsing
Test: atest android.content.pm.PackageManagerTests

Change-Id: Ib21dbbdc556502144df8e3d7a26b7a9d33885cd9
2020-05-05 10:25:16 -07:00
Bill Yi
149f08cf34 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ie9886621e799bf47d441ad1c736273a0d5247c2c
2020-04-25 22:42:08 -07:00
TreeHugger Robot
508eb9b88b Merge "Fix PackageInstaller failure when called from different user" into rvc-dev am: 73a8e537ca am: eba95fad12 am: 25f9982b07 am: 667951f2ed
Change-Id: I43b2c6a5d1efbb7a5fac581c2a2a032fef55afa5
2020-04-16 00:45:18 +00:00
TreeHugger Robot
eba95fad12 Merge "Fix PackageInstaller failure when called from different user" into rvc-dev am: 73a8e537ca
Change-Id: Ib5c184e852d32a2b7d84fb6f48f1fe31aece9267
2020-04-15 21:22:46 +00:00
Evan Severson
0461f6fd4d Fix PackageInstaller failure when called from different user
This change checks across all users for the calling uid when doing the
permission check.

Test: Will test in droidfood
Bug: 153868618
Change-Id: Ic599315444212119ce4cb9ac1b06147e9cf19ef3
2020-04-15 12:50:17 -07:00
Philip P. Moltmann
c3278660cb Pipe through attributionTag for package installation
Test: atest CtsAppOpsTestCases
Bug: 136595429
Change-Id: Ifda7464911faf505cd5287dbf48859e17452d3e5
2020-04-03 17:38:36 -07:00
Robert Horvath
e16f9368f5 Merge "PackageInstaller: Initial focus in non-touch mode on Cancel" into rvc-dev am: aef65ab07b am: 50f74aa0f8 am: 5c03376780 am: 41fb01a203
Change-Id: I2553903d5a5b03c2773a252ee50a089e2dab35cf
2020-03-26 10:24:10 +00:00
Robert Horvath
32496b722b Merge "PackageInstaller: Initial focus in non-touch mode on Cancel" into rvc-dev am: aef65ab07b
Change-Id: I3d0db152a6e63fc2e253fd1475842d9cf6d17279
2020-03-26 09:23:23 +00:00
Robert Horvath
50f74aa0f8 Merge "PackageInstaller: Initial focus in non-touch mode on Cancel" into rvc-dev am: aef65ab07b
Change-Id: I18ce59b66b0b8d5829d8a10897d99e3da1c3e85f
2020-03-26 09:23:12 +00:00
Robert Horvath
aef65ab07b Merge "PackageInstaller: Initial focus in non-touch mode on Cancel" into rvc-dev 2020-03-26 09:10:37 +00:00
Bill Yi
eddfb20b49 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Idffeaae020eb739f047027e333830ce319e3c683
2020-03-20 14:16:29 -07:00
Bill Yi
9d9ef7fad3 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I78f29266bb1300b2c25a5751282ff3e75ece224c
2020-03-20 13:41:53 -07:00
Robert Horvath
a4b5e96886 PackageInstaller: Initial focus in non-touch mode on Cancel
The initial focus for AlertDialogs in non-touch mode is the positive
button. However, in the PackageInstaller confirmation dialog, the
positive button is initially disabled to prevent tap jacking.
To provide users in non-touch mode with a sensible default focus, put
initial focus in non-touch mode on the cancel button.

Bug: 152026824
Test: On Android TV, with a remote:
      1. Install file explorer app
      2. Push another apk to device
      3. Use file explorer to start apk installation
      4. Verify "Cancel" button is focused
Test: Doing the above with touch does not lead to any visible focus
Change-Id: Iafec25df23c45171c450f5f42cc5da9bf0087ae4
2020-03-20 17:19:06 +01:00
Hall Liu
2cd5429297 Merge "Rename NotificationChannel#setBlockableSystem" into rvc-dev am: 2227afaacb am: baf26eaf67 am: 08e2bcbc39 am: 46d2ade947
Change-Id: I635bd8831898850b16d7585493e4bf6c8fe126d8
2020-03-19 21:54:53 +00:00
Hall Liu
9866aa8b70 Rename NotificationChannel#setBlockableSystem
Rename the method to setBlockable. Also rename isBlockableSystem in the
same way.

Fixes: 151311073
Test: atest NotificationChannelTest
Change-Id: Ie25f8aed3c22b74d9ad2329863c4ffebbace03f7
2020-03-13 13:50:48 -07:00
Ashwini Oruganti
6ba51b0c6f Merge "PackageInstaller: Add an exported flag in manifest" 2020-03-10 23:31:43 +00:00
Ashwini Oruganti
eaa6ebe15a PackageInstaller: Add an exported flag in manifest
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for S+. This change adds the value reflecting the previous
default to the manifest.

Bug: 150232615
Test: TH
Change-Id: I6fac7faeff9a99c955d2369a6bbd5fbdf2206f9a
2020-03-10 13:42:58 -07:00
Automerger Merge Worker
d54365a408 Merge "Marks PackageInstaller forceQueryable" into rvc-dev am: e6d6f5f87d am: 97af5db44b am: ada5af517c am: 2ebd9284e4
Change-Id: Ib6fb8043b4bd7fc03f18393321f854f6729134ba
2020-03-04 23:04:04 +00:00
Patrick Baumann
157d9aa2da Marks PackageInstaller forceQueryable
This change makes PackageInstaller visible to all apps on device.

Fixes: 150758101
Test: atest RequiredComponentsTest#testPackageInstallerPresent
Change-Id: Ic5eaa97513de3f57fbe7c2ce029d3b64113cee07
2020-03-04 09:16:13 -08:00
Bill Yi
52c189a1c6 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I59c381ca8eb67e1554c131cbbd890145abea104b
2020-03-01 18:42:31 -08:00
Robin Lee
dff0e95e67 Merge "PackageInstaller: Plumb through status to message" 2020-02-22 07:31:04 +00:00
Bill Yi
72d6aae8fb Import translations. DO NOT MERGE
Change-Id: I61abeb9aad87fd0915d4fecac2c62c319ada1051
Auto-generated-cl: translation import
2020-02-16 22:24:47 -08:00
Patrick Baumann
42a87d93b7 Adds QUERY_ALL_PACKAGES permission to packageinstaller
Test: atest PackageInstallerTest
Bug: 142386643
Change-Id: Ifad512054262dcfb093163fc3dd1ab28ab632ebd
2020-02-12 19:12:38 +00:00
Robin Lee
f049743964 PackageInstaller: Plumb through status to message
Without this the failure dialog always prints "App not installed."
instead of something more useful.

Change-Id: I131b272ad20ee1d2fc9f383be9697e07f0aa7c6d
Fix: 146598245
2020-02-07 22:20:36 +01:00
Bill Yi
e3accc5657 Import translations. DO NOT MERGE
Change-Id: Ifa588260f61c6dd3145dc2da7fafcb74db6bdb57
Auto-generated-cl: translation import
2020-01-19 03:21:36 -08:00
Bill Yi
bb51e2f42d Import translations. DO NOT MERGE
Change-Id: Ie62026e6ccab0c22a2bcafa80fa5cf2e9bc4b7aa
Auto-generated-cl: translation import
2019-12-24 08:48:17 -08:00
Evan Severson
5dc1e33d6f Hide title in more AlertActivities in packageinstaller
Test: Manual + verify with partner
Bug: 139278141
Change-Id: I720460843680777723f628eb4b05fce906326cf8
2019-11-19 08:57:57 -08:00
Bill Yi
dd8ed53d3a Import translations. DO NOT MERGE
Change-Id: I0301f1a914a290051a405d5795a0f7a63a17cd6d
Auto-generated-cl: translation import
2019-11-10 15:02:39 -08:00
Evan Severson
4044831837 Use ApplicationInfo.storageUuid
Test: Uninstall some apps & verify with partner
Fixes: 142856192
Change-Id: I061c52a8681a4dac42e9ce3751a8109aa3e0e60d
2019-10-28 09:48:34 -07:00
Andreea
f3bf405002 Fixed uninstall app screen not expanding properly.
Before: https://screenshot.googleplex.com/P9k547jayoy
After: https://screenshot.googleplex.com/89E21JLBjzJ

Bug: 142130446
Test: Manual test on Q builds.
Change-Id: Ie3eba56ad408016ecc84b0df811c8dd8a1e3df3d
2019-10-11 16:01:04 +00:00
TreeHugger Robot
1068adfa72 Merge "Fix packageinstaller display issue" 2019-09-12 19:09:50 +00:00
Evan Severson
2a8d7bb872 Prevent tapjacking on the packageinstaller Ok button
Test: None yet
Bug: 138443815
Change-Id: I0d5de8673d20fa3d879b0a1eba52ed0b0889eacf
2019-09-06 13:58:13 -07:00
Evan Severson
c509258bb9 Fix packageinstaller display issue
Test: Manual
Fixes: 139569219
Change-Id: I7538568510ec84fbc3c88fcc2fffaac0467172ba
2019-09-06 12:54:53 -07:00
TreeHugger Robot
9e63c33f9e Merge "Create permission manager AIDL" 2019-07-02 23:26:07 +00:00
Todd Kennedy
8f135982a8 Create permission manager AIDL
Today, the package manager largely routes any permission related
method to the PermissionManagerService. But, PermissionManagerService
is a service in name only. Instead, we will make the
PermissionManagerService a real service and direct API calls directly
to it.

We will likely need to maintain all of the public permission APIs
that already exist on PackageManager. However, the public -> private
implementation will go directly to PermissionManagerService.

Bug: 135279435
Test: Manual. Device boots
Change-Id: Ia4992ba6d1f4b9050db98c7d7647d51a5d45fcbe
2019-07-02 13:17:05 -07:00
Bill Yi
6be829aec0 Import translations. DO NOT MERGE
Change-Id: I05c9c5b4eac846680cc7411fd7aa2c8e49150262
Auto-generated-cl: translation import
2019-06-29 16:42:23 -07:00
TreeHugger Robot
5f84625a7b Merge "Remove unused resource" 2019-06-19 12:24:19 +00:00
Svetoslav Ganov
4e26a25ccc Merge "Whitelist all restricted permissions on sideload" into qt-dev am: 04cb6d1ccc am: 5700611461
am: c2d3012a9d

Change-Id: I3dcc198fac2a1bd3184e951a9f63495d1739448d
2019-06-12 09:41:10 -07:00
Svetoslav Ganov
5700611461 Merge "Whitelist all restricted permissions on sideload" into qt-dev
am: 04cb6d1ccc

Change-Id: I13556665d99450757a999d35e40d830bcbe2cf15
2019-06-12 09:28:04 -07:00
Svet Ganov
38493bd689 Whitelist all restricted permissions on sideload
Test: atest android.permission2.cts.RestrictedPermissionsTest#onSideLoadAllRestrictedPermissionsWhitelisted

Bug:134500512

Change-Id: Ia5693f6f39b30e04ad6f96f2c1f5ff7665125e52
2019-06-11 23:41:09 -07:00
Bill Yi
aba8931a53 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I69fa0a0ac28702c5c076f1233a0aa8be2d350d1e
2019-05-21 16:04:46 -07:00
Bill Yi
27546e72b7 Import translations. DO NOT MERGE
Change-Id: I35fc787b2979788f45e2d939ea1b98e0564ca636
Auto-generated-cl: translation import
2019-05-21 15:56:04 -07:00
Anton Hansson
c9239fd922 Remove unused resource
Bug: 132617220
Test: make
Change-Id: Id8303622f30abcc517bcd1034b3a2bc9b08b51d4
2019-05-13 17:43:43 +01:00
Bill Yi
6c621203d8 Import translations. DO NOT MERGE
Change-Id: I58e284d969f95b17898f94a3d9c08a09b7c466d4
Auto-generated-cl: translation import
2019-05-09 05:08:27 -07:00
Philip P. Moltmann
7af3a1cf28 Merge "Make package installer tests post submit" into qt-dev am: fc892fe742
am: 1b1f7a3ded

Change-Id: Ib617651244b492d369b6db4cd796369d8064fe25
2019-04-30 04:13:52 -07:00
Philip P. Moltmann
1b1f7a3ded Merge "Make package installer tests post submit" into qt-dev
am: fc892fe742

Change-Id: I26756f5235d715992c399a465b3274a65d5fb462
2019-04-30 03:56:12 -07:00
Philip P. Moltmann
dbcebfe14f Make package installer tests post submit
As they are UI-tests and hence to flaky for pre-submit.

Fixes: 131353722
Test: n/a
Change-Id: I7bea06bbe16717406ccd0676fb83396066959a92
2019-04-25 16:52:44 -07:00
Philip P. Moltmann
16d33c5808 Merge "Fix re-installation via package uri-s" into qt-dev am: e062b5cce4
am: a17057536d

Change-Id: Ic8fb1d1cc15844d3e64baeeb7a419ffeb7ff1962
2019-04-13 07:42:58 -07:00