234788 Commits

Author SHA1 Message Date
Victor Chang
e29cd4724f enforceCanSetDeviceOwnerLocked should enforce userId == USER_SYSTEM for non-split user mode
Bug: 27453111
Change-Id: I1acdfecdf4474696e904a6a4df189453be306aa4
2016-03-04 10:34:43 +00:00
Victor Chang
5676ae256a isDeviceOwnerProvisioningAllowed implementation to match enforceCanSetDeviceOwnerLocked
The main purpose is to fix the security flaw that
user can force isDeviceOwnerProvisioningAllowed to return true
by setting the device_provisioned without factory reset

Check UserSetupComplete instead, as it's cached by DPMS if it's ever set to true

Refactor common code of isDeviceOwnerProvisioningAllowed and enforceCanSetDeviceOwnerLocked
The functionality of enforceCanSetDeviceOwnerLocked should be exactly the same.
DPM Unit Test all pass

Bug:27403225
Change-Id: I32dae8e222e01e08664abb313ead3a92d4186658
2016-03-04 10:34:33 +00:00
Michal Karpinski
bf8f1cc3c0 Merge "Rework of remote bugreports UX" into nyc-dev 2016-03-04 09:52:32 +00:00
Daichi Hirono
24ab92a5f7 Ensure to complete background thread of PipeManager.
BUG=27488803

Change-Id: Ib540ab42f6263e1aea4c1bb184a4f88aa1454a14
2016-03-04 17:53:03 +09:00
Jaewan Kim
26f7ec69de Merge "PIP: Apply the comment from the previous commit" into nyc-dev 2016-03-04 06:28:33 +00:00
Ryan Bavetta
1b77bda885 Merge "Adds Ability to Test with SoundTrigger Stub HAL" into nyc-dev 2016-03-04 06:17:40 +00:00
Ryan Bavetta
fc3ad3e4ab Adds Ability to Test with SoundTrigger Stub HAL
Change-Id: Ia79727e5fd645a5e99b8be41c413b94c302f1868
2016-03-03 22:13:52 -08:00
Jaewan Kim
88baef6bfc PIP: Apply the comment from the previous commit
This applies the comment from the following CL
32686b6 PIP: Fix move to full screen

Change-Id: Iece46ee85f6e5c3040c9c1431236319e0dbd4105
2016-03-04 15:08:41 +09:00
Jaewan Kim
236950e5b3 PIP: Apply the latest UI spec for overlay text
Bug: 27273290
Change-Id: Ie3ff425555c6629c8676f5071ea6ddc2a761b87c
2016-03-04 14:51:47 +09:00
Sungsoo Lim
bb71aed9ac Merge "MediaBorwserService: Update javadoc" into nyc-dev 2016-03-04 05:48:38 +00:00
Sungsoo Lim
97243a8ff2 MediaBorwserService: Update javadoc
Bug: 26733259
Change-Id: I7240149c0cbbacf221e466908e6ebc201d603c5f
2016-03-04 14:47:23 +09:00
Rakesh Iyer
4f3fc21505 Fix ActivityManager watchdog kill.
Typo caused an infinite loop causing a watchdog kill.

Change-Id: If9a8973c28e284d993d81ba7d6724f9575a30c92
2016-03-03 20:48:15 -08:00
Seigo Nonaka
a63ce66805 Merge "Shrink top padding of suggestion container." into nyc-dev 2016-03-04 03:54:58 +00:00
Omkar Kolangade
d4f9ca844e Merge "IMS-VT: Disable multi tasking by default" into mm-wireless-dev
am: cf2f48e26b

* commit 'cf2f48e26bf50a6549d8c0c562cce0734565d978':
  IMS-VT: Disable multi tasking by default
2016-03-04 03:08:17 +00:00
Tyler Gunn
cf2f48e26b Merge "IMS-VT: Disable multi tasking by default" into mm-wireless-dev 2016-03-04 03:00:28 +00:00
Wale Ogunwale
8d5a542f66 Clear app token mAppStopped when app resumes.
It is possible for an activity to be in the stopped state without
setting it's visiblility to false in window manager.
For example, the home acitivty behind the lock screen. Since the
lock screen isn't an activity it doesn't affect the visiblity set
of the home activity, so AM doesn't tell WM to hide the app token.
However, AM uses another channel to detect that the device is locked
and moves the activity into stopped state. WM on the other hand also
detects that the device is locked and hides the window surfaces of
all windows behind the lock screen. So, at this point AM has also
told WM that the activity is stopped. Once you unlock the screen
AM resumes the activity but doesn't report any visiblility changes to WM
since it's internal state didn't change. So, if you go from the home
activity to another app the home activity window will be destroyed
before the activity is stopped because mAppStopped is set to true.
We now set mAppStopped to false when the activity is resumed.

