CN105739964A - Implementation method for supporting version compatibility control based on Android platform - Google Patents

Implementation method for supporting version compatibility control based on Android platform Download PDF

Info

Publication number
CN105739964A
CN105739964A CN201410768817.3A CN201410768817A CN105739964A CN 105739964 A CN105739964 A CN 105739964A CN 201410768817 A CN201410768817 A CN 201410768817A CN 105739964 A CN105739964 A CN 105739964A
Authority
CN
China
Prior art keywords
hardware
version numbers
layer
value
hardware version
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.)
Granted
Application number
CN201410768817.3A
Other languages
Chinese (zh)
Other versions
CN105739964B (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.)
Xiamen Yaxon Networks Co Ltd
Original Assignee
Xiamen Yaxon Networks 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 Xiamen Yaxon Networks Co Ltd filed Critical Xiamen Yaxon Networks Co Ltd
Priority to CN201410768817.3A priority Critical patent/CN105739964B/en
Publication of CN105739964A publication Critical patent/CN105739964A/en
Application granted granted Critical
Publication of CN105739964B publication Critical patent/CN105739964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses an implementation method for supporting version compatibility control based on an Android platform. The implementation method is implemented based on the core layer, hardware abstraction layer, the application framework layer and the application program layer of the Android system; via the version control comprehensive implementation scheme, a plurality of hardware and software versions are effectively controlled and managed in a unified manner, the error probability caused by simultaneously maintaining the plurality of versions is reduced, the stability and robustness of the whole system are improved, the version management control can be achieved in the core implementation layer and the application program code only according to the hardware version number, thus the usage and implementation are facilitated; and the comprehensive implementation scheme employs the standard and flexible structural design, thus the subsequent maintenance and extension are facilitated. According to the invention, the version compatibility method based on the Android system platform for ensuring that the system recognizes the correct hardware version is implemented.

Description

