CN108037924A - glibc and bionic driven self-adaption system and method - Google Patents
glibc and bionic driven self-adaption system and method Download PDFInfo
- Publication number
- CN108037924A CN108037924A CN201711310525.5A CN201711310525A CN108037924A CN 108037924 A CN108037924 A CN 108037924A CN 201711310525 A CN201711310525 A CN 201711310525A CN 108037924 A CN108037924 A CN 108037924A
- Authority
- CN
- China
- Prior art keywords
- bionic
- glibc
- symbols
- symbol
- environment
- 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
- 239000011664 nicotinic acid Substances 0.000 title claims abstract description 194
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000013507 mapping Methods 0.000 claims abstract description 15
- 230000006978 adaptation Effects 0.000 claims abstract description 14
- 238000013519 translation Methods 0.000 claims description 11
- 238000004891 communication Methods 0.000 claims description 7
- 238000011161 development Methods 0.000 abstract description 5
- 230000007246 mechanism Effects 0.000 description 6
- 239000011230 binding agent Substances 0.000 description 3
- 230000006835 compression Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 230000018109 developmental process Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008520 organization Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000005111 flow chemistry technique Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 206010034432 Performance fear Diseases 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000033772 system development Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- 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/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
Abstract
The invention provides a glibc and bionic driving self-adaption system and a method, which comprises a driving compatible layer, wherein the driving compatible layer comprises a symbol springboard module containing a self-defined compatible layer linker and a symbol abstraction module consisting of a glibc symbol abstraction library and a bionic symbol abstraction library; the executable program running in the glibc environment is responsible for linking and loading a glibc symbol abstract library through a glibc linker, dynamically loading a bionic symbol abstract library through a compatible layer linker, and establishing a mapping relation between glibc symbols and bionic symbols, so that resources of the bionic environment are used. The method solves the problem of symbol conflict between the glibc environment and the bionic environment, realizes reuse of the bionic driver library in the glibc environment, improves the drive development and adaptation efficiency of the mobile operating system, and reduces the development cost.
Description
Technical field
The present invention relates to operating system field, and in particular, to the driving of glibc environment and bionic environment is adaptive on face
Match system and method.
Background technology
, it is necessary to develop hardware for specific embedded mobile terminal platform for it in Mobile operating system development process
Driving, such as camera, audio and video hardware compression, figure accelerate the drive modules such as GPU, wireless network WIFI.Develop these
Hardware drive module it should be understood that specific figure accelerate the technical parameters such as chip, audio and video hardware compression chip, index and
The ins and outs such as interface.
For example, sharp China's Mobile operating system is the ecological environment based on glibc and supports Android6.0 operating system frames
Bridge joint mouth.Glibc is the libc storehouses (C run time) of gnu issues, it is the Api storehouses of the bottom in linux system.Existing text
Offer and all describe the design of the drive module such as the camera based on built-in Linux, audio and video hardware compression, GPU, WIFI and open
Originating party case and technology.From these documents it can be found that developing above-mentioned module drive needs certain technological accumulation and larger open
Send out cost.And these documents all describe only the driving development technique under glibc environment, without considering Mobile operating system
Support the characteristic of Android6.0 operating system framework interfaces.
Android6.0 operating systems are also based on linux kernel, but its bottom Api storehouses be bionic storehouses rather than
glibc.Existing document describes a kind of method that Android cameras are used under glibc environment.But to from glibc environment and
The compatibling problem of bionic environment, which lacks, systematically to be summarized and analyzes, and is fitted for the driving useless for proposing versatility of other modules
Method of completing the square and designing scheme.The compatibling problem of glibc environment and bionic environment is solved, its main body of technical problem faced
Present following three points:
1) glibc drivings repeat the problem of adaptation causes development cost higher:Conventional glibc environment hardware module drives
Adaptation cost is higher, and for the hardware platform or module of different parameters configuration, is required for repeating for Mobile operating system suitable
Driven with hardware module, and the Android drivings under existing bionic environment can not be multiplexed.
2) the problem of bionic drivings can not be directly multiplexed:Bionic drivings can not be directly multiplexed under glibc environment, this
It is because glibc and bionic is in pthread mechanism, striding course communication IPC mechanism, Exception abnormal mechanisms and C++ standards
Storehouse STL etc. has differences.Therefore, the executable program that glibc compiling systems compile out is directly to use
Bionic dynamic bases, glibc linkers in link, load that bionic dynamic bases occur that symbol is undefined or symbol conflict is asked
Topic.
3) module such as figure acceleration, WIFI and multimedia that existing driving adaptation method is concerned about Mobile operating system does not have
With relevant design scheme is proposed, lack versatility.
The content of the invention
For in the prior art the defects of, the object of the present invention is to provide a kind of glibc and bionic driving from be adapted to
System and method.
The driving of a kind of glibc and bionic that there is provided according to the present invention from adaption system, including glibc environment and
Driving compatible layer between bionic environment, the driving compatible layer include:
Symbol springboard module:Include customized compatible layer linker;
Symbol abstract module:It is made of glibc symbols abstraction library and bionic symbol abstraction library two parts;
Wherein, the executable program run under glibc environment, is responsible for linking, to load the driving simultaneous by glibc linkers
Hold the glibc symbols abstraction library in layer, by bionic symbol abstraction libraries described in the compatible layer linker dynamic load,
The mapping relations of glibc symbols and bionic symbols are established, thereby using the resource of bionic environment.
Formed preferably, the glibc symbols abstraction library is based on the compiling of glibc translation and compiling environments, the bionic symbols are taken out
Formed as storehouse is based on the compiling of bionic translation and compiling environments.
Preferably, the glibc symbols abstraction library include glibc applications environmentally or service calling in need
Function interface;The bionic symbols abstraction library be in bionic environment dynamic base opening interface compiling and
Into.
Preferably, the compatible layer linker safeguards a symbol mapping Hash table, glibc symbols are mapped as bionic
Symbol, the compatible layer linker are on the basis of bionic linkers, realize customized dlopen functions and dlsym letters
Number;
The glibc symbols abstraction library calls the dlopen functions of the compatible layer linker to be accorded with to load the bionic
Number abstraction library, and dlsym functions are called to find the address of bionic symbols in the bionic symbols abstraction library.
Preferably, the mode of the resource using bionic environment includes two kinds:
The bionic symbols abstraction library link, loading bionic dynamic bases, it is hard by bionic linker dynamic loads
Part Driver Library;Alternatively,
The symbol of bionic dynamic bases is loaded by the bionic linkers of bionic environment;
The bionic symbols abstraction library directly calls bionic local service interfaces by striding course communication IPC.
The driving of a kind of glibc and bionic that there is provided according to the present invention from adaptation method, including:In glibc environment and
Driving compatible layer is established between bionic environment, the driving compatible layer includes:
Symbol springboard module:Include customized compatible layer linker;
Symbol abstract module:It is made of glibc symbols abstraction library and bionic symbol abstraction library two parts;
Wherein, the executable program run under glibc environment, is responsible for linking, to load the driving simultaneous by glibc linkers
Hold the glibc symbols abstraction library in layer, by bionic symbol abstraction libraries described in the compatible layer linker dynamic load,
The mapping relations of glibc symbols and bionic symbols are established, thereby using the resource of bionic environment.
Formed preferably, the glibc symbols abstraction library is based on the compiling of glibc translation and compiling environments, the bionic symbols are taken out
Formed as storehouse is based on the compiling of bionic translation and compiling environments.
Preferably, the glibc symbols abstraction library include glibc applications environmentally or service calling in need
Function interface;The bionic symbols abstraction library be in bionic environment dynamic base opening interface compiling and
Into.
Preferably, the compatible layer linker safeguards a symbol mapping Hash table, glibc symbols are mapped as bionic
Symbol, the compatible layer linker are on the basis of bionic linkers, realize customized dlopen functions and dlsym letters
Number;
The glibc symbols abstraction library calls the dlopen functions of the compatible layer linker to be accorded with to load the bionic
Number abstraction library, and dlsym functions are called to find the address of bionic symbols in the bionic symbols abstraction library.
Preferably, the mode of the resource using bionic environment includes two kinds:
The bionic symbols abstraction library link, loading bionic dynamic bases, it is hard by bionic linker dynamic loads
Part Driver Library;Alternatively,
The symbol of bionic dynamic bases is loaded by the bionic linkers of bionic environment;
The bionic symbols abstraction library directly calls bionic local service interfaces by striding course communication IPC.
Compared with prior art, the present invention has following beneficial effect:
Difference of the present invention for glibc environment and bionic environment in compiling and operating mechanism, solves both symbols
Number collision problem, realizes reuse bionic Driver Libraries under glibc environment.Mobile operating system can be improved by the present invention
Driving exploitation and Adaption efficiency, reduce development cost.
Brief description of the drawings
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, further feature of the invention,
Objects and advantages will become more apparent upon:
Fig. 1 is driving compatible layer structure chart proposed by the present invention;
Fig. 2 is adapted to Organization Chart for Wifi module drives proposed by the present invention;
Fig. 3 is the Wifi Connect flow charts of Wifi module drives of the present invention adaptation;
Fig. 4 is adapted to Organization Chart for Media module drives proposed by the present invention;
Fig. 5 is the video playing flow of Media module drives of the present invention adaptation;
Fig. 6 is adapted to Organization Chart for OpenGL module drives proposed by the present invention.
Embodiment
With reference to specific embodiment, the present invention is described in detail.Following embodiments will be helpful to the technology of this area
Personnel further understand the present invention, but the invention is not limited in any way.It should be pointed out that the ordinary skill to this area
For personnel, without departing from the inventive concept of the premise, some changes and improvements can also be made.These belong to the present invention
Protection domain.
The driving of glibc and bionic provided by the invention a kind of is from adaption system, including glibc environment and bionic rings
Driving compatible layer between border, driving compatible layer include symbol springboard module and symbol abstract module.Symbol springboard module includes
Customized compatible layer linker (compatibility-layer-Linker).Symbol abstract module is abstracted by glibc symbols
Storehouse and bionic symbol abstraction library two parts realize that storehouse is formed.The structure of compatible layer is driven as shown in Figure 1, describing glibc rings
Executable program (including upper layer application or other function calls) under border is by driving compatible layer to use bionic environment hardwares
The module call flow of driving.The executable program run under glibc environment, is responsible for linking, loads driving by glibc linkers
Glibc symbol abstraction libraries in compatible layer, the dynamic load by way of compatible layer linker is by self-defined dlopen functions
Bionic symbol abstraction libraries, establish the mapping relations of glibc symbols and bionic symbols, are found by self-defined dlsym functions
The corresponding symbols of bionic, thereby using the resource of bionic environment.Mode using the resource of bionic environment includes two kinds:
First, the link of bionic symbols abstraction library, loading bionic dynamic bases, pass through bionic linker dynamic load hardware
Driver Library;2nd, the symbol of bionic dynamic bases is loaded by the bionic linkers of bionic environment;Bionic symbol abstraction libraries are straight
Connect striding course communication IPC (binder mechanism) and call bionic local service interfaces.
Glibc executable programs are achieved that redirecting for from glibc to bionic running environment via driving compatible layer.Into
Enter bionic environment, glibc executable programs can load hardware by bionic linkers as Android applications and drive
Dynamic storehouse, uses hardware device.
Symbol abstract module is made of glibc symbols abstraction library and bionic symbol abstraction libraries, and wherein glibc symbols are abstracted
Storehouse is formed based on the compiling of glibc translation and compiling environments, and bionic symbols abstraction library is formed based on the compiling of bionic translation and compiling environments.
Each specific module such as Wifi, multimedia, figure accelerate to realize corresponding symbol abstraction library.Glibc is accorded with
Number abstraction library (such as glibc symbols abstraction library libWifi.so of Wifi modules) include glibc environmentally application (such as
Wifi applications) or service (such as Wifi service) calling in need function interface (such as wifi_connect functions).
Bionic symbols abstraction library (such as bionic symbols abstraction library libWifi_compat.so of Wifi modules) is root
The interface compiling opened to the outside world according to the dynamic base (concrete implementation storehouse) in bionic environment forms.Glibc symbol abstraction libraries lead to
The compatible layer linker crossed in symbol jump module loads bionic symbol abstraction libraries, establishes glibc symbols and bionic symbols
Number mapping relations, it is final to realize redirecting from glibc symbols to bionic symbols.
Symbol springboard module realizes compatible layer linker.Compatible layer linker safeguards a symbol mapping Hash table, it
Glibc symbols can be mapped as to bionic symbols.Compatible layer linker is on the basis of bionic linkers (Linker), in fact
Customized dlopen and dlsym functions are showed.Glibc symbols abstraction library can call the dlopen functions of compatible layer linker,
Bionic symbol abstraction libraries are loaded, call dlsym functions to look for for each bionic symbols in bionic symbol abstraction libraries
To its address.
Driving based on a kind of above-mentioned glibc and bionic from adaption system, the present invention also provides a kind of glibc and
The driving of bionic from adaptation method, including:Driving compatible layer is established between glibc environment and bionic environment, driving is simultaneous
Holding layer includes:
Symbol springboard module:Include customized compatible layer linker;
Symbol abstract module:It is made of glibc symbols abstraction library and bionic symbol abstraction library two parts;
Wherein, the executable program run under glibc environment, is responsible for linking, loads driving compatible layer by glibc linkers
In glibc symbol abstraction libraries, by compatible layer linker dynamic load bionic symbol abstraction libraries, establish glibc symbols and
The mapping relations of bionic symbols, thereby using the resource of bionic environment.Mode using the resource of bionic environment includes
Two kinds:
First, the link of bionic symbols abstraction library, loading bionic dynamic bases, pass through bionic linker dynamic load hardware
Driver Library;2nd, the symbol of bionic dynamic bases is loaded by the bionic linkers of bionic environment;Bionic symbol abstraction libraries are straight
Connect striding course communication IPC and call bionic local service interfaces.
Glibc symbols abstraction library is based on the compiling of glibc translation and compiling environments and forms, and bionic symbols abstraction library is compiled based on bionic
Environment compiling is translated to form.Glibc symbols abstraction library include glibc applications environmentally or service calling in need function
Interface;Bionic symbol abstraction libraries are that the interface compiling of the dynamic base opening in bionic environment forms.
Compatible layer linker safeguards a symbol mapping Hash table, and glibc symbols are mapped as bionic symbols, compatible layer
Linker is on the basis of bionic linkers, realizes customized dlopen functions and dlsym functions;Glibc symbols are abstracted
Storehouse calls the dlopen functions of compatible layer linker to load bionic symbol abstraction libraries, and calls dlsym functions to find
The address of bionic symbols in bionic symbol abstraction libraries.
Based on the above, the Wifi modules, multimedia Media modules and figure of dynamic operating system are given individually below
Accelerate the driving adaptation designing scheme of OpenGL modules, so that technical staff refers to.
Wifi module drives are adapted to designing scheme
As shown in Fig. 2, in this scheme, Libhardware_legacy and with lower part still for original Android platform
The part compiled using bionic, it is not necessary to be modified, it is necessary to realize Wifi driving compatible layers and the compatible processing of glibc.
As shown in figure 3, exemplified by connecting Wifi, illustrate flow processings of the wifi connect from glibc to bionic:
After when one in user's click AP lists and inputting correct password, it is possible to start the connection procedure of AP, it is main
What is called is the connect functions of WifiManager, the function sent into WifiService CONNECT_NETWORK this
A message.WifiService will continue to transmit the information to WifiStateMachine processing, at this time
The ConnectModeState of WifiStateMachine will handle this message of CONNECT_NETWORK.selectNetWork
It is the AP that will be connected that (), which is used for enable, and disable falls other AP, and this method can be called in WifiNative
WifiCommand () method, and to wpa_supplicant send SELECT_NETWORK order.Pass through glibc compilings
Interface wifi_cmmcand () can be by the grand function HYBRIS_ in the wifi glibc symbol abstraction libraries of Wifi driving compatible layers
IMPLEMENT_FUNCTIONAL changes into the interface wifi_cmmcand () of bionic compilings.It can be adjusted after conversion
Use the wifi_command () in the Libhardware_legacy storehouses of bionic compilings.Pass through function wpa_ctrl_
Order SELECT_NETWORK requests are sent to wpa_supplicant by request (), so that by being drivingly connected upper AP.
Media module drives are adapted to designing scheme
As shown in figure 4, libMedia is compiled based on glibc, realize that a series of interfaces are supplied to glibc
Application is called, and libMedia_compat is compiled based on bionic, is to realize Android media module abstracts
The both ends in the springboard storehouse of interface.LibMedia_compat can specify the dynamic for relying on android to share when being compiled based on bionic
Storehouse libbinder.so, libmedia.so, libmediaplayerservice.so and libstagefright.so etc., it is logical
Cross binder mechanism and the interaction of Android multimedia frameworks layer.
Illustrate flow processing of the media modules from glibc to bionic by taking video playing as an example.As shown in figure 5, work as
When the application program video player of glibc call corresponding multimedia interface in glibc symbol abstraction libraries libMedia,
LibMedia can call the bionic symbol abstraction library libMedia_compat. of compatible layer and then by binder and Android
The libmediaplayerservice service interactions of multimedia framework layer, in StageFright, Nuplayer and OpenMax frame
Decoding broadcasting is carried out to video file under frame.
OpenGL module drives are adapted to designing scheme
As shown in fig. 6, figure accelerate driving compatible layer support a variety of graphical display platforms (fdev, hwcomposer and
wayland).Figure accelerates glibc symbol abstraction library libEGL storehouses to load libEGL_compat storehouses, and the latter is to be based on
The egl storehouses of bionic compilings.Specifically calling point three kind situations of the upper strata to egl interfaces:
1st, it is unrelated with specific graphical display platform for most of functions therefore self-defined by compatible layer linker
Dlopen and dlsym obtains the function address in real libEGL storehouses, and mapping is called just in the past.
2nd, for several Key Functions, such as eglCreateWindowSurface (), eglSwapBuffers (), this
It is relevant with specific graphical display platform, it is necessary to carry out function wrapping to them.With
Exemplified by eglCreateWindowSurface (), the packaging letter of the interface (ws_module) of eglplatform can be called first
Number (ws_CreateWindow ()).This wrapper functions can call _ init_ws () initialization really display first, specifically
Which graphical display platform to be according to environmental variance HYBRIS_EGLPLATFORM or EGL_ in _ init_ws () Rigen based on
PLATFORM selections.The realizing in function (such as wayland platforms of respective graphical display platform can be called after initialization
waylandws_CreateWindow()).After having created native window object wherein, then or it can call real
The native window of establishment is transmitted to EGL layers by eglCreateWindowSurface ().
3rd, libEGL can also increase some extra spread functions, such as eglBindWaylandDisplayWL ().It passes through
EglQueryString () and eglGetProcAddress () function is called to realize.The former can return to EGL_WL_bind_
The character string of wayland_display, represents to support the extension.
One skilled in the art will appreciate that except realizing system provided by the invention in a manner of pure computer readable program code
And its beyond each device, module, unit, completely can be by the way that method and step progress programming in logic be provided come the present invention
System and its each device, module, unit with logic gate, switch, application-specific integrated circuit, programmable logic controller (PLC) and embedding
Enter the form of the controller that declines etc. to realize identical function.So system provided by the invention and its every device, module, list
Member is considered a kind of hardware component, and the device for being used for realization various functions, module, unit to including in it also may be used
To be considered as the structure in hardware component;The device for being used for realization various functions, module, unit can also be considered as either real
The software module of existing method can be the structure in hardware component again.
The specific embodiment of the present invention is described above.It is to be appreciated that the invention is not limited in above-mentioned
Particular implementation, those skilled in the art can make a variety of changes or change within the scope of the claims, this not shadow
Ring the substantive content of the present invention.In the case where there is no conflict, the feature in embodiments herein and embodiment can any phase
Mutually combination.
Claims (10)
1. the driving of glibc and bionic a kind of is from adaption system, it is characterised in that including glibc environment and bionic environment
Between driving compatible layer, it is described driving compatible layer include:
Symbol springboard module:Include customized compatible layer linker;
Symbol abstract module:It is made of glibc symbols abstraction library and bionic symbol abstraction library two parts;
Wherein, the executable program run under glibc environment, is responsible for linking, loads the driving compatible layer by glibc linkers
In the glibc symbols abstraction library, pass through bionic symbol abstraction libraries described in the compatible layer linker dynamic load, establish
The mapping relations of glibc symbols and bionic symbols, thereby using the resource of bionic environment.
2. the driving of glibc according to claim 1 and bionic is from adaption system, it is characterised in that the glibc symbols
Number abstraction library is based on the compiling of glibc translation and compiling environments and forms, and the bionic symbols abstraction library is based on the compiling of bionic translation and compiling environments
Form.
3. the driving of glibc according to claim 2 and bionic is from adaption system, it is characterised in that the glibc symbols
Number abstraction library include glibc applications environmentally or service calling in need function interface;The bionic symbols are taken out
As storehouse is that the interface compiling that the dynamic base in bionic environment is opened to the outside world forms.
4. the driving of glibc according to claim 1 and bionic is from adaption system, it is characterised in that the compatible layer
Linker safeguards symbol mapping Hash table, and glibc symbols are mapped as bionic symbols, the compatible layer linker be
On the basis of bionic linkers, customized dlopen functions and dlsym functions are realized;
The glibc symbols abstraction library calls the dlopen functions of the compatible layer linker to be taken out to load the bionic symbols
As storehouse, and dlsym functions are called to find the address of bionic symbols in the bionic symbols abstraction library.
5. the driving of glibc according to claim 1 and bionic is from adaption system, it is characterised in that the use
The mode of the resource of bionic environment includes two kinds:
The bionic symbols abstraction library link, loading bionic dynamic bases, are driven by bionic linker dynamic loads hardware
Dynamic storehouse;Alternatively,
The symbol of bionic dynamic bases is loaded by the bionic linkers of bionic environment;
The bionic symbols abstraction library directly calls bionic local service interfaces by striding course communication IPC.
6. the driving of glibc and bionic a kind of is from adaptation method, it is characterised in that including:In glibc environment and bionic rings
Driving compatible layer is established between border, the driving compatible layer includes:
Symbol springboard module:Include customized compatible layer linker;
Symbol abstract module:It is made of glibc symbols abstraction library and bionic symbol abstraction library two parts;
Wherein, the executable program run under glibc environment, is responsible for linking, loads the driving compatible layer by glibc linkers
In the glibc symbols abstraction library, pass through bionic symbol abstraction libraries described in the compatible layer linker dynamic load, establish
The mapping relations of glibc symbols and bionic symbols, thereby using the resource of bionic environment.
7. the driving of glibc according to claim 6 and bionic is from adaptation method, it is characterised in that the glibc symbols
Number abstraction library is based on the compiling of glibc translation and compiling environments and forms, and the bionic symbols abstraction library is based on the compiling of bionic translation and compiling environments
Form.
8. the driving of glibc according to claim 7 and bionic is from adaptation method, it is characterised in that the glibc symbols
Number abstraction library include glibc applications environmentally or service calling in need function interface;The bionic symbols are taken out
As storehouse is that the interface compiling that the dynamic base in bionic environment is opened to the outside world forms.
9. the driving of glibc according to claim 6 and bionic is from adaptation method, it is characterised in that the compatible layer
Linker safeguards symbol mapping Hash table, and glibc symbols are mapped as bionic symbols, the compatible layer linker be
On the basis of bionic linkers, customized dlopen functions and dlsym functions are realized;
The glibc symbols abstraction library calls the dlopen functions of the compatible layer linker to be taken out to load the bionic symbols
As storehouse, and dlsym functions are called to find the address of bionic symbols in the bionic symbols abstraction library.
10. the driving of glibc according to claim 6 and bionic is from adaptation method, it is characterised in that the use
The mode of the resource of bionic environment includes two kinds:
The bionic symbols abstraction library link, loading bionic dynamic bases, are driven by bionic linker dynamic loads hardware
Dynamic storehouse;Alternatively,
The symbol of bionic dynamic bases is loaded by the bionic linkers of bionic environment;
The bionic symbols abstraction library directly calls bionic local service interfaces by striding course communication IPC.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711310525.5A CN108037924A (en) | 2017-12-11 | 2017-12-11 | glibc and bionic driven self-adaption system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711310525.5A CN108037924A (en) | 2017-12-11 | 2017-12-11 | glibc and bionic driven self-adaption system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108037924A true CN108037924A (en) | 2018-05-15 |
Family
ID=62102257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711310525.5A Pending CN108037924A (en) | 2017-12-11 | 2017-12-11 | glibc and bionic driven self-adaption system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108037924A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112558976A (en) * | 2019-09-24 | 2021-03-26 | 无锡江南计算技术研究所 | Self-adaptive function loading method for just-in-time compiling engine |
WO2021057351A1 (en) * | 2019-09-24 | 2021-04-01 | 中兴通讯股份有限公司 | Apparatus and method for controlling android bluetooth in glibc environment, and terminal device |
CN113379589A (en) * | 2021-07-06 | 2021-09-10 | 湖北亿咖通科技有限公司 | Dual-system graphic processing method and device and terminal |
CN113538207A (en) * | 2021-09-17 | 2021-10-22 | 北京鲸鲮信息系统技术有限公司 | Cross-process calling graphics rendering method and device, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104484181A (en) * | 2014-12-23 | 2015-04-01 | 北京元心科技有限公司 | Method, device and mobile device for controlling Android camera under glibc environment |
US9389877B2 (en) * | 2009-07-20 | 2016-07-12 | Google Technology Holdings LLC | Multi-environment operating system |
-
2017
- 2017-12-11 CN CN201711310525.5A patent/CN108037924A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9389877B2 (en) * | 2009-07-20 | 2016-07-12 | Google Technology Holdings LLC | Multi-environment operating system |
CN104484181A (en) * | 2014-12-23 | 2015-04-01 | 北京元心科技有限公司 | Method, device and mobile device for controlling Android camera under glibc environment |
Non-Patent Citations (1)
Title |
---|
ARIESJZJ: "libhybris及EGL Platform-在Glibc生态中重用Android的驱动", 《CSDN,HTTP://BLOG.CSDN.NET/JINZHUOJUN/ARTICLE/DETAILS/41412587》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112558976A (en) * | 2019-09-24 | 2021-03-26 | 无锡江南计算技术研究所 | Self-adaptive function loading method for just-in-time compiling engine |
WO2021057351A1 (en) * | 2019-09-24 | 2021-04-01 | 中兴通讯股份有限公司 | Apparatus and method for controlling android bluetooth in glibc environment, and terminal device |
CN112558976B (en) * | 2019-09-24 | 2022-07-12 | 无锡江南计算技术研究所 | Self-adaptive function loading method for just-in-time compiling engine |
CN113379589A (en) * | 2021-07-06 | 2021-09-10 | 湖北亿咖通科技有限公司 | Dual-system graphic processing method and device and terminal |
CN113538207A (en) * | 2021-09-17 | 2021-10-22 | 北京鲸鲮信息系统技术有限公司 | Cross-process calling graphics rendering method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11409949B2 (en) | Mobile device resource provisioning system and method | |
CN108037924A (en) | glibc and bionic driven self-adaption system and method | |
US8745573B2 (en) | Platform-independent application development framework | |
US9197697B2 (en) | Cloud computing system and method | |
CN102479097B (en) | Safe embedded operating system capable of supporting multi-stage loading | |
CN106844066B (en) | Application operation method, device and system | |
CN105760162A (en) | Development method for hybrid APP software | |
CN101382904B (en) | Method and system for implementing automatic installation of intelligent cipher key equipment | |
CN102356380A (en) | Hosted application platform with extensible media format | |
CN104427388A (en) | Operating system of intelligent television | |
CA2540361A1 (en) | System and method for extending capabilities and execution efficiency of script based applications | |
CN101980152A (en) | Mobile middleware system and implementation method thereof | |
CN110580183A (en) | Mobile application modularization implementation method | |
CN112671760A (en) | Socket-based client cross-platform network communication method and related equipment thereof | |
CN111158690A (en) | Desktop application framework, construction method, desktop application running method and storage medium | |
CN103631664A (en) | Inter-process communication method and device | |
CN111045668B (en) | Cross-platform mobile terminal system development method and device | |
CN106569856A (en) | Method and device of loading application view resource file | |
CN110442327A (en) | A kind of application builds method, apparatus, server | |
CN113157362A (en) | Android multi-window display method applied to Linux | |
CN102693238B (en) | Widget application process, system and multimedia terminal | |
WO2012001456A2 (en) | System and method for providing end to end interactive mobile applications using sms | |
CN101339508B (en) | Java2 miniature edition application operation method and device | |
CN113419712A (en) | Cross-platform application generation method, cross-platform application calling method and development device | |
KR20100087860A (en) | A mobile web application framework, mobile terminal, and, a storage medium |
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: 20180515 |
|
RJ01 | Rejection of invention patent application after publication |