Commit Graph

7432 Commits

Author SHA1 Message Date
TreeHugger Robot
0f878e30bb Merge "Log a warning if non-role holder attempts to read sms" 2019-01-29 22:44:14 +00:00
TreeHugger Robot
526e9a00da Merge "FEATURE_FINGERPRINT is back to android.hardware.fingerprint" 2019-01-29 22:23:21 +00:00
TreeHugger Robot
2b55d1c8cd Merge "Don't crash system with exception from onServiceChanged" 2019-01-29 21:39:09 +00:00
Joe Onorato
917955a4e6 Merge changes from topic "bug and incident report approval"
* changes:
  Add IncidentCompanionService
  Added a new "incidentReportApprover" permission protection flag.
2019-01-29 19:34:40 +00:00
Makoto Onuki
debdadecc2 Merge "Fix LauncherApps.isActivityEnalbed()" 2019-01-29 18:01:05 +00:00
Joe Onorato
e21ab7eab4 Add IncidentCompanionService
It is a helper in the system process that helps dumpstate and incidentd get
user confirmation to share reports

Bug: 123543706
Test: bit GooglePermissionControllerTest:*
Change-Id: Ia3fe4bd5257044ed89fe56ce683876fa03ba6c36
2019-01-29 09:59:28 -08:00
Joe Onorato
5a15b55107 Added a new "incidentReportApprover" permission protection flag.
This gives the ONE app installed on the system the permission to
authorize the sharing of incident and bug reports with an app.

Currently that app is PermissionController.  Package Manager
enforces that there is only one installed, and refused to boot
if that isn't the case.

Bug: 123543706
Test: bit GooglePermissionControllerTest:*
Change-Id: I76a7fad0ea36359bbb0ff09669df46202d059dab
2019-01-29 09:59:28 -08:00
Makoto Onuki
67845718da Don't crash system with exception from onServiceChanged
Change-Id: I6d66eb8388838da5aed50283f169c95ab5d7bf4e
Fix: 118839305
Test: boot, code inspection
2019-01-29 09:39:01 -08:00
TreeHugger Robot
bade093c2c Merge "Specify status results for RollbackManager.commitRollback." 2019-01-29 15:25:38 +00:00
TreeHugger Robot
c0b8bb4b53 Merge "Frameworks: Add APEX e2e tests to presubmit" 2019-01-29 15:03:18 +00:00
Nadav Bar
00075f9245 Merge "Add microphone pemrission on default to content catprue service package" 2019-01-29 14:14:54 +00:00
Richard Uhler
2a48c29cb6 Specify status results for RollbackManager.commitRollback.
Rather than implicitly reusing the PackageInstaller status codes.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I86929c0c1a5153c7f58e255e104b30fe96ddeca8
2019-01-29 13:35:56 +00:00
TreeHugger Robot
66a23d0504 Merge "Add a way to record causePackages for rollbacks." 2019-01-29 13:17:22 +00:00
Nadav Bar
6d79ab7547 Add microphone pemrission on default to content catprue service package
This is required for capturing playback audio for Tap2Captions. (Live
Captions).
Read the content capture service package name from the content capture
service name defined in the resources.

Change-Id: I6190e1eddf67a9f1d3d3718f61b22a0f235a05e9
Bug: 120408493
Test: manually that actions services has the permissions granted.
2019-01-29 13:50:40 +02:00
Richard Uhler
bf5b5c4461 Add a way to record causePackages for rollbacks.
By passing a new causePackages list of VersionedPackage to
commitRollback and adding a RollbackInfo.getCausePackages() method to
retrieve the cause packages for committed rollbacks.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I3b52511fd7e31b6304e7a7c34180dbb4d20f6dbf
2019-01-29 09:20:19 +00:00
Varun Shah
9b23e4f42b Merge "Removed AppUsageLimit#isGroupLimit API." 2019-01-28 23:53:01 +00:00
Varun Shah
255260107d Merge "Removed CrossProfileApps#startAnyActivity API." 2019-01-28 23:52:36 +00:00
Makoto Onuki
516020a523 Fix LauncherApps.isActivityEnalbed()
It should say false for disabled activities too.

Fix: 113135768
Test: manual test with "pm disable com.google.android.deskclock/com.android.deskclock.DeskClock"
and "pm enable"

Change-Id: Ib5d986178a1f37ef60268ff3cc58271b1e2808e7
2019-01-28 14:18:14 -08:00
Richard Uhler
e87368e1fd Commit rollbacks by ID, not by RollbackInfo.
To make it clear that the system only pays attention to the provided
rollback ID when committing a rollback.

