CN107102853B - Method for customizing mobile operating system to be compatible with Android application - Google Patents

Method for customizing mobile operating system to be compatible with Android application Download PDF

Info

Publication number
CN107102853B
CN107102853B CN201710185649.9A CN201710185649A CN107102853B CN 107102853 B CN107102853 B CN 107102853B CN 201710185649 A CN201710185649 A CN 201710185649A CN 107102853 B CN107102853 B CN 107102853B
Authority
CN
China
Prior art keywords
application
operating system
android
mobile operating
android application
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.)
Expired - Fee Related
Application number
CN201710185649.9A
Other languages
Chinese (zh)
Other versions
CN107102853A (en
Inventor
王佩光
曾楠
范叶平
郝悍勇
郭瑞祥
孙奉林
操李节
汪鹏
郭政
张地
李翔宇
姜家国
王超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Information and Telecommunication Co Ltd
Anhui Jiyuan Software Co Ltd
Original Assignee
State Grid Information and Telecommunication Co Ltd
Anhui Jiyuan Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by State Grid Information and Telecommunication Co Ltd, Anhui Jiyuan Software Co Ltd filed Critical State Grid Information and Telecommunication Co Ltd
Priority to CN201710185649.9A priority Critical patent/CN107102853B/en
Publication of CN107102853A publication Critical patent/CN107102853A/en
Application granted granted Critical
Publication of CN107102853B publication Critical patent/CN107102853B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded

Abstract

The invention relates to a method for customizing a mobile operating system to be compatible with Android application, which comprises the following steps: (1) refining a bottom layer shared by the native application and the Android application of the customized mobile operating system to form a uniform hardware adaptation layer; (2) adding a basic library supporting Android application operation in a basic class library of a customized mobile operating system; (3) on the basis of the operation environment of the customized mobile operation system, the Android application operation environment is increased by using the Dalvik virtual machine technology, so that the customized mobile operation system comprises two sets of application operation environments; (4) an Android application frame is added in an application frame layer of a customized mobile operating system, and meanwhile, an Android basic component is adapted, so that one window manager is used in two environments. The method and the system can enable the mobile terminal to run the native application and the Android application of the customized mobile operating system in a mode without switching the system, and bring convenience to the use of a user.

Description

Method for customizing mobile operating system to be compatible with Android application
Technical Field
The invention relates to the field of mobile operating systems, in particular to a method for customizing a mobile operating system to be compatible with Android application.
Background
With the rapid development of the mobile internet technology, the popularity of smart phones and other mobile terminal devices is increasing, and people start to adopt the mobile terminal devices to perform portable office work, so that the information security problem on the mobile terminal devices is very important, and the information security on the mobile terminal devices is mainly protected by a mobile operating system.
At present, the mainstream mobile operating systems are Android of Google and iOS of apple occupy most market shares of mobile internet application industry, the two operating systems are controlled by foreign companies, and for some industries related to secret security in China, industry customized mobile operating systems must be adopted to ensure the security of information. There are some domestic mobile operating systems, such as kylin and euphoria, which are used in some specific industries and form customized mobile operating systems by combining with the characteristics of the industries.
If the customized mobile operating system can run Android applications in a compatible manner, the Android applications which are widely used can be run in a compatible manner on the premise of ensuring information safety, and great convenience can be brought to users in production and life.
At present, a system is generally operated on mobile terminal equipment, for example, an iOS system is operated on an apple mobile phone, but some mobile terminal equipment can adopt a dual-system mode in order to operate Android applications, and one of the systems can be selected to operate by carrying two sets of operating systems on one mobile terminal before starting. Although the dual system mode can ensure that different types of applications can be run in one mobile terminal, once the system is started, only the native applications of the started system can be run, and the applications of other different types of operating systems cannot be run.
Disclosure of Invention
The invention aims to provide a method for enabling a customized mobile operating system to be compatible with an Android application, which can enable a mobile terminal to run a native application and an Android application of the customized mobile operating system in a mode without switching systems, and brings convenience to users.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for customizing a mobile operating system compatible with Android applications comprises the following steps:
(1) refining a bottom layer shared by the native application and the Android application of the customized mobile operating system to form a uniform hardware adaptation layer, so that the running environments of the customized mobile operating system and the Android application share a hardware abstraction layer and an inner core;
(2) adding a basic library supporting Android application operation in a basic class library of a customized mobile operating system;
(3) on the basis of the operation environment of the customized mobile operation system, the Android application operation environment is increased by using the Dalvik virtual machine technology, so that the customized mobile operation system comprises two sets of application operation environments;
(4) an Android application frame is added in an application frame layer of the customized mobile operating system, and meanwhile, the Android basic components are adapted, so that one window manager is used in two sets of running environments.
In the method for enabling the customized mobile operating system to be compatible with the Android application, in the step (3), the two sets of application running environments are a native application running environment and an Android application running environment ART respectively.
In the method for enabling the customized mobile operating system to be compatible with the Android application, in the step (4), an Android application frame is added in an application frame layer of the customized mobile operating system, and the Android basic components are adapted to enable two sets of environments to use one window manager, and the method specifically comprises the following steps:
(41) adding an Android application frame in an application frame layer of the customized mobile operating system, and providing a corresponding API (application programming interface) for Android application;
(42) adapting the basic component of the Android;
(43) and the soft graphic system enables the native application of the mobile operating system and the Android application to share one window manager management window.
According to the technical scheme, a unified hardware abstraction layer is formed, the basic class library supporting the Android application and the soft graphic system share the window manager, one system and two sets of running environments are realized, the customized mobile operating system application and the Android application can be run compatibly, the Android application compatibility function is avoided through system switching, and the system fluency and the user experience are improved while the Android application is compatible.
Drawings
FIG. 1 is a schematic structural view of the present invention;
fig. 2 is a flow chart of the method of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings:
as shown in fig. 1, a system of the method for enabling a customized mobile operating system to be compatible with an Android application according to this embodiment includes an application layer, an application framework layer, a base class library, an Android operating environment ART, a customized mobile operating system service, a hardware abstraction layer, and a kernel. The application layer comprises native application and Android application of a customized mobile operating system; the application framework layer comprises an Android application framework and a customized mobile operating system native application framework, and the application framework layer enables developers to compile extremely rich and novel application programs by providing a development platform; the basic class library also comprises a set of different libraries which need to be called when the two classes of applications run; the Android application and the customized mobile operating system adopt a set of corresponding running environment, the Android application program is an example in a Dalvik virtual machine and runs in a process of the Android application program and the customized mobile operating system supports the running of the native application of the system through system service of the customized mobile operating system and calling of a driving interface. The compatible method extracts the shared bottom layer, forms a uniform hardware adaptation layer, and customizes the hardware abstraction layer and the kernel shared by the mobile terminal operating system operating environment and the Android operating environment.
In this embodiment, the native application of the customized mobile operating system is replaced with a Qt application developed by the Qt application framework as its equivalent. The customized mobile operating system can adapt the Android basic component by utilizing the Qt combination layer in the application layer, so that the Qt can create the Qt basic component similar to the Android window, the Activity and the basic control, and finally, two types of applications can share one window manager to manage the window. Activity is an application component that provides a screen through which a user can interact in order to complete a task. All operations in Activity are closely related to the user, are a component responsible for interacting with the user, and can display a specified control through a system related function. In one application, an Activity is typically a separate screen on which controls may be displayed and in which user responses to events may be monitored and processed.
A method for customizing a mobile operating system compatible with Android applications comprises the following steps:
s1: refining a bottom layer shared by the native application and the Android application of the customized mobile operating system to form a uniform hardware adaptation layer, so that the running environments of the customized mobile operating system and the Android application share a hardware abstraction layer and an inner core;
s2: adding a basic library supporting the Android application to run in a basic class library of a customized mobile operating system, so that the native application and the Android application of the customized system can be respectively linked with the corresponding running libraries;
the basic class library of the customized mobile operating system comprises a set of two basic class libraries, an Android basic class library and a customized mobile operating system basic class library, and the Android basic class library and the customized mobile operating system basic class library are respectively called by the Android application and the customized mobile operating system native application during running.
S3: on the basis of the operation environment of the customized mobile operation system, the Android application operation environment is increased by using the Dalvik virtual machine technology, so that the customized mobile operation system comprises two sets of application operation environments; the two sets of application running environments are respectively a native application running environment and an Android application running environment ART.
S4: an Android application frame is added in an application frame layer of the customized mobile operating system, and meanwhile, the Android basic components are adapted, so that one window manager can be used in two environments.
The application framework layer of the customized mobile operating system comprises two application frameworks, namely an Android application framework and a customized mobile operating system native application framework, and the Android application framework and the customized mobile operating system native application framework are respectively adopted for developing the Android application and the customized mobile operating system native application.
S41: adding an Android application frame in an application frame layer of the customized mobile operating system, and providing a corresponding API (application programming interface) for Android application;
s42: adapting the Android basic component;
developing a basic component equivalent to Android based on Qt, so that Qt can create Qt basic components similar to Android windows, activities, and basic controls.
S43: and the soft graphic system enables the native application of the mobile operating system and the Android application to share one window manager management window.
The above-mentioned embodiments are merely illustrative of the preferred embodiments of the present invention, and do not limit the scope of the present invention, and various modifications and improvements of the technical solution of the present invention by those skilled in the art should fall within the protection scope defined by the claims of the present invention without departing from the spirit of the present invention.

Claims (2)

1. A method for customizing a mobile operating system compatible with Android application is characterized by comprising the following steps:
(1) refining a bottom layer shared by the native application and the Android application of the customized mobile operating system to form a uniform hardware adaptation layer, so that the running environments of the customized mobile operating system and the Android application share a hardware abstraction layer and an inner core;
(2) adding a basic library supporting Android application operation in a basic class library of a customized mobile operating system;
(3) on the basis of the operation environment of the customized mobile operation system, the Android application operation environment is increased by using the Dalvik virtual machine technology, so that the customized mobile operation system comprises two sets of application operation environments;
(4) adding an Android application frame in an application frame layer of a customized mobile operating system, and simultaneously adapting an Android basic component to enable two sets of application environments to use one window manager;
in the step (4), adding an Android application frame in an application frame layer of the customized mobile operating system, and simultaneously adapting an Android basic component to enable two sets of environments to use one window manager, specifically comprising the following steps:
(41) adding an Android application frame in an application frame layer of the customized mobile operating system, and providing a corresponding API (application programming interface) for Android application;
(42) adapting a base component of Andriod;
(43) and the soft graphic system enables the native application of the mobile operating system and the Android application to share one window manager management window.
2. The method for customizing the Android application compatible with the mobile operating system according to claim 1, wherein: in the step (3), the two sets of application running environments are a native application running environment and an Android application running environment ART respectively.
CN201710185649.9A 2017-03-26 2017-03-26 Method for customizing mobile operating system to be compatible with Android application Expired - Fee Related CN107102853B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710185649.9A CN107102853B (en) 2017-03-26 2017-03-26 Method for customizing mobile operating system to be compatible with Android application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710185649.9A CN107102853B (en) 2017-03-26 2017-03-26 Method for customizing mobile operating system to be compatible with Android application

Publications (2)

Publication Number Publication Date
CN107102853A CN107102853A (en) 2017-08-29
CN107102853B true CN107102853B (en) 2021-02-26

Family

ID=59675412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710185649.9A Expired - Fee Related CN107102853B (en) 2017-03-26 2017-03-26 Method for customizing mobile operating system to be compatible with Android application

Country Status (1)

Country Link
CN (1) CN107102853B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109391676B (en) * 2018-07-19 2020-12-18 珠海市魅族科技有限公司 Terminal device control method, terminal device, and computer-readable storage medium
CN109343838A (en) * 2018-09-17 2019-02-15 北京智明星通科技股份有限公司 Chat feature development approach and system, terminal and computer readable storage medium
CN109871202A (en) * 2018-12-12 2019-06-11 江苏中威科技软件系统有限公司 A kind of mobile terminal apply mixed developing method and frame
CN109976728B (en) * 2019-04-10 2022-04-26 北京梆梆安全科技有限公司 Method and device for generating native application program and mobile terminal
CN112612536B (en) * 2020-12-15 2022-11-18 麒麟软件有限公司 Method and device for controlling camera shooting based on Android application program in Linux system
CN115079804B (en) * 2021-12-09 2023-11-07 荣耀终端有限公司 Control processing method of electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880452A (en) * 2012-02-01 2013-01-16 日照市国软软件有限公司 Programming language capable of cross-language reusing
CN104361089A (en) * 2014-11-17 2015-02-18 哈尔滨理工大学 Cross-platform document management system based on Qt

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140317303A1 (en) * 2009-03-16 2014-10-23 Apple Inc. Application launching in conjunction with an accessory
TWI520069B (en) * 2010-08-11 2016-02-01 緯創資通股份有限公司 Application method for integrating heterogeneous operating systems based on the same system kernel
US20130039408A1 (en) * 2011-02-07 2013-02-14 Screenovate Technologies Ltd Method for enhancing compression and transmission process of a screen image
CN103176838A (en) * 2011-12-22 2013-06-26 盛乐信息技术(上海)有限公司 Method and system compatible with Android native program
CN104427388A (en) * 2013-09-10 2015-03-18 国家广播电影电视总局广播科学研究院 Operating system of intelligent television
CN105739964B (en) * 2014-12-12 2019-11-05 厦门雅迅网络股份有限公司 A kind of implementation method for supporting edition compatibility control based on Android platform
CN105933766B (en) * 2016-01-21 2019-01-15 东方明珠新媒体股份有限公司 WebOS system and set-top box based on set-top box

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880452A (en) * 2012-02-01 2013-01-16 日照市国软软件有限公司 Programming language capable of cross-language reusing
CN104361089A (en) * 2014-11-17 2015-02-18 哈尔滨理工大学 Cross-platform document management system based on Qt

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Ivan RajkovićET AL.Real-time visualization of signals from electronic control units on mobile platforms.<2015 23rd Telecommunications Forum Telfor (TELFOR)>.2016, *

Also Published As

Publication number Publication date
CN107102853A (en) 2017-08-29

Similar Documents

Publication Publication Date Title
CN107102853B (en) Method for customizing mobile operating system to be compatible with Android application
US20210223927A1 (en) Electronic device and method for displaying application used therein
CN108924029B (en) Method and device for sending customer service data
CN102566931B (en) Method and device for displaying suspended window
CN103927163A (en) Plugin frame processing device and plugin system
CN107800865B (en) Electronic device and method for displaying time information in low power state
US11726749B2 (en) Child application development method and apparatus, computer device, and storage medium
CN104714725A (en) Display method and device of floating window
CN109800135A (en) A kind of information processing method and terminal
CN103257788A (en) Windows desktop dynamic icon forming method
CN105487868B (en) Realize the method and system that Android device virtual key is hidden and shown
CN102184076A (en) Method and device for controlling input of mobile terminal specific to JAVA program
RU2630368C2 (en) Method and device for controlling switching of virtual navigation panel
CN105657551A (en) Method and apparatus used by smart television to respond to analog key
CN104750553A (en) Application operating method and device
JP5504168B2 (en) Method and apparatus for controlling display of information area on standby screen of mobile terminal
CN113950043B (en) Communication method, device, storage medium and terminal
CN111813476B (en) Mobile phone banking application method based on An Zhuofu one screen
CN103914289A (en) Desktop application access method and device
CN108089859B (en) Recording playback-based blending method between android applications
CN105657557A (en) Video playing control method and system based on smart television
CN101751266B (en) Method and device for updating graphic user interface (GUI) component
CN103136004A (en) Method of application program hardware architecture display and device
CN105721912A (en) Method and device for intelligent television to respond to simulation button
CN219980888U (en) But embedded security protection supervisory equipment of secondary development

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210226