18486 Commits

Author SHA1 Message Date
Christopher Tate
c295a44336 Merge "Always call finishBackup() if performFullBackup() succeeded" into lmp-dev 2014-07-16 16:25:13 +00:00
Christopher Tate
a176d22110 Always call finishBackup() if performFullBackup() succeeded
Even if we later get an error from sendBackupData() we need to give
the transport its teardown callback.  This simplifies the transport
logic considerably.

Change-Id: Ib8c0e210d4a876ee6b083a4d619dfccc462da4e5
2014-07-16 13:10:58 -07:00
Jeff Sharkey
9a445771f5 Install sessions only inherit APK files.
Also track historical install sessions for debugging purposes.  Hide
signature verification API for now.  Clear code cache only after
killing the app being upgraded.

Bug: 14975160
Change-Id: I52fc7f11d2506f792236d8a365c8cfed21b46c30
2014-07-16 13:38:09 -07:00
RoboErik
ac17c2a8c9 Merge "Change adjustVolumeBy to adjustVolume" into lmp-dev 2014-07-16 16:25:13 +00:00
RoboErik
1ff5b1648a Change adjustVolumeBy to adjustVolume
This makes volume adjustments take a direction instead of a number of
steps and renames the API appropriately.

Change-Id: I6a31cbc42d889a38aa63446686a424cb2b8b2270
2014-07-16 12:03:45 -07:00
Narayan Kamath
2053168eb4 Dexopt for Context.createPackageContext when code is included.
The package manager now keeps track of per ISA dex-opt state.

There are two important things to keep in mind here :

- dexopt can potentially be very slow. In cases where the target
  package hasn't been dexopted yet, this can take multiple seconds
  and may cause an ANR in the caller if the context is being
  created from the main thread.
- We will need to remove the constraint that dexopt can only be
  requested by the system (or root). Apps will implicitly be
  requesting dexopt by asking for package contexts with code included.
  It's important to note that unlike dalvik, the dexopt stage in ART
  isn't optional. ART cannot load classes directly from dex files.

bug: 15313272
Change-Id: I0bd6c323a9c1f62f1c08f6292b7f0f7f08942726
2014-07-16 19:23:52 +01:00
Narayan Kamath
d8723bd3d6 Merge "Adjust nativeLibraryDir for package contexts of multiArch installs." into lmp-dev 2014-07-16 01:00:53 +00:00
Narayan Kamath
7dba6eb3ac Adjust nativeLibraryDir for package contexts of multiArch installs.
When we're creating a package context for a multi-arch app,
adjust the native library directory to match the bitness of
the process creating the context.

