Commit Graph

7477 Commits

Author SHA1 Message Date
Eugene Susla
b8543da969 Merge "Revert "Log a warning if non-role holder attempts to read sms"" 2019-02-01 21:50:45 +00:00
Aurimas Liutikas
ce37d9027d Merge "Update TypedArray and TypedValue to store source layouts." 2019-02-01 20:35:23 +00:00
Eugene Susla
c0826a6434 Revert "Log a warning if non-role holder attempts to read sms"
This reverts commit e865b9d9bf.

Reason for revert: caused b/123709320, also non needed any more

Fixes: 123709320
Change-Id: I2afa0a60133a490ab433cd04dd03a5e26fb3fc14
2019-02-01 18:26:30 +00:00
Ricky Wai
922698a90b Merge "Make AppDetailsActivity to be transparent" 2019-02-01 15:15:13 +00:00
TreeHugger Robot
2c13539844 Merge "Revert "Minimum viable TimeZoneDetectorService"" 2019-02-01 12:57:32 +00:00
Narayan Kamath
bd01149b62 Merge "ModuleInfo: Address API council feedback." 2019-02-01 12:00:44 +00:00
Ricky Wai
6229250736 Make AppDetailsActivity to be transparent
Test: It's transparent and no flash/action bar when it starts
Bug: 119484208
Change-Id: Iddbe80d017d652884f5bfb7bb7420739e00b855d
2019-02-01 11:22:47 +00:00
Po-Chien Hsueh
5380a5adf9 Merge "Add DynamicAndroidClient" 2019-02-01 10:56:42 +00:00
TreeHugger Robot
8a72d5a9d5 Merge "Add a new "appPredictor" protection flag." 2019-02-01 03:48:32 +00:00
TreeHugger Robot
f973460248 Merge "Implement getting displayId from ActivityManager" 2019-02-01 01:41:31 +00:00
Aurimas Liutikas
949b05dbdc Update TypedArray and TypedValue to store source layouts.
In ag/5859897 we started tracking source styles for each TypedValue.
It is also useful to keep track of source layouts if the attribute
was resolved against a layout (attribute set in XML layout inside
of <View> tag).

Test: atest CtsContentTestCases:android.content.res.cts.TypedArrayTest
Bug: 111439551
Change-Id: Ie6bc6ecd9a22b536a2f3288263b896f9cec67d38
2019-01-31 15:44:51 -08:00
Adam He
bb82c6a9f0 Implement getting displayId from ActivityManager
Change-Id: Ib8659062e5dd58b49c1e1fdee03f5f6a65e00971
Fixes: 121260224
Test: atest CtsContentCaptureServiceTestCases
2019-01-31 15:33:36 -08:00
TreeHugger Robot
7d3adab5e9 Merge "Change foregroundServiceType from enum to flags" 2019-01-31 22:11:41 +00:00
TreeHugger Robot
9853d60bd9 Merge "Rename preferCodeIntegrity to useEmbeddedDex" 2019-01-31 20:35:54 +00:00
Hui Yu
2d4207f8c1 Change foregroundServiceType from enum to flags
1. Now the value of manifest attribute foregroundServiceType can
be multiple flags ORed together.
2. Add a overloaded version of Service.startForeground() with an
additional parameter foregroundServiceType. The flags in parameter
foregroundServiceType must be a subset of flags specified in manifest
attribute foregroundServiceType, otherwise a IllegalArgumentException is
thrown.
3. Add a field foregroundServiceType in ServiceRecord, it is the types
that have been started on this foreground sevice.

Bug: 111453223
Test: atest frameworks/base/tests/FrameworkPerf

Change-Id: I7eb68f696e6bf75720fe9c9388a6c23a529677f7
2019-01-31 11:50:18 -08:00
Aurimas Liutikas
83cbd348c3 Merge "Add View#getSourceLayoutResId()." 2019-01-31 18:23:02 +00:00
George Hodulik
cd7695dda0 Add a new "appPredictor" protection flag.
Permissions that have the new apppredictor protection flag will
be granted to the app predictor app, which is AiAi for Pixels.

The MANAGE_APP_PREDICTIONS permission is updated to use the
app predictor flag.

