Function providing method, apparatus and medium

By adding application identification fields to the preset properties of the application clone, the problem that personalized functions cannot be provided in the application clone environment is solved, and personalized functions are provided in the application clone environment is realized, which improves the user experience.

CN116074358BActive Publication Date: 2025-07-08BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111277684.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-29
Publication Date
2025-07-08
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

In the application clone environment, the existing technology cannot provide personalized functions corresponding to the application, such as the expression screen-up function cannot be realized under the instant communication application clone.

Method used

By adding preset fields to the preset properties of the application clone and setting its field content to the application identifier, such as the package name, the preset function is provided in the application clone environment.

Benefits of technology

It realizes the personalized functions provided in the application palette environment, such as emoticon screen upload, expansion, picture matching, translation and proofreading functions, improving user experience and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116074358B_ABST
    Figure CN116074358B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a function providing method, device, and medium. The method specifically includes: obtaining an application identifier corresponding to the application clone from the field content of a preset field in the preset attributes of the application clone; and providing a preset function in the application clone environment according to the application identifier corresponding to the application clone. The embodiment of the present invention can provide personalized functions corresponding to the application in the application clone environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a function providing method, apparatus, and medium. Background Art

[0002] With the development of computer technology, users' demands for APPs (applications) in terminals are becoming increasingly rich. In the process of daily using a terminal, users have a need to log in to the same APP with multiple accounts simultaneously. For example, for social APPs, multiple accounts of users need to be logged in and used simultaneously to meet the needs of work socializing and life socializing respectively; or, for game APPs, multiple accounts of users need to be logged in simultaneously to facilitate operations such as item giving and trading between these multiple accounts.

[0003] Currently, in order to solve the problem of logging in to an application with multiple accounts simultaneously, application cloning technology can create at least one clone of the application.

[0004] The inventors found during the implementation of the embodiments of the present invention that in the environment of application cloning, some personalized functions corresponding to the application cannot be provided. For example, in the environment of instant messaging application cloning, the input method cannot implement the function of inserting emoticons. Summary of the Invention

[0005] How to provide personalized functions corresponding to an application in the environment of application cloning is a technical problem that needs to be solved by those skilled in the art. In view of the above problems, embodiments of the present invention are proposed to provide a function providing method, apparatus, and medium that can overcome the above problems or at least partially solve the above problems.

[0006] To solve the above problems, embodiments of the present invention disclose a function providing method, including:

[0007] Obtain the application identifier corresponding to the application clone from the field content of a preset field in the preset attributes of the application clone;

[0008] According to the application identifier corresponding to the application clone, provide a preset function in the application clone environment.

[0009] To solve the above problems, embodiments of the present invention disclose a function providing method, including:

[0010] Monitor a preset event in the application clone environment;

[0011] If a preset event in the application clone environment is monitored, add a preset field to the preset attributes of the application clone; the field content of the preset field is the application identifier corresponding to the application clone.

[0012] On the other hand, an embodiment of the present invention discloses a function providing device, including:

[0013] An identification acquisition module, configured to acquire an application identification corresponding to the application clone from the field content of a preset field in the preset attributes of the application clone;

[0014] A function providing module, configured to provide a preset function in the application clone environment according to the application identification corresponding to the application clone.

[0015] On the other hand, an embodiment of the present invention discloses a function providing device, including:

[0016] An event monitoring module, configured to monitor a preset event in the application clone environment;

[0017] A field adding module, configured to add a preset field to the preset attributes of the application clone if a preset event in the application clone environment is monitored; the field content of the preset field is the application identification corresponding to the application clone.

[0018] In still another aspect, an embodiment of the present invention discloses a device for function providing, including a memory, and one or more programs, wherein one or more programs are stored in the memory, and when the program(s) is / are executed by one or more processors, the steps of the foregoing method are implemented.