Also, rename executeRollback to commitRollback in IRollbackManager.aidl,
now that we are touching the code anyway.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I315e75c39019536fb2f090a0c84ed4cf7c03ce8c
2019-01-28 12:39:05 +00:00
Richard Uhler
e4e38d6631 Stub out API to support rollback of staged installs.
Adds isStaged and getSessionId methods to RollbackInfo.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I23d3695021474d52cd39a90bcabdb278d95cd4cc
2019-01-28 12:37:23 +00:00
Remi NGUYEN VAN
a6ee9704a3 Merge "Add INetd to SystemServiceRegistry" am: e3f18bd77c am: 9268c0be32
am: 50c95ba67c

Change-Id: I10cbfc198a0713dc53bfca611c082bbb387c1194
2019-01-28 00:59:28 -08:00
Remi NGUYEN VAN
50c95ba67c Merge "Add INetd to SystemServiceRegistry" am: e3f18bd77c
am: 9268c0be32

Change-Id: I92cd23a587ab0f7df2db92918011a9a488c31668
2019-01-28 00:47:45 -08:00
Remi NGUYEN VAN
3193598566 Add INetd to SystemServiceRegistry
Includes @SystemApi for Context.NETD_SERVICE so system apps (including
the network stack) can obtain the service.

Test: m
Bug: 112869080
Change-Id: Ida63747cd30abb7b3c19559803353eb0e42e6efa
2019-01-28 12:13:08 +09:00
Richard Uhler
efb4132ba3 Merge changes Ic2bb4798,I2a409de2,I88a50a0e,Ia69342a4,Ia6548e4d, ...
* changes:
  Use "commit" instead of "execute" for rollbacks.
  Rename PACKAGE_ROLLBACK_EXECUTED to ROLLBACK_COMMITTED.
  Remove unused RollbackManager APIs.
  Use RollbackManager.getAvailableRollbacks in RollbackTest
  Use new RollbackManager API in RollbackPackageHealthObserver.
  Add RollbackManager.getAvailableRollbacks API.
  Include all relevant packages in RollbackInfo.
2019-01-26 07:31:28 +00:00
Varun Shah
1786b3373f Removed CrossProfileApps#startAnyActivity API.
Bug: 123338878
Test: atest com.android.server.pm.CrossProfileAppsServiceImplTest
Change-Id: I6240cbcea701d2f844299940688db5272cbfc48c
2019-01-25 22:22:09 -08:00
Varun Shah
9c6f72bae3 Removed AppUsageLimit#isGroupLimit API.
Bug: 123354775
Test: atest FrameworksServicesTests:AppTimeLimitControllerTests
Change-Id: I7082aaac0071be8d5bc444c6f8521576bf513cff
2019-01-25 21:13:56 -08:00
TreeHugger Robot
7e88e4ceb6 Merge "Remove RuntimePermPresSvc#onRevokeRuntimePerm" 2019-01-26 04:09:32 +00:00
TreeHugger Robot
b1a29f15f1 Merge "Add closing div tag for ContentResolver javadoc" 2019-01-26 02:21:44 +00:00
Eugene Susla
e865b9d9bf Log a warning if non-role holder attempts to read sms
Test: presubmit
Change-Id: I7c0ee96275e8818af5535e789203243ee14659e4
2019-01-25 16:18:30 -08:00
TreeHugger Robot
ecc22e2f0e Merge changes I789db896,I19e91f0f
* changes:
  iorap: Handle binder failures by gracefully attempting to reconnect
  iorap: Update AppLaunchEvent binder calls to use protobuf
2019-01-25 19:10:34 +00:00
Andreas Gampe
735f1191a2 Frameworks: Add APEX e2e tests to presubmit
Add APEX tests to presubmit for package-manager-related directories.

Test: atest
Change-Id: I1aa3c523b16dd3d1f90c73b2fdbbc0af00a8f3b0
2019-01-25 10:08:15 -08:00
Philip P. Moltmann
9610a1619b Remove RuntimePermPresSvc#onRevokeRuntimePerm
This was newly added to a now deprecated service. we can just
remove it and not provide backwards compatibility

Test: Built
Bug: 123221743
Change-Id: Ic7ff6674d3eafd98cd00f3a3e1d92c8161ba3f16
2019-01-25 09:09:12 -08:00
Richard Uhler
4b092ef6f7 Use "commit" instead of "execute" for rollbacks.
Which makes more sense for rollback of staged installs, where the caller
will have to reboot the device before the rollback takes effect.

Internal references to "execute" in IRollbackManager.aidl and the
rollback manager service implementation will be renamed in a follow up
CL.

