System and method for providing on-demand mobile applications

By dividing mobile applications into application segments and using virtual machines to generate acyclic graphs, it is possible to launch and search mobile applications without complete installation, solving the problems of download and installation delays and insufficient search capabilities, and improving User experience and access rate.

CN110231941BActive Publication Date: 2024-09-17BEIJING ZHANXINZHANLI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910167654.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-03-05
Filing Date
2019-03-05
Publication Date
2024-09-17
Estimated Expiration
2039-03-05

AI Technical Summary

Technical Problem

Mobile applications take long to download and install, resulting in poor user experience and difficulty in identifying and searching for the applications they want, resulting in a decrease in the number of users.

Method used

By dividing the binary code base of the mobile application into application segments to form a minimum bootable subset (MBS), and using a virtual machine to simulate application operations to generate an acyclic graph, sandbox running and GUI indexing are achieved, allowing incomplete Launch and search the application if installed.

Benefits of technology

Reducing application identification and startup time, improving user experience, increasing the likelihood of users accessing applications, and resolving download and installation delays and insufficient search capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110231941B_ABST
    Figure CN110231941B_ABST
Patent Text Reader

Abstract

The present disclosure provides a system and method for providing on-demand mobile applications, which describes systems and methods for processing applications, interfacing between applications and operating systems, executing applications without installation, and extracting graphical user interface (GUI) content of applications so that the content is indexed and searchable. The present disclosure includes a computer system that executes applications in a progressive, installation-free, and / or searchable manner.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-reference to related applications

[0002] This application claims priority to U.S. Provisional Application No. 62 / 638,379, filed on March 5, 2018, entitled “Application-Level Technology for Running Native Mobile Apps in an Indexed and Searchable Manner” by Hu et al.; and U.S. Provisional Application No. 62 / 638,391, filed on March 5, 2018, entitled “Application-Level Technology for Running Native Mobile Apps in an Installation-Free Manner” by Hu et al.; and U.S. Provisional Application No. 62 / 638,407, filed on March 5, 2018, entitled “Application-Level Technology for Running Native Mobile Apps in a Progressive, Partly Loaded Manner” by Hu et al. The contents of the above applications are incorporated herein by reference in their entirety. Technical Field

[0003] The present disclosure relates to computer operating systems and software applications, and more particularly, to techniques for executing native applications of mobile devices without full installation. Background Art

[0004] The ecosystem of World Wide Web users is a well-known "long-tail" user distribution with most users visiting a few popular websites. Beyond a few popular websites, the number of users visiting websites drops off dramatically. In contrast, the ecosystem of mobile applications (e.g., software developed to run on Google™ Android and Apple™ iOS) shows an even more extreme "winner takes all" user distribution. In other words, most users use a few popular applications, and very few users use applications that are less popular on the market.

[0005] The lack of users for the vast majority of mobile apps may be partially attributed to the long download and installation times. For a mobile app to run, it usually requires a full installation to the host operating system. A full installation may involve verifying the software's compatibility with the operating system and copying code, files, and resources to the mobile device's local storage. A native software application typically has better performance because it is fully compatible with the operating system and has locally stored code, files, and resources.

[0006] In addition, it may be difficult for users to identify the desired application because, unlike web pages, the content within the application cannot be used to index and search for applications. Typically, users need to rely on the application title name, screenshots, and a summary describing the application to identify the desired application.

[0007] In summary, delays associated with installation, verification, and other procedures as well as limited search capabilities for finding suitable mobile applications result in a poor user experience, which reduces the number of users willing to take the time to find the application they need and complete the installation process. Summary of the invention

[0008] The present invention provides a system for providing on-demand mobile applications, comprising:

[0009] a segment decoupler configured to decouple the mobile application by partitioning a binary code base of the mobile application into application segments, wherein a partial set of the application segments forms a minimum bootable subset MBS for launching the mobile application;

[0010] A virtual machine configured to simulate the operation of a mobile application and generate an acyclic graph representing the order of application segments accessed during the simulation; the virtual machine is further configured to perform one or more of the following actions to accomplish the generation of the acyclic graph: mapping the various application segments accessed by the application, monitoring the execution of the mobile application to determine which application segments are accessed, determining the order in which the application segments are accessed, generating an entry in the acyclic graph when an application segment is accessed, and recording the matching application segment as the next entry in the acyclic graph; and

[0011] A mobile application library is configured to store MBSs, application segments and acyclic graphs, wherein the mobile application library provides access to the MBSs and application segments to execute mobile applications. The present invention also provides a method for providing on-demand mobile applications, the method comprising:

[0012] Decoupling a mobile application into application segments by dividing a binary code base of the mobile application into application segments, wherein a partial set of application segments forms a minimum bootable subset MBS, which allows sandboxed execution to launch the mobile application without requiring a full installation process;

[0013] Simulate the operation of mobile applications;

[0014] generating an acyclic graph representing the order in which application segments are accessed during the simulation, wherein the generating of the acyclic graph is accomplished by performing one or more of the following actions: mapping the various application segments accessed by the application, monitoring the execution of the mobile application to determine which application segments are accessed, determining the order in which the application segments are accessed, generating an entry in the acyclic graph when an application segment is accessed, and recording the matching application segment as the next entry in the acyclic graph; and

[0015] MBSs, application segments, and a non-cyclic graph are stored, wherein the MBSs and application segments can be used to execute mobile applications.

[0016] The present invention also provides a system having one or more processors for executing a mobile application, the system comprising:

[0017] The sandbox run configuration is:

[0018] Execute the mobile application by loading a minimum bootable subset MBS, the MBS being a partial set of application segments, and the application segments are formed by segmenting a binary code base of the mobile application;

[0019] interfacing the mobile application and the host operating system so that the mobile application accesses the remotely stored application segments as local resources; and

[0020] obtaining the application segment from the remote server based on the resource request from the mobile application; and

[0021] a GUI scanner configured to index a graphical user interface GUI segment from an application segment;

[0022] wherein the sandboxed run may initially provide a dynamic manifest file to the operating system, the dynamic manifest file recording placeholder system-defined program classes, wherein the dynamic manifest file of the sandboxed run declares the placeholder system-defined program classes that will later be replaced by actual system-defined classes requested by the executed application program;

[0023] Wherein, the GUI scanner is configured to index GUI segments in the following manner:

[0024] Monitor each application segment loaded by the sandbox runtime;

[0025] Determining whether the loaded application segment is a GUI segment; and

[0026] extracting the content of the application segment determined to be a GUI segment; and

[0027] The content of the GUI segments is indexed to enable the system to use the indexed GUI segments to match mobile applications to user search queries.

[0028] The present invention also provides a method for executing an on-demand mobile application using a partial set of application segments, the method comprising:

[0029] Executing the mobile application by loading a minimum bootable subset MBS, the MBS being a partial set of application segments obtained by decoupling the mobile application, wherein the application segments are generated by segmenting a binary code base of the mobile application;

[0030] interfacing the mobile application and the host operating system so that the mobile application accesses the remotely stored application segments as local resources; and

[0031] loading the application segment based on user interaction with the executed mobile application;

[0032] The method of executing an on-demand mobile application using a partial set of application segments further comprises:

[0033] Index the GUI segment of the application segment by:

[0034] Monitor the application segments loaded by the sandbox run;

[0035] Determine whether the loaded application segment is a GUI segment;

[0036] Extract the contents of the GU I segment; and

[0037] Indexes the contents of the GUI segment.

[0038] The present invention also provides a system for providing an on-demand mobile application, the system comprising:

[0039] a segment decoupler configured to decouple the mobile application into application segments, wherein the application data packet is decoupled into a plurality of application segments at a binary level, each application segment corresponding to a portion or segment of a binary code base of the application data packet, wherein a partial set of application segments forms a minimum bootable subset MBS;

[0040] a virtual machine configured to generate an acyclic graph of application segments by simulating operations of a mobile application and recording a sequence of application segments accessed during the simulation;

[0041] The sandbox run is configured to launch the mobile application by loading the MBS without installing it, and continue to execute the mobile application by loading the application segments based on a sequential list of application segment dependencies; viewing the current application segment being accessed and finding the next node in an acyclic graph to determine the next application segment to be accessed, wherein the acyclic graph represents a sequential list of application segment dependencies, the sequential list being used to predict and pre-fetch application segments that the system expects the user to access; based on the prediction, pre-fetching the predicted application segment from a remote location; and

