CN117591309A - Processing method, processing device, electronic equipment and readable storage medium - Google Patents

Processing method, processing device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117591309A
CN117591309A CN202311555166.5A CN202311555166A CN117591309A CN 117591309 A CN117591309 A CN 117591309A CN 202311555166 A CN202311555166 A CN 202311555166A CN 117591309 A CN117591309 A CN 117591309A
Authority
CN
China
Prior art keywords
application
access instruction
server
electronic device
installation
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
Application number
CN202311555166.5A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311555166.5A priority Critical patent/CN117591309A/en
Publication of CN117591309A publication Critical patent/CN117591309A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a processing method, a processing device, electronic equipment and a readable storage medium, and belongs to the technical field of electronics. The method is performed by an electronic device and includes: under the condition that the electronic equipment generates a first access instruction corresponding to the application, intercepting the first access instruction, forwarding the first access instruction to a server corresponding to the application, wherein the first access instruction is used for accessing a relevant directory of the application in the electronic equipment; receiving first information fed back by a server based on a first access instruction; and executing a task corresponding to the first information.

Description

Processing method, processing device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a processing method, a processing device, electronic equipment and a readable storage medium.
Background
In the related art, a user typically selects an application to be installed in an application store, clicks an application icon of the application, thereby triggering an electronic device to obtain an installation package of the application from a server, stores the installation package of the application in a local system of the electronic device, analyzes the installation package, and installs the application to the local system of the electronic device based on the analyzed data for subsequent use by the user.
With the popularization of electronic devices, there is an increasing demand for applications installed in electronic devices, and users need to install different kinds of applications in electronic devices to meet various demands in daily life. Resulting in a problem of inefficient processing tasks for the electronic device.
Disclosure of Invention
An object of an embodiment of the present application is to provide a processing method, an apparatus, an electronic device, and a readable storage medium, which can improve efficiency of processing tasks by the electronic device.
In a first aspect, an embodiment of the present application provides a processing method, which is executed by an electronic device, where the processing method includes: under the condition that the electronic equipment generates a first access instruction corresponding to the application, intercepting the first access instruction, forwarding the first access instruction to a server corresponding to the application, wherein the first access instruction is used for accessing a relevant directory of the application in the electronic equipment; receiving first information fed back by a server based on a first access instruction; and executing a task corresponding to the first information.
In a second aspect, embodiments of the present application provide a processing apparatus, including: the device comprises an execution module, a sending module and a receiving module; the execution module is used for intercepting a first access instruction under the condition that the electronic equipment generates the first access instruction corresponding to the application; the sending module is further used for forwarding the first access instruction intercepted by the execution module to a server corresponding to the application, wherein the first access instruction is used for accessing a relevant directory of the application in the electronic equipment; the receiving module is used for receiving first information fed back by the server based on the first access instruction sent by the sending module; the executing module is further configured to execute a task corresponding to the first information received by the receiving module.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, under the condition that the electronic equipment generates a first access instruction corresponding to the application, the first access instruction is intercepted, and the first access instruction is forwarded to a server corresponding to the application, wherein the first access instruction is used for accessing a relevant directory of the application in the electronic equipment; receiving first information fed back by a server based on a first access instruction; and executing a task corresponding to the first information. In the scheme, the access instruction of the related catalogue of the application in the electronic equipment is intercepted and forwarded to the server, so that the first information fed back by the server is obtained, the electronic equipment can execute the corresponding task directly based on the information received from the server only through the transmission of the instruction, and the task processing efficiency of the electronic equipment is improved.
Drawings
FIG. 1 is a schematic flow chart of a processing method according to an embodiment of the present application;
FIG. 2 is a second flow chart of a processing method according to the embodiment of the present application;
FIG. 3 is a third flow chart of a processing method according to an embodiment of the present disclosure;
FIG. 4 is a flow chart of a processing method according to an embodiment of the present disclosure;
FIG. 5 is a fifth flow chart of a processing method according to an embodiment of the present disclosure;
FIG. 6 is a flowchart illustrating a processing method according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a processing apparatus according to an embodiment of the present disclosure;
FIG. 8 is a second schematic diagram of a processing apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
fig. 10 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The processing method, the processing device, the electronic equipment and the readable storage medium provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The execution main body of the processing method provided in this embodiment may be a processing apparatus, and the processing apparatus may be an electronic device, or may be a control module or a processing module in the electronic device. The technical solutions provided in the embodiments of the present application are described below by taking an electronic device as an example.
An embodiment of the present application provides a processing method, and fig. 1 shows a flowchart of the processing method provided in the embodiment of the present application, where the method may be applied to an electronic device. As shown in fig. 1, the processing method provided in the embodiment of the present application may include the following steps 201 to 203.
Step 201, under the condition that the electronic device generates a first access instruction corresponding to the application, the electronic device intercepts the first access instruction and forwards the first access instruction to a server corresponding to the application.
In some embodiments of the present application, the application is any third party application that is not completely downloaded and installed in the electronic device. The application may be any application in an application mall, for example.
In some embodiments of the present application, the application type of the application may be a game type, a video type, or a communication type.
In some embodiments of the present application, the first access instruction may be an IO instruction.
In some embodiments of the present application, the first access instruction is used to access a relevant directory of an application in the electronic device.
In some embodiments of the present application, the relevant directory of the application may be an installation directory of the application, or may be a directory related to the application and storing other data.
In some embodiments of the present application, the installation directory is a path name of an installation package of the application in the electronic device. For example, taking an application as an X application, the installation catalog of the X application in an electronic device may be/system/app/X.
In some embodiments of the present application, the installation directory may be preset for the electronic device, for example, a default storage path; the user may also be custom set, for example, to specify a fixed storage path for a certain class of applications.
For example, taking an application as a Calculator (Calculator) application, the installation directory of the Calculator application consists of a calculator.apk and corresponding lib directory, and a so library file.
In some embodiments of the present application, after the electronic device obtains the installation packages of the application, the installation packages are parsed to obtain the data files in the installation packages of the application, and the data files in the installation packages are placed in folders under corresponding paths. Therefore, before the electronic device installs the application, the electronic device needs to acquire the installation catalog information corresponding to the application, and then the electronic device stores the data file in the installation package of the application in a folder under the installation catalog corresponding to the application according to a default path or a path set by a user in a self-defining manner.
Step 202, the electronic device receives first information fed back by the server based on the first access instruction.
In some embodiments of the present application, the first information may be information of a relevant directory of an application in a server. Alternatively, the first information may be instruction data obtained after the relevant directory corresponding to the first access instruction is accessed.
The relevant directory of the application in the server is a path name corresponding to a file to be stored in the server by an installation package of the application.
In some embodiments of the present application, an electronic device intercepts a first access instruction that accesses a relevant directory of an application in the electronic device, and directly forwards the first access instruction to a server corresponding to the application, where the server accesses the relevant directory of the application in the server according to the first access instruction, so as to obtain first information fed back by the server based on the first access instruction.
The directory structure and directory name of the application in the electronic device are the same as those of the application in the server.
Step 203, the electronic device executes a task corresponding to the first information.
In some embodiments of the present application, the above-described tasks include at least one of:
Creating a relevant catalog of applications in the electronic device;
starting an application;
installing an application;
the application is run.
In an example, in a case where the task is creating a relevant directory of an application in the electronic device, the relevant directory information of the application may be directory name information of the relevant directory of the application, or directory structure information of the relevant directory of the application.
In an example, in the case where the task is to install an application, the first information is that application data in a relevant directory of the application is that data of the application installed in an installation package of the application, and the electronic device may install the application to the electronic device according to the first information.
In an example, in the case that the task is to start an application, the first information is application data in a relevant directory of the application, and the electronic device may start the application according to the first information.
In an example, in the case that the task is running an application, the first information is application data in a relevant directory of the application and is data of a certain function in the application, and the electronic device may run the function of the application according to the first information.
In the embodiment of the application, under the condition that the electronic equipment generates a first access instruction corresponding to the application, the first access instruction is intercepted, and the first access instruction is forwarded to a server corresponding to the application, wherein the first access instruction is used for accessing a relevant directory of the application in the electronic equipment; receiving first information fed back by a server based on a first access instruction; and executing a task corresponding to the first information. In the scheme, the access instruction of the related catalogue of the application in the electronic equipment is intercepted and forwarded to the server, so that the first information fed back by the server is obtained, the electronic equipment can execute the corresponding task directly based on the information received from the server only through the transmission of the instruction, and the task processing efficiency of the electronic equipment is improved.
It can be understood that, when the electronic device forwards the first access instruction to the server corresponding to the application, the electronic device may also send the second information to the server to perform identity verification, so as to ensure security.
In one possible embodiment, the relevant catalog of the application includes an installation catalog of the application, and the electronic device creates the installation catalog of the application in the electronic device via a user space file system (Filesystemin Userspace, FUSE) in response to input of an application icon for the application in the application mall.
Optionally, in this embodiment of the present application, as shown in fig. 2 in connection with fig. 1, step 201 "in which the electronic device intercepts the first access instruction when the electronic device generates the first access instruction corresponding to the application" specifically includes step 201a and step 201b:
step 201a, the electronic device receives a first input of an application icon for an application in an application mall.
In an embodiment of the present application, the first input is used to select an application icon of an application.
In an embodiment of the present application, the first input may include: the touch input of the application icon of the application by the user, or the voice command input by the user, or the specific gesture input by the user, may be specifically determined according to the actual use requirement, and the embodiment of the application is not limited.
The touch input includes, for example, a user sliding input on a display screen of the electronic device, or a click input. The specific gesture in the embodiment of the application may be any one of a single-click gesture, a sliding gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the present application may be a single click input, a double click input, or any number of click inputs, and the click input may also be a long press input or a short press input.
Step 201b, the electronic device creates an installation catalog of the application in the electronic device by FUSE in response to the first input.
In the embodiment of the present application, the FUSE is essentially an operating system, which is a file system implemented entirely in a user state.
In this embodiment of the present application, the FUSE is responsible for storing different data files and protecting and retrieving the stored files.
In the embodiment of the application, after receiving a first input of an application icon of an application by a user, the electronic device sends a first request to a service corresponding to the application, and after receiving the first request, the server sends directory information of an installation directory of the application in the server to the electronic device, and the FUSE creates the installation directory of the application in the electronic device according to the directory information.
It should be noted that, the installation directory may be an empty directory, and no data is stored in the directory.
Illustratively, the first request is for obtaining installation directory information of the application in the server.
Taking an application as an X application as an example, a user clicks an application icon of the X application in an application store, at this time, an application installer in the electronic device sends an installation-free request, that is, the first request, to a server to obtain an installation directory of the X application in the server, then, after the server receives the installation-free request, the server replies the installation directory with app_x, and at the same time, the electronic device generates an installation directory named app_x through FUSE after receiving the installation directory replied by the server, where a path corresponding to the installation directory is/system/app/app_x/.
In this way, the FUSE creates the installation catalog associated with the installation catalog in the server in the electronic device, so that the electronic device can quickly associate the information of the installation catalog of the application in the server under the condition of accessing the information of the installation catalog of the local application.
Optionally, in this embodiment of the present application, in combination with the step 201b, the step 201 "the electronic device intercepts the first access instruction" specifically includes step 201A:
Step 201A, the electronic device intercepts a first access instruction through a driver of the FUSE.
In some embodiments of the present application, the driver is a driver of FUSE in a kernel layer of the electronic device.
In some embodiments of the present application, the driver is configured to intercept an IO instruction sent by an electronic device.
It will be appreciated that since the access path of the first access instruction is the path of the installation directory of the application, and the installation directory of the application is created by the FUSE, the FUSE driver intercepts the first access instruction and forwards it to the server through the FUSE program. In other words, the FUSE driver intercepts all access instructions that access the path of the application's installation directory and forwards the access instructions to the server through the FUSE's program.
Further, in combination with fig. 1 and the step 201A, as shown in fig. 3, the step 201 "forwarding the first access instruction to the server corresponding to the application" specifically includes step 201B:
step 201B, the electronic device forwards the first access instruction to the server through the daemon of FUSE.
In some embodiments of the present application, the daemon is a FUSE program in the electronic device application framework layer.
In some embodiments of the present application, the daemon is configured to forward the IO instructions intercepted by the driver to the server.
In some embodiments of the present application, after a first access instruction sent by an electronic device is intercepted by a driver of a FUSE, a daemon of the FUSE forwards the first access instruction to a server, and after the server receives the first access instruction, information of a relevant directory of an application in the server is obtained according to the first access instruction.
Therefore, the electronic equipment and the server can complete information interaction with the server only through the access instruction, transmission of screen data is not needed, and experience in realizing effect and operation delay is greatly improved.
In a possible embodiment, in the case that the first access instruction is used to access the installation package in the installation directory of the application, the electronic device intercepts the first access instruction and forwards the first access instruction to the server, so that the electronic device obtains first information, where the first information indicates whether the installation package of the application exists in the installation directory of the application. And after the electronic equipment receives the message which is sent by the server and indicates that the installation package of the application exists in the installation catalog of the application, the electronic equipment generates a second access instruction to read the application data of the installation package in the server, so that the application is started in the electronic equipment according to the read application data.
For example, as shown in fig. 4, the application installer of the electronic device may issue an instruction for accessing the installation package in the installation directory of the application, i.e., the first access instruction, to the kernel layer VFS. After the first access instruction is intercepted by the FUSE driver, the electronic device sends the first access instruction to the server through connection between the FUSE daemon and the server so as to confirm whether an installation package of the application exists or not to the server, if so, the server returns a first information that the query result is the existence to the FUSE daemon, and finally, the FUSE driver returns the existing query result to an application program installer of the electronic device.
Optionally, in an embodiment of the present application, as shown in fig. 5 in conjunction with fig. 1, the step 203 of "the electronic device performs a task corresponding to the first information" specifically includes steps 203a to 203d:
step 203a, the electronic device generates a second access instruction when the first information indicates that an installation package of the application exists in an installation catalog of the application.
In this embodiment of the present application, the second access instruction is used to request to read application data in an installation package of an application.
Step 203b, the electronic device intercepts the second access instruction and sends the second access instruction to the server.
In this embodiment of the present application, the electronic device sends a second access instruction request to the kernel layer, where the second access instruction is used to read application data of an installation package of an application in an installation directory of the application, and after the second access instruction is intercepted by a driver of the FUSE, the second access instruction is forwarded to the server through a daemon of the FUSE, so as to read application data in the installation package of the application in the server.
Step 203c, the electronic device receives the application data in the application installation package sent by the server.
The application data in the installation package is, for example, data required for the electronic device to start or run the application. For example, application name of the application or application version number information of the application.
Step 203d, the electronic device starts the application based on the application data in the installation package of the application.
In this embodiment of the present application, after receiving the second access instruction, the server returns the application data in the application installation package to the daemon of the FUSE of the electronic device, and then returns the application data to the application installer of the electronic device through the driver of the FUSE, so that the electronic device starts the application according to the application data.
For example, taking an installation package of an application as an apk file, when an application program installer of the electronic device needs to read data with a length yyyy from XXX in the apk file, the electronic device sends an access instruction for accessing the apk file in an installation directory of the application, and when a driver of the FUSE obtains and intercepts the access instruction, the access instruction is forwarded to a server through a daemon of the FUSE. And then, the server opens and reads the application data with the length YYY from XXX in the real apk file stored in the server according to the received access instruction, returns the application data to the daemon of the FUSE in the electronic equipment through the link between the electronic equipment and the server, synchronously caches the data, and finally returns the application data to the application program installer of the electronic equipment through the driver of the FUSE. At this time, the application program installation program can obtain information such as an application name, a version number and the like, and the application installation starting flow can be completed by repeating the steps.
In this way, the access instruction for reading the application data can be forwarded to the server, and the application data in the server can be directly read for use, so that the application data is consistent with the use experience of the application which is conventionally downloaded and installed in the electronic equipment when the user uses the application corresponding to the application data.
In some embodiments of the present application, the application data includes icon information of an application icon of the application.
In some embodiments of the present application, as shown in fig. 6 in conjunction with fig. 5, after the step 203c of receiving, by the electronic device, the application data in the installation package sent by the server, the processing method provided in the embodiments of the present application further includes step 301:
step 301, the electronic device displays the application icon of the application based on the icon information of the application icon of the application.
In the embodiment of the application, the electronic device acquires icon information of the application icon of the application from the server, and displays the application icon of the application on a display screen of the electronic device according to the icon information.
For example, a display screen of the electronic device acquires icon information of an application from an application installer of the electronic device, and then the application installer issues an access instruction to access an installation directory of the application to acquire the icon information of the application from the installation directory of the application. At this time, the FUSE driver is triggered to intercept the access command, and then the access command is sent to the server through the FUSE daemon. Finally, after the icon information of the application is obtained from the server, the icon information is returned to the application program installer, and the icon information is obtained. At this time, the electronic device can display the application icon and the application name of the application on the display screen according to the icon information.
Thus, the electronic device can acquire the icon information of the application only through instruction transmission with the server, and the icon information is displayed on the electronic device.
The following describes in detail the implementation procedure of the processing method provided in the embodiment of the present application in an android system with one possible embodiment, specifically including the following steps A1 to A6:
step A1: the server can create all files of the application and relevant catalogs corresponding to the application in advance according to the relevant catalogs corresponding to the application in the android system, and all files of the application are placed in the relevant catalogs of the server.
Step A2: the electronic device establishes a connection with the server in advance through the daemon of the FUSE so as to transmit application data between the electronic device and the server.
Step A3: after receiving input of clicking an application icon of an application in an application store of the electronic equipment by a user, the electronic equipment responds to the click input to send an installation-free request instruction to a server, sends a catalog name corresponding to the application from the server to the electronic equipment, creates an installation catalog corresponding to the application in the electronic equipment through FUSE according to the catalog name corresponding to the application, and records a first path, wherein the first path is a path corresponding to the installation catalog corresponding to the application.
Step A4: after the electronic device creates an installation catalog corresponding to the application in the electronic device through the FUSE, the electronic device sends an access instruction, namely the first access instruction, wherein the access instruction is an apk file in the installation catalog of the application under the first path, namely an installation package file of the application. The method comprises the steps that a FUSE driver intercepts an access instruction, the access instruction is forwarded to a server through a FUSE daemon, the server executes the access instruction, and instruction data acquired by the access instruction, namely first information of an installation package in an installation catalog, is sent to electronic equipment through the FUSE daemon.
Step A5: after receiving instruction data of the apk file sent by the server, the electronic equipment sends a data reading instruction to the application under the condition that the application runs, wherein the data reading instruction is data in the apk file, such as data information of application names, version numbers and the like. The read data command is intercepted by the drive program of the FUSE and forwarded to the server through the daemon of the FUSE, the server executes the read data command and sends the data in the read apk file to the electronic equipment through the daemon of the FUSE, and the electronic equipment installs and runs the application according to the data in the read apk file.
Step A6: after the application program installer installs the application on the server, the application program installer records the application data operated by the application and simultaneously notifies programs such as a desktop and the like to perform icon display operation. The operation instruction is an instruction to read icon information of an application icon of the application.
The electronic device repeats the step of acquiring the application data from the server in the step A4 or the step A5, and completes the information acquisition such as the icon, at this time, the desktop can display the related icon and the application name.
Step A7: after receiving input of clicking an application icon of an application displayed on a desktop of the electronic device by a user, the electronic device starts the application in response to the clicking input, and at the moment, the electronic device needs to load a data segment in an apk file, which is started and put in storage, into a memory, and the operation can trigger instruction interception of a driving program of FUSE.
The electronic device repeats the step of acquiring the application data from the server in the step A4 or the step A5, and completes the step of starting the data segment in storage to load the memory, thereby realizing the starting of the application.
It can be understood that when the electronic device starts the application, the data for starting and entering the database in the apk file of the application is loaded into the memory according to the memory prediction algorithm through the strategy, so that the data returned by the IO instruction sent by the electronic device in the running process can be subjected to strategy caching and pre-downloading according to the prediction algorithm, the application can be started quickly and can be downloaded while running, and thus the situation of blocking in the starting or running process of the application is avoided.
The application program run by the application program is local to the electronic device, so that functions and experiences are not incomplete like an applet. In addition, compared with a scheme of realizing screen image without installing quick start, data transmission such as a screen, audio frequency and a touch screen is not needed, only the IO instruction transmission process exists, the extra data transmission is avoided, the problems of delay and heating are reduced, and meanwhile the problem that a local file cannot be opened or a local camera cannot be opened is solved.
It should be noted that, in the processing method provided in the embodiment of the present application, the execution body may be a processing apparatus, or an electronic device, or may be a functional module or an entity in the electronic device. In the embodiment of the present application, a processing device is described by taking an example of a processing method executed by the processing device.
Fig. 7 shows a schematic diagram of one possible configuration of a processing device involved in an embodiment of the present application. As shown in fig. 7, the processing apparatus 700 may include: an execution module 701, a transmission module 702, and a reception module 703.
The execution module 701 is configured to intercept a first access instruction when the electronic device generates the first access instruction corresponding to the application; the sending module 702 is configured to forward a first access instruction intercepted by the executing module 701 to a server corresponding to an application, where the first access instruction is used to access a relevant directory of the application in the electronic device; the receiving module 703 is configured to receive first information fed back by the server based on the first access instruction sent by the sending module 702; the executing module 701 is further configured to execute a task corresponding to the first information received by the receiving module 703.
Optionally, in an embodiment of the present application, the relevant directory of the application includes an installation directory of the application; the receiving module 703 is further configured to receive a first input of an application icon of an application in the application mall; the executing module 701 is further configured to create, by FUSE, an installation directory of the application in the electronic device in response to the first input received by the receiving module 703.
Optionally, in this embodiment of the present application, the executing module 701 is specifically configured to intercept the first access instruction through a driver of the FUSE; the sending module 702 is specifically configured to forward the first access instruction to the server through the daemon of FUSE.
Optionally, in an embodiment of the present application, the relevant directory of the application includes an installation directory of the application; the first information indicates whether an installation package of the application exists in an installation catalog of the application; the executing module 701 is specifically configured to generate a second access instruction and intercept the second access instruction when the first information indicates that an installation package of the application exists in an installation directory of the application; the sending module 702 is further configured to send, to a server, a second access instruction intercepted by the executing module 701, where the second access instruction is used to request reading of application data in an installation package; the receiving module 703 is further configured to receive application data in an installation packet sent by the server; the execution module 701 is specifically configured to start an application based on the application data received by the receiving module 703.
Optionally, in an embodiment of the present application, in conjunction with fig. 7, as shown in fig. 8, the apparatus 700 further includes: a display module 704; the application data contains icon information of application icons of the applications; the display module 704 is configured to display an application icon of an application based on icon information after the receiving module 703 receives the application data in the installation package sent by the server.
In the embodiment of the application, under the condition that the electronic equipment generates a first access instruction corresponding to the application, the first access instruction is intercepted, and the first access instruction is forwarded to a server corresponding to the application, wherein the first access instruction is used for accessing a relevant directory of the application in the electronic equipment; receiving first information fed back by a server based on a first access instruction; and executing a task corresponding to the first information. In the scheme, the access instruction of the related catalogue of the application in the electronic equipment is intercepted and forwarded to the server, so that the first information fed back by the server is obtained, the electronic equipment can execute the corresponding task directly based on the information received from the server only through the transmission of the instruction, and the task processing efficiency of the electronic equipment is improved.
The processing device in the embodiments of the present application may be an electronic device, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The processing device in the embodiments of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The processing device provided in the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 5, and can achieve the same technical effects, so that repetition is avoided, and no further description is provided herein.
Optionally, as shown in fig. 9, the embodiment of the present application further provides an electronic device 800, including a processor 801 and a memory 802, where a program or an instruction capable of running on the processor 801 is stored in the memory 802, and the program or the instruction implements each step of the above-mentioned processing method embodiment when being executed by the processor 801, and the steps can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 110 is configured to intercept a first access instruction when the electronic device generates the first access instruction corresponding to the application; the radio frequency unit 101 is configured to forward a first access instruction intercepted by the processor 110 to a server corresponding to an application, where the first access instruction is used to access a relevant directory of the application in the electronic device; the radio frequency unit 101 is further configured to receive first information fed back by the server based on the first access instruction; the processor 110 is further configured to perform a task corresponding to the first information.
Optionally, in an embodiment of the present application, the relevant directory of the application includes an installation directory of the application; the user input unit 107 is further configured to receive a first input of an application icon of an application in the application mall; the processor 110 is further configured to create, in response to the first input received by the user input unit 107, an installation catalog of the application in the electronic device via FUSE.
Optionally, in an embodiment of the present application, the processor 110 is specifically configured to intercept the first access instruction through driving of the FUSE; the processor 110 is specifically configured to forward the first access instruction to the server through a program of the FUSE.
Optionally, in an embodiment of the present application, the relevant directory of the application includes an installation directory of the application; the first information indicates whether an installation package of the application exists in an installation catalog of the application; the processor 110 is specifically configured to generate a second access instruction and intercept the second access instruction when the first information indicates that an installation package of the application exists in an installation directory of the application; the radio frequency unit 101 is further configured to send, to a server, a second access instruction intercepted by the processor 110, where the second access instruction is used to request reading of application data in an installation package; the radio frequency unit 101 is further configured to receive application data in an installation packet sent by a server; the processor 110 is specifically configured to start an application based on the application data received by the radio frequency unit 101.
Optionally, in an embodiment of the present application, the application data includes icon information of an application icon of an application; the display unit 106 is configured to display an application icon of an application based on icon information after the processor 110 receives the application data in the installation package sent by the server.
In the embodiment of the application, under the condition that the electronic equipment generates a first access instruction corresponding to the application, the first access instruction is intercepted, and the first access instruction is forwarded to a server corresponding to the application, wherein the first access instruction is used for accessing a relevant directory of the application in the electronic equipment; receiving first information fed back by a server based on a first access instruction; and executing a task corresponding to the first information. In the scheme, the access instruction of the related catalogue of the application in the electronic equipment is intercepted and forwarded to the server, so that the first information fed back by the server is obtained, the electronic equipment can execute the corresponding task directly based on the information received from the server only through the transmission of the instruction, and the task processing efficiency of the electronic equipment is improved.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 109 may include volatile memory or nonvolatile memory, or the memory 109 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction realizes each process of the above processing method embodiment, and the same technical effect can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used for running a program or an instruction, so as to implement each process of the above processing method embodiment, and achieve the same technical effect, so that repetition is avoided, and no redundant description is provided herein.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to implement the respective processes of the embodiments of the processing method, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (12)