A kind of based on Android platform support edition compatibility control realize method
Technical field
The present invention relates to software and hardware edition compatibility field, realize method particularly to a kind of based on what Android platform support edition compatibility controlled.
Background technology
Continuous change due to application function demand, and the update upgrading of embedded device hardware, the version quantity making the hardware and software based on embedded device sharply increases, therefore software development (includes system platform software development and applied software development), and personnel need to be responsible for the synchronized update for multiple hardware and software versions and maintenance simultaneously, not only workload is huge, and the probability made mistakes because safeguarding multiple version simultaneously is also greatly increased, and brings very big hidden danger to the stability of device product.
Android operation system is specifically designed for cell phone platform and develops, and mobile phone hardware system immobilizes owing to its ecological environment is easily done, and therefore Android system does not provide the mechanism of comprehensive management being specifically designed for whole software and hardware version.In addition, although edition compatibility in a way can be realized by some universal process methods that code realizes, but there is very big limitation in these methods, for instance the Version Control being specifically designed for application program part cannot consider that kernel implementation status maybe cannot obtain the shortcomings such as hardware information and deficiency.
Summary of the invention
It is an object of the invention to overcome the deficiency of prior art, it is provided that a kind of based on Android platform support edition compatibility control realize method, for the integrated management approach of whole software and hardware Version Control, efficiently solve the edition compatibility control problem of Android system.
The technical solution adopted for the present invention to solve the technical problems is: a kind of based on Android platform support edition compatibility control realize method, the four-layer structure being based on the inner nuclear layer of Android system, hardware abstraction layer, application framework layer and application layer realizes;
AD hardware accesses the platform being equipped with Android system, and according to different hardware configuration versions, the resistance connecting different resistance on AD samples pin is distinguish between and generates one " the AD value scope-hardware version numbers " synopsis with uniqueness;
In inner nuclear layer, described inner nuclear layer includes core A D sampling and drives and kernel realization, it is drive, by AD sampling, the AD value carrying out sampling and obtain Current hardware configuration that described core A D sampling drives, the AD value obtained is mated with described " AD value scope-hardware version numbers " synopsis, obtain current hardware version numbers, and the hardware version numbers got is saved in global variable and accesses use for the local process in kernel realization and hardware abstraction layer;Described kernel realizes, and is the hardware version numbers current by accessing global variable acquisition, and performs different software-driven configurations according to different hardware version numbers, it is ensured that the hardware configuration version that kernel code runs version corresponding with this hardware version numbers matches;
In hardware abstraction layer, the local process of hardware abstraction layer creates a read-only system property variable, by obtaining the hardware version numbers that the global variable in inner nuclear layer preserves, preserves this hardware version numbers to Android system property variable;
In application framework layer, including system service attribute, it is for the acquisition of application providing system attribute and interface is set;
In application layer, application program obtains hardware version numbers information by the operation interface of system property, and the hardware version numbers information according to this acquisition runs corresponding application software configuration.
Preferably, in inner nuclear layer, described core A D sampling is driven through the AD value that following steps determine that Current hardware configures:
(1) carry out multiple repairing weld and obtain the AD value of Current hardware configuration;
(2) if the deviation between multiple repairing weld value is all in preset deviation range, then calculating the meansigma methods of multiple repairing weld, this meansigma methods is the AD value of Current hardware configuration;If the deviation between multiple repairing weld value exceedes predetermined deviation range, then repeat step (1).
Preferably, described AD samples and drives driving of being sampled by multiple AD to constitute, if one of them AD sampling drives sample error, it will starts another AD sampling driving and samples.
Preferably, the determination step of the hardware version numbers in AD sampling driving in described inner nuclear layer is:
(1) " AD value scope-hardware version numbers " synopsis generated in search device hardware;
(2) the AD value driving the described Current hardware obtained to configure of being sampled by AD is compared with the defined AD value being somebody's turn to do in " AD value scope-hardware version numbers " synopsis, if the AD value of hardware configuration is in " AD value scope-hardware version numbers " synopsis, then determine and obtain current hardware version numbers, otherwise perform step (3);
(3) current hardware version numbers is arranged to the default hardware version number preset.
The invention has the beneficial effects as follows:
1., by the comprehensive implementation of this Version Control, effectively multiple hardware and software versions are carried out unified control and management, efficiently solve the edition compatibility control problem of Android system.
2. consider the objective necessity that Android system carrying platform application demand changes and module hardware updates, this programme considerably reduces the release maintenance cost of software system, only just need to can accomplish compatible all software and hardware versions forward by a software version.
3. greatly reduce and cause, because safeguarding multiple version simultaneously, the probability made mistakes, drastically increase stability and the vigorousness of whole system.
4. kernel realizes only just need to realize version management control according to hardware version numbers in layer and application code, it is easy to uses and realizes.
5. comprehensive implementation employing standard and flexibly architecture Design, be highly susceptible to follow-up maintenance and extension.
6. the AD sampling of the present invention adopts Redundancy Design, uses multiple AD sampling driving to sample, it is ensured that system may identify which correct hardware version.
Below in conjunction with drawings and Examples, the present invention is described in further detail;But based on Android platform, a kind of of the present invention supports that the method that realizes that edition compatibility controls is not limited to embodiment.
Accompanying drawing explanation
Fig. 1 is the structured flowchart realizing the present invention.
Detailed description of the invention
Embodiment
Shown in Figure 1, a kind of of the present invention realizes method based on what Android platform support edition compatibility controlled, and the four-layer structure being based on the inner nuclear layer 10 of Android system, hardware abstraction layer 20, application framework layer 30 and application layer 40 realizes;
AD hardware 50 accesses the platform being equipped with Android system, and according to different hardware configuration versions, the resistance connecting different resistance on AD samples pin is distinguish between and generates one " the AD value scope-hardware version numbers " synopsis with uniqueness;
In inner nuclear layer 10, described inner nuclear layer 10 includes core A D sampling driving and kernel realizes 102, it is drive the 101 AD values carrying out sampling and obtaining Current hardware configuration by AD sampling that described core A D sampling drives, the AD value of the hardware configuration obtained is mated with described " AD value scope-hardware version numbers " synopsis, obtain current hardware version numbers, and the hardware version numbers got is saved in global variable 103 and accesses use for the local process in kernel realization and hardware abstraction layer;Described kernel realizes 102, it is obtain current hardware version numbers by access global variable 103, and performing different software-driven configurations according to different hardware version numbers, it is ensured that the hardware configuration version that kernel code runs version corresponding with this hardware version numbers matches;
In hardware abstraction layer 20, the local process 201 of hardware abstraction layer creates a read-only system property variable, by obtaining the hardware version numbers that the global variable 103 in inner nuclear layer preserves, preserves this hardware version numbers to Android system property variable;
In application framework layer 30, including system service attribute 301, it is for the acquisition of application providing system attribute and interface is set;
In application layer 40, application program obtains hardware version numbers information by the operation interface of the system property in application framework layer 30, and the hardware version numbers information according to this acquisition runs corresponding application software configuration.
Further, in inner nuclear layer 10, described AD sampling drives 101 to determine, by following steps, the AD value that Current hardware configures:
(1) carry out multiple repairing weld and obtain the AD value of Current hardware configuration;
(2) if the deviation between multiple repairing weld value is all in preset deviation range, then calculating the meansigma methods of multiple repairing weld, this meansigma methods is the AD value of Current hardware configuration;If the deviation between multiple repairing weld value exceedes predetermined deviation range, then repeat step (1).
Further, described AD samples and drives 101 to be made up of multiple AD sampling driving, if one of them AD sampling drives sample error, it will starts another AD sampling driving and samples.
Further, the determination step of the hardware version numbers in AD sampling driving 101 in described inner nuclear layer 10 is:
(1) " AD value scope-hardware version numbers " synopsis generated in search device hardware;
(2) the AD value driving the described Current hardware of 101 acquisitions to configure of being sampled by AD and the defined AD value being somebody's turn to do in " AD value scope-hardware version numbers " synopsis are compared, if the AD value of hardware configuration is in " AD value scope-hardware version numbers " synopsis, then determine and obtain current hardware version numbers, otherwise perform step (3);
(3) current hardware version numbers is arranged to the default hardware version number preset.
Above-described embodiment is only used for further illustrating a kind of of the present invention and realizes method based on what Android platform support edition compatibility controlled; but the invention is not limited in embodiment; every any simple modification, equivalent variations and modification above example made according to the technical spirit of the present invention, each falls within the protection domain of technical solution of the present invention.

