Commit Graph

309172 Commits

Author SHA1 Message Date
Sudheer Shanka
f88ebeb250 Use correct packageName for checking if it belongs to callingUid.
In AccountManagerService.getAccountsAsUser, we check if opPackageName
belongs to calling uid by calling AppOpsManager.checkPackage. But when
AccountManagerService.getAccountsAsUser is called from
AccountManagerService.addSharedAccountsFromParentUser, we're using the
opPackageName from system context instead of calling context.

Bug: 35258008
Test: cts-tradefed run singleCommand cts-dev --module CtsMultiUserHostTestCases \
      -t android.host.multiuser.CreateUsersPermissionTest#testCanCreateRestrictedUser
Change-Id: I5c425d9314beb86f7c64a5b5c64b7d879711879a
2017-02-14 18:35:05 -08:00
Michael Rosenfeld
286839e40d Add functionality to overwrite the /etc/preloaded-classes file.
* Requires root, disable-verity, reboot, root before use.

Test: manual through UI and sequencing
Change-Id: I68965334776e130b8220a5814b2525109cf96800
2017-02-14 18:33:42 -08:00
Calin Juravle
aae35767b6 Skip class path checking for secondary dex files
Pass '&' marker to dex2oat classpath when compiling secondary dex files.
This will skip class path checking when loading the oat files.

Test: adb shell cmd package compile -m speed -f --secondary-dex com.google.android.gms
      oatdump --header-only --oat-
file=/data/user/0/com.google.android.gms/app_chimera/m/00000006/oat/arm64/DynamiteModulesC_GmsCore_prodmnc_alldpi_release
      check that the class path contains the special '&' marker

Bug: 32871170
Change-Id: If0628aeb4e3f5717604bfc4a87a4b1d438e5fa65
2017-02-14 18:20:45 -08:00
Felipe Leme
71377a4ae2 Enable auto-fill when activity is marked as FLAG_SECURE.
BUG: 34077687
Test: CtsAutoFillServiceTestCases passes
Change-Id: I2d7a565a53a32792d6daeceba3f3a7beebdf052c
2017-02-14 18:19:08 -08:00
Eric Laurent
e0ac9dabc7 Merge "audio: deprecate AudioManager.isBluetoothA2dpOn()" 2017-02-15 02:13:22 +00:00
Hall Liu
8f613fb4d6 Add extra key for app-specified outgoing call timeout
Bug: 34474757
Test: manual
Change-Id: Ia93d68d6a01308b0b93b88977daf983a0ed3a22c
2017-02-14 18:11:11 -08:00
Selim Cinek
1534b978fd Merge "Fix bad automerge" 2017-02-15 01:36:26 +00:00
Jean-Michel Trivi
743d07e6db Merge "Player activity notification: SoundPool not ready for activity reporting" 2017-02-15 01:32:27 +00:00
Jeff Vander Stoep
1a13a01ae8 Fix bad automerge
Test: Marlin builds again!
Change-Id: Ic0034a5006d22f758daef92994338fdfb00210fc
2017-02-14 17:32:18 -08:00
Hugo Benichi
849e24866d Merge "ConnectivityManager: fix potential NPE" am: b688dd18ab am: ab453cd565 am: 7c9cc1f9e5
am: f648c98762

Change-Id: I628fdf36a5a80a2d93ff4c4785253cb16a9e4ad2
2017-02-15 01:29:31 +00:00
Selim Cinek
875ba9bd8e Fixed a few coloring issues
The color of the icon was happening in a
non-animated way. We're now animating the
color properly.
This also fixes an issue where the action
bar could be fully black.

Test: add colorized notification, observe animation
Fixes: 35308322
Change-Id: I4fbc1794fc027efb42eee3ee8f06fd9d8c513456
2017-02-14 17:28:15 -08:00
Hugo Benichi
f648c98762 Merge "ConnectivityManager: fix potential NPE" am: b688dd18ab am: ab453cd565
am: 7c9cc1f9e5

Change-Id: I6f487ce9da656610c939ddc78e834ac8ef5f8135
2017-02-15 01:24:29 +00:00
Sujith Ramakrishnan
1331d26142 Transition from Activity to Broadcast for TV Search
- For TV search, initiate a directed broadcast to default
      search service.
    - Earlier, an activity in the default search package was
      initiated after checking that the in-focus activity
      did not want to handle this intent.
    - Now, the in-focus activity does not get a chance at this
      intent.

Test: Manually tested with test apk which had the correct intent.
Test: Will test again with default search apk, once that code is
submitted.
b/35290250

Change-Id: I9da4c90a45624cdbe876357176b0c0636e2777bf
2017-02-14 17:13:17 -08:00
Erik Kline
cfa9c5b495 Merge "Split chooseUpstreamType() into two separate functions" am: 7a42d3ad83 am: f6d55d7e9e am: 8eb1fbf1bc
am: f51d562627

