Commit Graph

380683 Commits

Author SHA1 Message Date
Jeff Sharkey
dd02e33417 StrictMode to catch storage while locked.
When an app starts becoming Direct Boot aware, it can be difficult
to track down all the places they're reading data from credential
protected storage.

When a user is locked, credential protected storage is unavailable,
and files stored in these locations appear to not exist, which can
result in subtle app bugs if they assume default behaviors or
empty states. Instead, apps should store data needed while a user
is locked under device protected storage areas.

Bug: 110413274
Test: atest cts/tests/tests/os/src/android/os/cts/StrictModeTest.java
Change-Id: Ia390318efa6fefda8f10ac684d0206e67aa1d3dc
2018-06-29 11:41:00 -06:00
Jack Yu
f42d06010a Used APN type instead of APN id
APN id is similar to ApnSetting.ApnType. We can just use the apn
type. No need to use APN id anymore.

Test: Telephony sanity tests + unit tests
Bug: 77511388
Change-Id: If41845604ea14f36272262da110d682eea0d5451
2018-06-29 10:34:48 -07:00
Amit Mahajan
93c577b224 Merge "Add new carrier config for CDMA registered PLMN when not roaming." into pi-dev
am: fffc308084

Change-Id: I813c193b1c9d68f524ad74d21f0616516edc18d6
2018-06-29 10:34:33 -07:00
TreeHugger Robot
fffc308084 Merge "Add new carrier config for CDMA registered PLMN when not roaming." into pi-dev 2018-06-29 17:23:13 +00:00
Danny Epstein
b8cbf3aa5b Make scroll bars more noticeable on round screens.
Increase alpha from 15 to 30% for the track and use Google Material
Grey 200 for the thumb. Fix the geometry so that the track and thumb
don't extend off the edge of the screen.

Bug: 80258942
Change-Id: I43e603e5fffb8a05f486af35194c801060dd0b51
(cherry picked from commit 97b00cbc039a090659aed75e47a172a70222b02f)
2018-06-29 16:40:08 +00:00
Dianne Hackborn
2aec55a658 Add more data (fg services, associations) to procstats.
- Keep track of foreground services.
- Keep track of associations between processes.

The big part of this is the second, tracking associations.
We have have procstats keeping continual track of associations
between processes, much like the "am track-associations"
command.  Currently the data kept on them is very minimal
(just the count and total duration, not separated by other
states) due to the potential number of them that there can be,
but we can look in to trying to maintain more data going
forward if it is feasible.

The way this is incorporated into the activity manager makes
it a little different than "am track-associations," with
potentially some new interesting data available.  These
associations are tied with the connection objects in the
activity manager, so they only count while the target
process is actually running (so their duration should match
with the lifecycle of the target).  They are tied to the
target package, since that is what we know all of the
information we need for rooting data in procstats (package
name, uid, and version code of that package); only the process
name and uid are available for the source of the association

Since these are tied to the connection components, it is
possible that we could even maintain data on the duration per
proc state that is flowing from that association in to the
target process.  That would be very useful, but would add
a fair amount more overhead in data being tracked.

English output of the new association data looks like:

  * com.android.providers.downloads / u0a17 / v28:
      * Prc android.process.media / u0a17 / v28:
               TOTAL: 0.45%
              Imp Bg: 0.26%
             Service: 0.18%
            Receiver: 0.01%
          (Last Act): 0.78%
            (Cached): 37% (5.2MB-5.8MB-8.2MB/3.9MB-4.4MB-6.0MB/3.9MB-7.0MB-50MB over 18)
      * Svc com.android.providers.downloads.DownloadIdleService:
        Process: android.process.media
            Running count 3 / time 0.01%
            Bound count 3 / time 0.01%
            Executing count 6 / time 0.00%
      * Svc com.android.providers.downloads.DownloadJobService:
        Process: android.process.media
            Running count 6 / time 0.21%
            Bound count 6 / time 0.21%
            Executing count 12 / time 0.00%
      * Asc com.android.providers.downloads.DownloadIdleService:
        Process: android.process.media
          <- system / 1000:
             Count 3 / time 0.01%
      * Asc com.android.providers.downloads.DownloadStorageProvider:
        Process: android.process.media
          <- com.android.documentsui / u0a10:
             Count 1 / time 0.00%
      * Asc com.android.providers.downloads.DownloadProvider:
        Process: android.process.media
          <- com.android.vending / u0a11:
             Count 39 / time 2.6%
          <- system / 1000:
             Count 3 / time 0.00%
          <- com.google.android.gms / u0a36:
             Count 8 / time 0.01%
      * Asc com.android.providers.downloads.DownloadJobService:
        Process: android.process.media
          <- system / 1000:
             Count 6 / time 0.21%

