Monday, January 20, 2020

arm processors - Are APKs architecture-independent?


Android devices have different processors like ARM and Intel processors. Can Android apps run just the same regardless of which architecture the device has? Or are there apps that will only run on ARM-architecture, etc?



Answer



Yes, applications (APKs) are independent of the architecture.



Android is made up of 4 major levels. Android Architecture


The apps you write is compiled into Dalvik EXecutable (DEX) code, which is finally converted into assembly code (according to the required architecture) by the kernel to send to the processor.


So, the kernel is the final one that's responsible to act according to the required architecture and it's compiled by the ROM developer accordingly.


The DEX code is always independent of the architecture, so that application developers needn't worry about the type of processor.


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...