Skip to content

Commit

Permalink
do not skip dexopt when installing
Browse files Browse the repository at this point in the history
  • Loading branch information
rk700 committed Jul 10, 2017
1 parent b85219a commit c444f5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import com.lody.virtual.GmsSupport;
import com.lody.virtual.client.core.VirtualCore;
import com.lody.virtual.helper.utils.VLog;
import com.lody.virtual.os.VUserInfo;
import com.lody.virtual.os.VUserManager;
import com.lody.virtual.remote.InstallResult;
Expand Down Expand Up @@ -127,7 +128,7 @@ class AddResult {
PackageAppData data = addResult.appData;
data.isLoading = true;
mView.addAppToLauncher(data);
handleOptApp(data, info.packageName, false);
handleOptApp(data, info.packageName, true);
} else {
MultiplePackageAppData data = new MultiplePackageAppData(addResult.appData, addResult.userId);
data.isLoading = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private List<AppInfo> convertPackageInfoToAppData(Context context, List<PackageI

@Override
public InstallResult addVirtualApp(AppInfoLite info) {
int flags = InstallStrategy.COMPARE_VERSION | InstallStrategy.SKIP_DEX_OPT;
int flags = InstallStrategy.COMPARE_VERSION; // do not SKIP_DEX_OPT since we want the hooked app compiled
if (info.fastOpen) {
flags |= InstallStrategy.DEPEND_SYSTEM_IF_EXIST;
}
Expand Down

0 comments on commit c444f5e

Please sign in to comment.