32109 Commits

Author SHA1 Message Date
Jeff Sharkey
ba51235ef5 More file-based encryption work.
Add new "am unlock-user" command so we can trigger changes from the
command line.

Move FBE check to static method so it can safely be called early
during boot before the mount service is ready.  Move FBE emulation
to persisted system property, and start reading/writing that value.

Change default permission grants to ignore current encryption-aware
flags, since many of the target apps aren't crypto aware.

Always prepare package data directories, which is how we create the
new "user_de" paths during boot.

Bug: 22358539
Change-Id: I6f58ea2d34b3a466d3775d614f8a13de92272621
2015-11-19 11:02:30 -07:00
Chris Wren
c35d7759d8 allow devs to turn off charging notifications
in the same was as we allow then to turn of debuging notificaitons
this is useful for screenshots and demos

Change-Id: I6e95addec2917abdd619086ed68910097fb5b8aa
2015-11-19 12:49:42 -05:00
Chris Wren
66dfcc50df metrics for people validation
Change-Id: If53bb740ca3760e7335c93ad140bae2029d422b7
2015-11-19 12:49:42 -05:00
Julia Reynolds
bb9bfc9713 Merge "Remove 'peekable' preference." 2015-11-19 13:58:25 +00:00
Yohei Yukawa
e39d4edca7 Track by which client the last focused window was reported.
To diagnose race conditions like issue #25373872, we want to track
which input method client corresponds to IMMS#mCurFocusedWindow.

Note that IMMS#mCurClient does not always correspond to
IMMS#mCurFocusedWindow, because input method clients can report the
window focus gain only, without requesting to be bound to IME.

Bug: 25373872
Change-Id: Iad121669c0f3db4461245dc80ff3fdee469abb79
2015-11-19 03:38:49 -08:00
Yohei Yukawa
072b1b5183 Clear IMMS#mCurClient when it is dead.
Suppose the following case:
  1. Launch an activity.
  2. Focus in an EditText on the activity.  IME is shown up.
  3. Kill the activity process in a not graceful way, e.g.,
     'adb shell kill'

After step 3, IMMS#removeClient(client) is immediately called back from
com.android.server.wm.Session, which is good, but we forgot to clear
IMMS#mCurClient to null.

Basically not clearing IMMS#mCurClient there is not so critical, because
1) we already have bunch of RemoteException check for the case where
IPC target is already dead, and in theory we cannot avoid this kind of
runtime error anyway, and 2) in most of cases new input method client
gains focus.

That said, in conjunction with other focus-related issues such
as bug #25373872, not cleaning that can result in the following error
message in 'input_method:' section of bugreport, which might be a bit
confusing.

  Input method client dead: android.os.DeadObjectException

The primary goal of this CL is to make bugreport less confusing.  Any
user/developer-visible changes beyond that is unintentional.

Bug: 25373872
Change-Id: Iee001ad9cce0c8c6324e3c0984be1e6f0e641d05
2015-11-19 03:46:18 +00:00
Sandra Kwan
b68be01344 Merge "AccountManager: add startAddAccount API." 2015-11-19 03:45:19 +00:00
Wale Ogunwale
ab529e0916 Merge "Fix build breakage." 2015-11-19 03:23:55 +00:00
Wale Ogunwale
ff3c66c597 Fix build breakage.
Change-Id: Ie60b148d61d746de354b12852d4a6db2d82121c5
2015-11-18 19:22:49 -08:00
Joe LaPenna
cae4f1222f Revert "Don\'t dispatch when non-interactive and the display is off." am: f2b9b2d85a am: f7aceb60e3 am: 2900dc2349 am: 617bd39465
am: 01186abc81

* commit '01186abc81c721c84a5d588bb7183d811d77f99c':
  Revert "Don't dispatch when non-interactive and the display is off."
