Commit Graph

7135 Commits

Author SHA1 Message Date
Phil Weaver
f564afa4cd Clean up UiAutomation working alongside a11y.
Fix two bugs: one where Instrumentation did not properly
handle destroyed UiAutomations, another where UiAutomation
did not properly disable running accessibility services.

Change-Id: I1773dbd373f4d5b0e7c9917ff18d8d9b1a0e07c7
(cherry picked from commit 846522cea0)
2016-02-09 00:08:59 +00:00
Paul Crowley
23b588c7b3 Merge "Password security for FBE disk encryption keys" into nyc-dev 2016-02-08 21:45:45 +00:00
Jeff Sharkey
95728a5db6 Merge "Move graphics and JIT caches to DE storage." into nyc-dev 2016-02-08 19:47:20 +00:00
Jeff Sharkey
e84bdd38ad Move graphics and JIT caches to DE storage.
We confirmed with the graphics and JIT teams that no sensitive
user data is written to these caches, so they're safe to point at DE
storage.

Since we don't have control over what is written by the app, we need
to keep the cache environment variable pointing at CE storage.

Fix ensurePrivateDirExists() to always return a path, instead of
returning null which can cause scary bugs.

Change packages.list to no longer canonicalize data paths, since
these fail when CE storage is still locked.

Bug: 27069522
Change-Id: Ifff64a036fa4aa1e61aa0dd98486bc711fbf8f4a
2016-02-08 12:24:05 -07:00
Adam Powell
44ba79e47d Permit setRetainInstance(true) on nested fragments, framework edition
Save arbitrarily nested fragments across config changes as
nonconfiguration objects. This permits the use of retain-instance
child fragments as arbitrary opaque dependencies within other
fragments.

Change-Id: Ia6640b76cfcf7ec28ba252628957a0c14863e957
(cherry picked from commit 7466be6626)
2016-02-08 19:10:44 +00:00
Adam Powell
8585ed66b9 FragmentTransaction.commitNow, framework edition
Offer commitNow and commitNowAllowingStateLoss methods on Fragment for
use by encapsulated components using fragments as implementation
details. This can help prevent unexpected ordering side effects at the
app level when a call to a library method wants to commit and
immediately initialize a fragment as an implementation detail.

Note that this change still does not permit reentrant FragmentManager
operations. It is still an error to add/remove/change fragments in the
same FragmentManager while a fragment transaction is being executed.

Have the commonly used ViewPager adapters use commitNow instead of
executePendingTransactions.

Change-Id: Ia37a871234a287423063f0c2c3e4c93d69116cad
(cherry picked from commit f6b30662f8)
2016-02-08 19:00:52 +00:00
Paul Crowley
faeb3eb0ba Password security for FBE disk encryption keys
Add the means to protect FBE keys with a combination of an auth token
from Gatekeeper, and a hash of the password. Both of these must be
passed to unlock_user_key. Keys are created unprotected, and
change_user_key changes the way they are protected.

Bug: 22950892
Change-Id: Ie13bc6f82059ce941b0e664a5b60355e52b45f30
2016-02-08 15:58:29 +00:00
Julia Reynolds
d560729ce3 Update DND visual interruption choices.
Change-Id: I7050264839c566dcef1dd01d155dda694a8d1ec0
2016-02-08 15:20:02 +00:00
Tamas Berghammer
25222f55f2 Merge "Add flag to "am start" to enable native debugging" 2016-02-06 13:18:58 +00:00
Amith Yamasani
046cc21b75 Merge "Rewrite app standby stats" 2016-02-05 19:41:04 +00:00
Amith Yamasani
a93542f9d3 Rewrite app standby stats
Don't mix up with usage stats. Keep a separate db and history
based on elapsed time and screen on time.

Unit tests for AppIdleHistory class.

Bug: 26989006
Change-Id: If343785b46da1db67f7c1c1263854c2732a232c6
2016-02-05 11:38:29 -08:00
Selim Cinek
2a7fc72ac4 Merge "Adapted the notification header colors to spec" 2016-02-05 19:22:01 +00:00
Selim Cinek
aef485a32a Adapted the notification header colors to spec
Change-Id: Ifa9483a5e71f32be2df14912982076d7bf2a6e9a
2016-02-05 10:43:00 -08:00
Alan Viverette
6486324d24 Merge "Ensure Bitmap.getDefaultDensity() matches DENSITY_DEVICE" 2016-02-05 15:30:28 +00:00
Shreyas Basarge
181a43103b Merge "Add more logging to JobScheduler" 2016-02-05 11:51:33 +00:00
Dimitry Ivanov
2343f8dfcd Merge "Workaround for apps loading foreign native libs" 2016-02-04 22:13:53 +00:00
Dimitry Ivanov
add74a4629 Workaround for apps loading foreign native libs
Bug: http://b/26954419
Change-Id: I4272d015213b386abc1b04c0349cf1b081288058
2016-02-04 14:11:58 -08:00
Alan Viverette
2ac46f1bda Ensure Bitmap.getDefaultDensity() matches DENSITY_DEVICE
Otherwise bitmaps constructed without a target display are incorrectly
scaled by a factor of (DENSITY_DEVICE / DENSITY_DEFAULT) when rendered
to a Canvas whose density has been specified correctly.