[0042] A GUI scanner is configured to monitor the application segment loaded by the sandbox operation, determine whether the loaded application segment is a GUI segment, extract the content of the GUI segment, and index the content of the GUI segment. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] One or more embodiments of the present invention are shown by way of example and not limitation in the accompanying drawings.

[0044] Figure 1 is a system diagram that illustrates an example of a network system that implements a meta-application system.

[0045] Figure 2 is an activity diagram that illustrates example processes for performing several functions of a meta-application system.

[0046] Figure 3 is a flow chart that illustrates an example process for identifying and acquiring an application.

[0047] Figure 4 is a flow chart illustrating an example process for processing an application to allow the application to be launched without fully installing the application prior to launch.

[0048] Figure 5 is a block diagram that describes several components of an application package.

[0049] Figure 6 is a flowchart illustrating an example process for generating an acyclic graph.

[0050] Figure 7 is a system diagram illustrating an example system for operating a sandbox runtime interface application and an operating system.

[0051] Figure 8 is a flow chart that illustrates an example process for launching and executing an application.

[0052] Fig. 9 is a diagram that illustrates an example process of executing an application.

[0053] Fig.10is a diagram that illustrates another example process of executing an application.

[0054] Fig.11 is a diagram that illustrates an example process for monitoring application execution to record the application segments that are accessed.

[0055] Fig.12 is a diagram illustrating another example process of monitoring application execution to record execution of accessed application segments.

[0056] Fig.13 Is a tree diagram that illustrates the sample application and sample GUI resources.

[0057] Fig.14 is a block diagram illustrating an example processing system that can implement at least some of the operations described herein. Specific implementation plan

[0058] As mentioned above, the download and installation process of mobile applications consumes time, data bandwidth and data storage capacity. In addition, due to the lack of text-based search capabilities based on the content within the application, it is difficult for users to identify the desired application.

[0059] One attempt to solve the download and installation problem is to use new software frameworks. Examples of these new software frameworks include Google Play TM Instant, which allows users to try an app before fully installing it on their device. Google Play TM Instant Apps (or "Instant Applications") attempt to reduce application download and installation overhead by requiring developers to comply with a set of protocols that allow Instant Apps to run on user devices without downloading and installing a package containing the entire Instant App. Nevertheless, Instant Apps face three disadvantages: First, developers need to reorganize existing applications at the feature level and source code level, which can be very costly in terms of time and effort. Second, a large number of legacy applications and devices (e.g., applications developed to run on Android operating system 6.0 or earlier) cannot take advantage of Google Play due to software structure incompatibility. TM Instant. Third, for those who do not have access to and execute official Google TM Services or Google TMDevices that don't support framework applications, such as the more than 600 million Android-based devices in China, do not support Instant Applications.

[0060] Developers can build new apps from scratch to support Google Play as part of the Android app portfolio TM Instant. However, application developers must modify the development of their applications from traditional development frameworks and processes. Specifically, developers need to split their applications into various modules, including basic feature modules, various feature modules, installable modules, and instant modules. By breaking down the application into various modules, instant application modules can be installed as needed instead of all at once. For example, an instant application can be launched with only the basic feature module. When a user accesses features within the application, the corresponding feature modules are installed.

[0061] One attempt to solve the accessibility and searchability problems is mobile deep linking. Mobile deep linking allows a web page link or programmatic request to call a uniform resource identifier (URI) intent. URI intent uses a string to identify a specific resource, such as content in a mobile application. For example, once a web page URI intent is called within the operating system, the operating system will attempt to launch a user-specified or available application to process the URI. In some embodiments, the string is similar to a hyperlink used to reference a specific website. In addition to referencing mobile application content, the string also provides keywords for search engines to index. Therefore, mobile application content is more likely to be displayed as a search result. This is a strategy for search engine optimization (SEO). However, mobile deep linking requires the target application to be fully installed in advance, which leads to the aforementioned basic problems associated with downloading and installing traditional software applications.

[0062] Therefore, a meta-application system and method that addresses these challenges is disclosed herein. In particular, the meta-application system and method provide an application-level runtime environment for executing mobile applications that are not fully installed. In addition, the meta-application system and method can be configured to index applications based on the content of the application. In some embodiments, the application is launched using a minimum bootable subset (MBS). For the purposes of this discussion, an MBS is a mapping of a portion of an application at the binary level. An MBS allows an application to be launched without downloading the entire binary code of the application. Because the MBS uses the existing binary code base of the application, the meta-application system and method do not require rewriting, recompiling, and / or repackaging of existing applications.

[0063] After launching an application using MBS, additional modules are loaded incrementally as they are needed to perform various functions of the application. Some embodiments provide an optional function to index applications based on the graphical user interface (GUI) content of each application. The indexed content allows a user to perform a search for an application by matching a user's text-based query with the actual content of the application and receive relevant search results.

[0064] Using the systems and methods disclosed herein, the time and effort required to identify and launch new applications is greatly reduced. By reducing the friction of searching and installing applications, the disclosed embodiments reduce the initial barriers for users to test and run new applications and increase the likelihood that users will access applications.

[0065] System Overview

[0066] Figure 1 1 is a system diagram illustrating an example network system 100 for implementing a meta-application system. Network system 100 includes servers 120-122 and mobile devices 130 and 131. Each of servers 120-122 and mobile devices 130 and 131 can communicate with each other via communication network 110.

[0067] The communication network 110 may include one or more networks of any type, including packet-switched communication networks and / or various other types of telecommunication networks, such as a local area network (LAN), a wireless local area network (WLAN), a cellular network (e.g., a 4G or 5G network), a plain old telephone system (POTS) network, a wide area network (WAN), etc. In some embodiments, the communication network 110 may provide access to other network-connected devices and services. Additionally, or alternatively, the servers 120-122 and the mobile devices 130 and 131 may communicate via other networks or direct connections.

[0068] Servers 120-122 may provide various functions of the meta-application system. For example, the servers may be configured to perform one or more of the following: identifying a requested mobile application, determining whether the requested application has been processed by the meta-application system, decoupling the application into application segments, simulating the execution of the application, generating an acyclic graph associated with the application, storing data associated with the application (e.g., MBS, application segments, and acyclic graphs), and transmitting data associated with the application. In some embodiments, one or more of servers 120-122 may be configured as a virtual machine to perform certain tasks, such as simulating the execution of mobile devices 130 and / or 131. In other embodiments, one or more of servers 120-122 may also be configured as a decoupler to decouple the application into application segments.

[0069] Mobile devices 130 and 131 may provide various functions of the meta-application system. In particular, the meta-application system may be configured to perform one or more of the following at the mobile device: declaring placeholder classes, launching applications, interfacing applications with the operating system of the mobile device, loading application segments, and / or storing data associated with the application (e.g., MBS, application segments, and acyclic graphs). In some embodiments, mobile devices 130 and / or 131 may be configured to operate Figure 7 In other embodiments, mobile devices 130 and / or 131 may be further configured to operate a GUI scanner that can dynamically detect and index GUI components of mobile applications. In some embodiments, mobile devices 130 and 131 may be portable devices, such as smart phones (e.g. Phone or Phone), tablet devices (such as Tablet or Tablets), laptops (e.g. Air) etc.

[0070] Activity Diagram Overview

[0071] Figure 2 2 is an example activity diagram 200 illustrating a method for performing various functions of a meta-application system. Activity diagram 200 involves processes and communications between mobile device 201, server 202, application repository 203, and server 204. In some embodiments, activity diagram 200 is an overview of several systems and methods described in subsequent figures. As such, details of some examples of steps performed in activity diagram 200 can be found in subsequent figures.

[0072] In some embodiments, servers 202 and 204 may provide similar capabilities. Alternatively, servers 202 and 204 may each provide unique functionality that meets the needs of the meta-application system. For example, server 202 may perform operations to prepare applications for execution by other devices such as mobile device 201. These operations include identifying the requested application, determining whether to process the identified application, obtaining the identified application if necessary, processing the identified application, and storing data related to the processed application. In some embodiments, the details of these operations are described in detail in Figure 3 -6. In contrast, the server 204 can process the application so that the application can be indexed and searched based on the content of the GUI elements of the application. In some embodiments, the details of these operations are provided in Fig.11 –13.