Bug: 27286867
Change-Id: Ic75456d30abd582fa44f932f5aeeb449950157ee
2016-03-03 18:59:26 -08:00
Omkar Kolangade
2e8f8fe201 IMS-VT: Disable multi tasking by default
Disable multi tasking support by default for all operators.
Enable based on MCC/MNC for required oeprators.

Bug: 27484483
Change-Id: Ib321747885435c110360370eb243eee35762dfe3
2016-03-04 02:57:42 +00:00
Tomasz Mikolajewski
6d6bbf5f28 Merge "Add broken assert in performance tests of DocumentsUI." into nyc-dev 2016-03-04 02:31:41 +00:00
Steve McKay
75b19dd208 Merge "Make COLUMN_CAPACITY_BYTES public." into nyc-dev 2016-03-04 02:12:02 +00:00
Dianne Hackborn
34640a17a2 Merge "Don't need this "feature" any more." into nyc-dev 2016-03-04 01:50:47 +00:00
Felipe Leme
7af0be288e Merge "Handles blacklist on getRestrictBackgroundStatus()." into nyc-dev 2016-03-04 01:39:31 +00:00
Jeff Tinker
e883f6c299 Merge "Fix uninitialized crypto pattern" into nyc-dev 2016-03-04 01:35:55 +00:00
Amith Yamasani
a8242fa442 Merge "Allow for uninstalled apps in ShortcutManager" into nyc-dev 2016-03-04 01:02:31 +00:00
Felipe Leme
923845fdaa Handles blacklist on getRestrictBackgroundStatus().
Initial implementation of getRestrictBackgroundStatus() was just
handling the whitelist status of apps when data saver is turned on, but
when an app is blacklisted, it should return
RESTRICT_BACKGROUND_STATUS_ENABLED regardless of the data saver status.

BUG: 27432317
Change-Id: I5a027d8b7d17a13075510ff8f29d41eaa5a6beb8
2016-03-03 17:01:31 -08:00
Seigo Nonaka
d455d8422d Shrink top padding of suggestion container.
Bug: 27340664
Change-Id: I3aa190febc88bc2322263d34d6be2256356146dd
2016-03-03 16:58:16 -08:00
Keisuke Kuroyanagi
bd4b217a28 Merge "Refresh action mode always when selection is modified." into nyc-dev 2016-03-04 00:53:59 +00:00
Chris Craik
69aeabe618 Fix clip rect snapping at non-integer scale values
bug:26923968

Also removes several reinterprets to ClipRect, since Rect member is in
base class.

Change-Id: If46dbdcea05b1257af185ccb38058735ebe81f79
2016-03-03 16:52:34 -08:00
Chien-Yu Chen
29c3630563 Camera2 Legacy: Connect to surfaces it produces
When legacy camera device is the producer of its output surfaces,
it needs to connect to the surfaces before using the surfaces
and disconnect from the surfaces after finishing using the surfaces.

Bug: 27331537
Bug: 27383242
Change-Id: Ia3e2ca142f7973face0f60fbfc96935054aac1c4
2016-03-03 16:50:35 -08:00
Felipe Leme
3ce000e647 Merge "Code cleanup on NMPS and NMS." into nyc-dev 2016-03-04 00:46:28 +00:00
Felipe Leme
03e689db51 Code cleanup on NMPS and NMS.
- Always check for DBG before using Slog.d.
- Logs duration of NMS.systemReady() when debugging.
- Logs duration of NMPS.updateRulesForGlobalChangeLocked() when debugging.
- Removed redundant toString() calls.
- Catch multiple exceptions.
- Replaced enhanced for on nested Iterable iterations.

BUG: 21725996
Change-Id: Ia775a394b59de7a0570ad4954d1fe3a2698c66d6
2016-03-03 16:41:39 -08:00
Adrian Roos
890f1f372e Fix BiDi issues in app error dialogs
Bug: 27116512
Change-Id: I3ce4584f1b3eee4261a30d9b98e901f4ddcee922
2016-03-03 16:23:35 -08:00
Chris Craik
4123e53846 Merge "Improve handling of undefined-at-record-time bounds in new ops" into nyc-dev 2016-03-04 00:20:46 +00:00
Nick Kralevich
f1f223dfe8 Merge "Am.java: Use write-only file descriptors" into nyc-dev 2016-03-04 00:20:05 +00:00
Adam Lesinski
c4dd2e7d52 Merge "Move the guts of Resources to ResourcesImpl" into nyc-dev 2016-03-04 00:16:47 +00:00
Suprabh Shukla
d04525214b Not clearing data for a package that is a DO or PO
Added a check inside PackageManagerService to make sure data for a
package with a DO or PO for the running user is not cleared. Currently,
the 'pm clear' command goes through without any such checks.

