The content of the invention
The system that the present invention provides a kind of electronic equipment, the 3rd system is put into by the service of the first system and second systemIn, it is respectively that respective application program provides identical service without the first system and second system, reduces systemTo the occupancy of electronic equipment internal memory.
The system that the present invention provides a kind of electronic equipment, including:
The first system, second system and the 3rd system;
The first system includes:First application program and the first client;First client includes the first clientHold program and first client the first hardware device to be visited;
The second system includes:Second application program and the second client;Second client includes the second clientHold program and second client the second hardware device to be visited;
3rd system includes:First service end and the first kernel-driven;The service end includes:Service and hardware are taken outAs layer;
Communicated to connect between first client and the first service end, second client and the described first clothesBusiness communicates to connect between end.
In an embodiment of the present invention, the first system, second system and the 3rd system are Android system, the serviceFor Android service.
In an embodiment of the present invention, communicated to connect between first client and the first service end, describedCommunicated to connect between two clients and the first service end, including:
Establish it is overall bond GlobalBinder mechanism, the GlobalBinder mechanism be used for first client withCommunicated between the first service end between communication and second client and the first service end.
In the above embodiment of the present invention, first client, second client, the 3rd client and instituteStating the application program corresponding to the 4th client is:The related application program of camera, Wireless Fidelity WiFi related application program,Application program, the global position system GPS phase of the related application program of download module, the short distance wireless communication technology NFC correlationsThe application program of the pass application program related to fingerprint module.
The system of a kind of electronic equipment provided by the invention, including the first system, second system and the 3rd system.Wherein,The first system includes the first application program and the first client;First client includes the first client-side program and described theOne client hardware device to be visited;Second system includes the second application program and the second client;Second clientInclude the hardware device that the second client-side program and second client are to be visited;3rd system includes:First service end andFirst kernel-driven, communicated to connect between the first service end and first kernel-driven;The service end includes:ServiceAnd hardware abstraction layer;Communicated to connect between first client and the first service end, second client with it is describedFirst service communicates to connect between end.The system of electronic equipment provided by the invention, by the service of the first system and second systemAll it is put into the 3rd system, reduces the occupancy to mobile terminal internal memory.
Term " first ", " second ", " the 3rd " " in description and claims of this specification and above-mentioned accompanying drawingThe (if present)s such as four " are for distinguishing similar object, without for describing specific order or precedence.It should manageThe data that solution so uses can exchange in the appropriate case, so as to embodiments of the invention described herein for example can with exceptOrder beyond those for illustrating or describing herein is implemented.In addition, term " comprising " and " having " and theirs is anyDeformation, it is intended that cover it is non-exclusive include, for example, containing the process of series of steps or unit, method, system, productionProduct or equipment are not necessarily limited to those steps clearly listed or unit, but may include not list clearly or for thisThe intrinsic other steps of a little process, method, product or equipment or unit.
Fig. 1 is the structural representation of the system embodiment of electronic equipment of the present invention.As shown in figure 1, the present embodiment electronics is setStandby system includes:Wherein, the first system 1 includes for the first system 1, the system 3. of second system 2 and the 3rd:First application program101 and first client 11;First client 11 includes the first client-side program 102 and the first client 11 is to be visitedFirst hardware device 103;Second system 2 includes:Second application program 201 and the second client 21;Second client 21 includesSecond client-side program 202 and the second client 21 second hardware device 203 to be visited;3rd system 3 includes:First serviceThe kernel-driven 303 of end 31 and first, first service end 31 includes:Service 301 and hardware abstraction layer 302.Wherein, the first clientCommunicate to connect between 11 and first service end 31, communicated to connect between the second client 21 and first service end 31.
A kind of possible implementation is:When the first system 1 works, the first client 11 in the first system 1 accessesThe service 301 that first service end 31 in 3rd system 3 provides;When second system 2 works, the second visitor in second system 2Family end 21 accesses the service 301 that the first service end 31 in the 3rd system 3 provides.
Alternatively, the first application program 101 and the second application program 201 are identical application program, then now first visitorThe client 21 of family end 11 and second is corresponding to identical application program, is separately mounted in the first system 1 and second system 2Client, and the first hardware device 103 and the second hardware device 203 are the same hardware device of electronic equipment.
Alternatively, if the service corresponding to the first application program 101 and the service operation corresponding to the second application program 201The internal memory of Shi Zhanyong electronic equipment is more than predetermined threshold value, then the first client 11 of the first application program 101 and the second applicationSecond client 21 of program 201 accesses the service 301 that the first service end 31 in the 3rd system provides;If the first application programThe internal memory of the electronic equipment taken when servicing corresponding to 101 and the service operation corresponding to the second application program 201 is more than pre-If then the first system 1 is that the first application program 101 provides service to threshold value, the first client 11 of the first application program 101 accessesThe service provided in the first system 1 for the first application program 101, second system 2 are that the second application program 201 provides service, theSecond client 21 of two application programs 201 is accessed in second system 2 as the second service for answering program 201 to provide.
The system for the electronic equipment that the present embodiment provides, including the first system, second system and the 3rd system.Wherein,One system includes the first application program and the first client;First client includes the first client-side program and described firstClient the first hardware device to be visited;Second system includes the second application program and the second client;Second clientEnd includes the second client-side program and second client the second hardware device to be visited;3rd system includes:First clothesBusiness end and the first kernel-driven, the service end include:Service and hardware abstraction layer;First client and the described first clothesBusiness communicates to connect between end, is communicated to connect between second client and the first service end.The electricity that the present embodiment providesThe system of sub- equipment, the service of the first system and second system is put into the 3rd system, without the first system andTwo system is respectively that respective application program provides identical service, reduces occupancy of the system to electronic equipment internal memory.
Further, in the above-described embodiments, the first system 1, the system 3 of second system 2 and the 3rd are Android system, service301 be Android service.
Wherein, Android system can include primary Android system and the Android system of customized version.
Alternatively, in the above-described embodiments, communicated to connect between the first client 11 and first service end 31, the second clientCommunicated to connect between end 21 and first service end 31, including:Establish overall bonding GlobalBinder mechanism, GlobalBinderMechanism is used to communicate between the first client 11 and first service end 31 leads between the second client 21 and first service end 31Letter.Wherein, GlobalBinder mechanism is established in the electronic device, and GlobalBinder mechanism is used for same service and different visitorsCommunication interaction between the end of family.
A kind of possible implementation is:First service end 31 provides the first application program 101 and the second application program 201Service.Wherein the first application program 101 is identical with the application program of the second application program 201, therefore, first service end 31 toFirst client 11 of the first application program 101 and the second client 21 of the second application program 201 provide service 301.WhenWhen one system 1 works, the first client 11 in the first system 1 is accessed in the 3rd system 3 by GlobalBinder mechanismThe service 301 that first service end 31 provides;When second system 2 works, the second client 21 in second system 2 passes throughGlobalBinder mechanism accesses the service 301 that the first service end 31 in the 3rd system 3 provides.
The present embodiment, by establishing GlobalBinder mechanism so that the first client and the second system in the first systemThe second client in system can access the first service end in the 3rd system, so as to by the first system and second systemService is put into the 3rd system, is respectively that respective application program provides identical without the first system and second systemService, reduces occupancy of the system to electronic equipment internal memory.
Alternatively, in the various embodiments described above, the first client, the second client, the 3rd client and the 4th clientCorresponding application program is:The related application program of camera, Wireless Fidelity (Wireless-Fidelity, abbreviation:WiFi) phaseThe related application program of the application program of pass, download module, the short distance wireless communication technology (Near FieldCommunication, referred to as:NFC) related application program, global positioning system (Global Positioning System,Referred to as:GPS) the related application program application program related to fingerprint module.
Such as:Fig. 2 be electronic equipment of the present invention system in the related application program embodiment of camera structural representation.As shown in Fig. 2 the system of the present embodiment electronic equipment includes:The visible work system 2001 of user, the and of living system 2002The sightless root system system 2003 of user.Wherein, the system used when work system is user job, living system be user usuallyThe system used in life.Work system 2001 and living system 2002 respectively include camera program, camera client and photographCamera hardware, root system system 2003 include:Camera services, camera hardware level of abstraction and Linux drivings, the i.e. service of cameraOperate in the sightless root system system 2003 of user.When user uses the camera program of work system 2001, work systemCamera client in 2001 accesses the camera services in root system system 2003 by GlobalBinder mechanism.When user makesDuring with the camera program of living system 2002, the camera client in living system 2002 passes through GlobalBinder mechanismAccess the camera services in root system system 2003.
The present embodiment, all put being serviced corresponding to camera client in the first system and second system to the 3rd systemIn so that the camera client in the first system and in second system can access the camera services in the 3rd system, fromIt is respectively that respective camera program provides identical service without the first system and second system, reduces system to electricityThe occupancy of sub- device memory.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead toThe related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journeySequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc orPerson's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extentThe present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according toThe technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are enteredRow equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technologyThe scope of scheme.