[0073] In step 210, server 202 identifies and obtains an application for processing. Server 202 may identify an application for processing. For example, an application may be identified based on its popularity, inclusion in a list of applications formed, user request, etc. In some embodiments, the application may be identified based on Figure 3 In step 211, server 202 determines whether the application identified in step 210 has been previously processed by the meta-application system. In some embodiments, the application can be processed based on Figure 3 202 to perform step 211. If the application has not been processed before, the server 202 can obtain the identified application to process in step 212. For example, in step 212a, the server 202 can send a request for the identified application to the application repository 203. In step 212b, the server 202 can receive the identified application from the application repository 203. In some embodiments, the application can be processed according to the Figure 3 Step 212 is performed by performing step 303 described in the above.

[0074] In step 213, after having acquired the identified application, server 202 may process the application for execution by the meta-application system. In some embodiments, processing the application may include one or more of: simulating execution of the application, decoupling a binary code base of the application, generating an acyclic graph of the application, and storing data associated with the application (e.g., MBS, application segments, acyclic graph, etc.). In some embodiments, step 213 may be performed by a decoupler and / or a virtual machine of the meta-application system. Additionally, step 213 may be performed by a virtual machine of the meta-application system. Figure 4 – is performed in a manner consistent with the details described in 6.

[0075] In step 214, server 202 may transmit application data associated with the processed application to mobile device 201. As mentioned above, the application data may include MBS, application segments, acyclic graphs, etc. In some embodiments, the data associated with the application may be transmitted once the application is processed. Alternatively, when mobile device 201 requests access to the application, the data may be stored (e.g., at server 202 and / or 204) and transmitted to mobile device 201. In some embodiments, the application data may be transmitted from server 202 to mobile device 201 in one transmission. Alternatively, the application data may be transmitted in parts using multiple transmissions.

[0076] In one example, the MBS may be initially transmitted so that the application can be started immediately even if other application segments have not yet been transmitted. Multiple application segments are then incrementally transmitted in one or more transmissions. The transmissions may occur in real time as the application is executed on the mobile device 201. Alternatively, or in addition, the transmissions may occur when the application segments are pre-fetched based on a prediction of which application segments will be accessed. Additionally, an acyclic graph may be transmitted to the mobile device 201. The acyclic graph may be used to track the state of the application (e.g., the current application segment being accessed) to predict the next application that will be accessed.

