Commit Graph

10 Commits

Author SHA1 Message Date
Ricky Wai
e740d3430d Make PackageInstaller able to receive app installed broadcast
Now system will send an explicit new app installed broadcast
to PackageInstaller.

Bug: 111214100
Test: Able to receive broadcast when new app is installed
Change-Id: I0242f992fd06cc148554bc46d6119c897e03432c
2018-09-03 18:31:24 +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
ceb15077bb Soongify PackageInstaller.
Test: Built, installed app
Change-Id: I29e21e177ae3a89d6814efa6c164fd6b2c80cf3d
2018-08-01 10:21:30 -07:00
Philip P. Moltmann
f325e288b3 Clean up package installer
- remove unnecessary androidx dependency
- Move OverlayTouchActivity to base package as this app does not deal
  with permissions anymore.

Test: Built
Change-Id: I055ac287f480e9ba47c54333e7994efe87648f1b
2018-08-01 10:21:30 -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