[android-developers] How does PackageManager detect what architecture APK targets?
Hello everyone, I'm currently trying to specifically target ARMv7 custom hardware and I'm facing issues when trying to install the APK. When I try doing adb install app.apk Logcat informs me that : W/PackageManager( 1062): Native ABI mismatch from package file And does not install the APK. With searching I was able to trace down that the problem might have something to do with the architectures not matching on the APK and the platform. Is this it? How does the PackageManager find out the architecture from the APK file? I'm guessing it's not trying to execute the binary or anything, it just checks the files meta data? If so, is there a place in the APK where this information is located? Or am I completely hitting blank here and I should look somewhere else? I appreciate all comments and tips. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How does PackageManager detect what architecture APK targets?
On Wed, Aug 11, 2010 at 5:55 AM, Mika mts...@googlemail.com wrote: I'm currently trying to specifically target ARMv7 custom hardware and I'm facing issues when trying to install the APK. When I try doing adb install app.apk Logcat informs me that : W/PackageManager( 1062): Native ABI mismatch from package file And does not install the APK. With searching I was able to trace down that the problem might have something to do with the architectures not matching on the APK and the platform. Is this it? Sure sounds that way. How does the PackageManager find out the architecture from the APK file? The APK file presumably has an NDK shared library that is incompatible with ARMv7. Everything else in an APK file should be architecture-independent. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en