196018 Commits

Author SHA1 Message Date
Svet Ganov
2b5bec9356 Merge "Remove not needed contacts related perissions." into mnc-dev 2015-06-23 04:00:06 +00:00
Svet Ganov
d669321276 Merge "Auto grant read external storage too - it is now dangerous." into mnc-dev 2015-06-23 03:52:13 +00:00
Svet Ganov
975fa474a7 Auto grant read external storage too - it is now dangerous.
We grant external storage permissions to some default handlers by
default. Read external storage was promoted to runtime permission
but was not granted as a part of the external storage group, i.e.
with write external storage.

bug:21980225

Change-Id: I1edd7ae13222f12c9a488efb1919f5cf96e4b69d
2015-06-22 20:45:38 -07:00
oleksii stepanian
3f4c7e3f7e Send installerUid for verification when using PackageInstaller.
PackageManagerService when used by PackageInstaller
(installStage) does not send calling installer process id.
As a result Play Store application always triggers verification
of packages that are installed.
This causes unnecessary work on the UI thread for each new
install/update.

Bug: 22014920
Change-Id: I8cc9ba7b6fcbe26ee709a5dda284e6cdd11071f1
2015-06-22 19:35:42 -07:00
Jeff Brown
5869363b06 Merge "Suppress pausing activities when screen off due to proximity." into mnc-dev 2015-06-23 02:35:14 +00:00
Jeff Brown
e1633addd3 Suppress pausing activities when screen off due to proximity.
Pausing and resuming the in-call activity may have the side-effect
of releasing and reacquiring the proximity sensor wake lock which can
cause the system to enter a loop.

Although in general it might be a good idea to pause activities
whenever you can't see them, it makes more sense to treat the proximity
sensor as temporarily suppressing rather than fully pausing activities.

Bug: 21932251
Change-Id: Ie072cbe5984bec08f2c60c64ed8cc144534982db
2015-06-22 19:32:52 -07:00
Vinit Deshpande
725f145e0f Merge "Address API review comments" into mnc-dev 2015-06-23 02:31:35 +00:00
Vinit Deshpande
a0d929e505 Address API review comments
Added a flags field in ScanResult; along with flag
values and methods to read them.

Changed types of passpoint related fields.

Bug: 21342042
Bug: 21572290
Bug: 21343777

Change-Id: I413960de88b387853d11b9e10f92665e9c06a81b
2015-06-22 19:09:38 -07:00
Adam Powell
9f49dcda24 Merge "Add voice interaction support to ResolverActivity/ChooserActivity" into mnc-dev 2015-06-23 01:18:28 +00:00
Adam Powell
4c470d641c Add voice interaction support to ResolverActivity/ChooserActivity
All options are sent to the VoiceInteractor once ChooserTargetServices
have reported in. We don't perform explicit progressive refinement or
filtering, but an explicit option picked will be invoked.

Also fix a lingering bug around being able to nested-fling the
resolver drawer closed.

Bug 21516866

Change-Id: I6b141f5fa87d74dccec9dcb88110630696e9c38e
2015-06-22 18:11:10 -07:00
Christopher Tate
6d2268a576 Merge "Back up / restore default app and intent filter verification state" into mnc-dev 2015-06-23 01:02:12 +00:00
Dianne Hackborn
fde298e738 Fix issue #21254610: StrictMode uses Log.wtf which crashes apps on L+
Raise the limit at which we consider the strict mode trace to
be unreasonably large.

Change-Id: I5ec5332dd5aa2631e017d246e4a8b978b82cf318
2015-06-22 17:52:13 -07:00
Dianne Hackborn
d01ed46c63 Fix issue #21799741: AbstractThreadedSyncAdapter crashes...
...when permissions aren't granted

Eat the SecurityException, turn it into a new callback.

Change-Id: Ibeffce061aa51beba097c90f431de07ce70b3c4e
2015-06-22 17:41:44 -07:00
Robert Greenwalt
0c5c8570dc Merge "Return reasonable phone type if no sim inserted." into mnc-dev 2015-06-23 00:33:15 +00:00
Vinit Deshpande
a2cbb3e632 Merge changes from topic 'mwd-merge-wifi-062215' into mnc-dev
* changes:
  Added config_wifi_hotspot2_enabled.
  make sure wifi link stats are reset
2015-06-23 00:21:34 +00:00
Christopher Tate
6038d15cbc Back up / restore default app and intent filter verification state
For apps not present on device, the state inherited from the ancestral
device is applied when the app is ultimately installed.

Bug 20144515

