Skip to content

Commit

Permalink
fix aarch64 devices can not boot problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator authored and Administrator committed Apr 26, 2020
1 parent 814ef94 commit 524021c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
multiDexEnabled true
minSdkVersion 17
targetSdkVersion 28
versionCode 191008
versionName "2.08"
versionCode 200426
versionName "2.11"
}
buildTypes {
release {
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/java/me/xuzhi/aria2cdroid/Aria2Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ public void onCreate() {
String[] abis = DeviceUtils.getABIs();
boolean is64bit = (Arrays.binarySearch(abis, "arm64-v8a") >= 0);

if (is64bit) {
boolean useAarch64Support = false;

if (is64bit && useAarch64Support) {
boolean exist = fileAria2c.exists() && (fileAria2c.length() == 5843568);
sendMessage(ARIA2_SERVICE_BIN_CONSOLE, "aria2 version:v1.35.0");
if (!exist) {
Expand Down

0 comments on commit 524021c

Please sign in to comment.