[0077] In step 215, mobile device 201 launches and executes the application. This step may include one or more of the following: declaring a placeholder class, launching the application, interfacing between the application and the operating system, loading application segments, and storing application data. In some embodiments, step 215 may be performed by a runtime engine of the meta-application system (e.g., Figure 7 Alternatively, step 215 may be performed with Figure 7 – is performed in a manner consistent with the details described in 9.

[0078] Optionally, in step 216, mobile device 201 scans the applications it executes to index GUI components. In some examples, step 216 can be performed by a GUI scanner on mobile device 201 as described herein. Alternatively, or in addition, step 216 can be performed by servers 202 and / or 204. In some embodiments, step 216 can be performed with Fig.11 –13.

[0079] In step 217, mobile device 201 may transmit data associated with the indexed GUI components to server 202 and / or 204 for further processing in step 218. For example, in step 218, GUI components may be parsed, indexed, and weighed. These steps facilitate a better method for users to search for applications. Fig.11 Step 217 is performed in a manner consistent with the details described in –13.

[0080] Identify and obtain applications

[0081] Figure 3 is a flow chart illustrating a process 300 for identifying and acquiring applications that are processed and executed by a meta-application system. In some embodiments, Figure 3 The steps in may be performed by a server (eg, servers 120 - 122 , 202 , and / or 204 ) in the meta-application system.

[0082] In step 301, the meta-application system identifies an application that the meta-application system will process. The application may be identified based on its popularity, inclusion in a formed list of applications, user request, etc. For example, the meta-application system may identify an application listed in a top 100 most downloaded list on the Google™ Play store or the Apple™ App store. Alternatively, the meta-application system may identify the application in response to a request for the application from a mobile device. For example, a user may request access to an application from a sandbox runtime on a mobile device (e.g., mobile device 130, 131, and / or 201). In response, the sandbox runtime may send a request to the meta-application system, e.g., server 120, 121, 122, 202, and / or 204, to access the requested application. The server may process the application immediately or add the application to a list of applications that it will process.

[0083] In step 302, the meta-application system determines whether the identified application has been processed. In some embodiments, the meta-application system may

[0084] The meta-application system may store information associated with the application (e.g., MBS, application segments, acyclic graphs, etc.) in a repository. For example, the repository may be implemented on servers 120, 121, 122, 202, and / or 204. The meta-application system may then determine whether the identified application is stored in the repository. If the application is stored in the repository, then the identified application has already been processed, and the meta-application system does not need to obtain the application for processing. Instead, the meta-application system may provide already available application data corresponding to the requested application. If the application is not stored in the repository, then the application has not yet been processed, and the meta-application system proceeds to step 303. In other embodiments, the meta-application system maintains a list, index, etc. indicating which applications have been processed. The meta-application system may check the list or index to determine whether the identified application has been processed.

[0085] In step 303, the meta-application system obtains the identified application from an application repository. In some embodiments, the application repository may be, for example, Google Play TM App Store or Apple TM An application repository may be a public marketplace for applications such as an app store. However, an application repository may be any collection of applications, such as a publicly or privately accessible database. The meta-application system may send a query to the application repository. Alternatively, the meta-application server may perform a search on the Internet, other publicly accessible networks, or privately accessible networks to obtain the identified application.

[0086] Processing Applications

[0087] Figure 4 4 is a flow chart illustrating an example process 400 for processing an application to allow the application to be launched without fully installing the application. In some embodiments, steps 401-404 can be performed by a decoupler and / or a virtual machine operating at servers 120, 121, 122, 202, and / or 204. Additionally, data processed or generated in steps 401-404 can be transmitted to a mobile device (e.g., mobile device 130, 131, 201, etc.) in step 405.

[0088] Decoupling Applications

[0089] Originally, an application was a collection of compiled programming code and data used to execute the application. The collection of data was aggregated into application packages for distribution. For example, Google TMAndroid applications are distributed in Android package files (APK). In some embodiments, the application package is organized by resources such as: source code, documentation, configuration, executable files, and binary libraries contained in the distribution package.

[0090] In step 401, the meta-application system decouples the application data package into multiple application segments at the binary level. In other words, each application segment corresponds to a portion or segment of the binary code base of the application data package. In one example, each application segment corresponds to a portion of the application data package associated with the application, such as: compiled code, binary files to be linked, data sources, manifest files, graphics resources, etc. In some embodiments, a partial collection of application segments can be collected to form an MBS. As described above, an MBS is a portion of an application that allows the application to be launched without downloading the entire binary code of the application. In some examples, step 401 can be performed by a meta-application system decoupler. In some embodiments, a value can be assigned to each decoupled application segment to identify the segment. In some examples, this can be done by executing Figure 6 The assigned value is generated by step 601 described in .

[0091] Simulation Application

[0092] In step 402, the meta-application system can be configured to simulate the execution of the application. In one embodiment, after the binary code base of the application is decoupled, the virtual machine simulates the execution of the application. The virtual machine can utilize the same application binary interface (ABI) and operating system used by the actual user on the mobile device to ensure accurate simulation. In some embodiments, the virtual machine monitors the internal data bus connecting the external data storage and the internal memory during the simulation to record the application segments accessed during the simulation. Various tools (such as QEMU virtual machine, network sniffer tool or instrumented file system driver) can be used to perform simulation. In one example, the network disk is installed on the QEMU virtual machine, and the network sniffer tool (such as WireShark) is configured to monitor the raw data transmitted between the virtual machine and the network disk. In another embodiment, the hooked glibc library (hooked glibc library) can be associated with the QEMU virtual machine.

[0093] Generate an acyclic graph

[0094] In step 403, the meta-application system generates an acyclic graph representing the order of the application segments accessed during the simulation. In some embodiments, when the application is executed by the virtual machine on the meta-application system, the generation of the acyclic graph can be performed. For example, the acyclic graph can be generated by a server 120-122, 202 and / or 204 away from the mobile device. Compared with the mobile device, the server can provide greater processing power (processing power) and data storage capacity to perform simulation and generate an acyclic graph. Alternatively, the acyclic graph can be generated by the sandbox operation at the mobile device. For example, when the user executes the mobile application on the sandbox operation, the acyclic graph can be generated in real time, or the data from the real-time execution can be used to update the acyclic graph. In this embodiment, there is no need to simulate the application (e.g., step 402).

[0095] Generating the acyclic graph may be accomplished by performing one or more of the following actions: mapping the various application segments accessed by the application, monitoring the execution of the mobile application to determine which application segments are accessed, determining the order in which the application segments are accessed, generating an entry in the acyclic graph when an application segment is accessed, and recording the matching application segment as the next entry in the acyclic graph. In some embodiments, the acyclic graph may be generated based on the number of application segments accessed by the mobile application, ... Figure 6 Step 403 is performed according to the steps described in .

[0096] Storing application data

[0097] In step 404, the meta-application system may store application data, including MBSs, application segments, acyclic graphs, predictions about which application segments will be accessed, and other data associated with the application. In some embodiments, the MBSs and application segments are available to mobile devices 130, 131, and / or 201 so that they can be easily transferred to mobile devices that wish to launch and execute applications. In some embodiments, the predicted data is stored to determine which application segments should be made available by the server or preemptively transmitted or pre-fetched by the mobile device. When a prediction of the next application segment is made, the application segment can be pre-transmitted to the mobile device.

[0098] Transfer MBS and application segments

[0099] In step 405, the meta-application system may transmit various application data processed or generated in steps 401-404. For example, servers 120, 121, 122, 202 and / or 204 may transmit various application data to mobile devices 130, 131, 201, etc. In some embodiments, the various application data include MBS, application segments, acyclic graphs, application assets and resources. Application assets and resources are data that facilitate the use of applications. For example, assets and resources may be graphics, audio files, graphical user elements, data sets, etc. The server may transmit assets and resources in advance based on a prediction of application segments to be accessed or in response to a request from an application for an asset or resource.

[0100] In one example, the meta-application system may first transmit the MBS to the mobile device. The MBS may be transmitted in advance before or in response to a user request to launch an application. The meta-application system may then optionally transmit various application segments. Additionally, the meta-application system may transmit other application data along with the MBS and / or application segments. One of ordinary skill in the art will recognize that the various application data may be transmitted in a different order or simultaneously.

[0101] Example of an application data packet

[0102] Figure 5 is a block diagram depicting an example APK for distributing applications in a meta-application system. In some embodiments, segments may be represented as folders in a data package file.

[0103] The APK may include a central application segment 501 of the application. The central application segment 501 may include assets, library files 502, resources (res), META-Inf 503, manifest

[0104] (manifest.xml) 504, classes.dex, and resources.arsc. The library file 502 may also contain data corresponding to different processor architectures, such as ARM EABI, ARM EABI-v7a, x86, MIPS, etc. Similarly, the META-inf503 folder may contain various signatures 503. The manifest (Manifest.xml) file 504 may provide manifest data, including the name, version, access permissions, and referenced libraries associated with the application. Classes.dex may contain dalvik / ART bytecode 505, which includes system-dependent classes 506 and system-independent classes 507.

[0105] In some embodiments, the APK may be decoupled into multiple application segments. The application segments may correspond to multiple parts of the central application segment 501. For example, a particular application segment may correspond to a manifest (manifest.xml) file. The manifest includes the name of the application, permissions, version, access permissions, and referenced libraries. This information is important for launching the application, so the application segment corresponding to the manifest file may be part of the MBS of the application.

[0106] In another example, a specific application segment may correspond to the asset portion of the central application segment 501. Assets are typically loaded asynchronously (i.e., several assets are loaded at different times). Since assets may not be needed at startup, the application segment corresponding to the assets may not be part of the MBS of the application. In yet another example, a specific application segment may correspond to the resource ("res") portion of the central application segment 501. The resource portion includes structures for the front end (i.e., the portion of the application that interacts with the user). Resources are typically loaded synchronously (i.e., several resources are loaded at the same time). Since assets may be needed at startup, the application segment corresponding to the resource portion may not be part of the MBS of the application.

[0107] In some embodiments, decoupling of the application binary code base includes extracting classes.dex into system-dependent categories and system-independent categories. The system-dependent categories include inherited Android framework categories, such as Fig.10 The activity, service, or broadcast receiver described above. System-independent categories include user-defined categories and third-party library categories.

[0108] Example of generating an acyclic graph

[0109] Figure 6 6 is a flow chart illustrating an example process 600 for generating an acyclic graph. In some embodiments, the acyclic graph may represent a sequential list of dependencies of application segments. Specifically, the sequential list represents the order in which the application segments are accessed during execution of the application. The sequential list may record the actual order in which the application segments are accessed, or it may represent a prediction of the order in which the application segments may be accessed. In some embodiments, the initial entry in the acyclic graph contains one or more application segments that are essential to initially launching the application, which may be identified as an MBS.

[0110] In some embodiments, each node in the acyclic graph can represent an application segment, and each edge is a directed edge that represents a transition from access from one application segment to access of the next application segment during execution of the application. By having an acyclic graph, there are no graph circles, so there is an obvious start and end node path (i.e., the first application segment visited and the last application segment visited is obvious).

[0111] By generating an acyclic graph, the meta-application system can predict application segments that are likely to be accessed during the execution of an application. For example, the meta-application system can look at the current application segment being accessed and find the next node in the acyclic graph to determine the next application segment to be accessed. Based on the prediction, the meta-application system can pre-fetch the predicted application segment from a remote location. When the executed application needs the pre-fetched application segment, the segment has already been downloaded and is available for use. By being immediately available, any delays caused by not downloading the entire binary code base locally (e.g., by performing a full install) can be eliminated or mitigated. The performance may be the same or at least similar to an implementation in which the entire binary code base is downloaded before launching the application.

[0112] In one illustrative example, the order of application segments accessed during execution of an application may indicate that application segments AD are accessed during execution. The record shows that segment A is accessed first during execution. In some embodiments, segment A may be MBS. The record also shows that after segment A is accessed, segment B is accessed 80% of the time, segment C is accessed 10% of the time, and segment D is accessed 10% of the time. Therefore, the meta-application system may predict that the application is likely to access segment B after segment A. Therefore, the meta-application system may pre-fetch segment B after segment A is accessed. By making segment B pre-fetched and available, the meta-application system may avoid any delays that may be incurred when the segment must be retrieved after a request. This is particularly true when the segments are stored remotely. After segment B is downloaded, the meta-application system may continue by pre-fetching segments C and D. In some embodiments, because segments C and D are predicted to have equal probabilities of being accessed next, they may be acquired simultaneously. Alternatively, they may be acquired sequentially in any order.

[0113] Returning to process 600, the meta-application system generates an application segment table by mapping the various application segments accessed by the application during the monitoring step in step 601. In some embodiments, the meta-application system can index, list, or otherwise identify all application segments of an application.

[0114] For example, the meta-application system can then subsequently perform a hash function (e.g., an MD5 hash) on each application segment to generate a hash value identifying the application segment. Alternatively, the meta-application system can use coordinate pair data to map the application segment. For example, the value can be an XY coordinate pair for identifying the location of the application segment within the binary code base of the application package. The X value can represent an offset from the beginning of the binary code base. For example, an X value of zero represents the beginning of the binary code base. An X value of 128 indicates that the application segment starts 128 bytes from the beginning of the binary code base. The Y value represents the length of the binary segment. For example, a Y value of 248 represents an application segment with a length of 248 bytes. Therefore, an XY value of (128, 248) represents an application segment that starts 128 bytes from the beginning of the binary code base and ends at 376 bytes from the beginning of the binary code base.

[0115] In step 602, the meta-application system monitors the execution of the application to determine which application segments are accessed and the order in which the application segments are accessed. In some embodiments, the virtual machine of the meta-application system can monitor the execution of the application before the user accesses the application during simulation. Alternatively, or in addition, the meta-application system can monitor the execution of the application in real time as the user accesses the application using the sandbox runtime. In some embodiments, the data bus of the meta-application system is monitored to determine which portion of the binary code base is accessed. In some embodiments, the virtual machine examines instructions to load raw data from a data store (e.g., local memory accessed by a processor executing the mobile application) into an internal register of the processor.

[0116] In step 603, the meta-application system matches the application segment being accessed with the application segments on the application segment table. In some embodiments, the application segments being accessed during monitoring step 602 are mapped to entries in the application segment table generated in step 601. For example, the meta-application system can hash the application segment being accessed and map the resulting hash value to an entry stored in the application segment table. Alternatively, the meta-application system can determine an XY value for the application segment being accessed and map the value to an entry stored in the application segment table. By mapping the application segments being accessed, the virtual machine can keep track of which application segments are being accessed.

[0117] In step 604, when a match is detected in step 603, the meta-application system generates a node in the acyclic graph. For example, the meta-application system can mark or flag the matched application segment as "visited" on the application segment. Additionally, data can be assigned or generated to indicate the temporal order relationship of the application segment to other application segments that were visited. For example, a timestamp or value indicating the order of the seriality can be stored with the application segment entry of the application segment table.

[0118] In some embodiments, the binary code repositories of all application segments have been marked as loaded at least once, and the meta-application system stops recording the application segments that are accessed. Alternatively, the meta-application system can continuously record the application segments that are accessed by performing multiple simulations. By continuously recording the order in which components are accessed during the simulation, the meta-application system can update and improve predictions of when application segments are accessed. Additionally, or alternatively, the meta-application system can also record the order in which application segments are accessed when a user executes and uses the application in real time. Specifically, when the sandbox runs as a user executes the application, the order in which the application segments are accessed is based on the characteristics or portions of the application accessed by the user. By recording the order in which actual users access the application segments, the order list can be updated and improved.

[0119] Sandbox operation

[0120] Figure 7 is a system diagram showing an example system 700 for operating a sandbox runtime to launch an application and interfacing a host operating system with a mobile application. The example system 700 includes a sandbox runtime 701, an application 702, and an operating system 703. In the application 702, applications 704 and 705 are executed by directly interfacing with the operating system 703 without using the sandbox runtime 701. In contrast, applications 706-709 are executed by interfacing with the sandbox runtime 701 serving as an interface to the operating system 703.

[0121] The operating system 703 includes an application framework 710 and a library and kernel 730. The application framework 710 includes Java classes defined to provide high-level services to applications. The application framework 710 may include Android Manager Service (AMS) 711, PMS 712, WindowManager 713 and 714, content provider 715, view system 716, resource manager 717, and various framework components 718. In one example, AMS 711 is a Java class that is similar to Fig. 9 The activities and services described interact.

[0122] The library and kernel 730 include libraries for providing access to a variety of services and data resources. The library and kernel 730 may include a media framework 731, SQLite 732, OpenGL|ES 733, an OS Kernel 734, and an Android Runtime 750. In one example, SQLite 732 includes a java class that facilitates database management. In another example, OpenGL|ES 733 provides a java class that facilitates graphics rendering. In more detail, the system kernel 734 includes a hardware driver 735, a Binder driver 736, and various kernel components 737. The OS runtime 750 includes CoreLib 751 and a Dalvik / ART VM 752.

[0123] By serving as an interface for applications 706-709, sandbox operation 701 can facilitate privileged access to resources provided by operating system 703. In some embodiments, operating system 703 does not know that applications 706-709 have been executed. Therefore, applications 706-709 may not have direct privileged access to resources provided by operating system 703. However, sandbox operation 701 can provide access privileges for applications 706-709. For example, sandbox operation 701 can provide applications 706-709 with privileged access to hardware resources (e.g., camera systems and network interfaces of mobile devices) controlled by the Linux kernel of operating system 703. Additionally, sandbox operation 701 can provide privileged access to user data (e.g., user contacts, login credentials, etc.) by analogy via operating system 703 content provider 715.

[0124] Additionally, sandbox operation 701 can improve the user experience of the meta-application system by merging access privilege requests to users into user-sensitive resources. For example, without sandbox operation 701, each application 704 and 705 can individually request the user's access privileges to user-sensitive resources such as the user's contact list, the user's location information, etc. In contrast, sandbox operation 701 can initially request access privileges to user-sensitive resources from the user. By obtaining access privileges from the user, sandbox operation 701 can provide access privileges to those resources to applications 706-709. For example, sandbox operation 701 can request access privileges to the user's contact list. Once the user grants access privileges to the contact list, sandbox operation 701 can control which applications 706-709 can access the resource. For example, sandbox operation 701 can specifically provide access privileges for specific applications such as applications 706 and 707. Those of ordinary skill in the art will recognize that other access privilege schemes can be utilized. For example, certain types of applications (e.g., communication and social applications) can receive access privileges to the user's contact list. You can also search for apps based on the publisher of the app (e.g. Google TM The access privileges are determined by the following methods: (i) the date when the application is launched on the sandbox runtime 701, (ii) whether the application is on the whitelist, (iii) whether the application is not on the blacklist, etc. Additionally, some applications may have access privileges to some resources but not to other resources.

[0125] Figure 8 8 is a flow chart illustrating an example process 800 for executing an application using a meta-application system. In some embodiments, the process may be performed by a sandbox execution 701. As described above, the sandbox execution 701 serves as an interface between the applications 706-709 and the operating system 703. In some embodiments, the sandbox execution 701 itself is an application that is installed on the operating system 703 in order to operate. Once the sandbox execution 701 has been installed on the operating system 703, the applications (e.g., the applications 706-709) executed on the sandbox execution do not need to be fully installed.

[0126] Conceptually, the operating system 703 is unaware of the applications 706-709 running on the sandbox execution 701. Similarly, the applications 706-709 running on the sandbox execution 701 are also unaware that they are running on the sandbox execution 701 instead of the underlying operating system 703. All interactions between the applications 706-709 and the operating system 703 are proxied through the sandbox execution 701. For example, the sandbox execution 701 manages programmatic calls between the applications 706-709 and the operating system 703.

[0127] In step 801, the sandbox operation 701 declares a placeholder class that is later used to make a call to the operating system 703 to request the actual class required by the application 706-709. In some embodiments, the operating system 703 requires all system-defined classes required by the application to be pre-registered. When the application is installed on the operating system, it can be declared through a manifest file. Therefore, in order to meet the registration requirements of the operating system, the sandbox operation 701 can initially provide a dynamic manifest file to the operating system 703, which records the placeholder system-defined program classes. Specifically, the manifest file of the sandbox operation declares placeholder system-defined classes (e.g., activities, services, content providers, broadcast receivers, and intent classes), which will later be replaced by the actual system-defined classes requested by the executed application. The placeholder system-defined class includes functions to obtain information from the intent call as described below.

[0128] In step 802, the sandbox execution 701 launches one or more of the applications 706-709 without a complete installation. To achieve this, the sandbox execution 701 executes one or more of the applications 706-709 by loading the MBS instead of the entire binary code base of the application package. In some embodiments, as described above and especially in Figure 4 The MBS is determined during the decoupling process.

[0129] In step 803, sandbox execution 701 serves as an interface between applications 706-709 and operating system 703 by retrieving application segments from a location remote from the mobile device executing operating system 703. By retrieving application segments for applications 706-709, sandbox execution 701 allows applications to access remotely stored application segments as local resources.

[0130] In one example of running without sandbox 701, unmodified intent calls are transmitted from application 704 to operating system 703. When the application wants to provide specific functionality, it generates an intent call directed to the host operating system and transmits it. The intent call contains parameters representing the class required by application 704. Operating system 703 parses the received intent call, analyzes the various parameters of the intent call, and starts the activity represented by the intent call.

[0131] In a comparative example utilizing sandbox operation 701, application 706 generates an intent call intended for operating system 703 and transmits it. The intent call is intercepted by sandbox operation 701 instead of reaching operating system 703. Sandbox operation 701 then parses the intent call to determine the activity or class represented by the target field of the intent call. Sandbox operation 701 then initiates an idle (i.e., unoccupied) placeholder activity that was previously declared (e.g., declared by a manifest file of sandbox operation 701). The initiated placeholder activity is in turn transmitted to operating system 703 to start the activity represented by the intent call.

[0132] For example, application 706 may want to initiate a "Video Playback Activity" activity class. Application 706 requests the "Video Playback Activity" class by generating an intent call with a specified "Video Playback Activity" target field and transmitting the intent call to operating system 703. The proxy system handler of sandbox operation 701 intercepts the intent call and extracts information from the target field. Since application 706 is not fully installed on the host operating system (i.e., it does not provide a manifest file declaring the requested class to operating system 703), the "Video Playback Activity" class requested by application 706 is not registered and is not available. However, as described above, sandbox operation 701 previously used its own manifest file parsed by operating system 703 to declare a placeholder class. Sandbox operation 701 replaces the target field of the intent call with a placeholder activity, and saves the activity name and related information in the custom field of the placeholder activity. Then, the modified placeholder activity is passed to operating system 703. After receiving the modified placeholder activity, the operating system 703 calls the lifecycle function corresponding to the requested class. In this way, the "Video Playback Activity" activity is launched to facilitate the operation of the application 706 that runs the placeholder class using the sandbox. TM Other classes and activities in the Android application can also be proxied by their placeholder counterparts in the sandbox execution 701 and started accordingly.

[0133] In step 804, the sandbox execution 701 obtains and loads one or more application segments to support the operation of the applications 706-709. In some embodiments, the application segments correspond to requested local resources and can be downloaded from a remote server (e.g., server 120, 121, 122, 202, and / or 204). For example, the sandbox execution 701 loads the application segments based on user interaction with the executed application. In another example, the sandbox execution loads the application segments based on a request from the application for local resources (e.g., compiled code, binaries to be linked, data sources, manifest files, graphical resources, etc.). In yet another example, resources are pre-fetched based on a prediction of application segments that will be accessed according to an acyclic graph associated with the executed application. In other words, the application segments are obtained by the sandbox execution 701 before the application requests them. As described above, the prediction can be based on an acyclic graph representing a sequential list of application segments.

[0134] In step 805, the sandbox operation 701 may store application data including MBS, application segments, acyclic graphs, and other data associated with the application. In some embodiments, each time an application is started, an instance of the application is executed until the instance terminates. The sandbox operation 701 may maintain a set of application data for each instance of the application. The application data for each application event may include a state machine that indicates which application segments the event of the application has accessed. The state machine may be based on the acyclic graph of the application. Since the acyclic graph remembers which application segment is being accessed, it can predict which application segment will be accessed later.

[0135] In some embodiments, each state machine tracks the progress of an event along an acyclic graph corresponding to an application. When an application event is first initiated, a copy of the acyclic graph of the application is initialized in an initial state (e.g., an initial state corresponding to the application event that accessed the MBS to initiate). When an event accesses a subsequent application segment during operation, the sandbox operation 701 updates the state machine so that the current state indicates that the application event has accessed the subsequent application segment.

[0136] In another example, when a second event of the application is initiated (at the same device or a different device), a second state machine based on the acyclic graph of the application is initiated. That is, the current state of the second application event is the initial state of application segment A. In a similar manner to the first state machine, the second state machine proceeds forward based on which application segment the second application event accesses.

[0137] Sandbox operation function

[0138] Fig. 9 9 is a schematic diagram showing a process 900 for interacting between an application and an operating system using a series of function calls as described herein. For example, process 900 may be performed by Figure 7 In addition, the AMS 920 may be hosted on a server such as Figure 7 An example of an AMS 711 on an operating system 703 as described in .

[0139] At the beginning of process 900, an interface is established between the application and the operating system by receiving a request for a class or activity from the application. Specifically, an InvocationHandler and a Java proxy class are used to proxy two Android framework function calls (i.e., startActivity() 902 and handleLaunchActivity() 914). StartActivity() 902 is called by an application that requires a specific class or activity. It contains an intent that specifies the requested class or activity and is passed as a parameter to the AMS 920 associated with the operating system. HandleLaunchActivity() 914 extracts the requested intent and reconstructs the requested class or activity.

[0140] In response to the startActivity() 902 call, the AMS 920 responds with a new activity 923 passed to the scheduleLaunchActivity() 913 of the activity thread 910. In addition, the activity thread 910 uses the IApplicationThread proxy object 922 of the AMS 920 to enable the attach() 912. The AMS 920 creates a new process 921, which is passed to the forkAndSpecialize() 931 of the zygote 930. The zygote 930 then calls the fork() to enable the process state binder 916.

[0141] Through this set of function calls, process 900 facilitates an interface for an application to request a class or activity from the operating system. Process 900 allows an application to access a class or activity even if they were not previously declared through the installation process.

[0142] Fig.10 1000 is another diagram showing an example of a class or activity start process 1000. For example, sandbox run 1011 may be an example of sandbox run 701, and AMS 1020 may be such as Figure 7 An example of an AMS 711 hosted on an operating system 703 as described in .

[0143] Here, the activity thread (ActivityThread) 1010 uses the startActivity() call to request a class or activity. In some embodiments, the startActivity() represents the requested activity as a parameter (e.g., a custom member variable) provided by the requesting application. The sandbox operation 1011 checks the startActivity() call and determines that the requested class or activity is the intended blank activity (BlankActivity) 1001. Then, the sandbox operation 1011 searches and selects an unused placeholder activity (i.e., the intended blank stub activity (blankStubActivity) 1002) in its own placeholder activity repository to wrap the blank activity 1001. In some embodiments, the intended blank stub activity 1002 has been previously registered to comply with a variety of AMS 1020 checks that require activities and classes to be registered in the operating system. The blank activity 1001 contained in the intended blank stub activity 1002 is then sent to the AMS 1020.

[0144] As described above, the requested intent (i.e., intent BlankActivity 1001) is passed to AMS 1020 using a placeholder intent (i.e., a new intent BlankStubActivity 1002). The handleLaunchActivity() function receives the placeholder intent (using a new intent BlankStubActivity 1002), extracts the requested intent, and rebuilds the requested activity (i.e., (intent BlankActivity) intent BlankActivity 1001). At this point, the activity of the application that was not pre-registered in the sandbox run manifest is successfully launched in its native form. The requested activity is then provided to the application 1012, which can use the requested activity to continue operating within the sandbox run 1011. Although the application 1012 may operate within the same sandbox runtime 1011 , in some embodiments, the application 1012 may use the requested activity on a different thread or process than the activity thread (ActivityThread) 1010 .

[0145] Using process 1000, a variety of system-defined classes can be started to facilitate the operation of the application. These classes include activity classes, service classes, content provider classes, and broadcast receiver classes. Activity classes are used to run user-interactive code that facilitates user interactive functions (e.g., clicking a button or playing a video). To prevent user interactive functions from being suspended, if the code is slow or unresponsive, the activity class will not wait. Instead, the system will terminate the unresponsive activity. This may appear as an application not responding (ANR) error. Service classes are used to execute code that is not directly displayed to the user (e.g., background processes). For example, a service class can execute code for playing music in the background. Content provider classes facilitate the sharing of information between applications. For example, a phone application can share a user's contact list with an email application. Broadcast receiver classes are used to monitor system events, such as the reception of global positioning system (GPS) location data. In this example, an application can use a broadcast receiver class to monitor when a GPS location is received.

[0146] Monitoring application execution

[0147] Fig.111 is a diagram illustrating an example process 1100 for monitoring the execution of an application to record the application segments that are accessed. Specifically, process 1100 depicts a GUI transitioning from screen 1101 to 1104. In some embodiments, the meta-application system can record the order in which GUI components (e.g., buttons, content items, video clips, etc.) are accessed as the GUI transitions from one screen to another.

[0148] Execution of the application may begin at an initial application screen 1101 containing an icon, a search text input, and button 1. After pressing button 1, the search query is executed and the graphical user interface transitions to screen 1102. Screen 1102 is populated with several content items, a video clip, button 2, and some advertisements. Pressing a content item will open a webview as shown in screen 1103. Similarly, pressing a video clip will open a playback window floating on the layout, as shown in screen 1104. Here, the meta-application system may notice during execution of the application that multiple GUI components are accessed in the following order: icon, search text box, button 1, content items 1-2, video clip, button 2, advertisement, webview, playback activity / view, etc.

[0149] Fig.12 An example diagram 1200 depicting the order in which application segments and resources are accessed during execution of an application is shown. In one example, process 1200 may represent the following: Fig.11 The components and resources that are accessed during the execution of the application described in . First, the initial screen (for example, Fig.11 Screen 1101) may include some application segments or resources, such as: element 1-icon resource, element 2-icon, element 3-application, element 4-search input style (styles), element 5-button resource, element 6-button, element 7-basic activity / view, etc. These application segments and resources are recorded in the order in which they are accessed, and indicate the first segment and component accessed. As the application continues to execute (for example, continue to execute Fig.11 Screens 1102, 1103, etc.), record subsequent application segments and resources.

[0150] Although the order in which the application segments are accessed is recorded, multiple segments may be categorized for parsing, indexing, and weighting. For example, GUI and view components (e.g., element 2 - icon, element 6 - button, etc.) are represented by white boxes. Resources and assets (e.g., element 1 - icon resource, element 4 - search input style, element 5 - button resource, etc.) are represented by dark gray boxes. In addition, other application data, such as application code and libraries (e.g., element 3 - application, element 8 - network library, etc.) are represented by light gray boxes.

[0151] In some embodiments, certain categories may be given greater weights to facilitate accurate search functionality. For example, GUI and view components may be given greater weights because users may search for applications based on keywords related to user interface components. In contrast, application code and libraries may be given less weight because application code may employ complex terms and programming language terms that are unfamiliar to users and therefore irrelevant to search terms. One of ordinary skill in the art will recognize that other weighting schemes may be assigned to optimize search functionality.

[0152] Scan applications and index GUI components

[0153] When executing an application on a sandbox runtime, a GUI scanner can be used to dynamically detect the GUI components of the application while the application is executing.

[0154] For Google TM In Android applications, the GUI element class relies on the View class in the Android framework. In addition, the Android WindowManager is used to view and extract the inflated layout for each new view event. Therefore, the Android WindowManager can be monitored to determine when a new view class event (i.e., a new event corresponding to a GUI element) is created. When a new GUI element is created, it can be indexed and assigned a weight to facilitate searching for each element.

[0155] Fig.13 shows the application screen (e.g., Fig.11 1101) in the application screen 1101). The tree view can be used to index the GUI elements of the application screen. In some embodiments, a layout description file (e.g., an XML file describing the GUI layout) is used to indicate to the Android WindowManager the absolute and / or relative coordinates of each view element relative to the screen border. The layout description file can be parsed to identify GUI components. In some embodiments, the parsed data from the layout description file can be organized into a tree.