App Predictor for Pixels already set in ag/6019430.
Some one-off handling for app predictor already added in
ag/6025266 and ag/6025267. This cl adds the appPredictor flag.

Test: Tested manually that it worked.
Test: atest CtsPermission2TestCases:PermissionPolicyTest
Bug:123599542

Change-Id: I0550930f78fdb57eea8680762c9b313a330968b6
2019-01-31 10:17:09 -08:00
TreeHugger Robot
c9a6395ba2 Merge "Support for multi-package APK+APEX sessions." 2019-01-31 18:15:29 +00:00
TreeHugger Robot
d243eccc6e Merge "Remove TODO from API Javadoc." 2019-01-31 17:06:31 +00:00
Dario Freni
4b572c0740 Support for multi-package APK+APEX sessions.
Adding support for single-package staged session containing one APK
only, or multiple-package staged sessions containing an arbitrary number
of APK or APEX packages.

Bug: 118865310
Test: tried the following scenarios:
  - atest apex_e2e_tests
  - adb install --staged file.apk
  - adb install-multi-package --staged file.apk file.apk
  - adb install-multi-package --staged file.apk file2.apk file.apex
    file2.apex
Change-Id: I0c018f89705128ecc7e3939cff18eafa19e47a0e
2019-01-31 15:58:43 +00:00
Victor Hsieh
fa9df0b5db Rename preferCodeIntegrity to useEmbeddedDex
Also remove the restriction of extractNativeLibs.

Test: build, (new) CTS in progress
Bug: 112037137
Change-Id: If0ad13b0d63b288c2da3a82b911d8dad0db8c07a
2019-01-31 07:49:45 -08:00
Dario Freni
566350a93a Remove TODO from API Javadoc.
Test: N/A
Change-Id: If14a5fea300192390e8f4f04ec5ccbf39a0d8a53
Fix: 123661629
2019-01-31 14:56:06 +00:00
Narayan Kamath
79eed4bf12 Merge "PackageManager: Call RollbackManager API with the right set of installed users." 2019-01-31 14:07:04 +00:00
Martijn Coenen
81973983b0 Merge "Allow app to specify class name for app zygote preloading." 2019-01-31 12:35:13 +00:00
Howard Chen
0a94764738 Add the DynamicAndroid Service
Define the DynamicAndroid with AIDL.
  Add a java implementation.
  Start a service instance in the system server.
  Add a permission test.

Bug: 122015653
Test: Build & Test on a pixel phone with following command \
  ./frameworks/base/services/tests/runtests.py -e class com.android.server.DynamicAndroidTest

Change-Id: I2e54b6b71fac4a4c5a9c9c25ce6bdac74cddcfb7
2019-01-31 14:19:34 +08:00
Howard Chen
c570b0c5a9 Add DynamicAndroidClient
DynamicAndroidClient is the SystemApi to invoke DynamicAndroid
installation service. It also provides a listener for status update.

Bug: 122440941
Test: Compile and run on internal target
Change-Id: I1ea5e861ecaca1647b445eac57ed15a144be68e8
2019-01-31 10:47:03 +08:00
TreeHugger Robot
71f12a3093 Merge "Allow cross user SessionCallback support" 2019-01-30 23:05:37 +00:00
Aurimas Liutikas
aae06631e1 Add View#getSourceLayoutResId().
Add ability for developers to check which layout file did a given
View was inflated from.

Bug: 111439551
Test: atest CtsViewTestCases:android.view.cts.ViewSourceLayoutTest
Change-Id: I0f2981648629d74fd576687a54a31b00cd636976
2019-01-30 13:36:04 -08:00
Narayan Kamath
acdccf0a4e ModuleInfo: Address API council feedback.
Use CharSequence instead of String for package labels