1. A method of processing performed by an electronic device, the method comprising:
under the condition that the electronic equipment generates a first access instruction corresponding to an application, intercepting the first access instruction, and forwarding the first access instruction to a server corresponding to the application, wherein the first access instruction is used for accessing a relevant directory of the application in the electronic equipment;
receiving first information fed back by the server based on the first access instruction;
and executing a task corresponding to the first information.
2. The method of claim 1, wherein the relevant directory of the application includes an installation directory of the application, and wherein, in a case where the electronic device generates the first access instruction corresponding to the application, before intercepting the first access instruction, the method further comprises:
receiving a first input of an application icon for the application in an application mall;
in response to the first input, an installation catalog of the application is created in the electronic device by a user space file system FUSE.
3. The method of claim 2, wherein intercepting the first access instruction comprises:
Intercepting the first access instruction by a driver of the FUSE;
the forwarding the first access instruction to the server corresponding to the application includes:
forwarding, by a daemon of the FUSE, the first access instruction to the server.
4. The method of claim 1, wherein the relevant catalog of the application comprises an installation catalog of the application, and wherein the first information indicates whether an installation package of the application exists in the installation catalog of the application;
the executing the task corresponding to the first information includes:
generating a second access instruction when the first information indicates that an installation package of the application exists in an installation catalog of the application;
intercepting the second access instruction, and sending the second access instruction to the server, wherein the second access instruction is used for requesting to read application data in the installation package;
receiving application data in the installation package sent by the server;
and starting the application based on the application data.
5. The method according to claim 4, wherein the application data includes icon information of an application icon of the application;
After receiving the application data in the installation package sent by the server, the method further includes:
and displaying the application icon of the application based on the icon information.
6. A processing apparatus, the apparatus comprising: the device comprises an execution module, a sending module and a receiving module;
the execution module is used for intercepting a first access instruction under the condition that the electronic equipment generates the first access instruction corresponding to the application;
the sending module is further configured to forward the first access instruction intercepted by the executing module to a server corresponding to the application, where the first access instruction is used to access a relevant directory of the application in the electronic device;
the receiving module is used for receiving first information fed back by the server based on the first access instruction sent by the sending module;
the execution module is further configured to execute a task corresponding to the first information received by the receiving module.
7. The apparatus of claim 6, wherein the relevant catalog of the application comprises an installation catalog of the application;
the receiving module is further used for receiving a first input of an application icon of the application in the application mall;
The execution module is further configured to create, in the electronic device, an installation catalog of the application through FUSE in response to the first input received by the receiving module.
8. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
the execution module is specifically configured to intercept the first access instruction through a driver of the FUSE;
the sending module is specifically configured to forward, through a daemon of the FUSE, the first access instruction to the server.
9. The apparatus of claim 6, wherein the relevant catalog of the application comprises an installation catalog of the application, the first information indicating whether an installation package of the application exists in the installation catalog of the application;
the execution module is specifically configured to generate a second access instruction and intercept the second access instruction when the first information indicates that an installation package of the application exists in an installation directory of the application;
the sending module is further configured to send the second access instruction intercepted by the execution module to the server, where the second access instruction is used to request reading of application data in the installation package;
The receiving module is further used for receiving application data in the installation package sent by the server;
the execution module is specifically configured to start the application based on the application data received by the receiving module.
10. The apparatus of claim 9, wherein the apparatus further comprises: a display module; the application data comprises icon information of application icons of the applications;
the display module is used for displaying the application icon of the application based on the icon information after the receiving module receives the application data in the installation package sent by the server.
11. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the processing method of any of claims 1 to 5.
12. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the processing method according to any of claims 1 to 5.
CN202311555166.5A 2023-11-20 2023-11-20 Processing method, processing device, electronic equipment and readable storage medium Pending CN117591309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311555166.5A CN117591309A (en) 2023-11-20 2023-11-20 Processing method, processing device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311555166.5A CN117591309A (en) 2023-11-20 2023-11-20 Processing method, processing device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117591309A true CN117591309A (en) 2024-02-23

