@@ -101,15 +101,18 @@ static public String getName(boolean wear) {
101101
102102
103103 static public String getPreferredPlatform (boolean wear , String abi ) {
104- if (wear ) {
105- return AndroidBuild .TARGET_PLATFORM ;
106- } else if (abi .equals ("arm" )) {
107- // The ARM images using Google APIs are too slow, so use the
108- // older Android (AOSP) images.
109- return "android-" + TARGET_SDK_ARM ;
110- } else {
111- return AndroidBuild .TARGET_PLATFORM ;
112- }
104+ // if (wear) {
105+ // return AndroidBuild.TARGET_PLATFORM;
106+ // } else if (abi.equals("arm")) {
107+ // // The ARM images using Google APIs are too slow, so use the
108+ // // older Android (AOSP) images.
109+ // return "android-" + TARGET_SDK_ARM;
110+ // } else if (abi.equals("arm64-v8a")) {
111+ // return AndroidBuild.TARGET_PLATFORM;
112+ // } else {
113+ // return AndroidBuild.TARGET_PLATFORM;
114+ // }
115+ return AndroidBuild .TARGET_PLATFORM ;
113116 }
114117
115118 static public String getPreferredPort (boolean wear ) {
@@ -134,9 +137,8 @@ static public String getPreferredPort(boolean wear) {
134137 static protected String getPreferredTag (boolean wear , String abi ) {
135138 if (wear ) {
136139 return "android-wear" ;
137- } else if (abi .equals ("arm" )) {
138- // The ARM images using Google APIs are too slow, so use the
139- // older Android (AOSP) images.
140+ } else if (abi .contains ("arm" )) {
141+ // The ARM images are located in the default folder.
140142 return "default" ;
141143 } else {
142144 return "google_apis" ;
0 commit comments