Commit Graph

128 Commits

Author SHA1 Message Date
Bill Yi
ed012f71cc Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I73e5024d43486824cb2c3b7e9f6a6af9112edafe
2021-06-29 08:54:06 +00:00
Bill Yi
ab6e01dd02 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id5c4cc5f2378b2848cdbce1bfb9e170fe9216cf1
2021-06-19 11:52:26 +00:00
Bill Yi
4d499a67bd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I203b7e9509655be927e3a07d2a586b8067a06193
2021-06-11 11:51:09 +00:00
Bill Yi
8465925707 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id61f10c216e060cfe9357d8b46ca07ff452bdf11
2021-06-07 14:12:39 +00:00
Bill Yi
23410d690a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5cab7b59b032c4b18a25aa1b1fcc261fc1da4a98
2021-05-31 21:06:31 +00:00
Bill Yi
b1557f8a58 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaaf2dbdf292a99b834eec276d0d98524e669efc1
2021-05-27 14:42:47 +00:00
Bill Yi
8bc30aff26 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia7b91835326f1268f52fee3792b0cac9d53e5569
2021-04-19 14:41:33 +00:00
Winson Chiu
f4e71476d7 Rebind InstallSuccess UI on resume
Similar to a previous fix for the main Activity, AlertDialog doesn't
work properly if the UI is set up when it's not visible. To avoid this,
rebind in onResume. A future refactor should clean this up to avoid the
use of AlertDialog.

Bug: 182493158

Test: manual, verify fail/success of steps in linked bug

Change-Id: I6547385900d4c58ed3d113d7d0162c0cb8c20cba
2021-04-01 17:58:50 +00:00
Bill Yi
8cbf22761b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If4349f29193676374aeb5db8604d1487951e07d8
2021-03-30 18:54:21 -07:00
Bill Yi
7b2f860dd0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I419de50bd53cb082cb36fa570ca8cdb29409824d
2021-03-27 01:36:26 +00:00
Bill Yi
21a158e040 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia7a8e0e915480cfba32b9c3b75bb6767c9d28866
2021-02-23 21:52:41 +00:00
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