[0156] For example, tree 1300 begins at root 1301, which represents the entire application. The root leads to base view 1302, which corresponds to the initial screen or view of the application. Base view 1302, in turn, leads to multiple elements of the screen (i.e., icon, search text, button 1, and layout). Similarly, layout node 1303 leads to multiple elements of the layout (i.e., content item 1, content item 2, content item 3, advertisement, video clip, and button 2). The resulting tree view 1300 facilitates easier indexing and searching of multiple GUI elements.

[0157] In some embodiments, the GUI scanner can determine the importance of multiple GUI elements. For example, the GUI scanner can determine that phrases that use bold fonts and / or are located at the top center of the screen are of higher importance. Therefore, the GUI scanner can assign higher weights to these elements. Conversely, the GUI scanner can determine that other phrases that reside in the corners of the screen and / or in small gray fonts are of lower importance. Therefore, the GUI scanner can assign lower weights to these elements.

[0158] Additionally, in some embodiments, GUI scanning is performed by the sandbox runtime, while parsing, indexing, and weighting are performed on the remote server. Figure 7 The sandbox running 701 is executed, while the parsing, indexing and weighting are performed on the server 120, 121, 122, 202, and / or 204. The indexed and weighted GUI components can be stored and accessed to perform searches. For example, a user search query can be matched with multiple weighted GUI elements to find the most relevant applications.