This change also removes apkRoot (which wasn't really being used)
and replaces it with a fully constructed secondary library path.
The secondary library path is a transitional measure until we
can reorganize the system image so that we can use nativeLibraryRoot
for system paths as well (nativeLibraryRootRequiresIsa will then
be true for all packages except for legacy installs).

bug: 16013931

Change-Id: I5ae090334b377b9e087aecf40075fab81b20b132
2014-07-16 13:37:16 +01:00
Jeff Sharkey
5fcaa0c670 Merge "Clearing "cache" shouldn't include "code cache."" into lmp-dev 2014-07-16 16:25:13 +00:00
Jeff Sharkey
78f3cf971b Clearing "cache" shouldn't include "code cache."
Bug: 16187224
Change-Id: I075b651d1ff89d4f0232497d28a6b11270cba4d9
2014-07-16 10:13:01 -07:00
Jeff Sharkey
4ed745d359 Add code cache directory for apps.
This provides a directory where apps can cache compiled or optimized
code generated at runtime.  The platform will delete all files in
this location on both app and platform upgrade.

Bug: 16187224
Change-Id: I641b21d841c436247f35ff235317e3a4ba520441
2014-07-15 22:13:26 -07:00
Jeff Sharkey
78a130144b Mark resource-only splits as hasCode=false.
PackageManagerService now skips dexopt for split APKs that don't
declare they have code.  Also surface more detailed error messages
in logs.

Bug: 14975160
Change-Id: Ie6078dba724815020cee59b7fc52317e88ca097a
2014-07-15 20:18:39 -07:00
Jeff Sharkey
da96e137bc Parse more split APK manifest details.
Allow split APKs to define activities, services, receivers,
providers, and metadata.  However, support for many manifest items
are explicitly omitted.

Only dexopt split APKs that include code.

Bug: 14975160
Change-Id: I2fbf99e2a62328aa2185e5924755af33060282fc
2014-07-15 18:50:00 -07:00
Jason Monk
febcb9d42b Merge "Finalizing lock-to-app UX" into lmp-dev 2014-07-16 00:53:22 +00:00
Sandeep Siddhartha
7ee0d45835 Merge "Hook in startRecogniton call" into lmp-dev 2014-07-16 02:25:05 +00:00
Jeff Sharkey
d0a2de06a7 Merge "Add code cache directory for apps." into lmp-dev 2014-07-16 16:25:13 +00:00
Sandeep Siddhartha
8ecaf5f5cf Hook in startRecogniton call
Add required info to the sound model database: users & recognition modes

Change-Id: I6e12cbc6342a2767c0e3d8328c0a3be899ac9952
2014-07-15 18:36:09 -07:00
Adam Connors
63602e56bc Merge "Revert "Remove enableSystemApp methods."" into lmp-dev 2014-07-16 01:00:53 +00:00
Adam Connors
655be2a98e Revert "Remove enableSystemApp methods."
We need to go back to uninstalling system apps so we can
re-install non-default system applications through Play.

This reverts commit e3dbcd138c07f2d32ac84229d0a49052cc18d424.

Change-Id: I0a7af094614c4a10800971c82e10571f7312e079
2014-07-16 09:48:43 +00:00
Adrian Roos
d4e632bbb6 Merge "Fix windows not showing when SHOW_WHEN_LOCKED changes" into lmp-dev 2014-07-16 00:53:22 +00:00
John Spurlock
93d837fd01 Merge "Zen: handle exit conditions across reboots." into lmp-dev 2014-07-16 00:53:22 +00:00
Narayan Kamath
61e9bf246f Fix install --abi for apps with no native code.
We will need to record the overriden ABI in the package
settings (and applicationInfo) so that we launch the app
with it.

Change-Id: Ib71aae69d006a4b0e85e7101c0e0cebf1a950997
2014-07-16 12:02:12 +01:00
John Spurlock
50806fc4ce Zen: handle exit conditions across reboots.
- Use the persisted exit condition (and a new
  persisted exit component) to immediately resubscribe
  to the manual exit condition (if present)
- Fire false immediately for old countdown conditions.
- Add a new zen lens to noman dump, and a bit more info.
- Refresh the current exit condition when reopening the panel.

Bug:15844990
Bug:16212455
Change-Id: I8bfaf1b2a6cf3d8818002a9db5c527ad3aa4c05c
2014-07-16 06:54:35 -04:00
Adrian Roos
4a0ffb004a Fix windows not showing when SHOW_WHEN_LOCKED changes
Removes WindowStateAnimator's copy of the window flags, which was 
not updated when they changed.

Bug: 15574002
Change-Id: I1ca3f8d5b521727fcb8da14ff1f8231e47b1e9b9
2014-07-15 16:32:20 +00:00
Paul Jensen
2bb7e34168 Fix T-Mobile provisioning detection.
Add User-Agent to HTTP request for captive portal.

bug:16316314
Change-Id: I32d4f75f4eb114574dd2a39d241cb085383b4f94
2014-07-15 16:11:41 +00:00
Joe LaPenna
d44a5b35ae Revert "MSIM: dump sub specific info"
This reverts commit bc586ea61bacf05c509cb8dae44e9d8f22fc780d.

Change-Id: Ia85003f2f4eb17970fd5945dd8d432a701db9bba
2014-07-15 23:11:40 +00:00
Stuart Scott
0e4586dfa4 Merge "MSIM: dump sub specific info" into lmp-dev 2014-07-15 20:39:52 +00:00
Sandeep Gutta
09abc62b4f MSIM: dump sub specific info
Add support to dump subscription specific info
in TelephonyRegistry

Cherrypicked from partner gerrit.

Change-Id: I9525b8ff8b8884e5099df762d0eafe27fdb186ab
2014-07-15 15:07:37 -07:00
Dianne Hackborn
fdb1956ff7 Fix issue #15681802: Missing RESET:TIME in complete battery histories
But wait, there's more!

- Keep track of sync durations in the aggregated stats.
- Add events for users that are running and in the foreground.
- Rework the activity manager's tracking of stuff using
  battery in the background to be based on proc stats, which
  allows it to be better about determing when it should reset
  its tracking of background work.
- Also add tracking of scheduled job execution, like we are
  doing for syncs.
- And once I started hooking battery stats in to
  JobSchedulerService, I found a few things I couldn't stop myself
  from changing: (1) make it very explicit that it doesn't start
  scheduling jobs until we have reached the point in system boot
  where third party apps are allowed to run, and (2) adjust
  the various for loops to not use iterators.

Change-Id: I69d812e27bcfee9e58a614f0f6b1c7545d7530b1
2014-07-15 14:48:48 -07:00
Chris Wren
015e922fa7 Merge "Implement application-level high priority bit." into lmp-dev 2014-07-15 16:05:17 +00:00
Paul Jensen
fdc4e4af73 Fix hiding of sign-in to network notification.
Don't rely on the NetworkAgent still being connected when we go to
hide the notification.  The notification is hidden when the
NetworkAgent is disconnected so that wasn't a safe assumption.
By using the NetID as the notification identifier we also fix the
issue of multiple notifications of the same network type inadvertently
hiding the incorrect notification with the same network type.

bug:16317917
Change-Id: I01fdc466a0f430af9fc378445586ec7b83b3ac83
2014-07-15 19:06:39 +00:00
Chris Wren
54bbef435e Implement application-level high priority bit.
Enable checkbox in settings and wire it to NotificationManagerSerivce.
Add RankingHelper to collect ranking configs and logic.

Bug: 15080024
Change-Id: Ib1d3b0b5ca4fcfdc52c2cb6838a009b9addf1094
2014-07-15 15:04:29 -04:00
Craig Mautner
00e7ba05ac Merge "Launch activity behind launching task." into lmp-dev 2014-07-15 16:05:04 +00:00
Craig Mautner
bb74246278 Launch activity behind launching task.
Use ActivityOptions.makeLaunchTaskBehindAnimation() to launch tasks
behind the current task. Includes animations for launching and
launched tasks.

Fixes bug 16157517.

Change-Id: I0a94af70b4748592e94673b958ee824cfb3d7ec0
2014-07-15 11:36:25 -07:00
Narayan Kamath
d7671a7100 Merge "Don't throw errors on sharedUid adjustment." into lmp-dev 2014-07-15 16:05:01 +00:00
Craig Mautner
0b23e20be6 Merge "Add null check" into lmp-dev 2014-07-15 16:05:04 +00:00
Craig Mautner
3b1dac8c5a Add null check
Fixes bug 15847145.

Change-Id: Ia4d223da578bc38516824dd82dd3c5b8d58328dd
2014-07-15 09:51:33 -07:00
Amith Yamasani
4d922e6f74 Merge "Revert some new APIs for restrictions provider" into lmp-dev 2014-07-15 16:04:58 +00:00
Amith Yamasani
5470bc184a Revert some new APIs for restrictions provider
Simplify back to being a broadcast receiver and add an extra to
indicate that a new request is desired vs. returning a pending
response from before.

Change-Id: Iafd16ed98293a2cc09006d2cce097fc3d590bbe2
2014-07-15 09:43:20 -07:00
Narayan Kamath
377ea31c43 Don't throw errors on sharedUid adjustment.
Given that this is "best effort" anyway, stop short of
aborting installs when ABIs can't be adjusted. Otherwise
it will be impossible to test or upgrade an APP that has
a shared UID and changes ABIs. All apps that use a given
sharedUid are expected to use the same instruction set.

Change-Id: Ia9ffd1eb2df7c6ec9a39b23fc40e58794c013749
2014-07-15 15:55:58 +00:00
Narayan Kamath
6bdede0aad Merge "Fix multiArch installs where only some archs are available." into lmp-dev 2014-07-14 20:58:22 +00:00
Narayan Kamath
f5f1828d96 Fix multiArch installs where only some archs are available.
In this case, NO_MATCHING_ABIS shouldn't result in a failure
when we're trying to match against one of SUPPORTED_32_BIT_ABIS
or SUPPORTED_64_BIT_ABIS.

There shouldn't be a general requirement that packages must
contain both 32 and 64 bit libs because it might legitimately
exclude one or the other for reasons such as compatibility
etc.

bug: 16299358

Change-Id: I5f66b0a54b63b93b36371b584e9cf6bed07c507a
2014-07-15 16:50:34 +01:00
Jeff Sharkey
69ea974f17 Merge "Public API for PackageInstaller!" into lmp-dev 2014-07-15 00:41:06 +00:00
Jeff Sharkey
6c833e07a0 Public API for PackageInstaller!
Flesh out documentation and finalize first cut of API.  Also surface
installLocation and splitNames through PackageInfo.

Bug: 14975160, 15348430
Change-Id: Ic27696d20ed06e508aa3526218e9cb20835af6a0
2014-07-14 23:06:52 -07:00
Wonsik Kim
969167dc05 TIF: Revisit availability changes
Bug: 15838097, Bug: 15973274
Change-Id: Ida060696cb6222c8ced576d86c100c25d94dc5c0
2014-07-15 02:58:33 +00:00
Jinsuk Kim
be1da5e5cc Merge "Apply hdmi control options to operation" into lmp-dev 2014-07-14 21:27:36 +00:00
Ruchi Kandoi
6b879024fa Merge "PowerManager: Adds a call to reduce refresh rate while device is in BatterySaverMode." into lmp-dev 2014-07-14 23:57:14 +00:00
Ruchi Kandoi
0fe32ae50b PowerManager: Adds a call to reduce refresh rate while device is in
BatterySaverMode.

Adds a binder call to the surface flinger to change the refresh rate
while the device is in BatterySaverMode.

Change-Id: I9b5fdcc279757ceb4b9917cb0445643b50133a04
2014-07-15 00:09:38 +00:00
Alan Viverette
a2ff611fd6 resolved conflicts for merge of dca272b8 to lmp-dev
Change-Id: Ifbd10ace66f7488f225bfae6e26bab60ab56e651
2014-07-14 17:46:27 -07:00
George Mount
01e9a97fe6 Don't lose ActivityOptions during orientation change.
Bug 16188506

Change-Id: I056153e6ddbaf328dd65b8b27a91ae773c33ea22
2014-07-15 14:38:28 +00:00