2015-11-19 03:17:33 +00:00
Sandra Kwan
7881228736 AccountManager: add startAddAccount API.
Adding startAddAccount API to AccountManager and
AbstractAccountAuthenticator.

Change-Id: I29e1defb2181ece1281534db0e36b28457085148
2015-11-18 18:25:08 -08:00
Wale Ogunwale
76415ee500 Merge "Allow apps to set launch bounds for activities." 2015-11-19 02:10:32 +00:00
Wale Ogunwale
7a8fa60962 Allow apps to set launch bounds for activities.
unhide ActivityOptions APIs for setting launch bounds for
an activitiy so apps can use it. Only works on devices that
support PackageManager#FEATURE_FREEFORM_WINDOW_MANAGEMENT.

Bug: 25499677
Change-Id: I75424681f25cbb9fe92f2ed73e6afbab765dab29
2015-11-18 18:04:45 -08:00
Dianne Hackborn
8ed2b97b9e Implement flexible light idle maintenance windows.
For light idle mode, our maintenance window is pretty short (1 minute).
Usually we have nothing to do in it...  but sometimes we may want to
do a sync or download that takes more than a minute, and it would be
nice to not take the overhead of breaking that up in to multiple
windows.

So now we have a flexibile window, from 1 minute to 5 minutes.  We
start out with 1 minute, and any window that uses less than 1
minute increases the available window by that amount for later use.
If we later use more than 1 minute, we correspondingly decrease
the next available window.

Change-Id: Ie273dbd5843b3aa4a3d5d9b2e420cda75517340f
2015-11-18 17:02:26 -08:00
Suprabh Shukla
d93d481ea1 Merge "Moving recent tasks information to a user directory" 2015-11-19 00:53:20 +00:00
Dianne Hackborn
268e4e3d00 Move appops command to the service.
The "appops" shell command is now just a wrapper around doing
"cmd appops", no more need to launch a Java VM!

Change-Id: I06fc68762d0ab95a016fb24db0affb0d91197588
2015-11-18 16:29:56 -08:00
Felipe Leme
3f24edf0dd Fixed typos.
Change-Id: I13f2a0cd9b5e41a6af27fbbc6f33ecc0241b3c29
2015-11-18 15:30:00 -08:00
Julia Reynolds
bc253a2858 Remove 'peekable' preference.
To be replaced by 'importance' in the future.

Bug: 22854014
Change-Id: Idc9ca79b145d5c69e769c9239ed9291dce40d8c8
2015-11-18 17:05:02 -05:00
Xiaohui Chen
228c322c94 Merge "Skip dead users when getting primary." 2015-11-18 21:53:15 +00:00
Xiaohui Chen
d3e9e1835b Skip dead users when getting primary.
Bug: 25769085
Change-Id: I220d175839509e4dbf3f2992a90e9625d0caf825
2015-11-18 13:37:32 -08:00
Amith Yamasani
ed3a0a78a5 Merge "Fix crash in bindService due to uncleared binder identity" 2015-11-18 20:27:43 +00:00
Vladislav Kaznacheev
f91e74d9a9 Merge "Implement View.cancelDrag" 2015-11-18 19:13:13 +00:00
Dianne Hackborn
32bb7bc314 Merge "Fix issue #25673462: Shamu update from MMB29J -> 29K does not complete" 2015-11-18 19:07:43 +00:00
Amith Yamasani
8fb0e1946b Fix crash in bindService due to uncleared binder identity
Clear the calling identity in retrieveServiceLocked before
doing the appop check. It probably needs to be cleared sooner
in general in retrieveServiceLocked(), but that might be a risky
fix. Making this smaller fix to keep it surgical for now.

Bug: 25759739
Change-Id: I66a5f8ef9b2d914181925fa344c3f2962030583d
2015-11-18 10:56:04 -08:00
Guang Zhu
b681ec0219 add lost RAM info to compact meminfo dump
am: 877c6c7742

