Announced in October 2020, Arm, begin from 2022 IP, the future of all the Cortex - A "big nuclear" will only support 64 - bit code, Oppo and millet, two of China's leading mobile terminal manufacturers, and leading the Unity game engine (China) are for the Arm, announced the 64 migration and expressed support for the effort of,
Arm that moving to 64 - bit is China developers should be a positive step, if you want to build to meet consumer demand for new, more complex, safe and reliable, immersive experience, the app will need to be migrated to 64, in addition, by 2023 there will be only support 64 mobile device, then their app needs to be compatible with these devices,
64 can not only bring many benefits as an extremely [community) described in the blog, such as optimize performance, enhance security, improve the efficiency and reduce cost, but also the process of moving to 64 - bit app is very simple, do not have too much challenge, of course, below are listed in the process of moving to 64 - bit, Chinese developers need to consider some aspects as well as corresponding measures, please note that the following steps are based on developers use Google Android app development based on the assumption of Studio,
Check the app code
All made of the Java programming language or Kotlin write Android applications (including all the libraries or SDK) will be automatically can run on 64 mobile devices, for those native libraries to exclusive/third party issued a Java native interface (JNI) calls (for user behavior analysis, encryption, cloud services, etc.) of Java applications, these libraries also need to be migrated to a 64 - bit, can eliminate all 32-bit dependencies, and, most of the code written using Arm NEON instructions without change, can be compiled into a 64 - bit, but, if the app is using a local library, it must be 64 - bit version, it may require additional development work,
Check the native code
If developers do not know whether their app using native code, you can check the following three:
? Whether or not to use any C/C + + app code (native)
? Whether the app that is associated with any third party the local library
? App is used by a local repository is constructed from the third party app generator,
Use the APK examine local library
According to the application binary interface (ABI), the local library is stored in different folders, normally, for both 32-bit and 64 - bit architecture building APK or packets will have respectively for the two kinds of ABI folders, each folder contains a set of corresponding to the local library, if does not support 64, developers may only see the 32-bit ABI folder, but there was no 64 folders,
Use tools to check the local library
Developers can also use different tools to check the app in the local library, APK Analyzer is Android Studio of money available in the Android tool, can help developers to evaluate different aspects of an existing building APK, developers can unzip the APK to check the local library, because the structure of these files are similar to the compressed file, so can also take similar extraction way,
From 32-bit to 64 - bit
If the code is run smoothly on iOS, you don't need to do any extra work, but, if this was the first time application code to build for a 64 - bit system, you need to solve the main problem is the pointer is no longer suitable for 32-bit integer int, therefore, developers need to int, unsigned or uint32_t type storage pointer code updates,
Reduce the size increase from 64
For application to add 64 - bit architecture support may lead to APK size increases, the Android App in the Bundle function can minimize the same APK that contains both 32-bit and 64 - bit code of scale effect, in most cases, the switch will be used for the use of the Android App Bundles actually helps to improve the size of the APK, even less than 32 bit application size,
Game developers
As we are in a very community blog mentioned, the three most commonly used game engine Unreal, Cocos2d - x and Unity are currently support 64 - bit, in fact, the leading game engine is supported by a 64 - bit for game developers is a good news, because for the third party game engine application migration is a lead time is very long and complex process,
Test the
After a 64 - bit version of the application is ready, should be able to provide the same as the 32 bit version of the quality and feature set, but this only by app testing to ensure that the test needs to be done on the support 64 - bit devices, fortunately, now China's domestic market most smart phones are compatible with 64 - bit,
Release the app
App ready, developers can release as usual, with the existing process, we suggest still continue to follow the best practices of app to deploy Android suggested using the closed-loop test track, first to a limited number of users, to ensure the quality of app,
To provide more information and support
According to the above information, Chinese developers to 64 of the migration process should be relatively easy, also have the fewest interference factors, only need to spend a small amount of cost or time migration finished, Chinese developers will be able to enjoy a variety of great benefits, for more detailed information, we recommend that you follow the Android development best practices or read Arm 64 white paper,
Arm is working in close cooperation with partners, to understand what the ecological system, technical or commercial problems get in the way of app to 64 migration, our suggestion to the Chinese developers are very simple - to start immediately, started moving to 64 - bit, now began to build a 64 - bit version of the application, the main development, optimization, and switch to 64 in the test platform, to carefully check the machine and the Java application, as soon as possible to upgrade all 32-bit library or engine,
Developers by attending or watching the Arm DevSummit annual developers' conference (China) video playback, know something about the Arm is committed to mobile devices in the Chinese market pushing 64, and how to migrate to a 64 - bit app for more information,