164 Commits

Author SHA1 Message Date
Alex Klyubin
4812563f68 AndroidKeyStore keys should not be handled by Bouncy Castle.
Bouncy Castle JCA provider incorrectly declares that its Cipher, Mac,
Signature, and KeyAgreement implementations accept arbitrary keys (
including AndroidKeyStore keys). As a result, when a Cipher, Mac,
Signature, or KeyAgreement instance is requested from JCA without
explicitly specifying the provider (which follows best practices)
and then initialied with an AndroidKeyStore key, JCA chooses the
BouncyCastle's implementation, which in turn blows up because it
can't handle such keys.

The workaround is to install Cipher, Mac, Signature, and
KeyAgreement implementations backed by AndroidKeyStore as a
higher-priority JCA provider than the Bouncy Castle one. This is
achieved by splitting out the above implementations from
AndroidKeyStoreProvider into AndroidKeyStoreBCWorkaroundProvider
and installing the AndroidKeyStoreProvider at the usual priority
(below Bouncy Castle) and the AndroidKeyStoreBCWorkaroundProvider
at above Bouncy Castle priority.

Bug: 20691708
Change-Id: I336464f4a49bc30c6845ddc4e84b07f4105424dd
2015-04-29 13:28:56 -07:00
Fyodor Kupolov
946646e4b9 Added SystemServiceRegistry to preloaded-classes
SystemServiceRegistry class should be preloaded in the zygote.

Bug: 20559324
Change-Id: I3120c7e42b50c54213513a04d7135d745c8abd7c
2015-04-24 13:34:00 -07:00
Neil Fuller
dad03bf185 am a921fa0f: am ff1e7e01: am 0e29681f: Merge "Load ICU4J data on boot"
* commit 'a921fa0fc354fed48d29822109c573a124a95dfd':
  Load ICU4J data on boot
2015-04-24 11:11:14 +00:00
Neil Fuller
9f7cd10134 Load ICU4J data on boot
Bug: 20252074
Bug: 20396452
Change-Id: I17de761e0d81caa2fc280b5cc368ee6113a5d655
2015-04-23 14:50:34 +01:00
Chet Haase
575217fc3d Make ActionBar animations work correctly
Previous ActionBar animations didn't handle configuration changes
or other situations in which the view would get detached. listeners
would stay on the view and would attempt to do something nonsensical
in the new window. This new approach removes listeners on window
detach to avoid this problem.

Issue #20125407 Settings Crashes when changing orientation of device

Change-Id: I0b3bbd0f6fc23cdb4cbd646b0d2772d72d3d795d
2015-04-14 14:09:26 +00:00
Alex Klyubin
6def5afcbc Load fewer classes when AndroidKeyStore provider is installed.
This avoids loading all AndroidKeyStore crypto SPI classes when the
AndroidKeyStore provider is instantiated and installed. This provider
is installed early on during the initialization of each app. Most apps
don't need these classes loaded.

Bug: 18088752
Change-Id: Ib43c9dd6a7d434b128916e0f9c8652ba61df0d47
2015-04-03 12:45:16 -07:00
Brian Carlstrom
0b36620014 Manually add SignalStrength to preloaded-classes
Bug: 19323020
Change-Id: I61e9d2dd5d06fe2353da17e5646f259122e5ea98
2015-03-04 21:56:26 -08:00
Alex Klyubin
f162066db5 Remove DefaultHostnameVerifier from preloaded-classes.
libcore's DefaultHostnameVerifier no longer exists. See
https://android-review.googlesource.com/#/c/117453/.

Bug: 18481199
Change-Id: I5c07e058aaaf8531d420058cfd104c4e751757a3
2014-12-04 09:41:46 -08:00
Andreas Gampe
dcad4caa84 Revert "Revert "Frameworks/base: Update to preloaded-classes""
This reverts commit 16626a7ee9f18c70b2f6437b4ab85753dbbb2263.

Remove three classes that break Shamu booting.

Bug: 17480683
Bug: 17791590
Change-Id: Ic487c5344d4186ea5205f117f07ca3ab7d945fb7
2014-10-02 19:05:44 -07:00
Andreas Gampe
16626a7ee9 Revert "Frameworks/base: Update to preloaded-classes"
Breaks shamu for unknown reason.