Claims (4)

1. realizing a method based on what Android platform support edition compatibility controlled, the four-layer structure being based on the inner nuclear layer of Android system, hardware abstraction layer, application framework layer and application layer realizes, it is characterised in that:
AD hardware accesses the platform being equipped with Android system, and according to different hardware configuration versions, the resistance connecting different resistance on AD samples pin is distinguish between and generates one " the AD value scope-hardware version numbers " synopsis with uniqueness;
In inner nuclear layer, described inner nuclear layer includes core A D sampling and drives and kernel realization, it is drive, by AD sampling, the AD value carrying out sampling and obtain Current hardware configuration that described core A D sampling drives, the AD value obtained is mated with described " AD value scope-hardware version numbers " synopsis, obtain current hardware version numbers, and the hardware version numbers got is saved in global variable and accesses use for the local process in kernel realization and hardware abstraction layer;Described kernel realizes, and is the hardware version numbers current by accessing global variable acquisition, and performs different software-driven configurations according to different hardware version numbers, it is ensured that the hardware configuration version that kernel code runs version corresponding with this hardware version numbers matches;
In hardware abstraction layer, the local process of hardware abstraction layer creates a read-only system property variable, by obtaining the hardware version numbers that the global variable in inner nuclear layer preserves, preserves this hardware version numbers to Android system property variable;
In application framework layer, including system service attribute, it is for the acquisition of application providing system attribute and interface is set;
In application layer, application program obtains hardware version numbers information by the operation interface of system property, and the hardware version numbers information according to this acquisition runs corresponding application software configuration.
2. according to claim 1 a kind of support that what edition compatibility controlled realizes method based on Android platform, it is characterised in that: in inner nuclear layer, described core A D sampling is driven through the AD value that following steps determine that Current hardware configures:
(1) carry out multiple repairing weld and obtain the AD value of Current hardware configuration;
(2) if the deviation between multiple repairing weld value is all in preset deviation range, then calculating the meansigma methods of multiple repairing weld, this meansigma methods is the AD value of Current hardware configuration;If the deviation between multiple repairing weld value exceedes predetermined deviation range, then repeat step (1).
3. according to claim 1 and 2 a kind of based on Android platform support edition compatibility control realize method, it is characterized in that: described AD sampling drives driving of being sampled by multiple AD to constitute, if one of them AD sampling drives sample error, it will start another AD sampling driving and sample.
4. according to claim 2 a kind of support that what edition compatibility controlled realizes method based on Android platform, it is characterised in that: AD in described inner nuclear layer sampling drive in the determination step of hardware version numbers be:
(1) " AD value scope-hardware version numbers " synopsis generated in search device hardware;
(2) the AD value driving the described Current hardware obtained to configure of being sampled by AD is compared with the defined AD value being somebody's turn to do in " AD value scope-hardware version numbers " synopsis, if the AD value of hardware configuration is in " AD value scope-hardware version numbers " synopsis, then determine and obtain current hardware version numbers, otherwise perform step (3);
(3) current hardware version numbers is arranged to the default hardware version number preset.
CN201410768817.3A 2014-12-12 2014-12-12 A kind of implementation method for supporting edition compatibility control based on Android platform Active CN105739964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410768817.3A CN105739964B (en) 2014-12-12 2014-12-12 A kind of implementation method for supporting edition compatibility control based on Android platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410768817.3A CN105739964B (en) 2014-12-12 2014-12-12 A kind of implementation method for supporting edition compatibility control based on Android platform

Publications (2)

Publication Number Publication Date
CN105739964A true CN105739964A (en) 2016-07-06
CN105739964B CN105739964B (en) 2019-11-05

Family

ID=56240879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410768817.3A Active CN105739964B (en) 2014-12-12 2014-12-12 A kind of implementation method for supporting edition compatibility control based on Android platform

Country Status (1)

