nosdk--about Android Fool-style sub-package idea

Source: Internet
Author: User

All along, I have always been "good enough" for the reason, rarely maintained their own one-click Packaging Projects. Recently contacted the prism of the SDK, feel the APK package uploaded to the prism server, the background to sub-package this simple way is very popular.

The principle does not seem to be difficult, the APK is the zip compressed file, the decompression needs to deal with the main classes.dex, binary androidmanifest.xml and RESOURCES.ARSC files. The article reproduced in detail the use of the Android native instructions to compile the APK process, from which you can also learn how these files are generated.

NOSDK has now implemented the middle-tier code, but the pre-compilation of various platforms Classes.dex and Androidmanifest.xml files, unzip the APK, replace the various files, these steps are still not small project.

As to the validity of the article I have not yet experimented, so the future plan is divided into the following three steps:

  1. Use the native Android command to play a package, familiar with the apk in the role of the files and how to generate;
  2. Using one of the platforms in NOSDK, manually replace the files in the file for another platform to see if you can achieve the effect of platform switching (in fact, see if you can run it);
  3. Change the manual labor in 2 to automatic code implementation.

Of course, it will be more than three years to achieve these things with optimistic estimates.

Regarding the design after NOSDK, I think it needs to follow the following points:

  • Secure, so I'm not going to use the intermediate server layer, although it will certainly be used in order to synchronize server messages for different platforms, but I want it to be at least an example;
  • Open, it is certainly open source code, a lot of platform, certainly need a lot of people to access and even to maintain, if can therefore form a community, if everyone can work together to do one thing, it is naturally better;
  • Simple, of course, if you want it to be popular, first of all to ensure that its fool-like operation;
  • Stability, mainly the maintainability of code, extensibility.

Think so much first.

nosdk--about Android Fool-style sub-package idea

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.