This reverts commit da3050614fc9dc31d39ff87ae5df0261fb76f93c.

Bug: 17480683
Change-Id: Id10ff18ef6e3acb5eb84196f7e5608add7edeb66
2014-10-02 08:45:09 +00:00
Andreas Gampe
da3050614f Frameworks/base: Update to preloaded-classes
Bug: 17480683
Change-Id: I06d2a64d2f9544cac0f5940cb9129cd5668740ba
2014-09-29 08:14:54 -07:00
Torne (Richard Coles)
b5de924fad Remove WebView library preloading mechanism.
We don't want to preload the WebView library in the zygote process any
more, as loading an updatable WebView in the zygote is a stability risk.
The memory benefits of preloading will be obtained in other ways.

Bug: 13005501
Change-Id: Ic89f2a1d057dc92b01fb775bf326b47ac2d4caa2
2014-07-17 09:18:43 -07:00
Lajos Molnar
e0e77cb5bb Remove VideoEditor
remove android.media.videoeditor.*

No longer supported and should not be used.

Bug: 13542518
Change-Id: I12de122443f0289ab1dfdd8b553e572a830cf412
2014-04-21 16:11:51 -07:00
Mike Lockwood
54d3bcfdf5 Remove non-existent classes from preloaded-classes
Change-Id: I0f86f7ab2ef132fbd12f85ff96e448d189af7177
2014-02-27 13:51:00 -08:00
Kenny Root
faa1057d4c am aa6ff54e: am 85ee57d1: am c064a1b5: Merge "Remove DRLCertFactory"
* commit 'aa6ff54ef57936024e98d9f565afe9fff24df2e4':
  Remove DRLCertFactory
2014-01-31 23:07:24 +00:00
Kenny Root
4f2323106b Remove DRLCertFactory
No longer needed since Conscrypt is the main provider.

Change-Id: Iee741ef376af2de52db79df07e96057438778bc6
2014-01-31 14:10:15 -08:00
Chris Craik
5438979e49 Move GLES20DisplayList functionality into DisplayList
Removes unneeded indirection layer

Change-Id: I75d3e369eda2788cbc52a3575c4e1c521e842f59
2013-12-20 13:53:50 -08:00
Kenny Root
e6585b32ea Use java.util.Objects instead on internal API
Not needed since java.util.Objects implements all the needed
functionality.

Change-Id: Icd31d49a9801d1705427f028e9ac927d58e7d34c
2013-12-13 13:40:30 -08:00
Kenny Root
e1263de835 Add GCMParameterSpec to preloaded-classes
Needed for Bouncycastle 1.50 upgrade with art.

Change-Id: I901122c1ce21abba437a7537e70331724c3cbc9c
2013-12-13 00:40:00 +00:00
Kenny Root
53bcf2264c preloaded-classes: remove some OpenSSLCipher modes
Some cipher modes were removed from OpenSSLCipher. This change removes
those classes from the preloaded classes list.

Change-Id: Ib4450c392513973836684b4d5df7fffb200b6260
2013-12-09 14:03:02 -08:00
Kenny Root
744f562c4d Add CertStoreParameters to preloaded-classes
For image creating, art needs this in the preloaded-classes list.
Otherwise it complains loudly about not being able to load it from a
class initializer in Provider.java.

Change-Id: Ie7ed5655cba038b504767c3de9f70b47a8965cce
2013-12-09 13:49:29 -08:00
Torne (Richard Coles)
6067d1a3c7 Remove old WebView classes from zygote preload list.
Don't preload java classes used only by the old WebView implementation.

Bug: 10427705
Change-Id: I1378ab564ef2d173e08806c30d1deb6020d65ba8
2013-10-15 10:45:18 +01:00
Brian Carlstrom
d6b964c16b Update preloaded-classes for KLP
Bug: 9189353
Change-Id: I9136692d7f23a513553981eca398351f28b5ddc6
2013-10-09 20:45:30 -07:00
Jonathan Dixon
caee47f096 Merge "Preparation for deleting WebViewClassic" into klp-dev 2013-09-11 17:59:42 +00:00
Adam Skory
aae67e11bc Fix bad references in preloaded-classes
http://ag/352924 renamed INdefPushCallback
to IAppCallback. Update preloaded-classes
to reflect this.