Change-Id: Ie05b4f1751357fc62f14e259da174b8cf465e913
2015-06-22 17:20:26 -07:00
George Mount
21290a62a5 Suppress Layout during Visibility transitions
Bug 21770464

Layout while a View is transitioning out can cause strange
behavior during the animation. This CL suppresses the
layout during the transition. It also invalidates
the parent when it has been removed rather than
requesting layout on it.

Change-Id: I471243f5beef44d3bbed9ce844e66195dbf4ae10
2015-06-22 17:19:29 -07:00
Chris Craik
484b114846 Merge "Clean up drawable filter/dither docs" into mnc-dev 2015-06-23 00:07:18 +00:00
Tim Murray
9e41c7479c add cpuset support
This moves ActivityManager from using fg/bg cgroups to fg/bg cpusets,
which improves load balancing on appropriate devices.

bug 21782794

Change-Id: Ife149ea551b8b3611a826566b8c8fc8573fdf654
2015-06-22 17:03:19 -07:00
Luan Nguyen
1afb2d5335 docs: Pare down the adb guide and remove sections that are duplicated
in the tools list.

bug: 12879186
Change-Id: Ic2d17ef29eac15a9ffc40e05b056dc17d71069e8
2015-06-22 17:00:02 -07:00
Dianne Hackborn
0b50e56c07 Merge "Fix issue #21753257: Stability: startActivity asks to run as user 0..." into mnc-dev 2015-06-22 23:55:12 +00:00
Robin Lee
58e706d754 Merge "Let device owners handle onChoosePrivateKey" into mnc-dev 2015-06-22 23:51:02 +00:00
Jan Nordqvist
c88e8b230b Added config_wifi_hotspot2_enabled.
Change-Id: I1ebf3137e00d2b3cfb6079f599fb0ede6f56df34
(cherry picked from commit ecddf7925fd95ecedfc5bd628109ee7097979f12)
2015-06-22 16:31:08 -07:00
Pierre Vandwalle
d258d7a86e make sure wifi link stats are reset
Change-Id: I8687594eccea1e3d8b99450da5230442cdbd1a86
(cherry picked from commit 5fc9e14077c3bec51d0a93a5edeeade396d77d15)
2015-06-22 16:28:54 -07:00
Nicolas Prevot
3ab6f9e691 Merge "Allow cross-profile app linking from work to personal." into mnc-dev 2015-06-22 23:18:32 +00:00
Yusuke Sato
34fe3df851 Let findSupportedAbi and hasRenderscriptBitcode scan only relevant files
for better performance. Without the optimization, these two functions
may check more than 100k file names in the pre-installed APK files,
which can take a few seconds to finish even on a recent device.

Bug: 21957428
Change-Id: I315fd3c6d5aa1076b993752525de449a9933de12
2015-06-22 16:11:32 -07:00
Alan Viverette
2928f184b9 Merge "Invert time picker dialog column order when in RTL layout" into mnc-dev 2015-06-22 23:10:12 +00:00
Jeff Davidson
edce8bd01b Merge "Define a list of carrier apps to disable by default until use." into mnc-dev 2015-06-22 23:08:27 +00:00
Alan Viverette
ed0e11a93a Merge "Ensure child is attached before performing measure/layout in Spinner" into mnc-dev 2015-06-22 23:07:33 +00:00
Ian Pedowitz
c16a26a2b9 Merge "Renaming bugreport.txt to bugreportFile.getName()" into mnc-dev 2015-06-22 23:01:10 +00:00
Hiroshi Yamauchi
2d6327d0ad Clarify art.gc.gc-count-rate-histogram runtime stat.
Bug: 21491908
Change-Id: I84d93aa73eebc327513c4663a6b606e2dad9a0b7
2015-06-22 15:58:47 -07:00
Robert Greenwalt
d314de0aa4 Return reasonable phone type if no sim inserted.
With no sim, there's no subscription, no default phone, etc.
If we're asked for phone type for an invalid sub, just use the
first phone.

bug: 20760370
Change-Id: Ide7b0679e7253e1f1ce563a68fbbec1ff8c24daf
2015-06-22 15:56:46 -07:00
Dirk Dougherty
b94daae3fd am c8a94c5b: am 813d974e: Doc change: Explicitly state the initial API level that supports maxSdkVersion attr in uses-permission.
* commit 'c8a94c5b6df42b631e52dcae03d0243454886ecb':
  Doc change: Explicitly state the initial API level that supports maxSdkVersion attr in uses-permission.
2015-06-22 22:41:19 +00:00
Alan Viverette
aeaa396cae Merge "Revert "Revert "Work around inconsistent views in RelativeLayout.onMeasure()""" into mnc-dev 2015-06-22 22:38:09 +00:00
Alan Viverette
9554f9fc9e Revert "Revert "Work around inconsistent views in RelativeLayout.onMeasure()""
Turns out this was actually fine.

