Commit Graph

9250 Commits

Author SHA1 Message Date
Alison Cichowlas
087fc33b05 Merge "Revert "Security model for moving sharesheet to systemui"" 2018-01-30 00:00:10 +00:00
Chenjie Yu
00efc9c9f5 Merge "change bluetooth update to be cumulative value based" 2018-01-29 23:51:08 +00:00
Alison Cichowlas
76f0ccb5f1 Revert "Security model for moving sharesheet to systemui"
This reverts commit 88f3d4dbe1.

Bug: 72554856
Test: repro instructions in bug
2018-01-29 16:34:33 -05:00
TreeHugger Robot
84783905c0 Merge "Adds generic intent Instant App resolution" 2018-01-29 18:43:46 +00:00
TreeHugger Robot
6fa646ab95 Merge "Reduce pss collection amount, improve logging." 2018-01-29 16:52:08 +00:00
Patrick Baumann
3e8bd0f3b5 Adds generic intent Instant App resolution
Bug: 63117034
Change-Id: Ie3818e913e8e1077f60434a626bc606c0b5015ab
Test: Manual using test app at google_experimental/users/patb/InstantAppsInP
Test: atest android.appsecurity.cts.EphemeralTest passes after modification
2018-01-29 16:19:42 +00:00
TreeHugger Robot
8036428c56 Merge "Revert "Move A11y events throttling away from View(RootImpl)"" 2018-01-27 03:45:39 +00:00
TreeHugger Robot
4470d5eadb Merge "Clean up the procstats dump enums and change component to use message." 2018-01-27 02:33:21 +00:00
Dmitry Dementyev
0f06d06125 Merge "Rename RecoveryController.getRecoveryData() to getKeyChainSnapshot." 2018-01-27 00:37:53 +00:00
Dianne Hackborn
e17b445b6c Reduce pss collection amount, improve logging.
Tuned rates that we collect PSS, to reduce how much we do
that heavy operation.  Added a new way to determine
whether a process has changed to a state for the
"first" time -- now this is when it has gone to that
state for the first time since it was in a lower state.
This will reduce the amount of time we consider a
process to be first to only when it has previously
gone into a higher state than it had before.

Keep track of more fine-grained information about why we
collect a PSS sample (not just internal, but for a single
process, all processes because of a mem state change, all
processes because of a poll).

Started collecting RSS in various places, so we can start
looking at that w.r.t. PSS and see about transitioning to
it is a new primary metric.

Added logging for many of the places where the system
writes its configuration files, so we can more easily
see any bad behavior going on in those areas.

Added some currently disabled code to read smaps directly
instead of using fgets().  Probably won't help, but want
tot test.

Bug: 70859548
Test: atest CtsAppTestCases
Change-Id: I400dba0f3ae9c024df51c946cfa592561028b598
2018-01-26 15:15:04 -08:00
Dmitry Dementyev
b4fb987770 Rename RecoveryController.getRecoveryData() to getKeyChainSnapshot.
Bug: 72299798
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I1a530414d255867786142fa2e01e50469379e295
2018-01-26 11:55:50 -08:00
Eugene Susla
72c510f1c4 Revert "Move A11y events throttling away from View(RootImpl)"
This reverts commit e4d31b3c10.

Fixes: 71904218
Test: presubmit
Change-Id: Id73bde1a0c11696cf561c84cde027cdca4c6a00f
2018-01-26 11:32:25 -08:00
Ben Gruver
fbf5892f15 Merge "Implement UI for warn-on-launch" 2018-01-26 18:44:11 +00:00
TreeHugger Robot
b0db811fe9 Merge "Statsd and frameworks reference proto enums" 2018-01-26 05:02:35 +00:00
Yi Jin
676d1ace1c Clean up the procstats dump enums and change component to use message.
Bug: 72415114
Test: manually flashed and run: dumpsys procstats --proto
Change-Id: Iea47fa41c04c3c6e8335e040086a0b5d65c22aaf
2018-01-25 17:56:06 -08:00
TreeHugger Robot
ce6b2d6bb9 Merge changes from topic "product_partition"
* changes:
  Read media files from /product/media/audio
  Support /product partition