[0019] An embodiment of the present invention discloses one or more machine-readable media, characterized in that instructions are stored thereon, and when executed by one or more processors, cause the device to execute the foregoing method.

[0020] Embodiments of the present invention have the following advantages:

[0021] In the embodiments of the present invention, a preset field is added to the preset attributes of the application clone, and the field content of the preset field is set to the application identification corresponding to the application clone, that is, the package name of the target APP corresponding to the application clone is carried in the field content of the preset field. Since the embodiments of the present invention carry the package name of the target APP corresponding to the application clone in the preset attributes of the cloned application; therefore, the embodiments of the present invention can provide a preset function in the application clone environment according to the package name, for example, provide a personalized function corresponding to the target APP in the application clone environment according to the package name. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a flowchart of the steps of a function providing method according to an embodiment of the present invention;

[0023] Figure 2 is a flowchart of the steps of a function providing method according to an embodiment of the present invention;

[0024] Figure 3 is a flowchart of the steps of a function providing method according to an embodiment of the present invention;

[0025] Figure 4 is a structural block diagram of a function providing apparatus according to an embodiment of the present invention;

[0026] Figure 5 is a structural block diagram of a function providing apparatus according to an embodiment of the present invention;

[0027] Figure 6 is a block diagram of an apparatus 1300 for function providing according to an embodiment of the present invention; and

[0028] Figure 7 is a schematic structural diagram of a server according to an embodiment of the present invention. Detailed Embodiments

[0029] To make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0030] In an embodiment of the present invention, the cloning of an application program (hereinafter referred to as application cloning) refers to running multiple instances of a target APP on a terminal for a single APP (hereinafter referred to as the target APP). The target APP can represent the application to be cloned. The cloning management APP can use the application cloning technology to create an application clone corresponding to the target APP on the terminal.

[0031] The application identifier can be used to uniquely identify an APP. The application identifier can be referred to as the package name. The application identifier is usually composed of uppercase and lowercase letters, numbers, dots, or underscores, and two APPs with the same application identifier cannot be installed on a single terminal.

[0032] The inventors found during the implementation of the embodiments of the present invention that since two APPs with the same application identifier cannot be installed on a single terminal, the current cloning management APP usually sets the field content of the application identifier field to: the package name of the cloning management APP. This makes it impossible for the function provider to implement the personalized functions of the target APP based on the package name of the cloning management APP carried in the application identifier field.

[0033] Regarding the technical problem of how to provide personalized functions corresponding to an application in the context of application cloning, an embodiment of the present invention provides a function providing solution, which specifically includes: obtaining the application identifier corresponding to the application clone from the field content of a preset field in the preset attributes of the application clone; and providing a preset function in the context of the application clone according to the application identifier corresponding to the application clone.

[0034] In the embodiments of the present invention, the preset attributes of application cloning can be attributes related to functions provided by the operating system. For example, the attributes related to the input function include: EditorInfo (editor information), which is used to describe the attributes of a text editing object and includes information such as the text content type, cursor position, and package name. To implement application cloning, the package name field recorded in EditorInfo by the current cloning management APP is usually the package name of the cloning management APP, resulting in the input method being unable to implement the personalized functions corresponding to the target APP based on the package name of the cloning management APP.

[0035] In the embodiments of the present invention, a preset field is added to the preset attributes of application cloning, and the field content of the preset field is set to the application identifier corresponding to the application clone, that is, the package name of the target APP corresponding to the application clone is carried in the field content of the preset field. Since the package name of the target APP corresponding to the application clone is carried in the preset attributes of the cloned application in the embodiments of the present invention, the embodiments of the present invention can provide preset functions in the application cloning environment based on this package name.

[0036] The function providing method provided by the embodiments of the present invention can be applied to a client. The client can run on a terminal, and the above terminal specifically includes but is not limited to: smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, in-vehicle computers, desktop computers, set-top boxes, smart TVs, wearable devices, and so on. The client 100 can correspond to a website or an APP (application). The client 100 can correspond to application programs such as an input method APP.