Bug: 112431924
Test: atest RollbackTest
Change-Id: Ic2bb479873b309fc145e4eda3b347849ac219ac9
2019-01-25 14:56:02 +00:00
Richard Uhler
dca7beb740 Rename PACKAGE_ROLLBACK_EXECUTED to ROLLBACK_COMMITTED.
Because there's no need to distinguish between package and other kinds
of rollbacks, and for rollback of staged installs, committed is a more
appropriate name than executed.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I2a409de29ba82a7a3df2fd0b17f939795caa61d5
2019-01-25 14:23:27 +00:00
Richard Uhler
65f9717b6f Remove unused RollbackManager APIs.
RollbackManager.getAvailableRollback and
getPackagesWithAvailableRollback are no longer needed given the
getAvailableRollbacks API. Remove them.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I88a50a0efd97dd5b45c68e0a3e3253f11d0284f6
2019-01-25 14:23:27 +00:00
Dario Freni
5cccc2bd8e Merge "Add an error message to staged install session." 2019-01-25 14:21:56 +00:00
Kevin Chyn
59c2da71b4 FEATURE_FINGERPRINT is back to android.hardware.fingerprint
Partial revert of ag/5808503 due to comment #27 and #29 of bug below

Fixes: 115639644

Test: builds
Change-Id: I31911569523023aa47ea53c1ae92b1663f7abca4
2019-01-25 14:59:58 +01:00
Richard Uhler
150ad9865e Add RollbackManager.getAvailableRollbacks API.
To replace getAvailableRollback and getPackagesWithAvailableRollbacks,
which will be removed in a subsequent CL.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I67adeb41df974aa5b375f16becdad5910ccc9c76
2019-01-25 10:19:38 +00:00
Richard Uhler
0a79b32332 Include all relevant packages in RollbackInfo.
Instead of a single target package. Needed for rollback of multiPackage
installs.

Additionally, expose this information by a public method rather than a
public field.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I6e3ce87385abd37c48047db27bc443d3719ee023
2019-01-25 10:19:31 +00:00
Dario Freni
275b4aba77 Add an error message to staged install session.
The enum itself might be a bit opaque when trying to debug what failed
during the staged session flow. Add an error message field so that the
caller can learn more about the failure, and also log this message on
logcat.

Bug: 118865310
Bug: 123360647
Test: atest PackageInstallerSessionTest; verified that error message is
written to install_sessions.xml and in logcat.

Change-Id: I45c8633f36d490c17c751a9037b90d3fd413c506
2019-01-25 10:02:44 +00:00
Ng Zhi An
b837d0b93b Add closing div tag for ContentResolver javadoc
Bug: 123290414
Test: m docs and manually verify
Change-Id: Ibb159678c9e3538b186fe936ab2369b6fe6fb51d
2019-01-25 06:03:43 +00:00
Mehdi Alizadeh
c8dfe98014 Merge "Use old API only if no share targets are published" 2019-01-25 00:37:26 +00:00
Mehdi Alizadeh
85fd3d5c8b Use old API only if no share targets are published
In ShareSheet, when querying Direct Share Targets using both old and new
APIs, only query via old API if the app is not publishing any share
targets in its resources (publishing via ShrotcutManager)

Bug: 111698461
Test: Manual test using test app
Change-Id: I4be46110ac4ae6de64a9675a19df5994c4fa65c8
2019-01-24 13:49:31 -08:00
Jeff Sharkey
f1a4991dcc Merge "Migrate CTS to separate broadcast to scan volume." 2019-01-24 16:25:57 +00:00
TreeHugger Robot
ce236a3a4a Merge "Add packageName to ApplicationInfo for APEX." 2019-01-24 14:30:41 +00:00
Varun Shah
52792d160a Merge "Added APIs for App Usage Limits." 2019-01-24 13:35:28 +00:00
Paul Duffin
9e06322720 Merge "Include OrgApacheHttpLegacyUpdater unconditionally" am: 87c1081c42 am: 34269e4b74
am: 455d2a92da

Change-Id: Id265410009bce1d9b2210aab39d84abe0eda9067
2019-01-24 04:12:06 -08:00
TreeHugger Robot
bf45956217 Merge "Expose an API to mark a session as APEX." 2019-01-24 12:01:41 +00:00
Dario Freni
50a21480d7 Add packageName to ApplicationInfo for APEX.
Bug: 123311165
Change-Id: I6bab5d06c7fd0b2d7e49c60cb793a4b621dfeff2
Fix: 123311165
Test: m; tested with custom app; atest PackageParserTest
2019-01-24 11:53:59 +00:00
Paul Duffin
455d2a92da Merge "Include OrgApacheHttpLegacyUpdater unconditionally" am: 87c1081c42
am: 34269e4b74

Change-Id: I19a0c5d9d9a2c2c0e5cf482a5a574f304a8ce765
2019-01-24 03:46:43 -08:00