Bug:123587616
Test: atest ModuleInfoProviderTest
Change-Id: I2ed9712aabad57c7e6325e452aa0caee19476213
2019-01-30 19:43:03 +00:00
Matt Pietal
ffcf6e5460 Merge "Sharesheet content preview - adding text support only" 2019-01-30 11:58:51 +00:00
Richard Uhler
8ffae36fa9 Merge "Rename RollbackInfo.getSessionId to getCommittedSessionId." 2019-01-30 10:29:04 +00:00
Narayan Kamath
a3bf162ae4 Merge "Multi-user support for app data snapshot / rollback." 2019-01-30 10:15:33 +00:00
Narayan Kamath
67af327d2b PackageManager: Call RollbackManager API with the right set of installed users.
We know we're operating on an update to an installed app, which is
applied to all previously installed users. Therefore, we must restore
data for those users and not just the user specified in the
InstallParams.

Test: atest RollbackTest
Bug: 112431924

Change-Id: Id95ee5c8e02da71fa3a64b4bf10966f3fb2e5e9c
2019-01-30 09:16:30 +00:00
Martijn Coenen
fb7caa96f9 Allow app to specify class name for app zygote preloading.
Instead of using a fixed class name, define an interface for
preloading application code that must be implemented by applications
that use the application zygote.

Also, add an ApplicationInfo parameter to said function, so the app
knows where to look for its data and code.

Bug: 111434506
Test: atest CtsApptestCases:ServiceTest
      atest CtsSeccompHostTestCases

Change-Id: I1f8472da89dc90562dcb4e479e3d87ebf49b926c
2019-01-30 09:57:19 +01:00
TreeHugger Robot
78ae2b5bb6 Merge "Skeleton API for IncidentManager to retrieve incident reports." 2019-01-30 03:30:40 +00:00
TreeHugger Robot
612ffdd8ea Merge "Do not load xml metadata for unchanged packages in RegisteredServicesCache" 2019-01-30 02:18:38 +00:00
Evan Laird
a194630221 Merge "Add StatusBarManager#disableForSetup(boolean) @SystemApi" 2019-01-30 00:20:19 +00:00
Joe Onorato
8daca75889 Skeleton API for IncidentManager to retrieve incident reports.
Bug: 123543706
Test: make
Change-Id: I0a41d476703cb0c1c728c6de1bf290162129e699
2019-01-29 16:10:44 -08:00
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
Ng Zhi An
dc66ef5ed3 Do not load xml metadata for unchanged packages in RegisteredServicesCache
RegisteredServicesCache caches services in an xml, so the system doesn't
have to scan all the apks. Whenever a package is changed
(add/remove/replaced), the broadcast receiver in RegisteredServicesCache
will refresh this cache by quering all matching services and reading
their
xml metadata. There is extra work done here, because only the changed
package
will have services added/removed.

The edge case is after a cache is invalidated, we want to query package
manager for everything, regardless of what changedUids is (we could
have arrived here if invalidateCache is called, and then a package
change event fires, before a getAllServices is called to rescan
everything).

Add a new test to verify that the optimization takes care of the case
when the cache is invalidated.

Bug: 117755076
Bug: 122912184
Test: atest RegisteredServicesCache
Test: dumpsys content # check sync adapters
Change-Id: I5c1f57108c4b67d24b198000d57216c63d35290a
2019-01-29 12:36:09 -08: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
Matt Pietal
26038402bd Sharesheet content preview - adding text support only
Adding initial support for a content preview section within
the ChooserActivity. File/Image support is pending.

Bug: 120419296
Test: 'atest ChooserActivityTest' as well as visual inspection
of sharing from multiple google apps like Chrome

Change-Id: Iee4746940fb8ddd4f0a54a0bf7ef485be2eab30d
2019-01-29 14:04:23 -05:00
Richard Uhler
d750b856a3 Rename RollbackInfo.getSessionId to getCommittedSessionId.
To clarify which session id it is returning.

Bug: 112431924
Test: builds.
Change-Id: I991477636f21440894d595f93926a32b7380708b
2019-01-29 18:09:33 +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
Neil Fuller
f4894d391b Revert "Minimum viable TimeZoneDetectorService"
Remove the stubbed TimeZoneDetectorService. Priorities
dictated that it not be worked on so it has never been
used.

This reverts commit 7fb88c3928.

Bug: 112827764
Bug: 78217059
Test: build / boot
Change-Id: I39ed2fc7f8de8d4b2c0d883cd264cc126579af27
2019-01-29 16:40:30 +00:00