And the corresponding checkin:

pkgproc,com.android.providers.downloads,10017,28,android.process.media,0nf:717,0nb:71332,0ns:48335,0nr:3652,0nl:218034,0ne:10103500,0mf:21,0ms:614,0me:185,1ne:100236
pkgpss,com.android.providers.downloads,10017,28,android.process.media,0ne:18:5310:5950:8434:4036:4522:6140:4036:7127:51056
pkgsvc-run,com.android.providers.downloads,10017,28,.DownloadIdleService,3,0n:1849
pkgsvc-bound,com.android.providers.downloads,10017,28,.DownloadIdleService,3,0n:1794
pkgsvc-exec,com.android.providers.downloads,10017,28,.DownloadIdleService,6,0n:89
pkgsvc-run,com.android.providers.downloads,10017,28,.DownloadJobService,6,0n:58224
pkgsvc-bound,com.android.providers.downloads,10017,28,.DownloadJobService,6,0n:58154
pkgsvc-exec,com.android.providers.downloads,10017,28,.DownloadJobService,12,0n:187
pkgasc,com.android.providers.downloads,10017,28,.DownloadIdleService,system,1000,3,1790
pkgasc,com.android.providers.downloads,10017,28,.DownloadStorageProvider,com.android.documentsui,10010,1,80
pkgasc,com.android.providers.downloads,10017,28,.DownloadProvider,com.android.vending,10011,39,1067022
pkgasc,com.android.providers.downloads,10017,28,.DownloadProvider,system,1000,3,96
pkgasc,com.android.providers.downloads,10017,28,.DownloadProvider,com.google.android.gms,10036,8,1951
pkgasc,com.android.providers.downloads,10017,28,.DownloadJobService,system,1000,6,58149

Bug: 110957691
Test: manual
Change-Id: Id466b085303527e7bf7354f7f33a0fbaa768fb7b
2018-06-29 09:36:19 -07:00
TreeHugger Robot
af57538369 Merge "Clarify WebView's lack of plugin support." 2018-06-29 16:04:31 +00:00
TreeHugger Robot
388edb6255 Merge "Fix file matching w/ full-backup rules xml" 2018-06-29 15:08:19 +00:00
Benjamin Miller
2a8f129c2a Docs: generateKeyPair() can't be called from the main thread.
Bug: 110194933
Test: make ds-docs with visual inspection of generated HTML
Change-Id: I5f7839cbf57d9150ad4c9a9c4ac943064fb1f6c0
2018-06-29 08:07:47 +00:00
Bernardo Rufino
62863825e0 Fix file matching w/ full-backup rules xml
Documentation is pretty vague:
https://developer.android.com/guide/topics/data/autobackup#XMLSyntax.

But there were a couple of issues:
* It was prematurely returning false without consuming the rest of the
  includes (cause of the bug linked).
* It was using string comparison for checking if a file is in a
  directory, which ended up flagging directories such as "a/b" as
  containing files "a/b.txt".

Reviewers,

* Please, pay full attention to test cases.
* Since this is code move + code change, set diff as 2..latest to check
changes to the function.

Bug: 110720194
Test: atest BackupUtilsTest
Test: Backup and restore app w/ multiple directory includes, verify
      everything restored

Change-Id: Ic0fea43156ce8fb641af69ae73679289a20c291c
2018-06-29 07:18:26 +00:00
Sundong Ahn
faa0516e0b Merge "Build com.android.future.usb.accessory with java_sdk_library" am: 10cfc61774 am: 35d6bafc57
am: 3be9f7072a

Change-Id: I737cd14d3af988abde8c60d061d1c3526ad40749
2018-06-28 21:12:16 -07:00
Riddle Hsu
9a936e9677 Merge "Check for valid surface when starting to drag" 2018-06-29 03:57:40 +00:00
Sundong Ahn
3be9f7072a Merge "Build com.android.future.usb.accessory with java_sdk_library" am: 10cfc61774
am: 35d6bafc57

Change-Id: I205f0f1811b68aa41d105fbd8db24db52ae2d35e
2018-06-28 20:53:52 -07:00
Remi NGUYEN VAN
d74257ae42 [automerger skipped] Merge "Disable hidden API checks on unit tests" am: 855f0f03e1 -s ours am: 44b1914000 -s ours
am: cee918d925  -s ours

Change-Id: I73c1742115d932a64f0788e1b26ebca32cc25773
2018-06-28 20:53:05 -07:00
Remi NGUYEN VAN
cee918d925 [automerger skipped] Merge "Disable hidden API checks on unit tests" am: 855f0f03e1 -s ours
am: 44b1914000  -s ours

