CN108052328A - A kind of construction method of Android system and its application - Google Patents
A kind of construction method of Android system and its application Download PDFInfo
- Publication number
- CN108052328A CN108052328A CN201711113367.4A CN201711113367A CN108052328A CN 108052328 A CN108052328 A CN 108052328A CN 201711113367 A CN201711113367 A CN 201711113367A CN 108052328 A CN108052328 A CN 108052328A
- Authority
- CN
- China
- Prior art keywords
- mirror images
- init
- android system
- kernel
- services
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Construction method and its application the invention discloses a kind of Android system, belong to computer application system field, and construction method includes:According to yaml file contents, kernel mirror images, init mirror images and services mirror images are pulled from remote warehouse or kernel mirror images, init mirror images and services mirror images are built by Dockerfile modes in local;Kernel mirror images and init mirror images are run by QEMU in Linux platform, and carry services mirror images during operation obtain Android system.The present invention is for can not quickly and easily dispose Android application under general Linux platform the defects of, it is proposed that a kind of construction method of Android system, this method enable to general Linux platform also can easily and efficiently run Android system.This method compensates for existing container technique and shares limitation caused by kernel, and the Android system in a manner of virtual machine that compares due to the use of host, and startup speed is fast, mirror image is small, can quickly and easily dispose Android application.
Description
Technical field
The invention belongs to computer application system field, a kind of construction method more particularly, to Android system and its
Using.
Background technology
With the fast development of cloud computing technology, how beyond the clouds service arrangement has been arrived high in the clouds by more and more enterprises,
Rapid deployment, which is applied and efficiently provides service, is increasingly becoming the main problem that business research personnel face.In existing cloud
In computing platform, cloud computing resources are supplied to user in a manner of virtual machine instance mostly, to use a virtual machine instance, must
Must be its installation operation system and starting up, current step all has delay expense, by taking Amazon EC2 as an example, one
M1.medium configuration virtual machine average start-up time be about 26 seconds, this also not using mirror image create virtual machine when
Between.For the mobile application of time-sensitive, this seriously affects user experience.Using Docker as representative container technique due to
Have many advantages, such as lightweight, be easy to transplanting, elastic telescopic and obtain extensive concern, the cloud platform based on container is also more and more
Enterprise in be applied.
The application scenarios of container are broadly divided into two classes at present, and one kind is to follow the original that a container corresponds to single process service
Then, it is known as application container, this mode is utilized extensively often as the means of resource Quick Extended by personal or enterprise customer,
The Typical Representative of this kind of container is exactly Docker and rkt, and having become enterprise platform exploitation O&M at present in the process must not
The instrument that can lack, mainly solves the problems, such as the whole packing of App+ runtime environments, more efficiently can be developed and be transported
Dimension, also can easily be transplanted.It is another kind of to be similar to virtual machine, the operating system system of an isolation is operated in container,
It is referred to as operating system grade container, the operating system in this kind of container shares same kernel with host operating system, still
Provide the container techniques such as the isolation of individual user's space, LXC, 0penVZ and Linux VServer be suitable for for
Operating system grade container is built, process level resource isolation during application operation is mainly solved the problems, such as, is compared to application container
It is safer, and also can more efficiently utilize hardware.
Compared to virtual machine, existing Docker container techniques are wanted to run due to shared host kernel, application service
The support of host kernel must be just obtained in container, although the container being currently running in general Linux platform can prop up
Substantial portion of application service is held, but just can not be in container for the mobile application of kernel specific environment is depended on to service
Operation.
It can be seen that the prior art there is technical issues that quickly and easily dispose Android.
The content of the invention
For the disadvantages described above or Improvement requirement of the prior art, the present invention provides a kind of Android system construction method and
It is applied, and thus solves the prior art and there is technical issues that quickly and easily dispose Android.
To achieve the above object, one side according to the invention provides a kind of construction method of Android system, bag
It includes:
(1) according to yaml file contents, kernel mirror images, init mirror images and services mirror images are pulled from remote warehouse
Or kernel mirror images, init mirror images and services mirror images are built by Dockerfile modes in local;
(2) kernel mirror images and init mirror images are run by QEMU in Linux platform, carry services mirrors during operation
Picture obtains Android system.
Further, kernel mirror images include binder modules needed for Android system interprocess communication, anonymous memory is total to
Enjoy ashmem modules and system log logger modules.
Further, init mirror images include an executable init file and one is used for by init executable programs
The file init.rc of parsing.
Further, kernel mirror images, init mirror images and services mirror images are OCI forms.
Further, the specific implementation of step (1) is:
According to yaml file contents, the titles of kernel mirror images, the title of init mirror images and services mirror images are obtained
Title is locally searching whether the titles of kernel mirror images, if it is not, from remote warehouse pull kernel mirror images or
Kernel mirror images are built by Dockerfile modes in local, locally the title of init mirror images are being searched whether, if do not had
Have, then pull init mirror images from remote warehouse or init mirror images are built by Dockerfile modes in local, looked into locally
Whether have the title of services mirror image, if it is not, pulling services mirror images or locally logical from remote warehouse if looking for
It crosses Dockerfile modes and builds services mirror images.
To achieve the above object, other side according to the invention provides a kind of application of Android system, the peace
Tall and erect system is built by above-mentioned construction method, and the application program of Android system, the application journey of Android system are obtained according to Android system
Sequence is run in Docker containers.
In general, by the above technical scheme conceived by the present invention compared with prior art, it can obtain down and show
Beneficial effect:
(1) the defects of present invention is for can not quickly and easily dispose Android application under general Linux platform, it is proposed that one
The construction method of kind Android system, this method enable to general Linux platform also can easily and efficiently run Android system.It should
Method compensates for existing container technique and shares limitation caused by kernel due to the use of host, and compares with the side of virtual machine
Formula Android system, startup speed is fast, mirror image is small, can quickly and easily dispose Android application.
(2) kernel mirror images, init mirror images and the services mirror images that the present invention is built are convenient and easy with deployment
Iteration update replacement etc. is specific, and it is all that can lead to that foundation image, which includes kernel mirror images, init mirror images and services mirror images,
The modes such as update Dockerfile are crossed to be iterated update.Therefore, in terms of deployment and maintenance system all easily.
(3) Android system that the present invention is built has independent kernel, need not carry out any change to host kernel,
And it can keep synchronous with newest interior nuclear properties, it is strong in security performance height, scalability.
(4) present invention is run using kernel mirror images and init mirror images by QEMU in Linux platform, carry during operation
Services mirror images, obtain Android system.Carry services mirror images can be shared when multiple Android systems are run simultaneously,
Reduce data redundancy.
(5) present invention enables to the Android system built to operate in common Linux platform, and according to peace
Tall and erect system obtains the application program of Android system, and the application program of Android system is run in Docker containers, compensated for existing
Docker container techniques are due to limitation caused by shared host kernel.
Description of the drawings
Fig. 1 is a kind of flow chart of the construction method of Android system provided in an embodiment of the present invention.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.As long as in addition, technical characteristic involved in the various embodiments of the present invention described below
Conflict is not formed each other to can be combined with each other.
Docker container instances and host sharing operation system kernel, isolating power is clothes during the operation provided by kernel
Business provides independent user domain, file system, network and process running space.And each example of virtual machine carries operation system
System, thus be a kind of virtualization isolation of hardware level.Cause have spy to kernel just because of this of virtual machine and container species diversity
The mobile Android application of provisioning request can not be operated in using Docker containers in general Linux platform.
As shown in Figure 1, the present invention provides a kind of construction method of Android system, including:
(1) according to yaml file contents, title, the title of init mirror images and the services mirror images of acquisition kernel mirror images
Title, locally searching whether the titles of kernel mirror images, if it is not, from remote warehouse pull kernel mirror images or
Person builds kernel mirror images in local by Dockerfile modes, is locally searching whether the title of init mirror images, if
No, then init mirror images are pulled from remote warehouse or init mirror images is built by Dockerfile modes in local, in local
The title of services mirror images is searched whether, if it is not, pulling services mirror images or in local from remote warehouse
Services mirror images are built by Dockerfile modes.
(2) kernel mirror images and init mirror images are run by QEMU in Linux platform, carry services mirrors during operation
Picture obtains Android system.
The embodiment of the present invention is preferred, and it is general linux kernel mirror image that kernel mirror images, which are not, but contains startup
Kernel module necessary to Android system, kernel mirror images include Android system interprocess communication needed for binder modules, hide
Name memory sharing ashmem modules and system log logger modules.
The embodiment of the present invention is preferred, the init program images of init mirror images and non-universal Linux, but passes through customization
, suitable for the mirror image of Android system, the container based on the mirror image can be when starting, and parsing Android is distinctive
Init.rc files start necessary Android system service.Init mirror images include an executable init file and a use
In the file init.rc parsed by init executable programs.
The embodiment of the present invention is preferred, and it is common that kernel mirror images, init mirror images and services mirror images, which are not,
Docker mirror-image formats, but general OCI forms.Subsequently to be run by runc.
Compared to virtual machine, existing Docker container techniques are wanted to run due to shared host kernel, application service
The support of host kernel must be just obtained in container, although the container being currently running in general Linux platform can prop up
Substantial portion of application service is held, but just can not be in container for the mobile application of kernel specific environment is depended on to service
Operation.
Therefore, the defects of present invention is for can not quickly and easily dispose Android application under general Linux platform, it is proposed that
A kind of construction method of Android system, this method enable to general Linux platform also can easily and efficiently run Android system.
This method compensates for existing container technique and shares limitation caused by kernel due to the use of host, and compares with virtual machine
Mode Android system, startup speed is fast, mirror image is small, can quickly and easily dispose Android application.This method enables to build
Android system out is operated in common Linux platform, and obtains the application program of Android system according to Android system,
The application program of Android system is run in Docker containers, compensates for existing Docker container techniques due in shared host
Limitation caused by core.
As it will be easily appreciated by one skilled in the art that the foregoing is merely illustrative of the preferred embodiments of the present invention, not to
The limitation present invention, all any modification, equivalent and improvement made within the spirit and principles of the invention etc., should all include
Within protection scope of the present invention.
Claims (6)
1. a kind of construction method of Android system, which is characterized in that including:
(1) according to yaml file contents, pulled from remote warehouse kernel mirror images, init mirror images and services mirror images or
Kernel mirror images, init mirror images and services mirror images are built by Dockerfile modes in local;
(2) kernel mirror images and init mirror images are run by QEMU in Linux platform, carry services mirror images during operation,
Obtain Android system.
2. a kind of construction method of Android system as described in claim 1, which is characterized in that the kernel mirror images include peace
Binder modules, anonymous memory sharing ashmem modules and the system log logger modules for communicating required between tall and erect system process.
3. a kind of construction method of Android system as described in claim 1, which is characterized in that the init mirror images include one
Executable init files and a file init.rc for being parsed by init executable programs.
A kind of 4. construction method of Android system as described in claim 1-3 is any, which is characterized in that the kernel mirrors
Picture, init mirror images and services mirror images are OCI forms.
A kind of 5. construction method of Android system as claimed in claim 4, which is characterized in that the specific reality of the step (1)
Now mode is:
According to yaml file contents, the title of the titles of kernel mirror images, the title of init mirror images and services mirror images is obtained,
The title of kernel mirror images is locally being searched whether, if it is not, pulling kernel mirror images or at this from remote warehouse
Ground builds kernel mirror images by Dockerfile modes, is locally searching whether the title of init mirror images, if it is not,
Init mirror images are pulled from remote warehouse or init mirror images are built by Dockerfile modes in local, are searched whether locally
There is the title of services mirror images, if it is not, pulling services mirror images from remote warehouse or passing through locally
Dockerfile modes build services mirror images.
6. a kind of application of Android system, which is characterized in that the Android system is by any structure sides of claim 1-3
Method is built, and obtains the application program of Android system according to Android system, the application program of Android system is transported in Docker containers
Row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711113367.4A CN108052328A (en) | 2017-11-09 | 2017-11-09 | A kind of construction method of Android system and its application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711113367.4A CN108052328A (en) | 2017-11-09 | 2017-11-09 | A kind of construction method of Android system and its application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108052328A true CN108052328A (en) | 2018-05-18 |
Family
ID=62120038
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711113367.4A Pending CN108052328A (en) | 2017-11-09 | 2017-11-09 | A kind of construction method of Android system and its application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108052328A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109388473A (en) * | 2018-09-19 | 2019-02-26 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | Android compatible layer implementation method and system based on mobile operating system |
CN109542524A (en) * | 2018-11-22 | 2019-03-29 | 铭软件股份有限公司 | A kind of Linux and the mutual fast switch over method of Android |
CN109977093A (en) * | 2019-04-04 | 2019-07-05 | 中科创达(重庆)汽车科技有限公司 | More virtual systems based on LXC check the method and device of container log |
CN110908671A (en) * | 2018-09-18 | 2020-03-24 | 北京京东尚科信息技术有限公司 | Method and device for constructing docker mirror image and computer readable storage medium |
CN111881458A (en) * | 2020-07-30 | 2020-11-03 | 光通天下网络科技股份有限公司 | Shooting range system for android native app vulnerability |
CN113094349A (en) * | 2021-03-29 | 2021-07-09 | 惠州华阳通用电子有限公司 | Dual-system log reporting method and system based on virtual machine |
CN113703926A (en) * | 2021-10-29 | 2021-11-26 | 北京海誉动想科技股份有限公司 | Android container creation method and device |
WO2021254214A1 (en) * | 2020-06-20 | 2021-12-23 | 华为技术有限公司 | Migration method and apparatus for android application program |
CN118377585A (en) * | 2024-06-25 | 2024-07-23 | 成都阿加犀智能科技有限公司 | Method, device, medium and equipment for applying Docker container in android system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102968342A (en) * | 2012-11-12 | 2013-03-13 | 华中科技大学 | Method for carrying out para-virtualization under embedded platform to rapidly switch guest operating system |
US20130091557A1 (en) * | 2011-10-11 | 2013-04-11 | Wheel Innovationz, Inc. | System and method for providing cloud-based cross-platform application stores for mobile computing devices |
CN106599714A (en) * | 2016-11-15 | 2017-04-26 | 厦门市美亚柏科信息股份有限公司 | Reduction method and device for Android terminal full-disk enciphered data |
-
2017
- 2017-11-09 CN CN201711113367.4A patent/CN108052328A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130091557A1 (en) * | 2011-10-11 | 2013-04-11 | Wheel Innovationz, Inc. | System and method for providing cloud-based cross-platform application stores for mobile computing devices |
CN102968342A (en) * | 2012-11-12 | 2013-03-13 | 华中科技大学 | Method for carrying out para-virtualization under embedded platform to rapidly switch guest operating system |
CN106599714A (en) * | 2016-11-15 | 2017-04-26 | 厦门市美亚柏科信息股份有限公司 | Reduction method and device for Android terminal full-disk enciphered data |
Non-Patent Citations (2)
Title |
---|
吴松 等: "Container-Based Cloud Platform for Mobile Computation Offloading", 《2017 IEEE INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM (IPDPS)》 * |
志敏: "Docker CTO Solomon说的LinuxKit到底是什么?", 《HTTPS://YQ.ALIYUN.COM/ARTICLES/74440》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110908671A (en) * | 2018-09-18 | 2020-03-24 | 北京京东尚科信息技术有限公司 | Method and device for constructing docker mirror image and computer readable storage medium |
CN109388473A (en) * | 2018-09-19 | 2019-02-26 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | Android compatible layer implementation method and system based on mobile operating system |
CN109542524A (en) * | 2018-11-22 | 2019-03-29 | 铭软件股份有限公司 | A kind of Linux and the mutual fast switch over method of Android |
CN109977093A (en) * | 2019-04-04 | 2019-07-05 | 中科创达(重庆)汽车科技有限公司 | More virtual systems based on LXC check the method and device of container log |
WO2021254214A1 (en) * | 2020-06-20 | 2021-12-23 | 华为技术有限公司 | Migration method and apparatus for android application program |
CN111881458A (en) * | 2020-07-30 | 2020-11-03 | 光通天下网络科技股份有限公司 | Shooting range system for android native app vulnerability |
CN113094349A (en) * | 2021-03-29 | 2021-07-09 | 惠州华阳通用电子有限公司 | Dual-system log reporting method and system based on virtual machine |
CN113703926A (en) * | 2021-10-29 | 2021-11-26 | 北京海誉动想科技股份有限公司 | Android container creation method and device |
CN113703926B (en) * | 2021-10-29 | 2022-03-08 | 北京海誉动想科技股份有限公司 | Android container creation method and device |
CN118377585A (en) * | 2024-06-25 | 2024-07-23 | 成都阿加犀智能科技有限公司 | Method, device, medium and equipment for applying Docker container in android system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108052328A (en) | A kind of construction method of Android system and its application | |
Liu et al. | The research and implementation of cloud computing platform based on docker | |
US20210314223A1 (en) | Managing Virtual Network Functions | |
US11683220B2 (en) | In-memory workflow management in edge devices | |
US9720668B2 (en) | Creating and maintaining multi-tenant applications in a platform-as-a-service (PaaS) environment of a cloud computing system | |
CN110727653A (en) | Multi-project load balancing method and device | |
CN103595801B (en) | Cloud computing system and real-time monitoring method for virtual machine in cloud computing system | |
US9292557B2 (en) | Managing virtual machines using hierarchical labeling | |
KR102453818B1 (en) | MANAGING MULTI-SINGLE-TENANT SaaS SERVICES | |
US11356534B2 (en) | Function repository selection mode and signaling for cloud based processing | |
KR20180004777A (en) | Executing instructions on virtual machine instances in a distributed computing environment | |
US10356169B1 (en) | Virtual content delivery network | |
US11544108B2 (en) | Method and apparatus for functional improvements to moving picture experts group network based media processing | |
US11683365B2 (en) | Service correlation across hybrid cloud architecture to support container hybridization | |
US20230224347A1 (en) | Splitter and merger functions for multidimensional segmented media data | |
CN115617420B (en) | Application program generation method, device, equipment and storage medium | |
US8930967B2 (en) | Shared versioned workload partitions | |
US9626213B2 (en) | System and method for file injection in virtual machine configuration | |
EP4026012A1 (en) | Nonessential input, output and task signaling in workflows on cloud platforms | |
US11222164B2 (en) | Adding custom content to an existing documentation suite | |
US11539776B2 (en) | Method for signaling protocol characteristics for cloud workflow inputs and outputs | |
US20220263923A1 (en) | Function repository selection mode and signaling for cloud based processing | |
CN114168156A (en) | Multi-tenant data persistence method and device, storage medium and computer equipment | |
US20210406227A1 (en) | Linking, deploying, and executing distributed analytics with distributed datasets | |
US10862952B1 (en) | Migration of operational computing hardware to a data center |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180518 |
|
RJ01 | Rejection of invention patent application after publication |