* commit '877c6c7742d60fae387e51a4257dd90010064a8a':
  add lost RAM info to compact meminfo dump
2015-11-18 18:11:10 +00:00
Nicolas Geoffray
5462e46d23 Merge "Remove DEBUG_JIT from Zygote flags." am: cf49583bd0
am: 5485d81578

* commit '5485d815788e4037829d70d041fe4fc1a35416f3':
  Remove DEBUG_JIT from Zygote flags.
2015-11-18 17:21:41 +00:00
Nicolas Geoffray
5485d81578 Merge "Remove DEBUG_JIT from Zygote flags."
am: cf49583bd0

* commit 'cf49583bd02d01b5d7aa57912d5469b466722c65':
  Remove DEBUG_JIT from Zygote flags.
2015-11-18 10:54:19 +00:00
Nicolas Geoffray
cf49583bd0 Merge "Remove DEBUG_JIT from Zygote flags." 2015-11-18 10:47:50 +00:00
Nicolas Geoffray
245ec92b65 Remove DEBUG_JIT from Zygote flags.
The flag is being obsolete by the move to JIT.

(cherry picked from commit 9abbf45c8dcdb2e5b13b615e5138ad996fe8afa3)

Change-Id: I3ce4577e81f91e9dd55d44116e0f9e2014bd00b8
2015-11-18 10:07:53 +00:00
Guang Zhu
877c6c7742 add lost RAM info to compact meminfo dump
Bug: 25756675

Change-Id: Ibfa37dac99268de8b482188eca9924c999e2b484
2015-11-18 07:43:50 +00:00
Yohei Yukawa
33e81798fa Tell the reason why IMMS unbinds IME client.
As a preparation to fix Bug 25373872, this introduce an additional
parameter to IInputMethodClient.unbind() so that the IME client
that is running in the application side can know why IMMS needs
to unbind the connection.

In future the "unbindReason" parameter is supposed to be used to
optimize the behavior of IMM runtime running in the application process,
but for now it is not used unless we build the sytem with debug message
enabled.  Hence there should be no user-visible change with this CL.

Bug: 25373872
Change-Id: I74e83c8ca9d1d53e31e9c7b5bda1dec6274e59c8
2015-11-17 21:14:42 -08:00
Yohei Yukawa
85d9fed140 Merge "Factor out IMMS#resetCurrentMethodAndClient()." 2015-11-18 03:56:45 +00:00
Dianne Hackborn
c83189b5d6 Fix issue #25673462: Shamu update from MMB29J -> 29K does not complete
The direct path to the package manager returns null on failure, oops!

Change-Id: Id33ea299b605a59b0703dab200bafb754dd66e78
2015-11-17 18:17:57 -08:00
Chong Zhang
0ba005fcc6 Merge "Fix crash with animation specs" 2015-11-18 02:16:33 +00:00
Dianne Hackborn
cc2925c45b Merge "Fix issue #25727069: Top sleeping activity overrides foreground service" 2015-11-18 02:05:30 +00:00
Dianne Hackborn
3ea71cf263 Fix issue #25727069: Top sleeping activity overrides foreground service
Change-Id: I9a085cd650604f9d6277ad343bf3c3852324cafc
2015-11-17 18:03:20 -08:00
Chong Zhang
be2ca45c62 Fix crash with animation specs
Change-Id: I72ed5b19aaede0c58ea0b8665409721824ec6480
2015-11-17 17:55:43 -08:00
Jun Mukai
28d5615147 Merge "Introduce animated pointer icon for STYLE_WAIT." 2015-11-18 01:46:58 +00:00
Yohei Yukawa
bc7b526043 Factor out IMMS#resetCurrentMethodAndClient().
As a preparation to fix Bug 25373872, this CL does a mechanical
code clean-ups in InputMethodManagerService.

As a follow up of I6c3186050592526fc95c5b27f18e2155acff5ebc, this CL
introduces IMMS#resetCurrentMethodAndClient() to make it clear when we
are resetting both IMMS->IME and IMMS->Apps connections.

This is literally mechanical.  No behavior change is intended.

Bug: 25373872
Change-Id: Ia4161854d9da71783fd028fcb79407e4b9463aee
2015-11-17 17:38:41 -08:00
Jun Mukai
808196f139 Introduce animated pointer icon for STYLE_WAIT.
Change-Id: I893f8276e09351db6187c553f349008794b95690
2015-11-17 17:36:08 -08:00
Joe LaPenna
01186abc81 Revert "Don\'t dispatch when non-interactive and the display is off." am: f2b9b2d85a am: f7aceb60e3 am: 2900dc2349
am: 617bd39465

* commit '617bd39465dd0b77ed2cf353728c2fe97c371b17':
  Revert "Don't dispatch when non-interactive and the display is off."
2015-11-18 00:12:02 +00:00
Rom Lemarchand
7d1428d7f3 resolve merge conflicts of 5032e49f9e to mnc-dr2-dev-plus-aosp.
Change-Id: If4a565a262befdc3d6e206c892e2be9711d52c0f
2015-11-17 15:38:50 -08:00
Svetoslav Ganov
488b4b5872 Merge "Handle renamed packages during default grants" am: 140b101fcd am: 60cb22008c
am: 9bf367030c

* commit '9bf367030c24e93c711d2ba9ca5594e70a652596':
  Handle renamed packages during default grants
2015-11-17 23:31:42 +00:00
Colin Cross
b2b5c89d8c Merge "Vibra: Add loading of the vibrator hardware module." am: 5603eca33c am: 358ad4980f
am: 68cea4e7d1

* commit '68cea4e7d17cf00ce3001cf23fe36a7f1e77fe86':
  Vibra: Add loading of the vibrator hardware module.
2015-11-17 23:30:18 +00:00
Suprabh Shukla
2359314fd4 Moving recent tasks information to a user directory
The directories recent_tasks and recent_images are moved from
/data/system/ to /data/system/users/<n>/

Bug: b/24569398
Change-Id: I538969d86ebf14fb2d44257be1e6c0a7ff61ed8d
2015-11-17 15:23:22 -08:00
Joe LaPenna
617bd39465 Revert "Don\'t dispatch when non-interactive and the display is off." am: f2b9b2d85a am: f7aceb60e3
am: 2900dc2349

* commit '2900dc23496094dd3a3f44eaac688a304b49ba56':
  Revert "Don't dispatch when non-interactive and the display is off."
2015-11-17 22:51:09 +00:00
Vladislav Kaznacheev
93cf731b26 Implement View.cancelDrag
View.cancelDrag cancels a drag operation initiated by
View.startDrag.

It has to be called on a View in the same window (under the
same ViewRootImpl) that the view which started the drag.

Bug: 24415683
Change-Id: Iae5ff3534b6c747ae174f170fdd01ff4d3b1c312
2015-11-17 14:39:21 -08:00
Joe LaPenna
f7aceb60e3 Revert "Don\'t dispatch when non-interactive and the display is off."
am: f2b9b2d85a

* commit 'f2b9b2d85ae1b48896ad6b685de4cda8fab1c8fb':
  Revert "Don't dispatch when non-interactive and the display is off."
2015-11-17 22:32:57 +00:00
Joe LaPenna
f2b9b2d85a Revert "Don't dispatch when non-interactive and the display is off."
This reverts commit 2ccf0c8e636fd3be75c3a07f4cf60d72a4cfaa28.

BUG: 22422588
BUG: 25067918

Change-Id: I916c8bb19cd6a73c0be4bd3a0e3112938651e775
2015-11-17 22:26:41 +00:00
Makoto Onuki
a87401054f Merge "Allow PO to clear password even if the same apk has DA" 2015-11-17 22:11:20 +00:00