Commit Graph

117 Commits

Author SHA1 Message Date
Bill Yi
af2ffd04af Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie2f36a7e4734e28aa004f70fd7b9ff4394b02ec3
2021-02-03 08:00:41 +00:00
Todd Kennedy
d840949816 Ensure OK/Cancel buttons always shown
There is some weirdness with the way the AlertActivity behaves when
it's populated and elements are enabled while it's not actually on
the screen. Work around this by populating the AlertActivity during
onResume() [eg. every time the activity is shown] instead of
onCreate() [eg. only the first time the activity is created].

Fixes: 172699073, 173159446
Test: Manual
Test: Start a staging install
Test: Turn off the phone screen
Test: Wait for the staging to complete
Test: Turn on the phone screen.
Test: See the install dialog has OK/Cancel buttons
Change-Id: Ia9525f20f98f42e6b2b865fa926b9707d416cde4
2021-01-09 02:58:56 +00:00
Bill Yi
ea85385f32 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iac6d87858730246a1e5b53d72176dbb3965831a6
2020-11-23 11:47:49 +00:00
TreeHugger Robot
03a7e5c712 Merge "Fix anr when installing package" into rvc-qpr-dev 2020-11-12 20:30:59 +00:00
Sun Changqing
32c9ed00a7 Fix anr when installing package
Test: Backport from AOSP
Fixes: 172829519
Change-Id: I02dba3a8f290c2cd8eb43062156f03302955ed06
2020-11-09 17:50:04 +00:00
TreeHugger Robot
1df7cf9bf1 Merge "Grant access to the URI when forwarding intent from InstallStart to InstallInstalling" into rvc-qpr-dev 2020-11-09 16:55:26 +00:00
TreeHugger Robot
d3a425504e Merge "Hide overlays over uninstall confirm dialog" into rvc-dev am: d3da899a52 am: b3f0178c0e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12950973

Change-Id: I161f3393845c6c8e3daaa18c752310d1190ece48
2020-11-06 01:18:48 +00:00
TreeHugger Robot
b3f0178c0e Merge "Hide overlays over uninstall confirm dialog" into rvc-dev am: d3da899a52
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12950973

Change-Id: I81708da332da74d49d462de11a206dc76edbd3c7
2020-11-06 01:05:46 +00:00
TreeHugger Robot
d3da899a52 Merge "Hide overlays over uninstall confirm dialog" into rvc-dev 2020-11-06 00:58:01 +00:00
Philip P. Moltmann
cf550678c5 Grant access to the URI when forwarding intent from InstallStart to
InstallInstalling

Otherwise the URI grant might be taken away before InstallInstalling can
open it.

Fixes: 163274739
Test: atest CtsPackageInstallTestCases
Change-Id: Ibd9ffc253358606b8ae2ea41a875fcb1a1efcb2b
(cherry picked from commit a87968d4fb)
2020-11-05 16:31:51 +00:00
Bill Yi
7e4e92b5c7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7de4ebf334048e409e536766024fe8c94fa9843f
2020-10-30 23:02:44 +00:00
Philip P. Moltmann
cdec871e66 Hide overlays over uninstall confirm dialog
Test: atest CtsPackageUninstallTestCases
Fixes: 171221302
Change-Id: I38b6d85871064d76f2911e20acc74b4ab76406b3
2020-10-29 20:36:50 +00:00
Bill Yi
f5075cb77d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If9a1b6cd93d2c11caa1170046df69e3957177518
2020-09-14 14:43:09 +00:00
Bill Yi
c461912e10 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I20fa4cc3c5534bb2199979512bd4a808deb4ded2
2020-07-27 13:17:42 -07:00
Bill Yi
0c12a655e5 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I9cb79cabfd2e520ec8bd8591f46ae334a5de025b
2020-06-17 00:09:39 +00:00
Bill Yi
1cced45622 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I70495288266b7fab214742fc409f2014760d86e8
2020-06-13 23:54:24 +00:00
Bill Yi
d25bfd50e5 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ie0717cb6c50e84cf29fbd416742fd6ec5d3c58fa
2020-06-05 19:08:11 +00:00
Bill Yi
fe95c110e4 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ibcde766ef4cab1e0106db12679510a9b9b569361
2020-05-31 00:44:17 +00:00
Bill Yi
6f99e49bae Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I8dd5cbaa0e15682284501b9915ef0a16e36b4f2f
2020-05-15 04:10:19 +00:00
Bill Yi
082ea0f848 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I3c6517ab79fa69b5cfbe658842d633b9253da7b6
2020-05-15 03:47:04 +00:00
Bill Yi
f63e5f642b Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I2d0586fc5e67e3f1c3a80cde8e3b5d3f9ff2e8d8
2020-05-09 14:00:21 -07:00
TreeHugger Robot
30de689af9 Merge "Migrate remaining parsePackage V1 to V2" into rvc-dev am: a83fad74b4
Change-Id: Ic2c575360d3356c21b54bdeebbc66ab0b4bd6d64
2020-05-06 04:11:34 +00:00
Winson
3cb5610a99 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 previous patchsets,
    will need non-logic updates to resolve merge conflict and CP
    into rvc-dev properly

Bug: 135203078
Bug: 146575910
Bug: 153880854

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

Merged-In: Ib21dbbdc556502144df8e3d7a26b7a9d33885cd9
Change-Id: Ib21dbbdc556502144df8e3d7a26b7a9d33885cd9
2020-05-05 16:35:34 -07:00
Bill Yi
22701409d4 Import translations. DO NOT MERGE
Change-Id: I392db6decce92516ee897f85a8419fbb38027149
Auto-generated-cl: translation import
2020-04-27 22:39:27 -07:00
TreeHugger Robot
16a4365246 Merge "Fix PackageInstaller failure when called from different user" into rvc-dev am: 73a8e537ca
Change-Id: I990f70c5ee1ea92af854e11c5f82868cc6f06ad1
2020-04-15 21:22:38 +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
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
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
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
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
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
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