Why is some application not supported by device with Intel processor


Question

Pokemon Go is releasing today but sadly I saw somewhere in the Internet stating that Niantic has claimed that the app is not supported by devices with intel processor (in my case asus zenfone 5). So I wonder why the type of processor will be one of the factors determining whether the app is compatible for the device. Any help is appreciated. =)


Answer

Note: This answer covers other apps than Pokémon Go, as Pokémon Go has been updated to work with x86 processors



Apps contain multiple architecture dependent and architecture independent parts:




  • Independent:




    • Dalvik code

    • Android resources

    • the Manifest


  • Dependent:




    • Libraries

    • Special assembly code in the Dalvik executable (rare but possible)




The major things are the libraries.

Those are shared objects (.so files) much like DLLs on Windows that contain bytecode.

They are compiled using the Android NDK (Native Development Kit) and are compiled for a specific architecture (like compiling Linux applications using a cross-compiler, ie. compile ARM code on an x86 machine).

In our example, this library can only be used in an ARM environment were the ARM bytecode is understood.



Some Android x86 devices (commercial phones/tablets, not the emulators) come with a special ARM Translation toolkit, aka. libhoudini. It basically translates ARM instructions to x86 instructions.

Those instructions however, are not optimized to run on x86 hardware and thus result in poor performance and high battery usage (the latter of those is one reason x86 is not primarily used in mobile processors).



The real problems are the developers:

Either:




  1. They do not compile their libraries (often containing proprietary code) for any other architecture, for some reason.


  2. They use specialized bytecode, only available on ARM so that any ARM Translator or libhoudini fails.




Luckily Pokémon Go received an update, allowing users of x86 devices to run the app, but other apps (mostly games) do require a real ARM device.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes