Commit Graph

33962 Commits

Author SHA1 Message Date
Fyodor Kupolov
ce9533e430 Merge "Call prepareAppDataAfterInstall without mPackages lock" into nyc-dev
am: e6ddf45e6b

* commit 'e6ddf45e6b78c83a60a050f3999eab86f712a403':
  Call prepareAppDataAfterInstall without mPackages lock
2016-02-25 19:09:14 +00:00
Jorim Jaggi
6bef57cf0b Merge "Start with mHiddenForOtherReasons=true" into nyc-dev
am: 58d3f97002

* commit '58d3f97002b67df8d31fa94b3319c159f93f85df':
  Start with mHiddenForOtherReasons=true
2016-02-25 19:01:02 +00:00
Jeff Sharkey
da10f9f8dc Merge "Fix JobSchedulerService FBE regression." into nyc-dev
am: 019f6d9caa

* commit '019f6d9caa7de3c3ebd42ca7fd1a229d74c86e7e':
  Fix JobSchedulerService FBE regression.
2016-02-25 18:59:13 +00:00
Fyodor Kupolov
e6ddf45e6b Merge "Call prepareAppDataAfterInstall without mPackages lock" into nyc-dev 2016-02-25 18:57:30 +00:00
Fyodor Kupolov
3fb5b5d29c Call prepareAppDataAfterInstall without mPackages lock
prepareAppDataAfterInstallInternal may call into ActivityManager which will
try to obtain a lock in a reversed order, which causes a deadlock.

Bug: 27336728
Change-Id: I91bb74cd06c6aa6cee057bab5972b0275d12125b
2016-02-25 10:56:16 -08:00
Adrian Roos
3528507dc3 Add logging to crash and anr dialog
am: 9046222cb2

* commit '9046222cb2b1bd57278ddbf71d9f628f8dd254ae':
  Add logging to crash and anr dialog
2016-02-25 18:52:40 +00:00
Jorim Jaggi
58d3f97002 Merge "Start with mHiddenForOtherReasons=true" into nyc-dev 2016-02-25 18:52:27 +00:00
Jeff Sharkey
019f6d9caa Merge "Fix JobSchedulerService FBE regression." into nyc-dev 2016-02-25 18:52:14 +00:00
Jorim Jaggi
1eb39b009e Start with mHiddenForOtherReasons=true
Initially a surface is hidden after creating, so reflect that fact
in mHiddenForOtherReasons, so it doesn't get shown before the correct
transformation is applied.

Bug: 27350530
Change-Id: Idfe8723195dd1488894da066fafee1f2c2afc12d
2016-02-25 13:50:22 -05:00
Adrian Roos
9046222cb2 Add logging to crash and anr dialog
Bug: 26760334
Change-Id: If81c7a6834e86f7390febef6767a07fa4caded4d
2016-02-25 18:41:01 +00:00
Wale Ogunwale
2e54381d1f Merge "Remove starting window whenever the acitvity is stopped" into nyc-dev
am: a06c25534c

* commit 'a06c25534cbc8e48d7519171499cdd874483cde3':
  Remove starting window whenever the acitvity is stopped
2016-02-25 18:35:01 +00:00
Wale Ogunwale
a06c25534c Merge "Remove starting window whenever the acitvity is stopped" into nyc-dev 2016-02-25 18:29:39 +00:00
Wale Ogunwale
9017ec0b15 Remove starting window whenever the acitvity is stopped
The main app window will never finish drawing at this point so there
is nothing to trigger the removal of the starting window.

Also, set ActivityRecord.mStartingWindowShown to true for some cases
where we were telling WM to show starting window but not setting the
flag that would later be used for clean-up.

Bug: 26659857
Change-Id: I7a8582521853f1f95b77d8b08f4dd0cf778f8cbf
2016-02-25 10:15:38 -08:00
Jeff Sharkey
822cbd130f Fix JobSchedulerService FBE regression.
Internally isReadyToBeExecutedLocked() needs to check if the target
service is actually present and runnable.  For example, when an FBE
device is locked, we need to keep any encryption-unaware jobs
pending until the device is later unlocked.

Bug: 26279465
Change-Id: I53ff4a2243ebe8a199d0e8dcf87dc3f5b06a2686
2016-02-25 11:09:57 -07:00
Gustav Sennton
31b89368fd Merge "Trigger the webview update logic when receiving PACKAGE_CHANGED intents." into nyc-dev
am: ef417514e7

* commit 'ef417514e703c79b5d321fa483d36d479f55f3b3':
  Trigger the webview update logic when receiving PACKAGE_CHANGED intents.
2016-02-25 15:40:29 +00:00
Gustav Sennton
ef417514e7 Merge "Trigger the webview update logic when receiving PACKAGE_CHANGED intents." into nyc-dev 2016-02-25 15:34:24 +00:00
Gustav Sennton
1e5d803195 Trigger the webview update logic when receiving PACKAGE_CHANGED intents.
Since which WebView implementation we use depends on whether the
different webview packages are enabled or disabled we should listen to
changes to the enabled-state of our webview packages (to keep the
webview implementation up to date).

Bug: 27340150
Change-Id: Ie384a48424c9138150ddcc9f7bfaf7b82a911f16
2016-02-25 15:02:20 +00:00
Gustav Sennton
9a48e8e26c Merge "Don\'t run WebView-preparation during an encryption boot phase." into nyc-dev
am: d48a25b8e7

* commit 'd48a25b8e77196a0d7c38c26c764bfe69c2d0b56':
  Don't run WebView-preparation during an encryption boot phase.
2016-02-25 14:04:26 +00:00
Gustav Sennton
d48a25b8e7 Merge "Don't run WebView-preparation during an encryption boot phase." into nyc-dev 2016-02-25 13:58:08 +00:00
Gustav Sennton
c7db48b0ca Don't run WebView-preparation during an encryption boot phase.
When a device is booting up in an encrypted state WebView won't find the
packages needed for loading WebView and might thus try to use incorrect
webview packages. This in itself might cause us to incorrectly change
the webview provider setting but also causes us to crash the system
server if we try to enabled/disable a package that cannot be seen by the
package manager.

Bug: 27353062
Change-Id: I9349778506e8bec1c56b9b786fe4ed15c7c3260d
2016-02-25 13:49:26 +00:00
Andrei Stingaceanu
44135811c4 Suspend packages - decline suspending privileged apps
am: 86ea8f002c

* commit '86ea8f002c921921ae2e3f205e0e7d48c1e375a7':
  Suspend packages - decline suspending privileged apps
2016-02-25 11:24:40 +00:00
Andrei Stingaceanu
86ea8f002c Suspend packages - decline suspending privileged apps
Because there is a high risk of making the system instable.

Bug: 22776761
Bug: 26949256
Bug: 26949428
Bug: 26683041
Change-Id: I73b3f05c13b5023db5176e709320ca6e2e5f6354
2016-02-25 11:20:18 +00:00
Donghyun Cho
deb83688be Merge "MediaSession: Add a way to get a calling package" into nyc-dev
am: f72ecded69

* commit 'f72ecded696ff3145a9ee710e3ff4aeebb8aa1c5':
  MediaSession: Add a way to get a calling package
2016-02-25 10:05:19 +00:00
Donghyun Cho
f72ecded69 Merge "MediaSession: Add a way to get a calling package" into nyc-dev 2016-02-25 10:01:15 +00:00
Yohei Yukawa
4b085cad7b Merge changes Iaf179d60,I315cf372,I21d3c5cc into nyc-dev
am: b3fdffbb48

* commit 'b3fdffbb48ecc67054e69ee768917bfc4a1a178e':
  Use LocaleList for implicitly enabled subtypes.
  Add a utility method to filter locales.
  Mechanical refactoring in InputMethodUtilsTest.
2016-02-25 03:00:37 +00:00
Yohei Yukawa
b3fdffbb48 Merge changes Iaf179d60,I315cf372,I21d3c5cc into nyc-dev
* changes:
  Use LocaleList for implicitly enabled subtypes.
  Add a utility method to filter locales.
  Mechanical refactoring in InputMethodUtilsTest.
2016-02-25 02:57:51 +00:00
Yohei Yukawa
e985c240e3 Use LocaleList for implicitly enabled subtypes.
There are two major changes in this CL:

  1. Now IMMS resets its internal state whenever the system locale list
     is changed, rather than just checking the primary system locale.
  2. For software keyboard subtypes,
     InputMethodUtils#getImplicitlyApplicableSubtypesLocked() now takes
     the entire system locale list into account when determining what
     subtypes should be enabled by default when the user does not
     explicitly enable one or more subtypes.

Bug: 27129703
Change-Id: Iaf179d60c12b9a98b4f097e2449471c4184e049b
2016-02-24 18:27:04 -08:00
Chris Wren
8f8baf6327 Merge "remove some logspam and fix an NPE" into nyc-dev
am: f57c500e52

* commit 'f57c500e52b63187eb8f3b088792508ac4dae9ad':
  remove some logspam and fix an NPE
2016-02-25 02:20:29 +00:00
Jorim Jaggi
fae852a704 Show toast if app was forced to be resizable
am: 5160527595

* commit '51605275957dd936f9ad379d6d525d5e995ebe08':
  Show toast if app was forced to be resizable
2016-02-25 02:18:35 +00:00
Chris Wren
f57c500e52 Merge "remove some logspam and fix an NPE" into nyc-dev 2016-02-25 01:57:17 +00:00
Jorim Jaggi
5160527595 Show toast if app was forced to be resizable
Bug: 27327287
Change-Id: Iaf33f0ba27a6bfb240068b9cf21732b0870f4429
2016-02-25 01:13:25 +00:00
Alex Klyubin
3e0a92519d Merge "Disallow downgrading of non-debuggable packages." into nyc-dev
am: c008d3f196

* commit 'c008d3f196da804eada77e00119addf2a08544de':
  Disallow downgrading of non-debuggable packages.
2016-02-25 00:24:27 +00:00
Maria Garcia Puyol
4b76c3f3b4 Merge "Grant permissions for EmergencyInfo app" into nyc-dev
am: 84a698934b

* commit '84a698934b3ccb5d41584ae712e268f51a7fe713':
  Grant permissions for EmergencyInfo app
2016-02-25 00:08:37 +00:00
Alex Klyubin
c008d3f196 Merge "Disallow downgrading of non-debuggable packages." into nyc-dev 2016-02-25 00:05:36 +00:00
Maria Garcia Puyol
84a698934b Merge "Grant permissions for EmergencyInfo app" into nyc-dev 2016-02-24 23:44:05 +00:00
Arunesh Mishra
5f2742afd8 Merge "Fix AlwaysOnHotwordDetector recognition event bug." into nyc-dev
am: 7dbef2da93

* commit '7dbef2da936093bf7e9e6bb3059c3825ce1e408d':
  Fix AlwaysOnHotwordDetector recognition event bug.
2016-02-24 23:18:45 +00:00
Arunesh Mishra
7dbef2da93 Merge "Fix AlwaysOnHotwordDetector recognition event bug." into nyc-dev 2016-02-24 23:12:12 +00:00
Todd Kennedy
acbcf9d9ab Merge "Revert "Remove deprecated methods / classes"" into nyc-dev
am: fe01ea05dd

* commit 'fe01ea05dd196acaf95a61e169f6b75654ae0875':
  Revert "Remove deprecated methods / classes"
2016-02-24 22:54:13 +00:00
Todd Kennedy
fe01ea05dd Merge "Revert "Remove deprecated methods / classes"" into nyc-dev 2016-02-24 22:45:50 +00:00
Todd Kennedy
5cbeb59026 Revert "Remove deprecated methods / classes"
This reverts commit 9706c01f9b.

Change-Id: I14c53ab140220e48f6728b1173ea58760bbeb7f9
2016-02-24 22:45:00 +00:00
Alex Klyubin
921dd754ab Disallow downgrading of non-debuggable packages.
An attacker could downgrade a package to an older version with known
security vulnerabilities and then use some of the vulnerabilities to
access the application's data. This would constitute a bypass of
Android Application Sandbox. Thus, downgrading while keeping
application data is no longer permitted.

To help developers debug their apps, packages marked as debuggable can
still be downgraded while keeping their data. This does not put the
installed base at risk because, as a security measure, most
application stores reject packages marked as debuggable.

To downgrade a non-debuggable (i.e., release) package, uninstall the
package (thus wiping its data), then install the older version of the
package.

Bug: 27327503
Change-Id: Iac75ed3c3831b5d925dfd8b660527cfa95813da8
2016-02-24 14:42:02 -08:00
Makoto Onuki
04d8eca54a Merge "Support safe mode properly." into nyc-dev
am: a4fae1545a

* commit 'a4fae1545ae38f61385e45e8f635994f447efca5':
  Support safe mode properly.
2016-02-24 22:29:58 +00:00
Makoto Onuki
a4fae1545a Merge "Support safe mode properly." into nyc-dev 2016-02-24 22:20:08 +00:00
Matthew Williams
a9024ba868 Merge "NPE fix for JobScheduler" into nyc-dev
am: 553389630d

* commit '553389630d11215635e0e70f90578b917308715c':
  NPE fix for JobScheduler
2016-02-24 21:48:02 +00:00
Matthew Williams
553389630d Merge "NPE fix for JobScheduler" into nyc-dev 2016-02-24 21:37:45 +00:00
Shreyas Basarge
7d089050d6 NPE fix for JobScheduler
Add a null check before setting stop
reason for job parameters.

Bug: 27166522
Change-Id: I8b829c0cf8df7da0b8118ab75779f209d0af1b22
2016-02-24 21:30:14 +00:00
Tony Mak
03ae05b095 Merge "Fix personal apps are not shown when tapping "personal" in activity chooser" into nyc-dev
am: fe939916a6

* commit 'fe939916a6d9bd092b782e6fd21856b574467d88':
  Fix personal apps are not shown when tapping "personal" in activity chooser
2016-02-24 21:26:43 +00:00
Makoto Onuki
889c088066 Support safe mode properly.
In safe mode, IPM.queryXxx() doesn't work.  Use IPM.getReceiverInfo()
directly instead.

Bug 27108276

Change-Id: Ice8f882559b8f0596a19ddb3a16395a4dc538a25
2016-02-24 13:12:01 -08:00
Todd Kennedy
07e794ad14 Merge "Remove deprecated methods / classes" into nyc-dev
am: ca67844e0c

* commit 'ca67844e0c6b564970b8d329009c0d110888a3fc':
  Remove deprecated methods / classes
2016-02-24 21:11:47 +00:00
Tony Mak
fe939916a6 Merge "Fix personal apps are not shown when tapping "personal" in activity chooser" into nyc-dev 2016-02-24 21:11:30 +00:00