Family

ID=89909338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311555166.5A Pending CN117591309A (en) 2023-11-20 2023-11-20 Processing method, processing device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117591309A (en)

Similar Documents

Publication Publication Date Title
US11799984B2 (en) Installable web applications
US9584612B2 (en) Systems and methods for pushing applications
CN108549568B (en) Application entry processing method and device, storage medium and electronic equipment
US20050223310A1 (en) Displaying information from a portal website
WO2019157846A1 (en) Method and apparatus for opening file and electronic device
US9990214B2 (en) Dynamic agent delivery
US20150058713A1 (en) Method and apparatus for sharing media content and method and apparatus for displaying media content
CN104346075A (en) Method for processing screenshots and client
CN107943921B (en) Page sharing information generation method and device, computer equipment and storage medium
US20130110798A1 (en) Intercepting and processing database commands
CN111817944A (en) Picture sharing method and device and electronic equipment
US20080263140A1 (en) Network System, Server, Client, Program and Web Browsing Function Enabling Method
US20210026913A1 (en) Web browser control feature
CN115599669A (en) Debugging method and device of microservice, electronic equipment and readable storage medium
CN117591309A (en) Processing method, processing device, electronic equipment and readable storage medium
CN114489698A (en) Application program installation method and device
CN113824830A (en) Application management method and device
CN112988426A (en) Message processing method and device
CN107229661B (en) Payment method and device
CN115268729B (en) Object processing method, device, electronic equipment and readable storage medium
US20220309151A1 (en) Method for providing remote service capable of multilingual input and server performing the same
CN117082056A (en) File sharing method and electronic equipment
CN117850820A (en) Application installation method and device and related products
CN114416400A (en) Application running method and device
CN115658088A (en) Application program downloading method and device

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