In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Most people don't understand the knowledge points of this article "What is Android architecture?" Therefore, Xiaobian summarizes the following contents for everyone. The contents are detailed, the steps are clear, and they have certain reference value. I hope everyone can gain something after reading this article. Let's take a look at this article "What is Android architecture?"
Android loading process new version of the official website schematic diagram
The compiler converts your source code into a DEX (Dalvik Executable) file (which includes bytecode that runs on Android devices) and everything else into compiled resources.
APK Packager merges DEX files and compiled resources into a single APK. However, an APK must be signed before the app can be installed and deployed to Android devices.
APK Packager Sign your APK with debug or release keystore:
If you build a debug version of your app (that is, an app dedicated to testing and analysis), the packager signs your app with a debug keystore. Android Studio automatically configures new projects with the debug keystore.
If you build a release version of your app that you intend to distribute, the packager signs your app with the release keystore. To create a release keystore, read Sign your app in Android Studio
Before generating the final APK, the packager uses the zipalign tool to optimize the app to reduce its memory footprint when running on the device.
The old version of the official website schematic diagram
Android architecture
res resource files packaged by aapt to generate R.java, resources.arsc and res files (binary & non-binary such as res/raw and pic remain intact)
Process the.aidl file to generate the corresponding Java interface file
Compile R.java, Java interface files, Java source files through Java Compiler to generate.class files
Through dex command,.class files and.class files in third-party libraries are processed to generate classes.dex
Using apkbuilder tool, package resources.arsc and res files generated by aapt, assets file and classes.dex together to generate apk
debug or release the apk above via Jarsigner tool
Align the signed apk with zipalign tool.
There is a one-to-one correspondence between the file structure of Android project and the file structure of Android apk.
The essence of android app development is to compile and integrate source code and various resource files into one apk.
The essence of android reverse is to find a way to convert apk into source code and resource files.
Simply put, an apk is a zip package with a signature that protects the developer's rights and identifies the apk. As a first step in android reverse learning, it's important to understand the apk file structure and generation process. In order to improve the security performance of apk, the core code of many Android applications is now developed using NDK, so there will be an extra lib folder in the generated apk for storing so files.
The above is the content of this article about "What is Android architecture?" I believe everyone has a certain understanding. I hope the content shared by Xiaobian will be helpful to everyone. If you want to know more relevant knowledge content, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.