[0037] The embodiments of the present invention can be applied to an input method program. The input method program can provide personalized functions corresponding to applications. The above personalized functions can be unique functions set for applications. For example, applications can include: instant messaging applications, microblogging applications, or shopping applications, etc., and different applications can correspond to different personalized functions. For example, the personalized functions corresponding to an instant messaging application specifically include: emoji input function, expansion function, picture attachment function, translation function, and proofreading function. It can be understood that those skilled in the art can set corresponding personalized functions for applications according to actual application requirements, and the embodiments of the present invention do not limit the specific personalized functions corresponding to applications.

[0038] Method Embodiment 1

[0039] Reference Figure 1 , a step flowchart of a function providing method according to an embodiment of the present invention is shown, which may specifically include the following steps:

[0040] Step 101, monitor a preset event in the application cloning environment;

[0041] Step 102, if a preset event in the application cloning environment is monitored, add a preset field to the preset attributes of the application clone; the field content of the preset field may be the application identifier corresponding to the application clone.

[0042] The embodiment of the present invention can be executed by the client of the cloning management party. It can be understood that the embodiment of the present invention does not limit the specific execution entity of the Figure 1 shown method. The cloning management party is used to utilize the application cloning technology to implement application cloning and can also implement the management of application cloning.

[0043] In step 101, the preset event may be an event before providing a preset function in the application cloning environment. For example, the preset event may be the startup event of the application clone.

[0044] Alternatively, the preset event may be an event related to a preset function in the application cloning environment. For example, if the preset function is an input function, the preset event may be the display event of the input box in the application cloning environment.

[0045] It can be understood that those skilled in the art can determine the preset event according to actual application requirements, and the embodiment of the present invention does not limit the specific preset event.

[0046] In step 202, the application identifier corresponding to the application clone can be used to uniquely identify the target APP corresponding to the application clone.

[0047] In actual applications, the cloning management party and the function providing party can determine the preset field through a pre-agreed method. In this way, the function providing party can learn and obtain the application identifier carried in the preset field of the preset attributes. Specifically, the package name of the target APP corresponding to the application clone can be carried in the preset field. For example, if the application clone corresponds to an instant messaging APP, the package name of the instant messaging APP is carried in the preset field.

[0048] In one implementation, the preset field may be in the form of key-value (key-value pair), where the key can represent the name of the preset field and the value can represent the field content of the preset field. Of course, the form of key-value (key-value pair) is only a schematic representation of the way of representing the preset field, and the embodiment of the present invention does not limit the specific representation method of the preset field. In actual applications, the preset attributes can be stored in the external memory or internal memory of the terminal for acquisition.

[0049] In an embodiment of the present invention, the HOOK (hook) technology can be adopted to implement the monitoring of preset events and the addition of preset fields.

[0050] The Hook technology can intercept and monitor the transmission of an event before the preset event is transmitted to the target process, just like a hook hooking onto the preset event, and can perform preset processing when hooking onto the preset event. The preset processing in the embodiment of the present invention is specifically: adding a preset field to the preset attributes of the application clone. In a specific implementation, the function of the target process can be replaced with a custom function, and the preset processing can be performed through this custom function. It can be understood that the embodiment of the present invention does not limit the specific process of using the HOOK technology to implement the monitoring of preset events and the addition of preset fields.

[0051] In summary, for the function providing method in the embodiment of the present invention, if a preset event in the application clone environment is detected, a preset field is added to the preset attributes of the application clone, and the field content of the preset field can be the application identifier corresponding to the application clone. In this way, the function provider can obtain the application identifier carried by the preset field in the preset attributes and provide a preset function in the application clone environment according to the application identifier.

[0052] Method Embodiment Two

[0053] Referring to Figure 2 , a step flowchart of a function providing method in an embodiment of the present invention is shown, and specifically may include the following steps:

[0054] Step 201, obtain the application identifier corresponding to the application clone from the field content of the preset field in the preset attributes of the application clone;

[0055] Step 202, provide a preset function in the application clone environment according to the application identifier corresponding to the application clone.

[0056] The embodiment of the present invention can be executed by the client of the function provider. It can be understood that the embodiment of the present invention does not limit Figure 2 the specific execution subject of the method shown.

[0057] In step 201, the preset attributes of the application clone can be used as system parameters. In actual applications, the method for obtaining system parameters can be used to obtain the preset attributes of the application clone.

[0058] The preset attributes may include multiple fields, such as an application identification field, a preset field, etc. However, in order to comply with the rule that two APPs with the same application identification cannot be installed on one terminal, the current dual-space management APP usually sets the field content of the application identification field to: the package name of the dual-space management APP. This makes it impossible for the function provider to implement the personalized functions corresponding to the target APP based on the package name of the dual-space management APP carried in the application identification field.

[0059] In the embodiments of the present invention, the dual-space management party can make an agreement and negotiation with the function provider, so that the function provider can learn and obtain the application identification carried in the preset field of the preset attributes. In a specific implementation, the function provider can obtain the agreed preset field from the preset attributes of the application dual space, and obtain the application identification corresponding to the application dual space from the field content of the preset field in the preset attributes of the application dual space.

[0060] In step 202, the function provider can provide a preset function in the application dual-space environment according to the application identification corresponding to the application dual space. Specifically, it can provide the personalized functions corresponding to the target APP to which the application dual space belongs in response to a trigger instruction of the user. The trigger instruction can be used to trigger the personalized function. In practical applications, the application identification corresponding to the application dual space can be used as the basis for the corresponding personalized function; for example, the application identification corresponding to the application dual space can be used as a parameter of the corresponding personalized function function.

[0061] Taking the function provider as an input method program as an example, the above-mentioned personalized functions specifically include at least one of the following functions: an emoji input function, an expansion function, an illustration function, a translation function, and a proofreading function.

[0062] Taking the emoji input function as an example, in the traditional technology, the input method program usually can only obtain: the package name of the dual-space management APP carried in the application identification field; therefore, when the input method program in the application dual-space environment receives the user's screenshot input instruction, the content input into the input box is usually "empty content (NULL)".

[0063] Taking the expansion function as an example, providing a preset function in the application dual-space environment may specifically include: determining the input content already input in the input box and the input environment characteristics corresponding to the input box; determining the expanded content corresponding to the input content already input; the expanded content can be obtained based on the corpus data corresponding to the input environment characteristics; presenting the expanded content. If a trigger operation for the expanded content is received, the input content already input in the input box can be replaced with the expanded content.

[0064] Embodiments of the present invention can provide extended content corresponding to the content already entered in the input box. Since the above-mentioned extended content can be obtained based on the corpus data corresponding to the above-mentioned input environment characteristics, the embodiments of the present invention can make the obtained extended content meet the user requirements corresponding to the above-mentioned input environment characteristics. Therefore, the embodiments of the present invention provide extended content corresponding to the already entered content and input environment characteristics, which can save the user's time and operation costs, and improve the input efficiency of personalized content.

[0065] In an alternative embodiment of the present invention, a mathematical model can be trained based on training data to obtain a data analyzer. The data analyzer can represent the mapping relationship between input data (already entered content) and output data (extended content).

[0066] Optionally, training data can be obtained based on the corpus data corresponding to the input environment characteristics. The input environment characteristics can include, but are not limited to: instant messaging environment characteristics, media environment characteristics, or e-commerce environment characteristics, etc. The e-commerce environment characteristics can include product review characteristics, etc. The media environment characteristics can include Weibo comment characteristics, etc.

[0067] Embodiments of the present invention can collect corpus data corresponding to the input environment characteristics. The above-mentioned corpus data can include: partial corpus and overall corpus, and the partial corpus can correspond to the previous part of the overall corpus.

