Hardware platform detection for non arm devices fixed.

pull/244/head
Alexander Smorkalov 12 years ago
parent c8b658fdb6
commit ee144852f2
  1. 8
      android/service/engine/jni/NativeService/CommonPackageManager.cpp

@ -144,6 +144,13 @@ int CommonPackageManager::GetHardwareRating(int platform, int cpu_id, const std:
{
int result = -1;
if ((cpu_id & ARCH_X86) || (cpu_id & ARCH_X64) || (cpu_id & ARCH_MIPS))
// Note: No raiting for x86, x64 and MIPS
// only one package is used
result = 0;
else
{
// Calculate rating for Arm
for (size_t i = 0; i < group.size(); i++)
{
if (group[i] == std::pair<int, int>(platform, cpu_id))
@ -152,6 +159,7 @@ int CommonPackageManager::GetHardwareRating(int platform, int cpu_id, const std:
break;
}
}
}
return result;
}

Loading…
Cancel
Save