2018-01-26 01:10:16 +00:00
Bookatz
1a1b0464cb Statsd and frameworks reference proto enums
For frameworks constants that don't have intrinsic meaning (i.e. their actual
value and order don't matter), so that it is unlikely that their values
will be changed:
This cl introduces proto enums representing some constants found in
the Android codebase, and connects the two.

By using the Proto enum as the source-of-truth, it means that Java and
proto can be kept in sync. Otherwise, when the Java frameworks code
changes, it silently breaks the protos from working properly, since the enums
are wrong. By having the Java code reference the proto enums, it ensures
that everything is in sync. The values of the constants are unchanged.
But future changes to these constants will need to be done in the proto
file, which the Java file merely references.

The protos are necessary for incidentd and statsd and, in the future,
possibly dumpsys. In this way, the logging mechanism is much less likely
to get broken when new constants are added, and we can be ensured that
the logging accurately reflects the underlying codebase.

Bug: 69478930
Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases
Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCases
Change-Id: If79032c34b2799db1e3e70cb47b1312fd72092b9
2018-01-25 15:47:57 -08:00
Calin Juravle
2b6e24c7e5 Merge "[framework] Extend profile operations to take the profile name" 2018-01-25 18:58:09 +00:00
Igor Viarheichyk
2e7de8ce68 Merge "Fix translations detection for BCP 47 locales." 2018-01-25 18:47:12 +00:00
TreeHugger Robot
0ad372a7e4 Merge "Fix context menu position for RTL" 2018-01-25 17:18:23 +00:00
TreeHugger Robot
3bcddc94ac Merge "Chained attribution for GnssLocationProvider." 2018-01-25 17:14:11 +00:00
Robert Berry
39194c0582 Add #getTransportFlags to BackupDataOutput
This allows a BackupAgent to check whether the transport has client-side
encryption enabled. It can then use this information to decide whether
to back up more sensitive data.

Bug: 72299360
Test: Manually verified full & kv backup agents receive transport flags
Test: m -j RunFrameworksServicesRoboTests
Change-Id: Ibd9b5f9479815e1721e9d6b7663d892b9ab3fcae
2018-01-25 09:28:55 +00:00
TreeHugger Robot
c4a79e03ad Merge "Introduce InputConnection#reportLanguageHint()" 2018-01-25 04:23:38 +00:00
Jaekyun Seok
1713d9e97a Support /product partition
This CL will support the followings.
- installing a RRO package for framework from /product/overlay
- installing apps from /product/app
- installing priv-apps from /product/priv-app
- installing permissions from
  /product/etc/[default-permissions|permissions|sysconfig]

Bug: 64195575
Test: `mm` under frameworks/base/tests/[libs|privapp]-permissions
adb sync && adb reboot
adb shell cmd package list libraries
  => confirmed com.android.test.libs.product library
adb shell cmd package dump \
  com.android.framework.permission.privapp.tests.product
  => confirmed that the package is a priv-app

And I moved vendor/overlay/framework-res__auto_generated_rro.apk into
system/product/overlay/ on sailfish, and I confirmed that the RRO was
installed properly.

Change-Id: I16175933cebd9ec665d190cc5d564b5414a91827
2018-01-25 12:44:45 +09:00
David Brazdil
71e8c4092f Merge "Set Zygote.DISABLE_HIDDEN_API_CHECKS for system apps" am: 50cfaa40ca am: 97a970e56b
am: 5fab14313b

Change-Id: I788ad36976b6c63670f40c735380982e6567df86
2018-01-25 01:20:47 +00:00
David Brazdil
5fab14313b Merge "Set Zygote.DISABLE_HIDDEN_API_CHECKS for system apps" am: 50cfaa40ca
am: 97a970e56b

Change-Id: I73eaa052597d225aa673dd479977b0ce7a7d6d64
2018-01-25 01:12:33 +00:00
Igor Viarheichyk
6a29b497a2 Fix translations detection for BCP 47 locales.
Drop BCP 47 unicode locale extension when passing the locale
into ICU ULocale.addLikelySubtags. Currently addLikelySubtags
discards region code for locales with extensions, making them
treated as not translated by Setup Wizard.