This reverts commit 9355533bf6f3bcd3fb72fc840253d08ca7dad379.

Change-Id: I30c66fd423b569958244685098511d4ba08fbf37
2015-06-22 22:37:58 +00:00
Xiaohui Chen
8dca36dc8a system_server: optimize app idle parole state change
Currently when app idle parole state changes, all idle apps' states
are updated one by one including firewall modifications which are
very expensive.  This optimization gets rid of individual firewall
rule changes and makes sure we only modify the firewall once at child
chain level.

BUG: 21446713
Change-Id: Iafc415fe0bc127826fe17894d4fedcf1755cb17d
2015-06-22 15:35:19 -07:00
Dianne Hackborn
a825c084f8 Fix issue #21753257: Stability: startActivity asks to run as user 0...
...but is calling from user 10

Change-Id: Ia4b8ace6ad140c1727fe944882e0d5b5c650260b
2015-06-22 15:29:06 -07:00
Alex Klyubin
e26f9d95c6 Merge "Adjust minimum size of PKCS#1 RSA padding overhead." into mnc-dev 2015-06-22 22:27:51 +00:00
Alex Klyubin
bf224d93cc Merge "Document that RSA OAEP requires digest authorization." into mnc-dev 2015-06-22 22:27:38 +00:00
Dirk Dougherty
c8a94c5b6d am 813d974e: Doc change: Explicitly state the initial API level that supports maxSdkVersion attr in uses-permission.
* commit '813d974e33366aaeeb54e242e2767d4eeaf940dc':
  Doc change: Explicitly state the initial API level that supports maxSdkVersion attr in uses-permission.
2015-06-22 22:26:59 +00:00
Alan Viverette
25c6cd61d4 Ensure child is attached before performing measure/layout in Spinner
Bug: 21614663
Change-Id: Id84a720fac7050d312eb2eb6f12621217c4f8d0f
2015-06-22 15:25:55 -07:00
Alan Viverette
81598d7adf Invert time picker dialog column order when in RTL layout
Bug: 21933765
Change-Id: I39becd18f093ea2d3e9adf8affc9b32dfce19c8e
2015-06-22 15:25:08 -07:00
Chris Craik
15d8a2bc77 Merge "Avoid flushing DisplayListCanvas state for noop calls" into mnc-dev 2015-06-22 22:20:14 +00:00
Dianne Hackborn
16036f2684 Fix issue #20654534: API Review: android.app.assist
Remove the old classes.

Change-Id: I949350cadc5fc304e2651d7db0ffd38e45db9b6e
2015-06-22 15:14:17 -07:00
Jeff Davidson
50ca295020 Define a list of carrier apps to disable by default until use.
Bug: 21814643
Change-Id: Ifc8b99526fbe3aa5e276d2d1c1872a9b8d89f9ec
2015-06-22 15:07:41 -07:00
Chris Craik
772687d242 Avoid flushing DisplayListCanvas state for noop calls
bug:22006795

Change-Id: I2eceee69772b08f5319ea882be429a5b36860b7d
2015-06-22 14:51:18 -07:00
Matthew Williams
8b1db0746f Merge "Cancel Syncs that aren't making progress." into mnc-dev 2015-06-22 21:41:49 +00:00
Nicolas Prevot
9edbda18df Allow cross-profile app linking from work to personal.
If the profile owner sets ALLOW_PARENT_APP_LINKING:

ACTION_VIEW, scheme http/https intents sent from the work profile
can be resolved by personal apps if they specify a host.

BUG:21701782
Change-Id: I372e2405345539eac9d6b4fb08def6bf84da14a6
2015-06-22 14:39:44 -07:00
Matthew Williams
1967c8ddd5 Cancel Syncs that aren't making progress.
BUG: 18266674
1) If a sync has up/downloaded less than 10bytes in 60 seconds it is
considered to be making no progress and is summarily cancelled.

2) Apply a 30min hard time-out to initialization syncs.

Note that there is little proof that cancelling a sync has an
impact. All it results in is a Thread.interrupt on the sync
thread, which the adapter must itself implement. To this effect
this CL also updates the javadoc to make this clearer, and adds
some (unimplemented) threats about killing the hosting process.

Change-Id: I83c447648152ccbf76bb1fbd7e9216e01a37952f
2015-06-22 14:36:36 -07:00
David Christie
f7340e754e Merge "Fix privacy leaks in LocationManager" into mnc-dev 2015-06-22 21:26:49 +00:00