Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ban 32bit app from selection list
Signed-off-by: tiann <[email protected]>
  • Loading branch information
tiann committed Jul 9, 2020
commit a455358c6cf22e16e6070d3e0a4696a8124f70e4
2 changes: 1 addition & 1 deletion VirtualApp/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ android {
android {
defaultConfig {
ndk {
abiFilters "armeabi-v7a", "x86"
abiFilters "arm64-v8a", "x86_64"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public void onBindViewHolder(ViewHolder holder, int position) {
holder.itemView.setOnClickListener(v -> {
mItemEventListener.onItemClick(info, position);
});
holder.itemView.setEnabled(info.is64bit);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ public class AppInfo {
public CharSequence version;
public int cloneCount;
public boolean disableMultiVersion;
public boolean is64bit;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.lody.virtual.GmsSupport;
import com.lody.virtual.client.core.InstallStrategy;
import com.lody.virtual.client.core.VirtualCore;
import com.lody.virtual.helper.compat.NativeLibraryHelperCompat;
import com.lody.virtual.helper.utils.DeviceUtil;
import com.lody.virtual.remote.InstallResult;
import com.lody.virtual.remote.InstalledAppInfo;
Expand Down Expand Up @@ -200,6 +201,7 @@ private List<AppInfo> convertPackageInfoToAppData(Context context, List<PackageI
info.disableMultiVersion = true;
info.cloneCount = 0;
}
info.is64bit = NativeLibraryHelperCompat.isApk64(ai.sourceDir);
list.add(info);
}
// sort by name
Expand Down
1 change: 0 additions & 1 deletion VirtualApp/lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ android {
versionName "1.0"
externalNativeBuild {
ndkBuild {
// abiFilters "armeabi-v7a", "x86"
abiFilters "arm64-v8a", "x86_64"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,7 @@ private static Set<String> getABIsFromApk(String apk) {
return null;
}

public static boolean isApk64(String apk) {
return isVM64(getABIsFromApk(apk));
}
}