Change-Id: Id6a4bb03399d46a9e709cc13e6e338d884c3b87b
2018-06-28 20:44:05 -07:00
Sundong Ahn
35d6bafc57 Merge "Build com.android.future.usb.accessory with java_sdk_library"
am: 10cfc61774

Change-Id: Ie6abdaa1c9f58ada60da5514bbd1ed261d09fd0b
2018-06-28 20:38:09 -07:00
Remi NGUYEN VAN
44b1914000 [automerger skipped] Merge "Disable hidden API checks on unit tests"
am: 855f0f03e1  -s ours

Change-Id: I9ad7743e43efd5aaa722e73ea0b2543537d23c50
2018-06-28 20:34:19 -07:00
Winson Chung
1241652d8a Merge "Ensure PiP test apis are marked as TestApi" 2018-06-29 03:13:25 +00:00
Treehugger Robot
10cfc61774 Merge "Build com.android.future.usb.accessory with java_sdk_library" 2018-06-29 02:51:43 +00:00
Remi NGUYEN VAN
855f0f03e1 Merge "Disable hidden API checks on unit tests" 2018-06-29 02:15:47 +00:00
Kevin Chyn
c5101b3044 Merge "Change resource name to be consistent with fingerprint" 2018-06-29 01:55:52 +00:00
TreeHugger Robot
d576307171 Merge "Improving WTF logging in AlarmManager" 2018-06-29 01:06:21 +00:00
TreeHugger Robot
b702fbea9c Merge "Pull AUTOGROUP_AT_COUNT into an XML config." 2018-06-29 00:58:36 +00:00
Brad Ebinger
b599d73b8c Merge "Emergency SMS carrier config flag" am: 36a9fa62be am: 86ec65e59c
am: 0bb18995dc

Change-Id: I4bc7ca9080af8f0bd06c4ab0fe547640314819e1
2018-06-28 17:43:48 -07:00
Brad Ebinger
0bb18995dc Merge "Emergency SMS carrier config flag" am: 36a9fa62be
am: 86ec65e59c

Change-Id: I63df676bf2270532c84cb950e4cac13858fbd4fb
2018-06-28 17:34:48 -07:00
Brad Ebinger
86ec65e59c Merge "Emergency SMS carrier config flag"
am: 36a9fa62be

Change-Id: If6a2b0316ee0fdac29eedcf77686694f538d5017
2018-06-28 17:26:39 -07:00
Ahmed ElArabawy
ba64b61697 wifi.proto: Add metrics for failed SAR sensor reg
This commit adds the metric for counting failures in registration of
SAR sensor listener.

Bug: 65174506
Test: Unit tests

Change-Id: I8d13336aa9c433128f500063819081cfcc43d2cc
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-06-29 00:00:06 +00:00
Matthew Ng
87a3b3958c Skip hardware bitmaps if canvas does not support hardware acceleration
Test: use go/web-hv on nav bar
Change-Id: Id7d5f01aa0dbe9d05d0526726f64fc5233b9f563
Fixes: 110949540
2018-06-28 16:48:08 -07:00
Nathan Harold
184e8c6a6c [automerger skipped] Merge "Allow Cell Location for SYSTEM_UID and ROOT_UID" am: 9ca4d43922 -s ours am: f0893a15ab -s ours
am: d67a9006b4  -s ours

Change-Id: Ibd255cbdaa91e1770471aa1e84151105b33915a3
2018-06-28 16:46:07 -07:00
Michael Kwan
e322502f91 Add flag to disable sticky behaviour for battery saver.
Bug: 78239179
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/BatterySaverStateMachineTest.java
Change-Id: I33ce8a0698f1aca8d09096574a3b9e0a31281557
2018-06-28 23:43:41 +00:00
Nathan Harold
d67a9006b4 [automerger skipped] Merge "Allow Cell Location for SYSTEM_UID and ROOT_UID" am: 9ca4d43922 -s ours
am: f0893a15ab  -s ours

Change-Id: I039631fce137f11a1eb6d65d57f5150b50b73303
2018-06-28 16:36:02 -07:00
Torne (Richard Coles)
1676c95ddc Clarify WebView's lack of plugin support.
Update docs to clarify that plugins are in fact not supported from K
onward and that enabling them doesn't do anything.

Test: m offline-sdk-docs
Change-Id: I8678ea716be0adc4cd3a6fae1b4776e312ec29e0
2018-06-28 19:34:17 -04:00
Nathan Harold
f0893a15ab [automerger skipped] Merge "Allow Cell Location for SYSTEM_UID and ROOT_UID"
am: 9ca4d43922  -s ours