Bug: b/27243904
Change-Id: I87d4ad2db031f47946f34627a5ee465ef144f85e
2016-03-03 16:04:12 -08:00
Dianne Hackborn
15e931273e Don't need this "feature" any more.
Change-Id: I3ec4550e508656ae6da3112fd78f111214972a60
2016-03-03 15:54:14 -08:00
Todd Kennedy
66c5553c2e dump apk signing version
bug: 26905579
Change-Id: I5c2682904f2fb83ffce572fe2eb35c38e1b72f01
2016-03-03 15:49:17 -08:00
Jeff Tinker
e872ac45f7 Fix uninitialized crypto pattern
Apps built against an older API don't have the recently
added pattern field in MediaCodec.CryptoInfo which causes
the crypto pattern fields to be uninitialized.  This change
ensures the pattern is initialized in all cases.

bug: 27477422
Change-Id: I5796bf5fbca93dba5bf9a2b74c1c6638b9e90f65
2016-03-03 15:47:09 -08:00
Roozbeh Pournader
fa207d6097 Merge "Unhide LocaleList.getAdjustedDefault()" into nyc-dev 2016-03-03 23:46:57 +00:00
Roozbeh Pournader
950c9f2a95 Merge "Fix script-related parts of locale resource matching" into nyc-dev 2016-03-03 23:45:24 +00:00
Jason Monk
4a6688371f Merge "Fix night mode availability" into nyc-dev 2016-03-03 23:41:42 +00:00
Sid Soundararajan
d27dafeade Merge "Add Launch Task Animation, re-do values for red-lines." into nyc-dev 2016-03-03 23:37:15 +00:00
Keisuke Kuroyanagi
c1cd17f918 Merge "Supress SuggestionPopup for original field." into nyc-dev 2016-03-03 23:34:51 +00:00
Todd Kennedy
39428c1337 Merge "Fix javadoc" into nyc-dev 2016-03-03 23:30:10 +00:00
Jason Monk
1b0afebf37 Fix night mode availability
Night mode tile is getting auto-added.  Do the safe thing for now
and fix the checks around the tile availability to make sure it
isn't shown when it shouldn't be, then fix the auto-add logic later.

Bug: 27480924
Change-Id: I3d032038cbc77bf478e3c769c6796be289a8d993
2016-03-03 18:25:54 -05:00
Todd Kennedy
dfa93abf2f Fix javadoc
Make referenced constants @SystemApi and change argument name to
match its actual meaning.

bug: 25441401
Change-Id: I4277799b95f394edb4305be05f57437717a86691
2016-03-03 15:24:33 -08:00
Nick Kralevich
bb8b4814df Am.java: Use write-only file descriptors
Use write only file descriptors for am commands. Having read-write
file descriptors isn't needed, and not all SELinux app domains have
read access to /data/local/tmp file descriptors.

Addresses the following denial:

  avc: denied { read } for path="/data/local/tmp/foo" dev="dm-2"
  ino=654084 scontext=u:r:system_app:s0
  tcontext=u:object_r:shell_data_file:s0 tclass=file permissive=0

Steps to reproduce:

  adb shell ps | grep settings
  adb shell am dumpheap PID_FROM_ABOVE /data/local/tmp/settings.hat

Expected:
1) command works

Actual:
1) SELinux denial and no settings.hat output.

Bug: 27472701
Change-Id: Id8df0c5a41046b405444e14c70075c986d9936c3
2016-03-03 15:24:29 -08:00
Felipe Leme
578f19453a Merge "Created a firewall chain for power save mode." into nyc-dev 2016-03-03 23:20:29 +00:00
Roozbeh Pournader
7960898f6f Fix script-related parts of locale resource matching
Previously, a bit was kept to find if the script of a locale was
explicitly "provided" in a resource. This was not backward
compatible, and failed in some edge cases when the package was
created with older versions of AAPT that did not set the bit.

The cases would happen when the old resource had an explicit script
specified in its locale, but since the "provided" bit was not set in
the package, we would assume that the script was computed by us.

This CL replaces the "provided" bit with a "computed" bit, so the
default value of the bit (set to "false" for old packages) would be
correct.

Bug: 27156990
Change-Id: I99e7f1ad8f70c90e25ab3640ed34cc1a6f8d1d64
2016-03-03 15:19:37 -08:00
Andreas Gampe
0fe4945006 Merge "Frameworks/base: OtaDexopt needs to move artifacts on boot" into nyc-dev 2016-03-03 23:19:27 +00:00