Change-Id: Id2e6f20d79f088d27593953ec39112a84a8ba5f0
2017-02-15 01:11:30 +00:00
Erik Kline
aada49a397 Merge "Slightly simplify mTryCell and requestUpstreamMobileConnection() usage" am: 63445824d6 am: 4650762557 am: 23d077318c
am: 0f5cf47489

Change-Id: Ib883c6772bc51c3f6670139de44f66067d746355
2017-02-15 01:10:23 +00:00
Hugo Benichi
7c9cc1f9e5 Merge "ConnectivityManager: fix potential NPE" am: b688dd18ab
am: ab453cd565

Change-Id: I72e114037ce6a0ec53863749b8ffa34513c9fdce
2017-02-15 01:09:58 +00:00
Hugo Benichi
ab453cd565 Merge "ConnectivityManager: fix potential NPE"
am: b688dd18ab

Change-Id: If562fc6a921569ad9d3141cac72b6f395a30da9e
2017-02-15 01:05:24 +00:00
Erik Kline
f51d562627 Merge "Split chooseUpstreamType() into two separate functions" am: 7a42d3ad83 am: f6d55d7e9e
am: 8eb1fbf1bc

Change-Id: Ia8fd663404f1d0a70243ab9c9bd853ac6d51d68f
2017-02-15 01:04:44 +00:00
Erik Kline
0f5cf47489 Merge "Slightly simplify mTryCell and requestUpstreamMobileConnection() usage" am: 63445824d6 am: 4650762557
am: 23d077318c

Change-Id: I19f92ac6160702233832a190aeeaeff06391ce9e
2017-02-15 01:03:49 +00:00
Philip P. Moltmann
82b902204f Revert accidential merge 492a058d58
Test: Clean revert
Change-Id: I61d339bb85936e1d50742be1e4c6dab781f3a4e7
2017-02-14 17:02:50 -08:00
Amith Yamasani
dd757883c2 Merge "Fix NPE in handleBindApplication" 2017-02-15 00:55:01 +00:00
Erik Kline
8eb1fbf1bc Merge "Split chooseUpstreamType() into two separate functions" am: 7a42d3ad83
am: f6d55d7e9e

Change-Id: Ibd6b1fae52ec31ae488484be727b5261820e6ecb
2017-02-15 00:54:07 +00:00
Hugo Benichi
b688dd18ab Merge "ConnectivityManager: fix potential NPE" 2017-02-15 00:53:44 +00:00
Amith Yamasani
5e2714ea7a Merge "Kernel mapping for package scope by user" 2017-02-15 00:53:25 +00:00
Erik Kline
23d077318c Merge "Slightly simplify mTryCell and requestUpstreamMobileConnection() usage" am: 63445824d6
am: 4650762557

Change-Id: Ie004da6fe1252ddec90204637ff17c3ed73f2923
2017-02-15 00:52:57 +00:00
Phil Weaver
7eec37989f Suppress a11y shortcut on emergency dialer
Suppressing whenever the keyguard is locked, not just when
it's showing. This should reduce false triggering.

Bug: 34820720
Test: Verfied that shortcut no longer activates on emergency
dialer or lock screen.

Change-Id: Ic43c11798f04217c2871efe7d0fa21dbf61fd953
2017-02-14 16:51:55 -08:00
Erik Kline
f6d55d7e9e Merge "Split chooseUpstreamType() into two separate functions"
am: 7a42d3ad83

Change-Id: I77649e11e74140ec985dcdadab226e3e73e67642
2017-02-15 00:49:20 +00:00
Erik Kline
4650762557 Merge "Slightly simplify mTryCell and requestUpstreamMobileConnection() usage"
am: 63445824d6

Change-Id: Ie921ee1a2f1dbdd338c9f0700b24808e1cb6435e
2017-02-15 00:48:24 +00:00
Erik Kline
7a42d3ad83 Merge "Split chooseUpstreamType() into two separate functions" 2017-02-15 00:38:50 +00:00
Erik Kline
63445824d6 Merge "Slightly simplify mTryCell and requestUpstreamMobileConnection() usage" 2017-02-15 00:38:32 +00:00
Michael Peck
0d954a080f Merge "Pass targetSdkVersion specifier for SELinux labeling" am: 4516240b47 am: f8cefed995 am: 5493749d64
am: fa030e505d

Change-Id: Ie6b6bba24490f0ca2db738aa46d2bbc2c6f9387c
2017-02-15 00:05:40 +00:00
Michael Peck
fa030e505d Merge "Pass targetSdkVersion specifier for SELinux labeling" am: 4516240b47 am: f8cefed995
am: 5493749d64

Change-Id: I731220c719cf29d94e11698906dfb7f049a90a55
2017-02-15 00:00:11 +00:00
Michael Peck
5493749d64 Merge "Pass targetSdkVersion specifier for SELinux labeling" am: 4516240b47
am: f8cefed995