Test: manual run with debug logs.
Bug: 72336416

Change-Id: I7258577253486162b310e4102669db082cd09594
2018-01-24 16:07:08 -08:00
Calin Juravle
6ae39fc2e5 [framework] Extend profile operations to take the profile name
Extend the installd profile interface to take the profile name as
argument. This shifts the responsibility for choosing the names of
profiles for primary apks completely to PackageManager. Each of the
application code paths will get an unique profile name based on their
split name.

All the profile operations will now work on a specific profile name rather
than assuming a default global name.

Also, move dumpProfiles and clearProfiles functionality to the
ArtManagerService so that we can re-use profileName computations easier.

Test: manual (dexopt apps, merge profiles, clear profiles)
      gts GtsAndroidRuntimeManagerHostTestCases
Bug: 30934496

Change-Id: Ie65d45eed7de0844edf4b7af918d7eaa74ec1f2c
2018-01-24 14:56:38 -08:00
Ben Gruver
c7ffbe636a Implement UI for warn-on-launch
Bug: 63909431
Test: atest CtsHarmfulAppWarningHostTestCases
Change-Id: Icabe31f3fb04692bac0313cbeb1cafb64388d5f1
2018-01-24 14:49:16 -08:00
David Brazdil
2a21a9c997 Merge "Set DEXOPT_DISABLE_HIDDEN_API_CHECKS for system apps" am: 2a8c24be18
am: 6dea42ae0f

Change-Id: I6376e610c575cd7c3f7bf8a72ca4c1a92d9023cc
2018-01-24 21:43:47 +00:00
David Brazdil
071bcaa906 Set Zygote.DISABLE_HIDDEN_API_CHECKS for system apps
When forking a process for a system app, pass a flag to ART that
will disable enforcement of hidden API access checks.

Test: manual
Bug: 64382372
Change-Id: I5ba81d84a44c9467613f060428b11e1d9d725bd3
2018-01-24 21:42:28 +00:00
Siddharth Ray
21037e95e2 Merge "GPS power calculation" 2018-01-24 19:43:25 +00:00
David Brazdil
c5e55b4840 Merge "Set DEXOPT_DISABLE_HIDDEN_API_CHECKS for system apps" 2018-01-24 18:41:39 +00:00
Geoffrey Pitsch
d997d191ed Merge "Security model for moving sharesheet to systemui" 2018-01-24 17:33:59 +00:00
Beverly
ae79ab9d87 Basic workspace wireless charging animation
(No animation on ambient or lockscreen yet)

Test: manual (testing w/o wireless charger, set DEBUG_WIRELESS=true)
Bug: 67598445
Change-Id: Ifeef72805930187b8f78e72fd44bd7da25724e0c
2018-01-24 09:27:59 -05:00
David Brazdil
7c48e0e074 Set DEXOPT_DISABLE_HIDDEN_API_CHECKS for system apps
For now, system apps will be exempt from hidden API access checks.
Pass the appropriate flag to dexopt.

Test: manual
Bug: 64382372
Bug: 72305689
Merged-In: I5676ffa3a5ba680bf5f6bab0b62f0acf4a933097
Change-Id: Idc3067d2c6040f15fe0f051090ba45efe591ebae
2018-01-24 14:12:33 +00:00
David Brazdil
464ed3d55f Set DEXOPT_DISABLE_HIDDEN_API_CHECKS for system apps
For now, system apps will be exempt from hidden API access checks.
Pass the appropriate flag to dexopt.

Test: manual
Bug: 64382372
Bug: 72305689
Change-Id: I5676ffa3a5ba680bf5f6bab0b62f0acf4a933097
2018-01-24 14:11:50 +00:00
Narayan Kamath
32684ddf3c Chained attribution for GnssLocationProvider.
The change is slightly more involved than similar changes in this area
because GnssLocationProvider doesn't treat WorkSources as opaque, it
tries to compute diffs between them (using the only call to
WorkSource.setReturningDiffs in the platform). It also uses WorkSources
tags to make calls to AppOps.