[0159] Processing system

[0160] Fig.14 1400 is a block diagram illustrating an example of a processing system 1400 in which at least some of the operations described herein may be implemented. For example, some components of the processing system 1400 may be implemented in a controller device.

[0161] The processing system 1400 may include one or more central processing units ("processors") 1402, a main memory 1406, a non-volatile memory 1410, a network adapter 1412 (e.g., a network interface), a video display 1418, an input / output device 1420, a control device 1422 (e.g., a keyboard and pointing device), a drive unit 1424 including a storage medium 1426, and a signal generating device 1430 communicatively coupled to a bus 1416. The bus 1416 is shown as an abstract concept representing one or more physical buses and / or point-to-point connections connected through appropriate bridges, adapters, or controllers. Thus, bus 1416 may include a system bus, a Peripheral Component Interconnect (PCI) bus or PCI-Express bus, a HyperTransport or Industry Standard Architecture (ISA) bus, a Small Computer System Interface (SCSI) bus, a Universal Serial Bus (USB), an IIC (I2C) bus, or the Institute of Electrical and Electronics Engineers (IEEE) standard 1394 bus (also known as "FireWire").

[0162] The processing system 1400 may share a computer processor architecture similar to that of a desktop computer, a tablet computer, a personal digital assistant (PDA), a mobile phone, a game console, a music player, a wearable electronic device (e.g., a watch or fitness tracker), a network-connected ("smart") device (e.g., a television or home assistant), a virtual / augmented reality system (e.g., a head-mounted display), or other electronic device capable of executing (sequentially or otherwise) a set of instructions that specify actions to be taken by the processing system 1400.