This is a cherry-pick of Id552e94e3a01cdd61593480f3c0aedb32d185f80

Change-Id: I0901f14fb41f94e3c7572c09e090ec5903a878d1
2013-09-11 18:35:33 +01:00
Jonathan Dixon
22e90cf2b0 Preparation for deleting WebViewClassic
Bug: 10427705

- layoutlib has references to classes that no longer build into the host
  core JAR when WebViewClassic is removed.
- preloaded-classes should not reference WebViewClassic classes.

Change-Id: I4d6773a88ea2932982278127a3c96d38be54ddf5
2013-08-25 23:02:37 -07:00
Elliott Hughes
58b5057c6e am c40e46e8: am bfe1b801: Merge "Update preloaded-classes"
* commit 'c40e46e8413c112186eadc8526d20306d81c9008':
  Update preloaded-classes
2013-07-30 14:10:43 -07:00
Sungmin Choi
66fe96aa65 Update preloaded-classes
Change-Id: I42247e498ad532e3f4699bc87c0d314cde74e3f6
2013-07-30 13:50:27 -07:00
Torne (Richard Coles)
03ce9b3e69 Enable preloading of the appropriate WebView.
Allow the appropriate WebView to be preloaded in the zygote by
constructing the currently selected WebViewFactoryProvider when the
WebViewFactory is preloaded. At runtime, if the preloaded provider is
still the current selection, the preloaded instance is used, otherwise
the provider is loaded at that time.

This change also removes "graceful" fallback from the experimental
WebView to the classic implementation: if the option to use the
experimental WebView is selected and it could not be loaded
successfully at the time a WebView is created, an exception will be
thrown, rather than allowing execution to continue with the classic
implementation, as the fallback may mislead developers who do not
examine logcat output in detail.

Change-Id: I0cd01c784d7048abeac55ab5863ca16b8fd9ecf2
2013-06-19 15:03:08 +01:00
Kenny Root
e9ae6822a8 resolved conflicts for merge of 1f6e789b to jb-mr2-dev-plus-aosp
Change-Id: I06c05d637613215b6d83df3e29cd495f6a5a0176
2013-04-29 23:09:03 -07:00
Kenny Root
12e752225a Track change to JSSE provider
Change-Id: I35e824e47ad758ab6408e91e2ba5dcda053a82f5
2013-04-29 15:15:27 -07:00
Kenny Root
9787b80ea8 Update preloaded classes
Bug: 5213043
Change-Id: I272500ce7f6ea6bfbc624c9705f8c8b8ef1aa0ad
2013-04-26 13:38:07 -07:00
Sungmin Choi
42bb0307f8 update preloaded-classes
Remove some preloaded-classes and fix typo for deleting log messages
as the followings during booting.

W/Zygote  (  163): Class not found for preloading: android.bluetooth.
BluetoothAudioGateway
W/Zygote  (  163): Class not found for preloading: android.bluetooth.
HeadsetBase
W/Zygote  (  163): Class not found for preloading: undroid.content.Ab
stractThreadedSyncAdapter$SyncThread

Change-Id: Id02e0cccaeb150f48e12d67b2d691df828842e4c
2013-03-11 09:59:13 -07:00
Siva Velusamy
c0373dfdc1 Do not preload videoeditor_jni since it breaks the emulator
Video editing is not supported on the emulator, so preloading
this causes the emulator to crash while booting up.

Bug 7200384

Change-Id: I1915d888be328c20aa66ca2318722d5b6e6342b0
2012-09-24 10:34:42 -07:00
Kenny Root
dbf30edf76 Update preloaded-classes for JB-MR1
Bug: 5213043
Change-Id: I13fa58fded8e47d2f11d1fbe6724bd81ce35276a
2012-09-19 13:32:21 -07:00
SangWook Han
fd9cb499e5 Update preloaded-classes for JB
Change-Id: Id127308529d581c94bd2e911b637931156ce82c1
2012-08-12 19:46:51 +09:00
Dianne Hackborn
6b57b7e4d5 Update perf tests to always run each test in a fresh process.
Also some new classes to preload.

Change-Id: Ia2b5f856eaee533b9603b533ebaf8cb55e2ac193
2011-11-07 14:45:49 -08:00
Jesse Wilson
62c670fad7 Fix preloaded classes for the emulator.
Bug: http://b/5216395