Some of this can be improved generally, but this change is narrower in
scope and only tries to improve battery related attribution.

Test: BatteryStatsTests
Bug: 62390666

Change-Id: Ie28bc91d74d3a0c3b6aaef6ba7c59fc58633efb1
2018-01-24 09:06:08 +00:00
Chenbo Feng
39937d4b8d Merge changes from topic "bpfStats" am: 6e03224697 am: e041f38289
am: cf4b551fb7

Change-Id: I672efa1221e17d0962ca5702330fc83d75fcac81
2018-01-24 05:46:52 +00:00
Chenbo Feng
cf4b551fb7 Merge changes from topic "bpfStats" am: 6e03224697
am: e041f38289

Change-Id: Ib4790159fd331858ce9f3343a44ccec66fae638c
2018-01-24 05:39:54 +00:00
Kevin Chyn
179e117cbe Merge changes from topic "fingerprint-dialog"
* changes:
  Add Fingerprint Dialog to SysUI
  Add FingerprintDialog API and related plumbing
2018-01-24 02:07:54 +00:00
Dmitry Dementyev
856c69a47b Merge "Prepare KeyStore RecoveryController API for review." 2018-01-24 01:45:08 +00:00
Chenjie Yu
890833942c change bluetooth update to be cumulative value based
Test: manual test
Change-Id: Ib8a4117818881b664a2cb18db12c6e9c0a462682
2018-01-23 16:59:10 -08:00
Jorim Jaggi
555c6fcd96 Merge "Add API to set divider color in code" 2018-01-23 23:16:40 +00:00
Kevin Chyn
aae4a15a22 Add FingerprintDialog API and related plumbing
This commit adds the plumbing which sends the signals from the API
to the component in SysUI. The dialog will be implemented in another
CL in this topic.

Bug: 67497360

Test: Modify Settings to use the new API
Test: FingerprintDialogImpl is able to notify FingerprintDialog clients
      of user events
Test: System dialog is dismissed when client application is killed
      unexpectedly
Test: Open FP settings, lock device, authenticate, authenticate. Repeat

Change-Id: Id28ec9691646bed765dc069cceb4678d9f6db92e
2018-01-23 14:54:48 -08:00
Vladislav Kaznacheev
d959c9d203 Fix context menu position for RTL
Based on https://android-review.googlesource.com/574843.
Added APCT coverage to verify the fix and prevent regressions.

Bug: 70920189
Test: android.view.menu.ContextMenuTest
Change-Id: I50a7594e864e05bb155de1ff9d721d6d8986aad1
2018-01-23 14:34:34 -08:00
Dmitry Dementyev
0916e7ca44 Prepare KeyStore RecoveryController API for review.
- set/get recovery status simplification
- adding account to WrappedKey
- moving recovery methods to the Session class.

There are small cosmetical changes to .aidl which don't affect
implementation logic.

Bug: 72299798
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I9efaa4cde42cf778bb97ed13f62750a65d8c6cb5
2018-01-23 14:24:50 -08:00
Dmitry Dementyev
d51fdf0105 Merge "Move APIs to final location in preparation for API review" 2018-01-23 20:57:14 +00:00
Yohei Yukawa
e77386e8fb Introduce InputConnection#reportLanguageHint()
The goal of this CL is to introduce a way for IMEs to tell
applications about what languages are likely to be used in the text to
be committed, for IMEs that support dynamic language switching
(especially without relying on InputMethodSubtype).

It is already obvious that InputMethodSubtype is not working well for
this use case.  We need is a simple, easy, and back-portable way that
can be widely accepted by the ecosystem.

Bug: 7031513
Test: atest CtsInputMethodTestCases
Change-Id: Ie86edafd1ed68b58f702116f561fc448fdbb57a8
2018-01-23 10:39:32 -08:00
TreeHugger Robot
7e004f96dd Merge "Atom: WifiMulticastLockStateChanged" 2018-01-23 18:09:20 +00:00