[0068] During the user's input process, the user's screen input behavior can be monitored to obtain the partial corpus and the overall corpus. Considering that one overall corpus corresponds to at least one screen input behavior, therefore, one overall corpus can correspond to multiple partial corpora. In this way, the data analyzer can be made to have the ability to expand the beginning of the overall corpus.

[0069] For example, the overall corpus A corresponding to the e-commerce environment characteristics includes: "After I bought this pair of pants, my waist doesn't ache anymore, my legs don't go numb anymore, and I even have the strength to walk." This overall corpus A can correspond to multiple partial corpora, and the above-mentioned partial corpora can be the previous part of the overall corpus A, such as "I bought this pair of pants", "After I bought this pair of pants", "After I bought this pair of pants, my waist doesn't ache anymore", etc.

[0070] In the embodiments of the present invention, the already entered content can match the beginning part of the extended content. The matching of the already entered content with the beginning part of the extended content can specifically include: string matching, and / or, semantic matching, etc. Among them, semantic matching can include: the same semantics, or similar semantics, semantically related, etc.

[0071] For example, when the input content A is "this pair of trousers", according to the principle of semantic matching, the embodiment of the present invention can obtain the expanded content corresponding to the input content A, such as "After I bought this pair of trousers, my waist doesn't ache anymore, my legs don't go numb anymore, and I even have the strength to walk", or "This pair of trousers makes my waist stop aching, my legs stop going numb, and I also have the strength to walk", etc.

[0072] The embodiments of the present invention can respectively train corresponding data analyzers for different input environment characteristics, so that the data analyzers reflect the characteristics corresponding to the input environment characteristics, such as language style characteristics, etc. For example, the instant messaging environment characteristics usually have a literary style, the media environment characteristics have the characteristics of being media-related and having a wide spread, and the e-commerce environment characteristics usually represent evaluations of products, etc.

[0073] A mathematical model is a scientific or engineering model constructed using mathematical logic methods and mathematical language. A mathematical model is a mathematical structure that generally or approximately expresses, in mathematical language, the characteristics or quantitative dependence relationships of a certain thing system. This mathematical structure is a relationship structure depicted by means of mathematical symbols. A mathematical model can be one or a set of algebraic equations, differential equations, difference equations, integral equations, or statistical equations and their combinations, which quantitatively or qualitatively describe the mutual relationships or causal relationships between the variables of the system. In addition to the mathematical models described by equations, there are also models described by other mathematical tools, such as algebra, geometry, topology, mathematical logic, etc. Among them, the mathematical model describes the behavior and characteristics of the system rather than the actual structure of the system. Among them, methods such as machine learning and deep learning methods can be used for training the mathematical model. Machine learning methods can include: linear regression, decision trees, random forests, etc. Deep learning methods can include: Convolutional Neural Networks (CNN), Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), etc.

[0074] Taking the proofreading function as an example, providing a preset function in the application cloning environment can specifically include: determining the input content in the input box; displaying the error content and the corresponding correction content in the input content, as well as the corresponding replacement controls.

[0075] For example, if the input content is "ABC", then it can display "A→A’, BC" and the corresponding replacement control. If a trigger operation for the replacement control is received, the input content can be replaced with "A’BC".

[0076] In the embodiments of the present invention, the application identifier corresponding to the application clone can be obtained from the field content of the preset field in the preset attributes of the application clone. Therefore, when the input method program in the embodiments of the present invention receives a screenshot upload instruction from the user in the application clone environment, an expression sending prompt can be output. The expression sending prompt may include: inquiry information (such as sending the following pictures, etc.), expressions, as well as a confirmation control and a cancellation control.