[0163] Although main memory 1406, non-volatile memory 1410, and storage medium 1426 (also referred to as a "machine-readable medium") are illustrated as a single medium, the terms "machine-readable medium" and "storage medium" should be understood to include a single medium or multiple media (e.g., a centralized / distributed database and / or associated caches and servers) storing one or more sets of instructions 1428. The terms "machine-readable medium" and "storage medium" should also be understood to include any medium capable of storing, encoding, or carrying a set of instructions for execution by processing system 1400.

[0164] Typically, the routines executed to implement the embodiments of the present disclosure may be implemented as part of an operating system or a specific application, component, program, object, module, or sequence of instructions (collectively referred to as a "computer program"). The computer program typically includes one or more instructions (e.g., instructions 1404, 1408, 1428) that are multiple times arranged in multiple memories and storage devices in a computing device. When read and executed by one or more processors 1402, the instructions cause the processing system 1400 to perform operations to perform elements related to multiple aspects of the present disclosure.

[0165] In addition, although the embodiments have been described in the context of a fully operational computing device, those skilled in the art will appreciate that various embodiments can be distributed as program products in various forms. The present disclosure applies regardless of the specific type of machine or computer readable medium used to actually effect the distribution.

[0166] Other examples of machine-readable storage media, machine-readable media, or computer-readable media include recordable-type media such as volatile and nonvolatile memory devices 1410, floppy disks and other removable disks, hard drives, optical disks (e.g., compact disk read-only memory (CD-ROM), digital versatile disk (DVD)), and transmission-type media such as digital and analog communications links.

[0167] The network adapter 1412 enables the processing system 1400 to mediate data in a network 1414 with an entity that is external to the processing system 1400 via any communication protocol supported by the processing system 1400 and the external entity. The network adapter 1412 may include a network adapter card, a wireless network interface card, a router, an access point, a wireless router, a switch, a multilayer switch, a protocol converter, a gateway, a bridge, a bridge-router, a hub, a digital media receiver, and / or a repeater.

[0168] The network adapter 1412 may include a firewall that controls and / or manages permissions for access / proxy data in a computer network and tracks different levels of trust between different machines and / or applications. The firewall can be any number of modules having any combination of hardware and / or software components that can enforce a predetermined set of access permissions between a specific set of machines and applications, machines and machines, and / or applications and applications (e.g., to regulate traffic and resource sharing between these entities). The firewall can also manage and / or access access control lists that detail permissions including the rights to access and operate on objects by individuals, machines, and / or applications, as well as the context in which the permissions are granted.

[0169] The foregoing description of various embodiments of the claimed subject matter has been provided for purposes of illustration and description. It is not intended to be exhaustive or to limit the claimed subject matter to the precise form disclosed. Many modifications and variations will be apparent to those skilled in the art. The embodiments are selected and described in order to best describe the specific features and their practical applications so that those skilled in the relevant art can understand the claimed subject matter, the various embodiments, and the various modifications suitable for the particular use contemplated.

[0170] Although the specific examples describe certain embodiments and the best mode contemplated, no matter how detailed the specific examples are, the technology can be implemented in a variety of ways. The implementation details of the embodiments may be very different, but are still included in this specification. The specific terms used when describing certain features or aspects of the various embodiments should not be understood to imply redefinition of the terms herein to be limited to any specific characteristics, features, or aspects of the technology associated with the terms. In general, the terms used in the following claims should not be interpreted as limiting the technology to the specific embodiments disclosed in this specification unless these terms are clearly defined herein. Therefore, the actual scope of the technology includes not only the disclosed embodiments, but also all equivalent ways of practicing or implementing these embodiments.

