38 Commits

Author SHA1 Message Date
Bill Yi
72d6aae8fb Import translations. DO NOT MERGE
Change-Id: I61abeb9aad87fd0915d4fecac2c62c319ada1051
Auto-generated-cl: translation import
2020-02-16 22:24:47 -08: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
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
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
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
Bill Yi
f9476f0fa3 Import translations. DO NOT MERGE
Change-Id: I31ee44a442d4d88a985a4c39d55237c4fbcb14d0
Auto-generated-cl: translation import
2019-04-07 20:58:40 -07:00
Bill Yi
5b64af19ee Import translations. DO NOT MERGE
Change-Id: Ibb415cc9cf3f1f0f4750e783ef0af46cb2a3a018
Auto-generated-cl: translation import
2019-03-23 09:28:17 -07:00
TreeHugger Robot
db053d1949 Merge "Revert "Checkbox for removing contributes files"" 2019-03-22 01:15:20 +00:00
Evan Severson
95358d8b7b Revert "Checkbox for removing contributes files"
This reverts commit 38ea50c63e8a031a6430d26b1f5b561402007243.

Revert and clean up merge conflicts. The checkbox which asks
to remove app data is still here

Fixes:112002130
Test: Build and check that the correct box is gone
      atest CtsPackageUninstallTestCases

Change-Id: I47d8632d2fca360c02151ad54a4b927a5c2801f1
2019-03-20 17:42:57 -07:00
Evan Severson
eb89202e2d Hide the title of the uninstall alert dialog
Fixes: 126376004
Test: Observation
Change-Id: Id76477b3dee11613dd6d39d48a322746f6cd5a97
2019-03-19 16:34:09 -07:00
Bill Yi
8e8a9b7222 Import translations. DO NOT MERGE
Change-Id: I1403e72dca3bae01052d55eca57f4af4194cb87a
Auto-generated-cl: translation import
2019-02-02 12:02:52 -08:00
Bill Yi
45e4113745 Import translations. DO NOT MERGE
Change-Id: Id1da55371ad5dd71198f714ef7e70481a8a13351
Auto-generated-cl: translation import
2019-01-12 00:11:27 -08:00
Bill Yi
79e550e596 Import translations. DO NOT MERGE
Change-Id: I283329c66908440e4ae11fbb1ef2f2207c818a27
Auto-generated-cl: translation import
2018-12-25 04:32:41 -08:00
Philip P. Moltmann
49499f999d Uninstall: Clarify what the keep_data checkbox is for
Test: none
Bug: 121212015
Change-Id: I2a2dca82f2a4112b0b51a4a5ce5bd2829855accd
2018-12-19 10:55:31 -08:00
Philip P. Moltmann
ae4a4b987b fragileUserData-apps might keep data on uninstall
If an app declares that is has flagile user data, all the user to choose
to keep the app-data on uninstall.

Test: Unistalled apps that set the new flag and app that did not.
      Verified that the KEEP_DATA flag was set when checkbox was
      clicked.
Change-Id: I032fb21854352bbc175934ae5eb68a1430b1d403
Fixes: 117578306
2018-12-12 13:37:44 -08:00
TreeHugger Robot
05b3b033be Merge "Import translations. DO NOT MERGE" 2018-12-12 01:23:16 +00:00
Philip P. Moltmann
38ea50c63e Checkbox for removing contributes files
Apps might have contributed files. During uninstall the files are
usually left on the system. To avoid filling up the storage we allow the
user to delete the files during uninstall.

Bug: 112002130
Test: Uninstalled an app that contributed files
Change-Id: I7e71ed524055bdda91ce9e66f995540363ceb229
2018-12-11 21:06:03 +00:00
Bill Yi
a32b8c9b09 Import translations. DO NOT MERGE
Change-Id: Id368c551541a91e481b8a7d3c3fbdd53a26113b3
Auto-generated-cl: translation import
2018-12-11 01:19:10 -08:00
Bill Yi
7a5d70cc17 Import translations. DO NOT MERGE
Change-Id: I20f925fd3865cd7865a3756552a15a4da559721a
Auto-generated-cl: translation import
2018-12-06 01:45:51 -08:00
Bill Yi
384180f3d8 Import translations. DO NOT MERGE
Change-Id: I256979e07626fc574837b30af030a0fb34841554
Auto-generated-cl: translation import
2018-11-12 05:29:05 -08:00
Bill Yi
212995a1b0 Import translations. DO NOT MERGE
Change-Id: I0642ea9b4ed22a2ecad7c4e73fb99e0a238d0d92
Auto-generated-cl: translation import
2018-10-31 09:29:20 -07:00
Hyunyoung Song
6fa61bbb04 Fix PackageInstaller icon resizing issue
Bug: 114719061
Test: builds, installed the app and verified visually