[0077] In summary, in the function providing method of the embodiments of the present invention, a preset field is added to the preset attributes of the application clone, and the field content of the preset field is set as the application identifier corresponding to the application clone, that is, the package name of the application corresponding to the application clone is carried in the field content of the preset field. Since the embodiments of the present invention carry the package name of the application corresponding to the application clone in the preset attributes of the cloned application, the embodiments of the present invention can provide preset functions in the application clone environment according to the package name.

[0078] Method Embodiment Three

[0079] Referring to Figure 3 , a step flowchart of a function providing method according to an embodiment of the present invention is shown, which may specifically include the following steps:

[0080] Step 301, the clone management party monitors a preset event in the application clone environment;

[0081] Step 302, if the clone management party monitors a preset event in the application clone environment, a preset field is added to the preset attributes of the application clone; the field content of the preset field may be the application identifier corresponding to the application clone;

[0082] Step 303, the function providing party obtains the application identifier corresponding to the application clone from the field content of the preset field in the preset attributes of the application clone;

[0083] Step 304, the function providing party provides a preset function in the application clone environment according to the application identifier corresponding to the application clone.

[0084] Taking the function providing party as the input method program and the application as an instant messaging application as an example, the preset event may be the startup event of the application clone or the display event of the input box. When the above preset event in the instant messaging application clone environment is monitored, the clone management party can add a preset field to the preset attributes of the application clone, and the preset attributes carrying the application identifier can be saved in the memory. The input method program can, according to the agreement, obtain the application identifier corresponding to the application clone from the field content of the preset field in the preset attributes of the application clone, and provide preset functions such as expression upload in the instant messaging application clone environment.

[0085] It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of combinations of movement actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the described order of movement actions. Because according to the embodiments of the present invention, certain steps can be carried out in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the movement actions involved are not necessarily essential for the embodiments of the present invention.

[0086] Device Embodiment

[0087] Referring to Figure 4 , a structural block diagram of an embodiment of a function providing device according to the present invention is shown, which may specifically include:

[0088] An identification acquisition module 401, configured to acquire the application identification corresponding to the application clone from the field content of a preset field in the preset attributes of the application clone;

[0089] A function providing module 402, configured to provide a preset function in the application clone environment according to the application identification corresponding to the application clone.

[0090] Optionally, when a preset event in the application clone environment is detected, a preset field is added to the preset attributes of the application clone; the field content of the preset field may be the application identification corresponding to the application clone.

[0091] Optionally, the preset event may include: a startup event of the application clone, or a display event of an input box.

[0092] Optionally, the preset function may include: a personalized function corresponding to the application clone.

[0093] Optionally, the device is applied to an input method, and the personalized function may include at least one of the following functions: an emoji input function, an expansion function, an image matching function, a translation function, and a proofreading function.

[0094] Optionally, the personalized function includes: an expansion function. The function providing module 402 may specifically include:

[0095] A first determination module, configured to determine the input content already entered in the input box and the input environment characteristics corresponding to the input box;

[0096] A second determination module, configured to determine the expanded content corresponding to the input content already entered; the expanded content is obtained based on the corpus data corresponding to the input environment characteristics;

[0097] A display module, configured to display the expanded content.

[0098] Optionally, the personalization function includes: a proofreading function. Specifically, the function providing module 402 may include:

[0099] A third determination module, configured to determine the content already entered in the input box;

[0100] A display module, configured to display the error content and corresponding correction content in the already entered content, as well as corresponding replacement controls.

[0101] Refer to Figure 5 , which shows a structural block diagram of an embodiment of a function providing device according to the present invention. Specifically, it may include:

[0102] An event monitoring module 501, configured to monitor a preset event in an application cloning environment;

[0103] A field adding module 502, configured to add a preset field to a preset attribute of an application clone if a preset event in the application cloning environment is monitored; the field content of the preset field may be the application identifier corresponding to the application clone.

[0104] Optionally, the preset event may include: a startup event of the application clone, or a display event of the input box.

[0105] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For related parts, refer to the partial description of the method embodiment.