Bug: 26817900
Change-Id: I45edfc7c0cbdf84a267d5bedacb0548659ede301
2016-02-04 16:58:14 -05:00
Sudheer Shanka
57218cbbf7 Merge "Made changes to fix some policy transparency options." 2016-02-04 19:14:14 +00:00
Shreyas Basarge
d8bf6b9fed Add more logging to JobScheduler
Improves logging in perioidc job period clamping.
Added sourcePackage to dumpsys in JobScheduler.

Bug: 26874152
Change-Id: Iaccd6df3e70dfcae16e983893a708342fda637b3
2016-02-04 14:34:46 +00:00
Steven Ng
ee081d5bd0 Merge "Add new permission and action for managed provisioning (QR flow)" 2016-02-04 10:24:44 +00:00
Sudheer Shanka
569258689a Made changes to fix some policy transparency options.
Add isInputMethodPermittedByAdmin and
isAccessibilityServicePermittedByAdmin APIs in DevicePolicyManager.
And update utility methods in RestrictedLockUtils to use the correct
userId when checking if disabled by admin.

Bug: 26897250
Bug: 26767564
Bug: 26966213
Change-Id: I0b74b3e57904a82f8ce72d856769d35b5e8403e5
2016-02-04 01:12:44 +00:00
Antonio Cansado
1e3f04f090 Merge "Adding a callback to notify data usage." 2016-02-03 18:16:51 +00:00
Clara Bayarri
5b5bda42f0 Merge "Keyboard Shortcuts Helper: Use App name for default group" 2016-02-03 12:17:12 +00:00
Clara Bayarri
ada88b36af Keyboard Shortcuts Helper: Use App name for default group
Change-Id: I802dd6c9dcc838b9f06b29b99dc47dd93634d98b
2016-02-03 11:45:20 +00:00
Calin Juravle
e578f454c6 Merge "Enable profile support for apps with shared runtime" 2016-02-03 10:03:24 +00:00
Wale Ogunwale
e8c9238de1 Merge "Added onMultiWindowChanged and onPictureInPictureChanged methods to Fragement class" 2016-02-02 23:53:47 +00:00
Wale Ogunwale
7c796811c0 Added onMultiWindowChanged and onPictureInPictureChanged methods to Fragement class
Bug: 26688489
Change-Id: I611444b29199b4686c9f78dbdd33c9b71820aec4
2016-02-02 15:45:00 -08:00
Antonio Cansado
ba8288d238 Adding a callback to notify data usage.
Allow holders of android.Manifest.permission#PACKAGE_USAGE_STATS
to be notified when data usage has exceeded a given threshold.
This allows an app to update its data usage metrics without
polling.

Bug: 25812785
Change-Id: I3a4904a97f3c7fbaf8071b460f9ee6ca9c1ba4ed
2016-02-02 15:18:41 -08:00
Makoto Onuki
e3936dcf03 Merge "DO / PO Shouldn't be removed as active admin..." 2016-02-02 22:55:48 +00:00
Makoto Onuki
90b896533e DO / PO Shouldn't be removed as active admin...
even if they asked.

Also clear(Device|Profile)Owner should remove them as the active admin
too.

Also add some more unit tests.

Bug 26858840

Change-Id: I7b3ed92e1b4cbe803381ed6e3f64d8de17b2ebb0
2016-02-02 14:54:06 -08:00
Michael Lentine
a8a8545f1b Merge "Fix activity thread." 2016-02-02 21:57:20 +00:00
Julia Reynolds
4c0c202f51 Don't require apps to call showLights to use default lights.
Bug: 26810573
Change-Id: I431a1a18e32c616238e763b401b5f6b14131fd89
2016-02-02 15:11:59 -05:00
Julia Reynolds
dd3e86bcb0 Allowing querying for apps with blocked topics.
Bug: 26882239
Change-Id: If888cb18891a412067bcb28e575f502c6091f77a
2016-02-02 12:51:06 -05:00
Steven Ng
980a1b6fa8 Add new permission and action for managed provisioning (QR flow)
+ Instead of reusing NFC provisioning action, new action and permission
  are introduced for QR code provisioning