[0171] The language used in this specification is selected primarily for readability and instructional purposes. It is not selected to define or limit the subject matter. Therefore, it is intended that the scope of the present technology is not limited by this specific embodiment, but by any claims that are allowed based on the application hereof. Therefore, the disclosure of various embodiments is intended to illustrate but not limit the scope of the technology as set forth in the appended claims.

Claims

1. A system having one or more processors for executing a mobile application, the system include: The sandbox run configuration is: Execute the mobile application by loading a minimum bootable subset MBS, the MBS being a partial set of application segments, and the application segments are formed by segmenting a binary code base of the mobile application; interfacing the mobile application and the host operating system so that the mobile application accesses the remotely stored application segments as local resources; as well as obtaining the application segment from a remote server based on a resource request from the mobile application; and a GUI scanner configured to index a graphical user interface GUI segment from an application segment; wherein the sandboxed run initially provides a dynamic manifest file to the operating system, the dynamic manifest file recording placeholder system-defined program classes, wherein the dynamic manifest file of the sandboxed run declares the placeholder system-defined program classes that will later be replaced by actual system-defined classes requested by the executed application program; The GUI scanner is configured to index the GUI segments in the following manner: Monitor each application segment loaded by the sandbox runtime; determining whether the loaded application segment is a GUI segment; and extracting content of an application segment determined to be a GUI segment; and The content of the GUI segments is indexed to enable the system to use the indexed GUI segments to match mobile applications to user search queries.

2. The system of claim 1, wherein the sandbox executes downloading of one or more application segments corresponding to the requested resource represented by the resource request.

3. The system of claim 2, wherein the resource request is a request from the mobile application for a local resource, and an application segment corresponding to the requested local resource is provided to the sandbox execution by downloading the application segment from a remote server.

4. The system of claim 3, wherein application segments to be accessed are predicted based on an acyclic graph representing a sequential list of dependencies of the application segments, and application segment resources are pre-fetched based on the prediction.

5. The system of claim 1, wherein the sandbox runs to generate a dynamic manifest declaring placeholder system-defined program classes.

6. The system of claim 5, wherein the sandbox operation intercepts an intent call from a mobile application and replaces the declared placeholder system-defined program class with an actual class represented by the intent call and required by the mobile application.

7. The system of claim 6, wherein the actual class is one or more of: an activity class, a service class, a content provider class, and a broadcast receiver class.

8. The system of claim 1, wherein the sandbox runs as part of a native mobile application installed on a host operating system of a mobile device.

9. A method for executing an on-demand mobile application using a partial set of application segments, the method include: Executing the mobile application by loading a minimum bootable subset MBS, the MBS being a partial set of application segments obtained by decoupling the mobile application, wherein the application segments are generated by segmenting a binary code base of the mobile application; interfacing the mobile application and the host operating system so that the mobile application accesses the remotely stored application segments as local resources; as well as loading the application segment based on user interaction with the executed mobile application; wherein a dynamic manifest file is provided to the operating system, the dynamic manifest file recording placeholder system-defined program classes, the dynamic manifest file declaring placeholder system-defined program classes that will later be replaced by actual system-defined classes requested by an executed application program; The method of executing an on-demand mobile application using a partial set of application segments further comprises: Index the GUI segment of the application segment by: Monitor the application segments loaded by the sandbox run; Determine whether the loaded application segment is a GUI segment; extracting the contents of the GUI segment; and Indexes the contents of a GUI segment.

10. The method according to claim 9, further comprising: include: recording a sequence of application segments accessed during execution of the mobile application; as well as An acyclic graph of segments is generated based on the order of the recorded segments.

11. The method of claim 10, wherein generating an acyclic graph include: creating an application segment table by mapping a plurality of application segments accessed by the mobile application during the monitoring step; monitoring execution of the mobile application to determine which application segments are accessed and the order in which the application segments are accessed; When an accessed application segment matches an application segment mapped in the application segment table, an entry is generated in the acyclic graph; as well as Record the matching application segment as the next entry in the acyclic graph.

12. The method according to claim 11, in, The order of recording segments is not complete until all segments have been loaded at least once by the sandbox runtime.

13. A system for providing an on-demand mobile application, the system include: a segment decoupler configured to decouple the mobile application into application segments, wherein the application data packet is decoupled into a plurality of application segments at a binary level, each application segment corresponding to a portion or segment of a binary code base of the application data packet, wherein a partial set of application segments forms a minimum bootable subset MBS; a virtual machine configured to generate an acyclic graph of application segments by simulating operations of a mobile application and recording a sequence of application segments accessed during the simulation; The sandbox run is configured to launch the mobile application by loading the MBS without installing it, and continue to execute the mobile application by loading the application segments based on a sequential list of application segment dependencies; viewing the current application segment being accessed and finding the next node in an acyclic graph to determine the next application segment to be accessed, wherein the acyclic graph represents a sequential list of application segment dependencies, the sequential list being used to predict and pre-fetch application segments that the system expects the user to access; based on the prediction, pre-fetching the predicted application segment from a remote location; and A GUI scanner is configured to monitor the application segment loaded by the sandbox operation, determine whether the loaded application segment is a GUI segment, extract the content of the GUI segment, and index the content of the GUI segment.

14. The system of claim 13, wherein the sandbox runs an initial load of the MBS and loads other application segments based on user interaction with the mobile application.

15. The system of claim 13, include: a segment decoupler configured to decouple the mobile application by partitioning a binary code base of the mobile application into application segments, wherein a partial set of the application segments forms a minimum bootable subset MBS for launching the mobile application; A virtual machine configured to simulate the operation of a mobile application and generate an acyclic graph representing the order of application segments accessed during the simulation; the virtual machine is further configured to perform one or more of the following actions to accomplish the generation of the acyclic graph: mapping the various application segments accessed by the application, monitoring the execution of the mobile application to determine which application segments are accessed, determining the order in which the application segments are accessed, generating an entry in the acyclic graph when an application segment is accessed, and recording the matching application segment as the next entry in the acyclic graph; and The mobile application library is configured to store the MBS, the application segments, and the acyclic graph, wherein the mobile application library provides access to the MBS and the application segments to execute the mobile application.

16. The system of claim 15, wherein each application segment corresponds to one or more application resources for facilitating execution of the mobile application and are combined in a package for distributing the mobile application, wherein the one or more mobile application resources include one or more of: source code, documentation, configuration files, executable files, and binary libraries.

17. The system of claim 16, wherein the application segments are binary-level mappings of a binary code base of the mobile application, and each application segment corresponds to one or more application resources.

18. The system of claim 15, wherein the acyclic graph of application segments represents a sequential list of dependencies of the application segments, the sequential list being used to predict and prefetch application segments that the system expects users to access.

19. The system of claim 18, wherein the virtual machine stops recording the sequence of required application segments after all application segments are loaded at least once.

20. A method for providing an on-demand mobile application, the method include: Decoupling a mobile application into application segments by dividing a binary code base of the mobile application into application segments, wherein a partial set of application segments forms a minimum bootable subset MBS, which allows sandboxed execution to launch the mobile application without requiring a full installation process; Simulate the operation of mobile applications; generating an acyclic graph representing the order in which application segments are accessed during the simulation, wherein the generating of the acyclic graph is accomplished by performing one or more of the following actions: mapping the various application segments accessed by the application, monitoring the execution of the mobile application to determine which application segments are accessed, determining the order in which the application segments are accessed, generating an entry in the acyclic graph when an application segment is accessed, and recording the matching application segment as the next entry in the acyclic graph; and storing MBSs, application segments, and a non-cyclic graph, wherein the MBSs and application segments may be used to execute mobile applications; Monitor the application segments loaded by the sandbox run; Determine whether the loaded application segment is a GUI segment; extracting the contents of the GUI segment; and Indexes the contents of a GUI segment.

21. The method of claim 20, further comprising: include: Before decoupling mobile apps: Identify mobile applications based on a user request for a mobile application or a list provided by a mobile application repository; determining whether the identified mobile application has been processed; as well as If the mobile application has not yet been processed, the identified mobile application is obtained from an application repository.

22. The method of claim 20, wherein generating an acyclic graph include: creating an application segment table by mapping a plurality of application segments accessed by the mobile application during the monitoring step; monitoring execution of the mobile application to determine which application segments are accessed and the order in which the application segments are accessed; When an accessed application segment matches an application segment mapped in the application segment table, an entry is generated in the acyclic graph; as well as Record the matching application segment as the next entry in the acyclic graph.