[0106] Each embodiment in this specification is described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same and similar parts among the embodiments, refer to each other.

[0107] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0108] Figure 6 is a block diagram of a device 1300 for function providing shown according to an exemplary embodiment. For example, the device 1300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0109] Refer to Figure 6 , the device 1300 may include one or more of the following components: a processing component 1302, a memory 1304, a power component 1306, a multimedia component 1308, an audio component 1310, an input / output (I / O) interface 1312, a sensor component 1314, and a communication component 1316.

[0110] The processing component 1302 generally controls the overall operation of the device 1300, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. The processing element 1302 may include one or more processors 1320 to execute instructions to complete all or part of the steps of the above - mentioned methods. In addition, the processing component 1302 may include one or more modules to facilitate the interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate the interaction between the multimedia component 1308 and the processing component 1302.

[0111] The memory 1304 is configured to store various types of data to support the operation of the device 1300. Examples of such data include instructions for any application or method operating on the device 1300, contact data, phone book data, messages, pictures, videos, etc. The memory 1304 can be implemented by any type of volatile or non - volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read - only memory (EEPROM), erasable programmable read - only memory (EPROM), programmable read - only memory (PROM), read - only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0112] The power component 1306 provides power for various components of the device 1300. The power component 1306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1300.

[0113] The multimedia component 1308 includes a screen that provides an output interface between the device 1300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe movement actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1308 includes a front - facing camera and / or a rear - facing camera. When the device 1300 is in an operation mode, such as a shooting mode or a video mode, the front - facing camera and / or the rear - facing camera can receive external multimedia data. Each front - facing camera and rear - facing camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0114] The audio component 1310 is configured to output and / or input audio signals. For example, the audio component 1310 includes a microphone (MIC) that is configured to receive external audio signals when the device 1300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 1304 or transmitted via the communication component 1316. In some embodiments, the audio component 1310 further includes a speaker for outputting audio signals.

[0115] The I / O interface 1312 provides an interface between the processing component 1302 and peripheral interface modules, and the peripheral interface modules may be a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0116] The sensor component 1314 includes one or more sensors for providing status assessments of various aspects of the device 1300. For example, the sensor component 1314 can detect the on / off state of the device 1300, the relative positioning of components, such as the display and keypad of the device 1300. The sensor component 1314 can also detect a change in the position of the device 1300 or a component of the device 1300, the presence or absence of user contact with the device 1300, the orientation or acceleration / deceleration of the device 1300, and the temperature change of the device 1300. The sensor component 1314 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 1314 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1314 can further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0117] The communication component 1316 is configured to facilitate communication between the device 1300 and other devices in a wired or wireless manner. The device 1300 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1316 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1316 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0118] In an exemplary embodiment, the apparatus 1300 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.

[0119] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1304 including instructions, and the above instructions can be executed by a processor 1320 of the apparatus 1300 to complete the above method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0120] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a terminal, enables the terminal to execute a function providing method, and the method includes: obtaining an application identifier corresponding to the application clone from the field content of a preset field in the preset attributes of the application clone; and providing a preset function in the application clone environment according to the application identifier corresponding to the application clone.

[0121] Figure 7 It is a schematic structural diagram of a server in some embodiments of the present invention. The server 1900 may vary greatly due to different configurations or performances, and may include one or more central processing units (CPUs) 1922 (for example, one or more processors) and a memory 1932, and one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage media 1930 may be transient storage or persistent storage. The programs stored in the storage media 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Further, the central processor 1922 may be configured to communicate with the storage media 1930 and execute a series of instruction operations in the storage media 1930 on the server 1900.

[0122] The server 1900 may further include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input / output interfaces 1958, one or more keyboards 1956, and / or one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so on.

[0123] Other embodiments of the present invention will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the present invention and include known common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and examples are only illustrative, and the true scope and spirit of the present invention are pointed out by the following claims.

[0124] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.