Country Link
CN (1) CN105739964B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102853A (en) * 2017-03-26 2017-08-29 安徽继远软件有限公司 A kind of method for customizing Mobile operating system compatibility Android applications
CN107479482A (en) * 2017-08-21 2017-12-15 上海博泰悦臻网络技术服务有限公司 A kind of operating system and implementation method applied to automotive electronics
CN110716873A (en) * 2019-09-24 2020-01-21 北京计算机技术及应用研究所 Hardware compatibility knowledge base construction method
CN112286568A (en) * 2020-09-22 2021-01-29 福建升腾资讯有限公司 Multi-version compatible method for Android system
CN113727035A (en) * 2021-10-15 2021-11-30 Oppo广东移动通信有限公司 Image processing method, system, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894104A (en) * 2009-05-22 2010-11-24 镇江雅迅软件有限责任公司 File management system with version management mechanism
US20120144379A1 (en) * 2010-12-07 2012-06-07 Hon Hai Precision Industry Co., Ltd. System and method for updadting software
CN103780813A (en) * 2014-01-23 2014-05-07 青岛海信移动通信技术股份有限公司 Method for making multiple camera modules compatible on terminal, terminal and camera modules
CN104158866A (en) * 2014-08-04 2014-11-19 国家电网公司 Catalog and AD reversed synchronously password interception plug-in upgrading method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894104A (en) * 2009-05-22 2010-11-24 镇江雅迅软件有限责任公司 File management system with version management mechanism
US20120144379A1 (en) * 2010-12-07 2012-06-07 Hon Hai Precision Industry Co., Ltd. System and method for updadting software
CN103780813A (en) * 2014-01-23 2014-05-07 青岛海信移动通信技术股份有限公司 Method for making multiple camera modules compatible on terminal, terminal and camera modules
CN104158866A (en) * 2014-08-04 2014-11-19 国家电网公司 Catalog and AD reversed synchronously password interception plug-in upgrading method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102853A (en) * 2017-03-26 2017-08-29 安徽继远软件有限公司 A kind of method for customizing Mobile operating system compatibility Android applications
CN107479482A (en) * 2017-08-21 2017-12-15 上海博泰悦臻网络技术服务有限公司 A kind of operating system and implementation method applied to automotive electronics
CN107479482B (en) * 2017-08-21 2023-02-28 上海博泰悦臻网络技术服务有限公司 Operating system applied to automotive electronics and implementation method
CN110716873A (en) * 2019-09-24 2020-01-21 北京计算机技术及应用研究所 Hardware compatibility knowledge base construction method
CN110716873B (en) * 2019-09-24 2023-09-26 北京计算机技术及应用研究所 Method for constructing hardware compatibility knowledge base
CN112286568A (en) * 2020-09-22 2021-01-29 福建升腾资讯有限公司 Multi-version compatible method for Android system
CN113727035A (en) * 2021-10-15 2021-11-30 Oppo广东移动通信有限公司 Image processing method, system, electronic device and storage medium
CN113727035B (en) * 2021-10-15 2023-05-12 Oppo广东移动通信有限公司 Image processing method, system, electronic device and storage medium

Also Published As

Publication number Publication date
CN105739964B (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN105739964A (en) Implementation method for supporting version compatibility control based on Android platform
CN103955363B (en) A kind of manufacture method of program upgrade installation package
CN104484169B (en) A kind of Android software user interface creating method, system and application system
US20140237463A1 (en) Dynamically generate and execute a context-specific patch installation procedure on a computing system
CN105159718B (en) Firmware upgrade method and device
US20220191248A1 (en) Techniques for generating network security policies for application components deployed in a computing environment
CN105446725A (en) Method and system for model driven development
CN105763626A (en) SDK initialization method suitable for application client end payment
CN106484452B (en) unified configuration management method and device for software platform
CN105630508A (en) Processing method and processing system for encapsulating SQL (Structured Query Language) in Java system
CN104199662A (en) Multi-language supporting technology suitable for FLEX project
CN103984574A (en) Method and system for updating website
CN103914572A (en) Database construction system, device and method
CN105138352B (en) Method and device for installing application plug-in
US11301221B2 (en) Rapid code compiling system
CN107193565B (en) Method for developing native APP (application) across mobile terminals
CN104486393A (en) Resource configuration and recycling method and resource configuration and recycling system
CN108037933A (en) The collocation method and system of urban service in a kind of building service application program
CN105117329A (en) Application automatic online system and method
US20230384750A1 (en) Efficient controller data generation and extraction
CN104035766A (en) Android system trimming method based on coverage rate test
CN104598277A (en) Method for building mobile terminal applications, mobile terminal and system
CN102143222B (en) Application resource downloading adaptation method and downloading adaptation device
CN102831002B (en) Patch discharging method and device
CN106648441A (en) Method and device for transferring equipment partition information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant