Skip to content

Commit 47334a2

Browse files
author
tiann
committed
Remove: compile-pic not available on Android Q
1 parent 66a8055 commit 47334a2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

VirtualApp/lib/src/main/java/com/lody/virtual/helper/ArtDexOptimizer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import android.os.Build;
44

5+
import com.lody.virtual.helper.compat.BuildCompat;
6+
57
import java.io.File;
68
import java.io.IOException;
79
import java.io.InputStream;
@@ -43,7 +45,7 @@ public static void compileDex2Oat(String dexFilePath, String oatFilePath) throws
4345
commandAndParams.add("--oat-file=" + oatFilePath);
4446
commandAndParams.add("--instruction-set=" + VMRuntime.getCurrentInstructionSet.call());
4547
commandAndParams.add("--compiler-filter=everything");
46-
if (Build.VERSION.SDK_INT >= 22) {
48+
if (Build.VERSION.SDK_INT >= 22 && !BuildCompat.isQ()) {
4749
commandAndParams.add("--compile-pic");
4850
}
4951
if (Build.VERSION.SDK_INT > 25) {

0 commit comments

Comments
 (0)