[0125] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

[0126] The above has introduced in detail a function providing method, a function providing device, a device for function providing, and a machine-readable medium provided by the embodiments of the present invention. Specific examples are used herein to elaborate on the principles and implementation manners of the present invention. The description of the above embodiments is only for helping to understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A method for providing functions, characterized in that, Including: Obtain the application identifier corresponding to the application clone from the field content of the preset field in the preset attributes of the application clone; The application identifier corresponding to the application clone is the package name of the target APP corresponding to the application clone; Provide the preset function corresponding to the target APP in the application clone environment according to the application identifier corresponding to the application clone.

2. The method according to claim 1, wherein When a preset event in the application clone environment is detected, add a preset field to the preset attributes of the application clone; the field content of the preset field is the application identifier corresponding to the application clone.

3. The method according to claim 2, wherein the preset event includes: The startup event of the application clone or the display event of the input box.

4. The method according to claim 1 or 2 or 3, characterized in that, The preset function includes: the personalized function corresponding to the application clone.

5. The method according to claim 4, characterized in that, The method is applied to an input method, and the personalized function includes at least one of the following functions: emoji input function, expansion function, picture matching function, translation function, and proofreading function.

6. The method according to claim 5, characterized in that, The personalized function includes: the expansion function, and providing the preset function in the application clone environment includes: Determine the input content already entered in the input box and the input environment characteristics corresponding to the input box; Determine the expanded content corresponding to the input content already entered; the expanded content is obtained based on the corpus data corresponding to the input environment characteristics; Display the expanded content.

7. The method according to claim 5, characterized in that The personalized function includes: the proofreading function, and providing the preset function in the application clone environment includes: Determine the input content already entered in the input box; Display the error content and the corresponding corrected content in the input content already entered, as well as the corresponding replacement control.

8. A method for providing a function, characterized in that, The method includes: Monitor the preset events in the application clone environment; If a preset event in the application clone environment is detected, add a preset field to the preset attributes of the application clone; the field content of the preset field is the application identifier corresponding to the application clone, the application identifier corresponding to the application clone is the package name of the target APP corresponding to the application clone, and the preset event is an event related to the preset function corresponding to the target APP in the application clone environment.

9. The method according to claim 8, wherein the preset event includes: The startup event of the application clone or the display event of the input box.

10. A function providing device, characterized in that, Including: An identifier acquisition module, configured to obtain the application identifier corresponding to the application clone from the field content of the preset field in the preset attributes of the application clone; The application identifier corresponding to the application clone is the package name of the target APP corresponding to the application clone; A function providing module, configured to provide the preset function corresponding to the target APP in the application clone environment according to the application identifier corresponding to the application clone.

11. The device according to claim 10, characterized in that When a preset event in the application clone environment is detected, add a preset field to the preset attributes of the application clone; the field content of the preset field is the application identifier corresponding to the application clone.

12. The apparatus according to claim 11, wherein the preset event includes: The startup event of the application clone or the display event of the input box.

13. A function providing device, characterized in that, The device includes: An event monitoring module, configured to monitor the preset events in the application clone environment; A field adding module is configured to add a preset field to a preset attribute of an application clone if a preset event in the application clone environment is detected; the field content of the preset field is the application identifier corresponding to the application clone, the application identifier corresponding to the application clone is the package name of the target APP corresponding to the application clone, and the preset event is an event related to a preset function corresponding to the target APP in the application clone environment.

14. A device for function provision, characterized in that, It includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and when the programs are executed by one or more processors, the steps of the method according to any one of claims 1 to 9 are implemented.

15. One or more machine-readable media, characterized in that, Instructions are stored thereon, and when executed by one or more processors, cause the device to execute the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Privacy data protection method and apparatus for double started applications, and mobile terminal

    CN107122671A

  • Data processing method and device and medium

    CN112000766A

  • Data processing method and device and medium

    CN112905079A