New issue
Advanced search Search tips

Issue 738257 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Displaying a notification for a WebAPK takes longer after an OS upgrade

Project Member Reported by pkotw...@chromium.org, Jun 30 2017

Issue description

The WebAPK loads the "code which displays notifications" from a .dex file in Chrome's data directory. Chrome stores an optimized version of the .dex file in a subdirectory whose path depends on the Android OS version.

Currently, Chrome does not re-optimize the extracted .dex file after an Android OS upgrade. As a result, after an Android OS upgrade, the WebAPK uses the non-optimized .dex file which is slower.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Jul 6 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/95abea91b81222664fda250b57d2dd835e6bac2a

commit 95abea91b81222664fda250b57d2dd835e6bac2a
Author: pkotwicz <pkotwicz@chromium.org>
Date: Thu Jul 06 15:42:52 2017

[Android WebAPKs] Re-extract and optimize runtime library after Android OS upgrade

The runtime library .dex file is extracted into Chrome's data directory and is
optimized. The path of the optimized dex is dependent on the Android OS version
(because the default optimized dex location is different for each Android OS
version).

This CL re-extracts and optimizes the runtime library when Chrome is run after
an Android OS upgrade. This CL enables WebAPKs to load the runtime library
faster after an Android OS upgrade because they can use the "WebAPK runtime
library optimized dex" and don't need to fall back to the "non-optimized dex".

BUG= 738257 

Review-Url: https://codereview.chromium.org/2961313005
Cr-Commit-Position: refs/heads/master@{#484610}

[modify] https://crrev.com/95abea91b81222664fda250b57d2dd835e6bac2a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkVersionManager.java

Status: Fixed (was: Assigned)

Sign in to add a comment