TL;DR;; when main icon is rendered, there's no guarantee that the icon
will be rendered in 48dp view. For the inset to be applied proportionally,
percentage should be used instead of static dp unit.

Change-Id: Iacfcf7a5a2aa430c70c5db7c803267cf7eb5ad45
2018-10-25 22:34:44 -07:00
TreeHugger Robot
803a52498b Merge "Show app installed notification from PackageInstaller" 2018-10-10 15:41:38 +00:00
Bill Yi
9811f7f98f Import translations. DO NOT MERGE
Change-Id: I6dc612c6234521fc88f3776c01af3b24ad235768
Auto-generated-cl: translation import
2018-10-07 09:31:24 -07:00
Ricky Wai
c5ea08b2d1 Show app installed notification from PackageInstaller
Bug: 111214100
Change-Id: If3f82bfac740f4f3cf8312f396943f2ebd447c12
Test: Notifications are showing correctly after new apps installed
2018-09-25 00:06:39 +01:00
Philip P. Moltmann
362309102c Set corrent tint for downloads icon.
Test: Looked at staging stage (using the icon) in night and day mode
Change-Id: I3d462006467d1a93244a526a8191f80927097a2b
2018-08-23 12:57:50 -07:00
Philip P. Moltmann
d25ec877da Make package installer a sequence of alert-dialogs.
To make sure the dialog does not change height a single content for all
steps of the sequence. We just unhide the view that should actually be
shown.

Also added a night-mode theme.

Test: Manually uninstalled, installed and update package.
      atest CtsNoPermissionTestCases
            CtsNoPermissionTestCases25
	    CtsPackageInstallTestCases
	    CtsPackageUninstallTestCases
	    CtsPackageInstallerTapjackingTestCases
Change-Id: I890bb1f2697df3af87b6cb65e460f611334523ee
2018-08-03 10:28:56 -07:00
Philip P. Moltmann
ab2978b51b Merge changes from topic "package-installer-soong"
* changes:
  Add icon for package installer
  Soongify PackageInstaller.
  Clean up package installer
2018-08-02 18:48:50 +00:00
Philip P. Moltmann
4c53cd8bb3 uninstall_confirm layout is unused, hence remove it
Test: Built, uninstalled apps
Change-Id: I4b3ba6725bd765d02c3dbb24ec12cc83bb8c2bf3
2018-08-01 16:20:16 -07:00
Philip P. Moltmann
f4bb58411b Add icon for package installer
(this icon is shown when e.g. Google Drive shows the package installer
as a "share" target.)

Test: Looked at icon in settings
Change-Id: I856832b4eb5b417c0a2e6bc7cab699011cf46075
2018-08-01 11:47:44 -07:00
Philip P. Moltmann
8943ad6325 Split PackageInstaller app into installation and permissions management
The two components were mostly independant for a long time. Since
I1e80a3f5e63d02b3859ecf74af21ca4c61f96874 the installation flow does
not grant any permissions anymore and the last connection between these
parts was broken.

The new app "com.android.packageinstaller" in
frameworks/base/packages/PackageInstaller will only handle (side load)
package installtion and uninstallation.

The exisiting app will be renamed to "com.android.permissioncontroller"
and only handle permission granting and permission management.

This change does only minimal cleanup cleanup. In particularly it does
not move any files in the old permissions controller. This is to not
disturb other features currently in development.

This change set also updates the make files to install the two apps on
the appropriate devices.

Further the permisson policy xmls need to be updated to point to the
right packages.

Test: Installed + uninstalled packages
      Granted permissions + managed permissions

      GtsPackageInstallTestCases
      GtsNoPermissionTestCases
      GtsNoPermissionTestCases25
      GtsPackageInstallerTapjackingTestCases
      GtsPackageUninstallTestCases
Change-Id: I2d3796b837fc0049e712c82a990907f305c8febf
2018-07-30 08:59:51 -07:00
Philip P. Moltmann
d85d941f5a Copy package installer into framework/base/packages/PackageInstaller
No code modifications done yet so that it will be clear what code
changed.

Test: Does not build. requires later change
Change-Id: If0c0be70555808424d214ba6627a3042666925ed
2018-07-30 08:59:51 -07:00