Bug: 26240297
Change-Id: Id2632d6c6b9e62bf3cad5bc141430d49df4a2c5d
2016-02-02 17:43:18 +00:00
Michael Lentine
2ba303fa9b Fix activity thread.
Fix activity thread to not call into the threaded renderer if it is
an isolated process.

Change-Id: I57035f5ff64d134866f9d2e19c60ab99657aea64
2016-02-01 20:44:37 -06:00
Selim Gurun
0829fd4b26 Merge "Run 32-bit app in multiArch APK." 2016-02-01 23:40:23 +00:00
Tao Bai
c9a0237f5f Run 32-bit app in multiArch APK.
Bug: 26874366

Change-Id: I2c1fd1d036efe72b28b5fe996416df69a583959f
2016-02-01 14:54:37 -08:00
Jorim Jaggi
ccdab44d25 Merge changes Ie6c1ea33,Id1af37e6,I9c474f7a,I439c9b66
* changes:
  Reset create state in moveTaskToStack
  Divider tuning
  Fix transition to recents in docked mode
  Fix flicker and other weirdness
2016-02-01 22:18:21 +00:00
Antonio Cansado
46c75367fa Retuning tag information through NetworkStatsManager.
Network tags could be set since ICS but was not exposed
through the SDK. This CL extends existing functionality
of NetworkStatsManager to return network tags.

Bug: 25813338
Change-Id: I414b98193249ba88a3f2d64cb2e0d2633f64fa3f
2016-02-01 14:13:20 -08:00
Oleksandr Peletskyi
8e9316cdde Merge "Added restriction that disallows ability to set wallpaper. BUG: 24890474" 2016-02-01 21:30:43 +00:00
Michael Lentine
8f2cd95930 Merge "Adding plumbing for passing the lib directory." 2016-02-01 21:28:25 +00:00
Jorim Jaggi
e909802b41 Fix flicker and other weirdness
- When moving tasks to/from fullscreen <-> docked stack, don't
replace windows, but preserve them.
- Fix a bug where we didn't called prepareFreezingBounds which
caused the clip rect to be set to (0, 0, 0, 0) for one frame

Bug: 26070457
Change-Id: I439c9b6612367babfbf31899022209eeee3e1be1
2016-02-01 12:16:47 -08:00
Oleksandr Peletskyi
f2519814cc Added restriction that disallows ability to set wallpaper.
BUG: 24890474

Change-Id: I424aa80d914e3b6f3f9eba8ccb4802bad6f54907
2016-02-01 20:00:25 +01:00
Jeff Sharkey
ac3be9a283 File paths to system partition are okay-ish.
Unless SELinux blocks it, all apps have identical access to files
included on the system partition.  Since there are a handful of
useful files stored there, like ringtones and license files, carve
out an exception to allow file:///system/ style paths.

Note that StrictMode isn't a security mechanism, which is why we're
not concerned about resolving canonical paths.

Bug: 26895798
Change-Id: If0b659d30c4e51377edcf01445392759d1e4962e
2016-02-01 10:44:45 -07:00
Jeff Sharkey
532f52cdd8 Merge "Only create custom database paths." 2016-02-01 17:18:59 +00:00
Jeff Sharkey
c4bab9843a Only create custom database paths.
If the getDatabasePath() caller is using the default getDatabasesDir()
path, that method already handles possible path creation, so no
need for us to retry.

Also fix two small bugs that would have NPE'ed when listing files in
a directory that wasn't created.

Bug: 26895777
Change-Id: Iced16b05cfe95062717da8d0414c48daefcb5648
2016-02-01 10:17:57 -07:00
Jeff Sharkey
4b72e453bb Merge "Skip setting up cache paths on system package." 2016-02-01 17:02:42 +00:00
Jeff Sharkey
e6cb0974b3 Skip setting up cache paths on system package.
The system package doesn't have any real data directories, so we
shouldn't try setting any cache paths.

Bug: 26895494
Change-Id: Iafca72f51d77eac5f602d842369de74ae8669b02
2016-02-01 09:59:15 -07:00
Daniel Sandler
7c85828596 Merge "Temporarily remove file:// Uri checks in Notification.sound." 2016-02-01 16:45:45 +00:00