Change-Id: I36f406e97d45bc4d50a4fd1ebeb880cf0eead7f2
2011-08-25 23:51:56 -04:00
Jesse Wilson
0d8eeb446e New preloaded classes for ICS.
Bug: http://b/3379487
Change-Id: I0d6d637211cfba523ee3963e112a8a4c63320f39
2011-08-24 09:33:06 -04:00
Shaopeng Jia
e713576292 Renaming com.google.i18n.phonenumbers to com.android.i18n.phonenumbers
to avoid name collision.

Bug: 5157607
Change-Id: Ic397f371e381a71f17b0b70b955e89d08f7a9867
2011-08-12 13:25:41 +02:00
Romain Guy
08645eb0f4 Revert "Don't preload HardwareRenderer, its static initialization is process dependant."
This reverts commit 821e24336b3ab1f902fc3ee8da423226f50b540c.
2011-07-12 19:09:03 -07:00
Romain Guy
821e24336b Don't preload HardwareRenderer, its static initialization is process dependant.
Change-Id: I229357aaaa10b19209983c122f98dd3c07e01d7f
2011-07-12 18:16:35 -07:00
Brian Carlstrom
929a1c2192 Removing android.security.MessageDigest
Bug: 3392028
Change-Id: I6b9732da17d086ba00c846c3ad1c7fb39baf9502
2011-02-01 22:25:47 -08:00
Brian Carlstrom
4140faeebb Tracking jarjar of org.bouncycastle to com.android.org.bouncycastle
Bug: 3086427
Change-Id: I7af99fe4c36d9a519777f0499ccab65646313879
2011-01-24 18:17:21 -08:00
Jesse Wilson
8068618ebe Update preloaded-classes for Honeycomb.
We preload classes for two reasons. Classes that are popular can be
shared and can increase the number of apps that can be run concurrently.
Classes that initialize slowly can be initialized at system boot time
by the zygote, decreasing the time to launch a specific app.

To select which classes to preload, I exercised Android's built-in apps
as well as these apps from Market: ESPN score center, Amazon, Flixster,
Twitter, Adobe Reader, Ebay Mobile, Facebook, Solitare (Ken Magic),
Barcode Reader, Google Earth and Square.

A cycle of launching ~460 (non unique) activities in sequence took 9m35s
with the previous preloaded-classes list. The update improves the launch
time of the same sequence to 9m27s: the marginal improvement over the
previous set of preloaded classes is negligible.

http://b/3004763

Change-Id: Ida511ae31eeff6d95d9cb6aacae68b9bb9dd2ebe
2011-01-21 17:25:55 -08:00
Dan Bornstein
ffdf487b6f am 73cd0c39: am 7dbeb24a: This class no longer exists.
* commit '73cd0c39bb1289704df3f3266ecedd3ed561d48c':
  This class no longer exists.
2010-11-05 13:12:48 -07:00
Dan Bornstein
7dbeb24a9f This class no longer exists.
Change-Id: I2ec8a1687aa699a236fd83afba89066d07a0bcc2
2010-11-04 16:17:52 -07:00
Kenny Root
f25d24b2c7 resolved conflicts for merge of 8b1082bb to master
Change-Id: If9d898123894c53bf83ac28cc7c03cd849c8ef17
2010-10-15 13:10:01 -07:00
Bjorn Bringert
c9332fa3e9 Delete unused WebView drag tracking code
This also removes android.graphics.utils.BoundaryPatch
which was only used by the Browser for the unused drag
tracking (and by a demo app that I'm also removing).

Change-Id: I48253ae005ab11cb4c70d132bc1ea4f2692e2bd2
2010-10-14 09:39:25 +01:00
Jesse Wilson
eaca10e2d0 Regenerate preloaded classes for Gingerbread.
Unlike previous releases where the set of classes-to-be-preloaded
was generated on a first-generation device (G1 and MyTouch 3G), this
round I used a second-generation device, a Nexus One. As a consequence,
class loading is faster (win) and fewer classes hit the 1250ms threshold.
Instead of sharing classes based on load time alone, classes are now shared
based on the number of applications loading them.

Change-Id: I18f7aa3e7e6258818871b3968b515c06314371b3
http://b/2546002
2010-10-13 16:55:26 -07:00