Change-Id: I2e148a4e55510acf0c0425b7e1ed6cdc1fb9eb34
2018-06-28 16:26:56 -07:00
TreeHugger Robot
9852064d00 Merge "Set initial KSV state after inflation" 2018-06-28 23:16:18 +00:00
Winson Chung
37b99ba2e4 Ensure PiP test apis are marked as TestApi
Bug: 77533294
Test: atest CtsAndroidAppTestCases:PictureInPictureParamsBuilderTest
Change-Id: Icbcea8cf9d7e49db7ebcc1ce676b43722f75b7f4
2018-06-28 15:42:06 -07:00
Stanley Tng
fe8c8337ed Add Feature Flag for Hearing Aid Profile
Using the Settings App-Developer Options-Feature Flag, allow the user to
enable or disable the Hearing Aid Profile.

Test: Manual testing using Settings App
Change-Id: I58a9d339941e235242c443c85b6f4194b5a296c9
2018-06-28 15:31:50 -07:00
Jack Yu
7928c4d1c3 Reordered the params for network registration
Test: Build
Bug: 73659459
Change-Id: I1af2c49a937177173b760d30b030da20f03c01d7
2018-06-28 15:29:08 -07:00
Dongwon Kang
443d78e68f Merge "Clean up libmedia2_jni Android.bp" 2018-06-28 22:20:16 +00:00
Brad Ebinger
36a9fa62be Merge "Emergency SMS carrier config flag" 2018-06-28 22:16:10 +00:00
TreeHugger Robot
63a127b071 Merge "Ignore user portion when checking for system uid" 2018-06-28 22:13:42 +00:00
Lucas Dupin
f7fd03d1bd Set initial KSV state after inflation
In O and before, KeyguardSecurityVew#reset was always called
before showing the view. In P it's not possible since reset()
will make a series of binder calls and generate jank during
swipe gesture.

Because of this, reset() is called after inflation and only
after the view isn't visible anymore.

Fixes: 109972705
Test: go/sysui-bouncer-tests
Test: receive notification from AOD, double tap it.
Change-Id: I9016924398930d470135851ba40c85f637a2c0d1
2018-06-28 22:11:05 +00:00
Nathan Harold
9ca4d43922 Merge "Allow Cell Location for SYSTEM_UID and ROOT_UID" 2018-06-28 22:05:56 +00:00
Siddharth Ray
3cecbe7f7e Merge "Fix in Wifi activity updates" into pi-dev am: f83e814b18
am: 742ccd759d

Change-Id: I83a4e7a31bdcbccdb7d8b98df4fac81c4c599ed3
2018-06-28 14:57:25 -07:00
Suprabh Shukla
b50f43f7ad Improving WTF logging in AlarmManager
Logs could have been misleading if the alarm thread was switched out and
did not get to process alarms for some time.

Test: Builds, boots, existing tests CtsAlarmManagerTestCases pass

Bug: 78560047
Change-Id: Ib450c3f7a936ab127cbd9d87eff78f1c589d9701
2018-06-28 21:49:39 +00:00
Siddharth Ray
742ccd759d Merge "Fix in Wifi activity updates" into pi-dev
am: f83e814b18

Change-Id: I7e42a65ef660029ecfc8a3bf17dac7b5beede755
2018-06-28 14:46:17 -07:00
TreeHugger Robot
f83e814b18 Merge "Fix in Wifi activity updates" into pi-dev 2018-06-28 21:33:24 +00:00
Riddle Hsu
0328b9c025 Check for valid surface when starting to drag
Also protect creating SurfaceSession with root surface.

Change-Id: I3649f160e85367169710b36faf26c96bef0f71fe
Fix: 110922266
Test: atest CtsViewTestCases:android.view.cts.DragDropTest
2018-06-28 20:59:37 +00:00
Nick James
20d2b5d490 Merge "Disable DND status change notification on watches." 2018-06-28 20:58:44 +00:00
Santiago Etchebehere
5328213752 Merge "Force redraw after wallpaper is loaded" into pi-dev am: 15c1e47e26
am: 66867db010

Change-Id: I2e9dac0d3672c6a9e0f0084f7efb0d321347db12
2018-06-28 13:25:57 -07:00
Santiago Etchebehere
66867db010 Merge "Force redraw after wallpaper is loaded" into pi-dev
am: 15c1e47e26

Change-Id: I7362cd3c6e351814ca090db5a6082fa09b31dd32
2018-06-28 13:18:09 -07:00