Change-Id: Ie71368e7b4571d209d8c3a824bbf1a8c738f56a8
2017-02-14 23:55:07 +00:00
Michael Peck
f8cefed995 Merge "Pass targetSdkVersion specifier for SELinux labeling"
am: 4516240b47

Change-Id: Ic61c4dc30f075d01a85d8b60cfe4ae1de773aa09
2017-02-14 23:50:17 +00:00
Treehugger Robot
4516240b47 Merge "Pass targetSdkVersion specifier for SELinux labeling" 2017-02-14 23:42:59 +00:00
Amith Yamasani
336d29d409 Fix NPE in handleBindApplication
Use getPackageManager(), as sPackageManager might not be initialized
yet.

Bug: 35359850
Test: manual
Change-Id: I16f5af613e9f6a6dc776bd2da74779e509899541
2017-02-14 15:14:09 -08:00
Winson Chung
2c02bd1cf0 Merge "Disable fetching of thumbnails when using snapshots." 2017-02-14 23:11:05 +00:00
TreeHugger Robot
7ad2067f98 Merge "Add API to track package changes" 2017-02-14 23:10:59 +00:00
Michael Kwan
e46fa2b486 Merge "Fix incorrect values for VelocityTracker in SwipeDismissLayout." into cw-f-dev am: c61cd1a635 am: 34c98becbd
am: c8630e5feb

Change-Id: I932e24a961b7f499734b37838e7a7c2aeb1d05f6
2017-02-14 23:06:52 +00:00
Michael Kwan
0bf608ee82 Merge "Fix incorrect values for VelocityTracker in SwipeDismissLayout." into cw-f-dev am: c61cd1a635 am: 83b072c48c
am: e7c91f721c

Change-Id: I0a3d2214a46f804681dde460bd9a6024fbc859f7
2017-02-14 23:02:18 +00:00
Michael Kwan
c8630e5feb Merge "Fix incorrect values for VelocityTracker in SwipeDismissLayout." into cw-f-dev am: c61cd1a635
am: 34c98becbd

Change-Id: I4030b021838853ca3064d9da01a7d89a64d1861c
2017-02-14 23:00:47 +00:00
Michael Kwan
e7c91f721c Merge "Fix incorrect values for VelocityTracker in SwipeDismissLayout." into cw-f-dev am: c61cd1a635
am: 83b072c48c

Change-Id: I77b0a0a30e60658dbcf3ab0806bd0227939b8ba8
2017-02-14 22:57:48 +00:00
Michael Kwan
34c98becbd Merge "Fix incorrect values for VelocityTracker in SwipeDismissLayout." into cw-f-dev
am: c61cd1a635

Change-Id: I02c70d3be50c00927e78282c9f3635b7ed9ae197
2017-02-14 22:53:44 +00:00
Amith Yamasani
23ab7f54d9 Kernel mapping for package scope by user
Inform the kernel via configfs, of userids that
should be excluded when an app is not installed
for them.

Also push userid to remove_userid when a user is
removed so that the exclude list of that user can
be cleaned up in one command for all packages.

Test: runtest -x ....KernelPackageMappingTests.java
Change-Id: Ib94b1a0b737f45b2d03deb9650f0f0eb68e363d9
2017-02-14 14:53:42 -08:00
Michael Kwan
83b072c48c Merge "Fix incorrect values for VelocityTracker in SwipeDismissLayout." into cw-f-dev
am: c61cd1a635

Change-Id: Ib1cff2ace082862c2a1c250170453b989f6697df
2017-02-14 22:53:41 +00:00
TreeHugger Robot
c61cd1a635 Merge "Fix incorrect values for VelocityTracker in SwipeDismissLayout." into cw-f-dev 2017-02-14 22:47:00 +00:00
TreeHugger Robot
e4a2476ea9 Merge "Fix status bar showing on lock screen on boot" 2017-02-14 22:34:22 +00:00
Jean-Michel Trivi
f1d82761ee Player activity notification: SoundPool not ready for activity reporting
Some plumbing is missing to accurately report SoundPool's playback
   state, do not report it

Test: run cts -m CtsMediaTestCases -t android.media.cts.AudioPlaybackConfigurationTest
Bug: 35263297
Change-Id: I93389c87e5136912bfd11831b87d80495c3a1c3e
2017-02-14 14:24:37 -08:00
TreeHugger Robot
b454cb8842 Merge "R.I.P. temporary, zombie auto-fill notifications." 2017-02-14 22:10:41 +00:00
Sundeep Ghuman
699deaf610 Move Badging from ScoredNetwork to NetworkingBadging.
This is a non-functional refactor. The old enums will be removed once
ag/35323372 is addressed.

Bug: 35114358
Test: Ran existing tests (see files touched).
Change-Id: I08fd8c7964463b5908ce361e61f8fe811d0ff6f3
2017-02-14 14:04:18 -08:00