WO2023245344A1 - Application processing method and device, terminal, and storage medium - Google Patents

Application processing method and device, terminal, and storage medium Download PDF

Info

Publication number
WO2023245344A1
WO2023245344A1 PCT/CN2022/099862 CN2022099862W WO2023245344A1 WO 2023245344 A1 WO2023245344 A1 WO 2023245344A1 CN 2022099862 W CN2022099862 W CN 2022099862W WO 2023245344 A1 WO2023245344 A1 WO 2023245344A1
Authority
WO
WIPO (PCT)
Prior art keywords
source code
code
feature
terminal
sub
Prior art date
Application number
PCT/CN2022/099862
Other languages
French (fr)
Chinese (zh)
Inventor
余鹏
张代应
Original Assignee
北京小米移动软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to PCT/CN2022/099862 priority Critical patent/WO2023245344A1/en
Priority to CN202280004410.6A priority patent/CN117616386A/en
Publication of WO2023245344A1 publication Critical patent/WO2023245344A1/en

Links

Images

Definitions

  • the present disclosure relates to the field of terminals, and in particular, to an application processing method, device, terminal and storage medium.
  • Mobile terminals have developed very rapidly in recent years and become a hot industry. It interacts with the human body through information using sensors. It is an intelligent terminal born under a new concept. It has a wide range of application fields and can be continuously upgraded according to user needs.
  • the operating systems of terminals are all in their own way and are not unified. In other words, terminals from different manufacturers generally use different operating systems.
  • the application code can only run on the operating system corresponding to the code, and cannot run on other operating systems, resulting in a poor user experience. If you want to run the above applications on other operating systems, you generally need to rewrite new code, which results in low development efficiency.
  • the present disclosure provides an application processing method, device, terminal and storage medium.
  • an application processing method is provided, applied to a terminal, wherein the application processing method includes:
  • the source code is processed to determine the target code; wherein the target code is used to run the application program in the second operating system.
  • the parser processes the source code and determines the target code, including:
  • the source code is parsed according to the parser to determine source code characteristics; wherein the source code characteristics are code characteristics of the source code;
  • Target code features are code features of the target code
  • the target code is determined based on the target code characteristics.
  • the source code includes at least one sub-source code
  • parsing the source code according to the parser to determine source code characteristics includes:
  • the at least one sub-source code is parsed respectively to determine at least one sub-source code feature; wherein the at least one sub-source code feature corresponds to the at least one sub-source code in a one-to-one correspondence.
  • performing grammatical feature conversion processing on the source code features to determine target code features includes:
  • the configuration information includes a mapping relationship between a first syntax feature and a second syntax feature, the first syntax feature is a syntax feature corresponding to the first operating system, and the second syntax feature is the Describe the grammatical features corresponding to the second operating system;
  • syntax feature conversion processing is performed on the source code features to determine the target code features.
  • the application processing method includes:
  • the application program is run on the second terminal.
  • the source code of the determined application program includes:
  • an application processing device which is applied to a terminal, wherein the application processing device includes a determining module, and the determining module is configured to:
  • the source code is processed to determine the target code; wherein the target code is used to run the application program in the second operating system.
  • the determining module is configured as:
  • the source code is parsed according to the parser to determine source code characteristics; wherein the source code characteristics are code characteristics of the source code;
  • Target code features are code features of the target code
  • the target code is determined based on the target code characteristics.
  • the source code includes at least one sub-source code
  • the determining module is configured to:
  • the at least one sub-source code is parsed respectively to determine at least one sub-source code feature; wherein the at least one sub-source code feature corresponds to the at least one sub-source code in a one-to-one correspondence.
  • the application processing device includes an acquisition module, wherein,
  • the acquisition module is configured to obtain configuration information; wherein the configuration information includes a mapping relationship between a first syntax feature and a second syntax feature, and the first syntax feature is a syntax feature corresponding to the first operating system, The second grammatical feature is a grammatical feature corresponding to the second operating system;
  • the determination module is configured to perform syntax feature conversion processing on the source code features according to the configuration information, and determine the target code features.
  • the application processing device includes an execution module, and the execution module is configured to:
  • the application program is run on the second terminal according to the target code.
  • the determining module is configured as:
  • a terminal wherein the terminal includes:
  • memory for storing instructions executable by the processor
  • the processor is configured to execute the application processing method as described in the first aspect.
  • a non-transitory computer-readable storage medium wherein when instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to perform the first aspect as The application processing method described.
  • the source code of the application program can enable the application program to run on the first operating system, and the present disclosure can use a parser to process the above source code, thereby determining Object code, so that the application can run on the second operating system through the object code, thereby improving the development efficiency of the application and the user experience.
  • FIG. 1 is a flowchart of an application processing method according to an exemplary embodiment.
  • FIG. 2 is a flowchart of an application processing method according to an exemplary embodiment.
  • Figure 3 is a flowchart of an application processing method according to an exemplary embodiment.
  • FIG. 4 is a block diagram of an application processing device according to an exemplary embodiment.
  • Figure 5 is a block diagram of a terminal according to an exemplary embodiment.
  • an application processing method is provided, which is applied to a terminal.
  • the terminal can be a computer, a mobile phone, a smart wearable terminal, etc., and is not limited to this.
  • the method may include:
  • S110 Determine the source code of the application program; where the source code is used to run the application program on the first operating system;
  • S120 Process the source code according to the parser of the terminal to determine the target code; wherein the target code is used to run the application program on the second operating system of the terminal.
  • the source code of the application program can be determined according to its installation package.
  • the application can run on the first operating system from source code.
  • Source code can include html source code, Javascript source code and CSS source code.
  • html source code can be called hypertext markup language, which can be used to display text, pictures, sounds, videos, buttons, tables, etc.
  • CSS source code is called a cascading style sheet, which describes the style of an element. For example, position, color, border, font, font size, etc.
  • Javascript source code which can be referred to as js source code, is a scripting language that can be used to respond to user operations. For example: change text, change style, request data from the server, etc.
  • the terminal may be provided with a parser.
  • a parser can be a program that runs in a terminal.
  • the operating system of the terminal may be the first operating system, the second operating system, or other operating systems, which is not limited.
  • the parser may be set before the terminal leaves the factory, or may be set after the terminal leaves the factory, and there is no limit to this. In addition, after the parser is set up, it can be modified later to better meet different needs.
  • the source code determined in step S110 can be used as input information and input to the parser.
  • a parser processes source code to output object code. From this, the source code can be processed based on the parser and the target code can be determined. Wherein, the object code can run on the second operating system. As a result, the application program can run on the second operating system through the object code.
  • both the first operating system and the second operating system may be operating systems of the smart wearable terminal, and the first operating system and the second operating system are different.
  • the operating systems of smart wearable terminals can include Apple's WatchOS, Google's wear OS, Samsung's Tizen OS, Huawei's LiteOS, etc., without limitation.
  • the operating system of the terminal may be a second operating system or another operating system, and there is no limitation on this, as long as the terminal can determine the target code based on the source code of the application program.
  • the operating system of the terminal is the second operating system, after the target code is determined, the above application program can be run according to the target code.
  • a parser can be used to process the source code that can run on the first operating system, thereby obtaining the object code that can run on the second operating system, so that the application program corresponding to the source code can run on the third operating system through the object code. Second operating system, thereby improving application development efficiency and user experience.
  • an application processing method is provided, which is applied to a terminal.
  • the source code is processed according to the terminal's parser to determine the target code, which may include:
  • S220 Perform grammatical feature conversion processing on the source code features to determine the target code features; where the target code features are code features of the target code;
  • the parser may include a code parsing program for parsing the source code.
  • the code parser can parse the source code to ensure the code characteristics of the source code, which can be recorded as source code characteristics.
  • the grammatical features of the code running in the first operating system can be recorded as the first grammatical features.
  • the source code characteristics may be determined by coding based on the first syntax characteristics. That is to say, the source code feature is a code feature based on the first syntax feature.
  • the source code includes at least one sub-source code.
  • at least one sub-source code is parsed according to the parser to determine at least one sub-source code feature; wherein at least one sub-source code feature corresponds to at least one sub-source code in a one-to-one correspondence.
  • the source code may include sub-source codes such as html source code, Javascript source code, and Css source code
  • the code parsing program may include three subroutines, and the three subroutines respectively correspond to the above-mentioned html source code, Javascript source code, and Css source code.
  • the three subroutines can be respectively recorded as the first sub-parsing program, the second sub-parsing program and the third sub-parsing program.
  • the first sub-parsing program can correspond to the html source code, and is used to parse the html source code and determine the grammatical features of the html source code. This grammatical feature can be recorded as the first sub-source code feature.
  • the second sub-parsing program can correspond to the Javascript source code, and is used to parse the Javascript source code and determine the grammatical features of the Javascript source code. This grammatical feature can be recorded as the second sub-source code feature.
  • the third sub-parsing program can correspond to the Css source code and is used to parse the Css source code and determine the grammatical features of the Css source code. This grammatical feature can be recorded as the third sub-source code feature.
  • the source code features may include the above-mentioned first sub-source code features, second sub-source code features and third sub-source code features.
  • the syntax feature can be a syntax tree. That is to say, the above-mentioned first sub-source code feature, second sub-source code feature and third sub-source code feature may be in the form of a syntax tree. That is, the first sub-source code feature may be a first sub-source syntax tree, the second sub-source code feature may be a second sub-source syntax tree, and the third sub-source code feature may be a third sub-source syntax tree.
  • the source code feature may be a source syntax tree, and the source syntax tree may include the above-mentioned first sub-source syntax tree, second sub-source syntax tree and third sub-source syntax tree.
  • the parser may include a grammatical feature conversion program for performing grammatical feature conversion.
  • Syntax conversion programs convert source code characteristics to determine target code characteristics.
  • the object code characteristics may be code characteristics of the object code.
  • the object code is used to make the application program run on the second operating system.
  • Syntax features of the code running in the second operating system may be recorded as second syntax features.
  • the target code characteristics refer to code characteristics determined by coding according to the second syntax characteristics. That is, the target code feature is a code feature based on the second syntax feature.
  • the syntax feature conversion program may include a first sub-conversion program, a second sub-conversion program and a third sub-source code feature. Conversion program.
  • the first sub-conversion program is used to convert the first sub-source code feature and determine the first sub-target code feature corresponding to the first sub-source code feature.
  • the second sub-conversion program is used to convert the second sub-source code feature and determine the second sub-target code feature corresponding to the second sub-source code feature.
  • the third sub-conversion program is used to convert the third sub-source code feature and determine the third sub-target code feature corresponding to the third sub-source code feature.
  • the target code features may include the above-mentioned first sub-target code features, second sub-target code features and third sub-target code features.
  • the object code characteristics may be syntax characteristics of the object code.
  • step S230 since the target code feature can be the code feature of the target code, the above target code can be restored based on the target code feature, and then the application program can run on the second operating system based on the target code.
  • the object code when the source code includes at least one sub-source code, the object code may also include at least one sub-object code.
  • the source code may include sub-source codes such as html source code, Javascript source code and Css source code
  • the object code may include sub-object codes such as html object code, Javascript object code and Css object code.
  • the first sub-source code characteristics can be determined based on the html source code, and then the first sub-object code characteristics can be determined based on the first sub-source code characteristics, and then the html target code can be determined based on the first sub-object code characteristics. .
  • the determination method for other sub-target codes is similar and will not be described again.
  • the target code corresponding to the source code is determined based on the grammatical characteristics of the code running on different operating systems, so that the application can run on the second operating system through the target code, thus improving development efficiency and user experience.
  • an application processing method is provided, which is applied to a terminal.
  • grammatical feature conversion processing is performed on the source code features to determine the target code features, which may include:
  • configuration information includes the mapping relationship between the first syntax feature and the second syntax feature, the first syntax feature is the syntax feature corresponding to the first operating system, and the second syntax feature is the syntax corresponding to the second operating system. feature;
  • the syntax features corresponding to the first operating system refer to the syntax features of the code that can be run in the first operating system. That is, the first syntax feature refers to the syntax feature of the code that can be run on the first operating system.
  • the grammatical features corresponding to the second operating system refer to the grammatical features of the code that can be run on the second operating system. That is, the second syntax feature refers to the syntax feature of the code that can be run on the second operating system.
  • the configuration information can be set according to the actual situation, and it can include mapping relationships between syntax features corresponding to multiple different operating systems, which is not limited.
  • the configuration information may be set before the terminal leaves the factory, or may be set after the terminal leaves the factory. There is no limit to this. In addition, after the configuration information is set, it can be modified later to better meet the different needs of users.
  • the configuration information at least includes a mapping relationship between grammatical features corresponding to the first operating system and grammatical features corresponding to the second operating system.
  • the source code feature is a code feature of the source code, that is, the source code feature is a code feature of the code designed based on the first syntax feature, and there is a mapping relationship between the first syntax feature and the second syntax feature.
  • the first syntax feature may be determined first according to the source code feature, and then the mapping relationship between the first syntax feature and the second syntax feature may be determined from the configuration information. This mapping relationship is denoted as a target mapping relationship. Then, based on the above target mapping relationship, the source code features are converted into grammatical features to determine the target code features corresponding to the source code features.
  • the source code characteristics are converted into the target code characteristics according to the configuration information, thereby obtaining the target code that can run on the second operating system, so that the application program corresponding to the source code can run on the second operating system through the target code. , thereby improving application development efficiency and user experience.
  • an application processing device is provided, which is applied to a terminal.
  • the device is used to implement the above application processing method.
  • the device may include a determination module 101.
  • the determination module 101 is configured to:
  • the source code is processed to determine the target code; wherein the target code is used to run the application program on the second operating system.
  • an application processing device is provided, which is applied to a terminal.
  • the determination module 101 is configured as,
  • the source code is parsed according to the parser to determine the source code characteristics; where the source code characteristics are the code characteristics of the source code;
  • Target code features are the code features of the target code
  • an application processing device is provided, which is applied to a terminal.
  • the source code includes at least one sub-source code, wherein the determination module 101 is configured to,
  • At least one sub-source code is parsed respectively to determine at least one sub-source code feature; wherein at least one sub-source code feature corresponds to at least one sub-source code in a one-to-one correspondence.
  • an application processing device is provided, which is applied to a terminal.
  • the device may include an acquisition module 102, wherein,
  • the acquisition module 102 is configured to obtain configuration information; wherein the configuration information includes a mapping relationship between a first syntax feature and a second syntax feature, the first syntax feature is a syntax feature corresponding to the first operating system, and the second syntax feature is a second syntax feature.
  • the determination module 101 is configured to perform grammatical feature conversion processing on the source code features according to the configuration information, and determine the target code features.
  • an application processing device is provided, which is applied to a terminal.
  • the device may include an operation module 103 configured to:
  • an application processing device is provided, which is applied to a terminal.
  • the determination module 101 is configured as,
  • a terminal is provided.
  • the terminal can be a computer, a mobile phone, a smart wearable terminal, etc., and is not limited to this.
  • the terminal 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input/output (I/O) interface 812 , and a sensor component. 814, and communications component 816.
  • a processing component 802 a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input/output (I/O) interface 812 , and a sensor component. 814, and communications component 816.
  • Processing component 802 generally controls the overall operations of terminal 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method.
  • processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components.
  • processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
  • Memory 804 is configured to store various types of data to support operations at device 800 . Examples of such data include instructions for any application or method operating on the terminal 800, contact data, phonebook data, messages, pictures, videos, etc.
  • Memory 804 may 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 (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EEPROM erasable programmable read-only memory
  • EPROM Programmable read-only memory
  • PROM programmable read-only memory
  • ROM read-only memory
  • magnetic memory flash memory, magnetic or optical disk.
  • Power supply component 806 provides power to various components of terminal 800.
  • Power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to terminal 800.
  • Multimedia component 808 includes a screen that provides an output interface between the terminal 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may 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 sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action.
  • multimedia component 808 includes a front-facing camera and/or a rear-facing camera.
  • the front camera and/or the rear camera may receive external multimedia data.
  • Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
  • Audio component 810 is configured to output and/or input audio signals.
  • audio component 810 includes a microphone (MIC) configured to receive external audio signals when terminal 800 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 804 or sent via communication component 816 .
  • audio component 810 also includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
  • Sensor component 814 includes one or more sensors that provide various aspects of status assessment for terminal 800 .
  • the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the terminal 800, and the sensor component 814 can also detect the position change of the terminal 800 or a component of the terminal 800. , the presence or absence of user contact with the terminal 800 , the orientation or acceleration/deceleration of the terminal 800 and the temperature change of the terminal 800 .
  • Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • the communication component 816 is configured to facilitate wired or wireless communication between the terminal 800 and other devices.
  • the terminal 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communications component 816 also includes a near field communications (NFC) module to facilitate short-range communications.
  • NFC near field communications
  • 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.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the terminal 800 may be configured 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 array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented for executing the above application processing method.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable Gate array
  • controller microcontroller, microprocessor or other electronic components are implemented for executing the above application processing method.
  • a non-transitory computer-readable storage medium including instructions such as a memory 804 including instructions, which can be executed by the processor 820 of the terminal 800 to complete the above method is also provided.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
  • a non-transitory computer-readable storage medium which enables the terminal to perform the above application processing method when instructions in the storage medium are executed by a processor of the terminal.
  • the source code of the application program can enable the application program to run on the first operating system.
  • the present disclosure can use a parser to process the above-mentioned source code to determine the target code, so that the application program can run on the second operation through the target code. system, thereby improving application development efficiency and user experience.

Abstract

The present disclosure relates to an application processing method and device, a terminal, and a storage medium. The application processing method comprises: determining a source code of an application, wherein the source code is used for running the application in a first operating system; and according to a parser of a terminal, processing the source code to determine a target code, wherein the target code is used for running the application in a second operating system. In the present disclosure, the source code of the application can make the application run in the first operating system, and the parser can be used to process the source code to determine the target code, so that the application can run in the second operation system by means of the target code, thereby improving the development efficiency of the application and the user experience of a user.

Description

一种应用程序处理方法、装置、终端及存储介质An application processing method, device, terminal and storage medium 技术领域Technical field
本公开涉及终端领域,尤其涉及一种应用程序处理方法、装置、终端及存储介质。The present disclosure relates to the field of terminals, and in particular, to an application processing method, device, terminal and storage medium.
背景技术Background technique
随着移动通信技术的发展,传统互联网已经在向移动互联网迁移,移动终端近年来发展的非常迅速,成为一个热点行业。它通过借助传感器,与人体进行信息交互,是一种在新理念下诞生的智能终端,具有广泛的应用领域,并能够根据用户需求不断升级。With the development of mobile communication technology, the traditional Internet has been migrating to the mobile Internet. Mobile terminals have developed very rapidly in recent years and become a hot industry. It interacts with the human body through information using sensors. It is an intelligent terminal born under a new concept. It has a wide range of application fields and can be continuously upgraded according to user needs.
目前,终端的操作系统各行其是,没有统一。也就是说,不同厂商的终端一般采用不同的操作系统。但是,一般情况下,应用程序的代码只能运行在该代码对应的操作系统上,而无法运行于其他操作系统,对用户来说的体验较差。若想在其他操作系统运行上述应用程序,一般需要重新编写新的代码,开发效率较低。At present, the operating systems of terminals are all in their own way and are not unified. In other words, terminals from different manufacturers generally use different operating systems. However, in general, the application code can only run on the operating system corresponding to the code, and cannot run on other operating systems, resulting in a poor user experience. If you want to run the above applications on other operating systems, you generally need to rewrite new code, which results in low development efficiency.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开提供一种应用程序处理方法、装置、终端及存储介质。In order to overcome problems existing in related technologies, the present disclosure provides an application processing method, device, terminal and storage medium.
根据本公开实施例的第一方面,提供一种应用程序处理方法,应用于终端,其中,所述应用程序处理方法包括:According to a first aspect of an embodiment of the present disclosure, an application processing method is provided, applied to a terminal, wherein the application processing method includes:
确定应用程序的源代码;其中,所述源代码用于在第一操作系统运行所述应用程序;Determine the source code of the application program; wherein the source code is used to run the application program on the first operating system;
根据所述终端的解析器,对所述源代码进行处理,确定目标代码;其中,所述目标代码用于在第二操作系统运行所述应用程序。According to the parser of the terminal, the source code is processed to determine the target code; wherein the target code is used to run the application program in the second operating system.
可选地,所述根据所述终端的解析器,对所述源代码进行处理,确定目标代码,包括:Optionally, the parser according to the terminal processes the source code and determines the target code, including:
根据所述解析器对所述源代码进行解析,确定源代码特征;其中,所述源代码特征为所述源代码的代码特征;The source code is parsed according to the parser to determine source code characteristics; wherein the source code characteristics are code characteristics of the source code;
对所述源代码特征进行语法特征转换处理,确定目标代码特征;其中,所述目标代码特征为所述目标代码的代码特征;Perform grammatical feature conversion processing on the source code features to determine target code features; wherein the target code features are code features of the target code;
根据所述目标代码特征,确定所述目标代码。The target code is determined based on the target code characteristics.
可选地,所述源代码包括至少一种子源代码,所述根据所述解析器对所述源代码进行解 析,确定源代码特征,包括:Optionally, the source code includes at least one sub-source code, and parsing the source code according to the parser to determine source code characteristics includes:
根据所述解析器,分别对所述至少一种子源代码进行解析,确定至少一种子源代码特征;其中,所述至少一种子源代码特征与所述至少一种子源代码一一对应。According to the parser, the at least one sub-source code is parsed respectively to determine at least one sub-source code feature; wherein the at least one sub-source code feature corresponds to the at least one sub-source code in a one-to-one correspondence.
可选地,所述对所述源代码特征进行语法特征转换处理,确定目标代码特征,包括:Optionally, performing grammatical feature conversion processing on the source code features to determine target code features includes:
获取配置信息;其中,所述配置信息包括第一语法特征与第二语法特征的映射关系,所述第一语法特征为所述第一操作系统对应的语法特征,所述第二语法特征为所述第二操作系对应的语法特征;Obtain configuration information; wherein the configuration information includes a mapping relationship between a first syntax feature and a second syntax feature, the first syntax feature is a syntax feature corresponding to the first operating system, and the second syntax feature is the Describe the grammatical features corresponding to the second operating system;
根据所述配置信息,对所述源代码特征进行语法特征转换处理,确定所述目标代码特征。According to the configuration information, syntax feature conversion processing is performed on the source code features to determine the target code features.
可选地,所述确定目标代码之后,所述应用程序处理方法包括:Optionally, after determining the target code, the application processing method includes:
根据所述目标代码,在所述第二终端运行所述应用程序。According to the object code, the application program is run on the second terminal.
可选地,所述确定应用程序的源代码,包括:Optionally, the source code of the determined application program includes:
根据所述应用程序的安装包,确定所述源代码。Determine the source code according to the installation package of the application.
根据本公开实施例的第二方面,提供一种应用程序处理装置,应用于终端,其中,所述应用程序处理装置包括确定模块,所述确定模块被配置为:According to a second aspect of an embodiment of the present disclosure, an application processing device is provided, which is applied to a terminal, wherein the application processing device includes a determining module, and the determining module is configured to:
确定应用程序的源代码;其中,所述源代码用于在第一操作系统运行所述应用程序;Determine the source code of the application program; wherein the source code is used to run the application program on the first operating system;
根据所述终端的解析器,对所述源代码进行处理,确定目标代码;其中,所述目标代码用于在第二操作系统运行所述应用程序。According to the parser of the terminal, the source code is processed to determine the target code; wherein the target code is used to run the application program in the second operating system.
可选地,所述确定模块被配置为:Optionally, the determining module is configured as:
根据所述解析器对所述源代码进行解析,确定源代码特征;其中,所述源代码特征为所述源代码的代码特征;The source code is parsed according to the parser to determine source code characteristics; wherein the source code characteristics are code characteristics of the source code;
对所述源代码特征进行语法特征转换处理,确定目标代码特征;其中,所述目标代码特征为所述目标代码的代码特征;Perform grammatical feature conversion processing on the source code features to determine target code features; wherein the target code features are code features of the target code;
根据所述目标代码特征,确定所述目标代码。The target code is determined based on the target code characteristics.
可选地,所述源代码包括至少一种子源代码,所述确定模块被配置为:Optionally, the source code includes at least one sub-source code, and the determining module is configured to:
根据所述解析器,分别对所述至少一种子源代码进行解析,确定至少一种子源代码特征;其中,所述至少一种子源代码特征与所述至少一种子源代码一一对应。According to the parser, the at least one sub-source code is parsed respectively to determine at least one sub-source code feature; wherein the at least one sub-source code feature corresponds to the at least one sub-source code in a one-to-one correspondence.
可选地,所述应用程序处理装置包括获取模块,其中,Optionally, the application processing device includes an acquisition module, wherein,
所述获取模块被配置为,获取配置信息;其中,所述配置信息包括第一语法特征与第二语法特征的映射关系,所述第一语法特征为所述第一操作系统对应的语法特征,所述第二语法特征为所述第二操作系对应的语法特征;The acquisition module is configured to obtain configuration information; wherein the configuration information includes a mapping relationship between a first syntax feature and a second syntax feature, and the first syntax feature is a syntax feature corresponding to the first operating system, The second grammatical feature is a grammatical feature corresponding to the second operating system;
所述确定模块被配置为,根据所述配置信息,对所述源代码特征进行语法特征转换处理,确定所述目标代码特征。The determination module is configured to perform syntax feature conversion processing on the source code features according to the configuration information, and determine the target code features.
可选地,所述应用程序处理装置包括运行模块,所述运行模块被配置为:Optionally, the application processing device includes an execution module, and the execution module is configured to:
所述确定目标代码之后,根据所述目标代码,在所述第二终端运行所述应用程序。After the target code is determined, the application program is run on the second terminal according to the target code.
可选地,所述确定模块被配置为:Optionally, the determining module is configured as:
根据所述应用程序的安装包,确定所述源代码。Determine the source code according to the installation package of the application.
根据本公开实施例的第三方面,提供一种终端,其中,所述终端包括:According to a third aspect of an embodiment of the present disclosure, a terminal is provided, wherein the terminal includes:
处理器;processor;
用于存储所述处理器可执行指令的存储器;memory for storing instructions executable by the processor;
其中,所述处理器被配置为执行如第一方面所述的应用程序处理方法。Wherein, the processor is configured to execute the application processing method as described in the first aspect.
根据本公开实施例的第四方面,提供一种非临时性计算机可读存储介质,其中,当所述存储介质中的指令由终端的处理器执行时,使得所述终端能够执行如第一方面所述的应用程序处理方法。According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to perform the first aspect as The application processing method described.
本公开的实施例提供的技术方案可以包括以下有益效果:本公开中,应用程序的源代码可使得应用程序在第一操作系统运行,本公开可使用解析器对上述源代码进行处理,从而确定目标代码,以使得应用程序可通过目标代码运行于第二操作系统,从而提升应用程序的开发效率以及用户使用体验。The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: In the present disclosure, the source code of the application program can enable the application program to run on the first operating system, and the present disclosure can use a parser to process the above source code, thereby determining Object code, so that the application can run on the second operating system through the object code, thereby improving the development efficiency of the application and the user experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
图1是根据一示例性实施例示出的一种应用程序处理方法的流程图。FIG. 1 is a flowchart of an application processing method according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种应用程序处理方法的流程图。FIG. 2 is a flowchart of an application processing method according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种应用程序处理方法的流程图。Figure 3 is a flowchart of an application processing method according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种应用程序处理装置的框图。FIG. 4 is a block diagram of an application processing device according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种终端的框图。Figure 5 is a block diagram of a terminal according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the appended claims.
在一个示例性实施例中,提供了一种应用程序处理方法,应用于终端。终端可以是电脑、手机、智能穿戴终端等等,对此不作限定。参考图1所示,该方法可包括:In an exemplary embodiment, an application processing method is provided, which is applied to a terminal. The terminal can be a computer, a mobile phone, a smart wearable terminal, etc., and is not limited to this. Referring to Figure 1, the method may include:
S110、确定应用程序的源代码;其中,源代码用于在第一操作系统运行应用程序;S110. Determine the source code of the application program; where the source code is used to run the application program on the first operating system;
S120、根据终端的解析器,对源代码进行处理,确定目标代码;其中,目标代码用于在终端的第二操作系统运行应用程序。S120. Process the source code according to the parser of the terminal to determine the target code; wherein the target code is used to run the application program on the second operating system of the terminal.
在步骤S110中,可根据应用程序(APP)的安装包确定其源代码。该应用程序可通过源代码运行于第一操作系统。源代码可包括html源代码、Javascript源代码和Css源代码。In step S110, the source code of the application program (APP) can be determined according to its installation package. The application can run on the first operating system from source code. Source code can include html source code, Javascript source code and CSS source code.
其中,html源代码可称为超文本标记语言,其可以用来显示文字、图片、声音、视频、按钮、表格等。CSS源代码可称为层叠样式表,其可以描述元素的样式。例如位置、颜色、边框、字体、字号等。Javascript源代码可简称js源代码,是一种脚本语言,其可以用来对用户的操作做出响应。例如:改变文字、改变样式、从服务端请求数据等。Among them, html source code can be called hypertext markup language, which can be used to display text, pictures, sounds, videos, buttons, tables, etc. CSS source code is called a cascading style sheet, which describes the style of an element. For example, position, color, border, font, font size, etc. Javascript source code, which can be referred to as js source code, is a scripting language that can be used to respond to user operations. For example: change text, change style, request data from the server, etc.
在步骤S120中,终端可设置有解析器。解析器可以是一个程序,该程序可运行于终端。终端的操作系统可以是第一操作系统,也可以是第二操作系统,也可以是其他操作系统,对此不作限定。In step S120, the terminal may be provided with a parser. A parser can be a program that runs in a terminal. The operating system of the terminal may be the first operating system, the second operating system, or other operating systems, which is not limited.
其中,解析器可以是终端出厂前设置的,也可以是终端出厂后设置的,对此不作限定。另外,解析器设置完成后,后续也可对其进行修改,以更好地满足不同需求。The parser may be set before the terminal leaves the factory, or may be set after the terminal leaves the factory, and there is no limit to this. In addition, after the parser is set up, it can be modified later to better meet different needs.
该步骤中,可将步骤S110中确定的源代码作为输入信息,输入至解析器。解析器可对源代码进行处理,以输出目标代码。由此,便可基于解析器对源代码进行处理,确定目标代码。其中,目标代码可在第二操作系统运行。由此,应用程序便可通过目标代码运行于第二操作系统。In this step, the source code determined in step S110 can be used as input information and input to the parser. A parser processes source code to output object code. From this, the source code can be processed based on the parser and the target code can be determined. Wherein, the object code can run on the second operating system. As a result, the application program can run on the second operating system through the object code.
其中,第一操作系统和第二操作系统均可以是智能穿戴终端的操作系统,且第一操作系统与第二操作系统不同。智能穿戴终端的操作系统可以包括苹果的WatchOS、谷歌的wear OS、三星的Tizen OS、和华为的LiteOS等等,对此不作限定。Wherein, both the first operating system and the second operating system may be operating systems of the smart wearable terminal, and the first operating system and the second operating system are different. The operating systems of smart wearable terminals can include Apple's WatchOS, Google's wear OS, Samsung's Tizen OS, Huawei's LiteOS, etc., without limitation.
需要说明的是,终端的操作系统可以是第二操作系统,也可以是其他操作系统,对此不作限定,只要终端可根据应用程序的源代码确定目标代码即可。其中,当该终端的操作系统为第二操作系统时,在确定了目标代码后,可根据目标代码,运行上述应用程序。It should be noted that the operating system of the terminal may be a second operating system or another operating system, and there is no limitation on this, as long as the terminal can determine the target code based on the source code of the application program. Wherein, when the operating system of the terminal is the second operating system, after the target code is determined, the above application program can be run according to the target code.
该方法中,可使用解析器对可在第一操作系统运行的源代码进行处理,从而得到可在第二操作系统运行的目标代码,以使得源代码对应的应用程序可通过目标代码运行于第二操作系统,从而提升应用程序的开发效率以及用户使用体验。In this method, a parser can be used to process the source code that can run on the first operating system, thereby obtaining the object code that can run on the second operating system, so that the application program corresponding to the source code can run on the third operating system through the object code. Second operating system, thereby improving application development efficiency and user experience.
在一个示例性实施例中,提供了一种应用程序处理方法,应用于终端。参考图2所示,该方法中,根据终端的解析器,对所述源代码进行处理,确定目标代码,可包括:In an exemplary embodiment, an application processing method is provided, which is applied to a terminal. Referring to Figure 2, in this method, the source code is processed according to the terminal's parser to determine the target code, which may include:
S210、根据解析器对源代码进行解析,确定源代码特征;其中,源代码特征为源代码的语法特征;S210. Parse the source code according to the parser and determine the source code characteristics; where the source code characteristics are the grammatical characteristics of the source code;
S220、对源代码特征进行语法特征转换处理,确定目标代码特征;其中,目标代码特征为目标代码的代码特征;S220. Perform grammatical feature conversion processing on the source code features to determine the target code features; where the target code features are code features of the target code;
S230、根据目标代码特征,确定目标代码。S230. Determine the target code according to the characteristics of the target code.
在步骤S210中,解析器可包括用于对源代码进行解析的代码解析程序。代码解析程序可对源代码进行解析,以确保源代码的代码特征,此代码特征可记为源代码特征。In step S210, the parser may include a code parsing program for parsing the source code. The code parser can parse the source code to ensure the code characteristics of the source code, which can be recorded as source code characteristics.
需要说明的是,第一操作系统中运行的代码的语法特征可记为第一语法特征。源代码特征可根据第一语法特征进行代码编写而确定。也就是说,源代码特征是基于第一语法特征的代码特征。It should be noted that the grammatical features of the code running in the first operating system can be recorded as the first grammatical features. The source code characteristics may be determined by coding based on the first syntax characteristics. That is to say, the source code feature is a code feature based on the first syntax feature.
其中,源代码包括至少一种子源代码。在进行代码解析时,根据解析器,分别对至少一种子源代码进行解析,确定至少一种子源代码特征;其中,至少一种子源代码特征与至少一种子源代码一一对应。Wherein, the source code includes at least one sub-source code. When performing code analysis, at least one sub-source code is parsed according to the parser to determine at least one sub-source code feature; wherein at least one sub-source code feature corresponds to at least one sub-source code in a one-to-one correspondence.
例如,源代码可包括html源代码、Javascript源代码和Css源代码等子源代码,代码解析程序可包括三个子程序,三个子程序分别与上述html源代码、Javascript源代码和Css源代码对应。其中,三个子程序可分别记为第一子解析程序、第二子解析程序和第三子解析程序。For example, the source code may include sub-source codes such as html source code, Javascript source code, and Css source code, and the code parsing program may include three subroutines, and the three subroutines respectively correspond to the above-mentioned html source code, Javascript source code, and Css source code. Among them, the three subroutines can be respectively recorded as the first sub-parsing program, the second sub-parsing program and the third sub-parsing program.
其中,第一子解析程序可与html源代码对应,用于对html源代码进行解析,确定html源代码的语法特征,此语法特征可记为第一子源代码特征。第二子解析程序可与Javascript源代码对应,用于对Javascript源代码进行解析,确定Javascript源代码的语法特征,此语法特征可记为第二子源代码特征。第三子解析程序可与Css源代码对应,用于对Css源代码进行解析,确定Css源代码的语法特征,此语法特征可记为第三子源代码特征。源代码特征可包括上述第一子源代码特征、第二子源代码特征和第三子源代码特征。Among them, the first sub-parsing program can correspond to the html source code, and is used to parse the html source code and determine the grammatical features of the html source code. This grammatical feature can be recorded as the first sub-source code feature. The second sub-parsing program can correspond to the Javascript source code, and is used to parse the Javascript source code and determine the grammatical features of the Javascript source code. This grammatical feature can be recorded as the second sub-source code feature. The third sub-parsing program can correspond to the Css source code and is used to parse the Css source code and determine the grammatical features of the Css source code. This grammatical feature can be recorded as the third sub-source code feature. The source code features may include the above-mentioned first sub-source code features, second sub-source code features and third sub-source code features.
其中,语法特征可以是语法树。也就是说,上述第一子源代码特征、第二子源代码特征和第三子源代码特征可以是语法树的形式。即,第一子源代码特征可以是第一子源语法树, 第二子源代码特征可以是第二子源语法树,第三子源代码特征可以是第三子源语法树。源代码特征可以是源语法树,源语法树可包括上述第一子源语法树、第二子源语法树和第三子源语法树。Among them, the syntax feature can be a syntax tree. That is to say, the above-mentioned first sub-source code feature, second sub-source code feature and third sub-source code feature may be in the form of a syntax tree. That is, the first sub-source code feature may be a first sub-source syntax tree, the second sub-source code feature may be a second sub-source syntax tree, and the third sub-source code feature may be a third sub-source syntax tree. The source code feature may be a source syntax tree, and the source syntax tree may include the above-mentioned first sub-source syntax tree, second sub-source syntax tree and third sub-source syntax tree.
需要说明的是,语法特征也可以是其他形式,对此不作限定。It should be noted that the grammatical features can also be in other forms, and there is no limitation on this.
在步骤S220中,解析器可包括用于进行语法特征转换的语法特征转换程序。语法转换程序可对源代码特征进行转换,从而确定目标代码特征。目标代码特征可以是目标代码的代码特征。In step S220, the parser may include a grammatical feature conversion program for performing grammatical feature conversion. Syntax conversion programs convert source code characteristics to determine target code characteristics. The object code characteristics may be code characteristics of the object code.
其中,目标代码用于使得应用程序在第二操作系统运行。第二操作系统中运行的代码的语法特征可记为第二语法特征。目标代码特征是指,根据第二语法特征进行代码编写而确定的代码特征。也就是说,目标代码特征是基于第二语法特征的代码特征。The object code is used to make the application program run on the second operating system. Syntax features of the code running in the second operating system may be recorded as second syntax features. The target code characteristics refer to code characteristics determined by coding according to the second syntax characteristics. That is, the target code feature is a code feature based on the second syntax feature.
其中,当源代码特征包括第一子源代码特征、第二子源代码特征和第三子源代码特征时,语法特征转换程序可包括第一子转换程序、第二子转换程序和第三子转换程序。Wherein, when the source code feature includes a first sub-source code feature, a second sub-source code feature and a third sub-source code feature, the syntax feature conversion program may include a first sub-conversion program, a second sub-conversion program and a third sub-source code feature. Conversion program.
其中,第一子转换程序用于对第一子源代码特征进行转换处理,确定第一子源代码特征对应的第一子目标代码特征。第二子转换程序用于对第二子源代码特征进行转换处理,确定第二子源代码特征对应的第二子目标代码特征。第三子转换程序用于对第三子源代码特征进行转换处理,确定第三子源代码特征对应的第三子目标代码特征。Wherein, the first sub-conversion program is used to convert the first sub-source code feature and determine the first sub-target code feature corresponding to the first sub-source code feature. The second sub-conversion program is used to convert the second sub-source code feature and determine the second sub-target code feature corresponding to the second sub-source code feature. The third sub-conversion program is used to convert the third sub-source code feature and determine the third sub-target code feature corresponding to the third sub-source code feature.
其中,目标代码特征可包括上述第一子目标代码特征、第二子目标代码特征和第三子目标代码特征。目标代码特征可以是目标代码的语法特征。The target code features may include the above-mentioned first sub-target code features, second sub-target code features and third sub-target code features. The object code characteristics may be syntax characteristics of the object code.
在步骤S230中,由于,目标代码特征可以目标代码的代码特征,因此,便可基于目标代码特征还原上述目标代码,然后,应用程序可基于目标代码运行于第二操作系统。In step S230, since the target code feature can be the code feature of the target code, the above target code can be restored based on the target code feature, and then the application program can run on the second operating system based on the target code.
其中,当源代码包括至少一种子源代码时,目标代码也可包括至少一种子目标代码。例如,源代码可包括html源代码、Javascript源代码和Css源代码等子源代码,目标代码便可包括html目标代码、Javascript目标代码和Css目标代码等子目标代码。Wherein, when the source code includes at least one sub-source code, the object code may also include at least one sub-object code. For example, the source code may include sub-source codes such as html source code, Javascript source code and Css source code, and the object code may include sub-object codes such as html object code, Javascript object code and Css object code.
需要说明的是,该方法中,可根据html源代码确定第一子源代码特征,然后基于第一子源代码特征确定第一子目标代码特征,然后根据第一子目标代码特征确定html目标代码。其它子目标代码的确定方式类似,对此不作赘述。It should be noted that in this method, the first sub-source code characteristics can be determined based on the html source code, and then the first sub-object code characteristics can be determined based on the first sub-source code characteristics, and then the html target code can be determined based on the first sub-object code characteristics. . The determination method for other sub-target codes is similar and will not be described again.
该方法中,基于不同操作系统运行的代码的语法特征,来确定源代码对应的目标代码,从而使得应用程序可通过目标代码运行于第二操作系统,从而提升开发效率和用户使用体验。In this method, the target code corresponding to the source code is determined based on the grammatical characteristics of the code running on different operating systems, so that the application can run on the second operating system through the target code, thus improving development efficiency and user experience.
在一个示例性实施例中,提供了一种应用程序处理方法,应用于终端。参考图3所示,该方法中,对源代码特征进行语法特征转换处理,确定目标代码特征,可包括:In an exemplary embodiment, an application processing method is provided, which is applied to a terminal. Referring to Figure 3, in this method, grammatical feature conversion processing is performed on the source code features to determine the target code features, which may include:
S310、获取配置信息;其中,配置信息包括第一语法特征与第二语法特征的映射关系,第一语法特征为第一操作系统对应的语法特征,第二语法特征为第二操作系对应的语法特征;S310. Obtain configuration information; wherein the configuration information includes the mapping relationship between the first syntax feature and the second syntax feature, the first syntax feature is the syntax feature corresponding to the first operating system, and the second syntax feature is the syntax corresponding to the second operating system. feature;
S320、根据配置信息,对第一语法特征进行语法特征转换处理,确定目标代码特征。S320. According to the configuration information, perform syntax feature conversion processing on the first syntax feature to determine the target code feature.
在步骤S310中,第一操作系统对应的语法特征指,可在第一操作系统运行的代码的语法特征。即,第一语法特征指,可在第一操作系统运行的代码的语法特征。In step S310, the syntax features corresponding to the first operating system refer to the syntax features of the code that can be run in the first operating system. That is, the first syntax feature refers to the syntax feature of the code that can be run on the first operating system.
第二操作系统对应的语法特征指,可在第二操作系统运行的代码的语法特征。即,第二语法特征指,可在第二操作系统运行的代码的语法特征。The grammatical features corresponding to the second operating system refer to the grammatical features of the code that can be run on the second operating system. That is, the second syntax feature refers to the syntax feature of the code that can be run on the second operating system.
配置信息可以根据实际情况设置,其可包括多种不同操作系统对应的语法特征之间的映射关系,对此不作限定。配置信息可以是终端出厂前设置的,也可以是终端出厂后设置的,对此不作限定。另外,配置信息设置完成后,后续可对其进行修改,以更好地满足用户的不同需求。The configuration information can be set according to the actual situation, and it can include mapping relationships between syntax features corresponding to multiple different operating systems, which is not limited. The configuration information may be set before the terminal leaves the factory, or may be set after the terminal leaves the factory. There is no limit to this. In addition, after the configuration information is set, it can be modified later to better meet the different needs of users.
该步骤中,配置信息至少包括第一操作系统对应的语法特征与第二操作系统对应的语法特征之间的映射关系。In this step, the configuration information at least includes a mapping relationship between grammatical features corresponding to the first operating system and grammatical features corresponding to the second operating system.
在步骤S320中,源代码特征源代码的代码特征,即,源代码特征是基于第一语法特征设计的代码的代码特征,而第一语法特征与第二语法特征存在映射关系。该步骤中,可先根据源代码特征确定第一语法特征,然后从配置信息中确定第一语法特征与第二语法特征的映射关系,此映射关系看记为目标映射关系。然后,再根据上述目标映射关系,对源代码特征进行语法特征的转换处理,确定源代码特征对应的目标代码特征。In step S320, the source code feature is a code feature of the source code, that is, the source code feature is a code feature of the code designed based on the first syntax feature, and there is a mapping relationship between the first syntax feature and the second syntax feature. In this step, the first syntax feature may be determined first according to the source code feature, and then the mapping relationship between the first syntax feature and the second syntax feature may be determined from the configuration information. This mapping relationship is denoted as a target mapping relationship. Then, based on the above target mapping relationship, the source code features are converted into grammatical features to determine the target code features corresponding to the source code features.
该方法中,根据配置信息实现由源代码特征到目标代码特征的转换,从而得到可在第二操作系统运行的目标代码,以使得源代码对应的应用程序可通过目标代码运行于第二操作系统,从而提升应用程序的开发效率以及用户使用体验。In this method, the source code characteristics are converted into the target code characteristics according to the configuration information, thereby obtaining the target code that can run on the second operating system, so that the application program corresponding to the source code can run on the second operating system through the target code. , thereby improving application development efficiency and user experience.
在一个示例性实施例中,提供了一种应用程序处理装置,应用于终端。该装置用于实施上述应用程序处理方法。示例地,参考图4所示,该装置可包括确定模块101,该装置在实施上述方法的过程中,确定模块101被配置为,In an exemplary embodiment, an application processing device is provided, which is applied to a terminal. The device is used to implement the above application processing method. For example, with reference to Figure 4, the device may include a determination module 101. During the implementation of the above method, the determination module 101 is configured to:
确定应用程序的源代码;其中,源代码用于在第一操作系统运行所述应用程序;Determine the source code of the application program; wherein the source code is used to run the application program on the first operating system;
根据终端的解析器,对源代码进行处理,确定目标代码;其中,目标代码用于在第二操作系统运行应用程序。According to the parser of the terminal, the source code is processed to determine the target code; wherein the target code is used to run the application program on the second operating system.
在一个示例性实施例中,提供了一种应用程序处理装置,应用于终端。参考图4所示,该装置中,确定模块101被配置为,In an exemplary embodiment, an application processing device is provided, which is applied to a terminal. Referring to Figure 4, in this device, the determination module 101 is configured as,
根据解析器对源代码进行解析,确定源代码特征;其中,源代码特征为源代码的代码特 征;The source code is parsed according to the parser to determine the source code characteristics; where the source code characteristics are the code characteristics of the source code;
对源代码特征进行语法特征转换处理,确定目标代码特征;其中,目标代码特征为目标代码的代码特征;Perform grammatical feature conversion processing on the source code features to determine the target code features; where the target code features are the code features of the target code;
根据目标代码特征,确定目标代码。Determine the target code based on the characteristics of the target code.
在一个示例性实施例中,提供了一种应用程序处理装置,应用于终端。参考图4所示,该装置中,源代码包括至少一种子源代码,其中,确定模块101被配置为,In an exemplary embodiment, an application processing device is provided, which is applied to a terminal. Referring to Figure 4, in this device, the source code includes at least one sub-source code, wherein the determination module 101 is configured to,
根据解析器,分别对至少一种子源代码进行解析,确定至少一种子源代码特征;其中,至少一种子源代码特征与至少一种子源代码一一对应。According to the parser, at least one sub-source code is parsed respectively to determine at least one sub-source code feature; wherein at least one sub-source code feature corresponds to at least one sub-source code in a one-to-one correspondence.
在一个示例性实施例中,提供了一种应用程序处理装置,应用于终端。参考图4所示,该装置可包括获取模块102,其中,In an exemplary embodiment, an application processing device is provided, which is applied to a terminal. Referring to Figure 4, the device may include an acquisition module 102, wherein,
获取模块102被配置为,获取配置信息;其中,配置信息包括第一语法特征与第二语法特征的映射关系,第一语法特征为第一操作系统对应的语法特征,第二语法特征为第二操作系对应的语法特征;The acquisition module 102 is configured to obtain configuration information; wherein the configuration information includes a mapping relationship between a first syntax feature and a second syntax feature, the first syntax feature is a syntax feature corresponding to the first operating system, and the second syntax feature is a second syntax feature. The grammatical features corresponding to the operating system;
确定模块101被配置为,根据配置信息,对源代码特征进行语法特征转换处理,确定目标代码特征。The determination module 101 is configured to perform grammatical feature conversion processing on the source code features according to the configuration information, and determine the target code features.
在一个示例性实施例中,提供了一种应用程序处理装置,应用于终端。参考图4所示,该装置可包括运行模块103,该运行模块103被配置为:In an exemplary embodiment, an application processing device is provided, which is applied to a terminal. Referring to FIG. 4 , the device may include an operation module 103 configured to:
根据目标代码,运行应用程序。Run the application based on the target code.
在一个示例性实施例中,提供了一种应用程序处理装置,应用于终端。参考图4所示,该装置中,确定模块101被配置为,In an exemplary embodiment, an application processing device is provided, which is applied to a terminal. Referring to Figure 4, in this device, the determination module 101 is configured as,
根据应用程序的安装包,确定源代码。Determine the source code based on the application's installation package.
在一个示例性实施例中,提供了一种终端。其中,该终端可以是电脑、手机以及智能穿戴终端等等,对此不作限定。In an exemplary embodiment, a terminal is provided. The terminal can be a computer, a mobile phone, a smart wearable terminal, etc., and is not limited to this.
参照图5所述,终端800可以包括以下一个或多个组件:处理组件802,存储器804,电力组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。Referring to FIG. 5 , the terminal 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input/output (I/O) interface 812 , and a sensor component. 814, and communications component 816.
处理组件802通常控制终端800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多 媒体组件808和处理组件802之间的交互。 Processing component 802 generally controls the overall operations of terminal 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在终端800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 Memory 804 is configured to store various types of data to support operations at device 800 . Examples of such data include instructions for any application or method operating on the terminal 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 may 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 (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
电源组件806为终端800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为终端800生成、管理和分配电力相关联的组件。 Power supply component 806 provides power to various components of terminal 800. Power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to terminal 800.
多媒体组件808包括在所述终端800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。 Multimedia component 808 includes a screen that provides an output interface between the terminal 800 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 may 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 sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当终端800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。 Audio component 810 is configured to output and/or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when terminal 800 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 804 or sent via communication component 816 . In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
传感器组件814包括一个或多个传感器,用于为终端800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为终端800的显示器和小键盘,传感器组件814还可以检测终端800或终端800一个组件的位置改变,用户与终端800接触的存在或不存在,终端800方位或加速/减速和终端800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成 像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor component 814 includes one or more sensors that provide various aspects of status assessment for terminal 800 . For example, the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the terminal 800, and the sensor component 814 can also detect the position change of the terminal 800 or a component of the terminal 800. , the presence or absence of user contact with the terminal 800 , the orientation or acceleration/deceleration of the terminal 800 and the temperature change of the terminal 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于终端800和其他设备之间有线或无线方式的通信。终端800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the terminal 800 and other devices. The terminal 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communications component 816 also includes a near field communications (NFC) module to facilitate short-range communications. 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.
在示例性实施例中,终端800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述的应用程序处理方法。In an exemplary embodiment, the terminal 800 may be configured 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 array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented for executing the above application processing method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由终端800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, which can be executed by the processor 820 of the terminal 800 to complete the above method is also provided. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
在一个示例性实施例中,提供了一种非临时性计算机可读存储介质,当所述存储介质中的指令由终端的处理器执行时,使得终端能够执行上述应用程序处理方法。In an exemplary embodiment, a non-transitory computer-readable storage medium is provided, which enables the terminal to perform the above application processing method when instructions in the storage medium are executed by a processor of the terminal.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary technical means in the technical field that are not disclosed in the present disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It is to be understood that the present invention is not limited to the precise construction described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
工业实用性Industrial applicability
本文中,应用程序的源代码可使得应用程序在第一操作系统运行,本公开可使用解析器对上述源代码进行处理,从而确定目标代码,以使得应用程序可通过目标代码运行于第二操作系统,从而提升应用程序的开发效率以及用户使用体验。In this article, the source code of the application program can enable the application program to run on the first operating system. The present disclosure can use a parser to process the above-mentioned source code to determine the target code, so that the application program can run on the second operation through the target code. system, thereby improving application development efficiency and user experience.

Claims (14)

  1. 一种应用程序处理方法,应用于终端,其中,所述应用程序处理方法包括:An application processing method, applied to a terminal, wherein the application processing method includes:
    确定应用程序的源代码;其中,所述源代码用于在第一操作系统运行所述应用程序;Determine the source code of the application program; wherein the source code is used to run the application program on the first operating system;
    根据所述终端的解析器,对所述源代码进行处理,确定目标代码;其中,所述目标代码用于在第二操作系统运行所述应用程序。According to the parser of the terminal, the source code is processed to determine the target code; wherein the target code is used to run the application program in the second operating system.
  2. 如权利要求1所述的应用程序处理方法,其中,所述根据所述终端的解析器,对所述源代码进行处理,确定目标代码,包括:The application processing method according to claim 1, wherein the parser according to the terminal processes the source code and determines the target code, including:
    根据所述解析器对所述源代码进行解析,确定源代码特征;其中,所述源代码特征为所述源代码的代码特征;The source code is parsed according to the parser to determine source code characteristics; wherein the source code characteristics are code characteristics of the source code;
    对所述源代码特征进行语法特征转换处理,确定目标代码特征;其中,所述目标代码特征为所述目标代码的代码特征;Perform grammatical feature conversion processing on the source code features to determine target code features; wherein the target code features are code features of the target code;
    根据所述目标代码特征,确定所述目标代码。The target code is determined based on the target code characteristics.
  3. 如权利要求2所述的应用程序处理方法,其中,所述源代码包括至少一种子源代码,所述根据所述解析器对所述源代码进行解析,确定源代码特征,包括:The application processing method according to claim 2, wherein the source code includes at least one sub-source code, and parsing the source code according to the parser to determine source code characteristics includes:
    根据所述解析器,分别对所述至少一种子源代码进行解析,确定至少一种子源代码特征;其中,所述至少一种子源代码特征与所述至少一种子源代码一一对应。According to the parser, the at least one sub-source code is parsed respectively to determine at least one sub-source code feature; wherein the at least one sub-source code feature corresponds to the at least one sub-source code in a one-to-one correspondence.
  4. 如权利要求2所述的应用程序处理方法,其中,所述对所述源代码特征进行语法特征转换处理,确定目标代码特征,包括:The application processing method according to claim 2, wherein said performing syntax feature conversion processing on said source code features to determine target code features includes:
    获取配置信息;其中,所述配置信息包括第一语法特征与第二语法特征的映射关系,所述第一语法特征为所述第一操作系统对应的语法特征,所述第二语法特征为所述第二操作系对应的语法特征;Obtain configuration information; wherein the configuration information includes a mapping relationship between a first syntax feature and a second syntax feature, the first syntax feature is a syntax feature corresponding to the first operating system, and the second syntax feature is the Describe the grammatical features corresponding to the second operating system;
    根据所述配置信息,对所述源代码特征进行语法特征转换处理,确定所述目标代码特征。According to the configuration information, syntax feature conversion processing is performed on the source code features to determine the target code features.
  5. 如权利要求1-4任一项所述的应用程序处理方法,其中,所述确定目标代码之后,所述应用程序处理方法包括:The application processing method according to any one of claims 1 to 4, wherein after the target code is determined, the application processing method includes:
    根据所述目标代码,在所述第二终端运行所述应用程序。According to the object code, the application program is run on the second terminal.
  6. 如权利要求1-4任一项所述的应用程序处理方法,其中,所述确定应用程序的源代码,包括:The application processing method according to any one of claims 1 to 4, wherein determining the source code of the application includes:
    根据所述应用程序的安装包,确定所述源代码。Determine the source code according to the installation package of the application.
  7. 一种应用程序处理装置,应用于终端,其中,所述应用程序处理装置包括确定模块,所述确定模块被配置为:An application processing device is applied to a terminal, wherein the application processing device includes a determining module, and the determining module is configured to:
    确定应用程序的源代码;其中,所述源代码用于在第一操作系统运行所述应用程序;Determine the source code of the application program; wherein the source code is used to run the application program on the first operating system;
    根据所述终端的解析器,对所述源代码进行处理,确定目标代码;其中,所述目标代码用于在第二操作系统运行所述应用程序。According to the parser of the terminal, the source code is processed to determine the target code; wherein the target code is used to run the application program in the second operating system.
  8. 如权利要求7所述的应用程序处理装置,其中,所述确定模块被配置为:The application processing device of claim 7, wherein the determining module is configured to:
    根据所述解析器对所述源代码进行解析,确定源代码特征;其中,所述源代码特征为所述源代码的代码特征;The source code is parsed according to the parser to determine source code characteristics; wherein the source code characteristics are code characteristics of the source code;
    对所述源代码特征进行语法特征转换处理,确定目标代码特征;其中,所述目标代码特征为所述目标代码的代码特征;Perform grammatical feature conversion processing on the source code features to determine target code features; wherein the target code features are code features of the target code;
    根据所述目标代码特征,确定所述目标代码。The target code is determined based on the target code characteristics.
  9. 如权利要求8所述的应用程序处理装置,其中,所述源代码包括至少一种子源代码,所述确定模块被配置为:The application processing device according to claim 8, wherein the source code includes at least one sub-source code, and the determining module is configured to:
    根据所述解析器,分别对所述至少一种子源代码进行解析,确定至少一种子源代码特征;其中,所述至少一种子源代码特征与所述至少一种子源代码一一对应。According to the parser, the at least one sub-source code is parsed respectively to determine at least one sub-source code feature; wherein the at least one sub-source code feature corresponds to the at least one sub-source code in a one-to-one correspondence.
  10. 如权利要求8所述的应用程序处理装置,其中,所述应用程序处理装置包括获取模块,其中,The application processing device according to claim 8, wherein the application processing device includes an acquisition module, wherein,
    所述获取模块被配置为,获取配置信息;其中,所述配置信息包括第一语法特征与第二语法特征的映射关系,所述第一语法特征为所述第一操作系统对应的语法特征,所述第二语法特征为所述第二操作系对应的语法特征;The acquisition module is configured to obtain configuration information; wherein the configuration information includes a mapping relationship between a first syntax feature and a second syntax feature, and the first syntax feature is a syntax feature corresponding to the first operating system, The second grammatical feature is a grammatical feature corresponding to the second operating system;
    所述确定模块被配置为,根据所述配置信息,对所述源代码特征进行语法特征转换处理,确定所述目标代码特征。The determination module is configured to perform syntax feature conversion processing on the source code features according to the configuration information, and determine the target code features.
  11. 如权利要求7-10任一项所述的应用程序处理装置,其中,所述应用程序处理装置包括运行模块,所述运行模块被配置为:The application processing device according to any one of claims 7-10, wherein the application processing device includes an execution module, and the execution module is configured to:
    所述确定目标代码之后,根据所述目标代码,在所述第二终端运行所述应用程序。After the target code is determined, the application program is run on the second terminal according to the target code.
  12. 如权利要求7-10任一项所述的应用程序处理装置,其中,所述确定模块被配置为:The application processing device according to any one of claims 7-10, wherein the determining module is configured to:
    根据所述应用程序的安装包,确定所述源代码。Determine the source code according to the installation package of the application.
  13. 一种终端,其中,所述终端包括:A terminal, wherein the terminal includes:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;memory for storing instructions executable by the processor;
    其中,所述处理器被配置为执行如权利要求1-6任一项所述的应用程序处理方法。Wherein, the processor is configured to execute the application processing method according to any one of claims 1-6.
  14. 一种非临时性计算机可读存储介质,其中,当所述存储介质中的指令由终端的处理器执行时,使得所述终端能够执行如权利要求1-6任一项所述的应用程序处理方法。A non-transitory computer-readable storage medium, wherein, when instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to perform application processing as described in any one of claims 1-6 method.
PCT/CN2022/099862 2022-06-20 2022-06-20 Application processing method and device, terminal, and storage medium WO2023245344A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2022/099862 WO2023245344A1 (en) 2022-06-20 2022-06-20 Application processing method and device, terminal, and storage medium
CN202280004410.6A CN117616386A (en) 2022-06-20 2022-06-20 Application processing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/099862 WO2023245344A1 (en) 2022-06-20 2022-06-20 Application processing method and device, terminal, and storage medium

Publications (1)

Publication Number Publication Date
WO2023245344A1 true WO2023245344A1 (en) 2023-12-28

Family

ID=89378871

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/099862 WO2023245344A1 (en) 2022-06-20 2022-06-20 Application processing method and device, terminal, and storage medium

Country Status (2)

Country Link
CN (1) CN117616386A (en)
WO (1) WO2023245344A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015184756A (en) * 2014-03-20 2015-10-22 東芝テック株式会社 Program converter and conversion processing program
CN111708539A (en) * 2020-06-17 2020-09-25 腾讯科技(深圳)有限公司 Application program code conversion method and device, electronic equipment and storage medium
CN111736840A (en) * 2019-09-19 2020-10-02 北京沃东天骏信息技术有限公司 Compiling method and running method of applet, storage medium and electronic equipment
CN113535184A (en) * 2020-04-14 2021-10-22 华为技术有限公司 Cross-platform code conversion method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015184756A (en) * 2014-03-20 2015-10-22 東芝テック株式会社 Program converter and conversion processing program
CN111736840A (en) * 2019-09-19 2020-10-02 北京沃东天骏信息技术有限公司 Compiling method and running method of applet, storage medium and electronic equipment
CN113535184A (en) * 2020-04-14 2021-10-22 华为技术有限公司 Cross-platform code conversion method and device
CN111708539A (en) * 2020-06-17 2020-09-25 腾讯科技(深圳)有限公司 Application program code conversion method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN117616386A (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN106970754B (en) Screen capture processing method and device
CN108040360B (en) Method and device for controlling screen display
CN109032606B (en) Native application compiling method and device and terminal
US20170060599A1 (en) Method and apparatus for awakening electronic device
JP6189000B2 (en) Application installation package processing method, apparatus, program, and recording medium
US10949490B2 (en) Method and apparatus for displaying webpage content
CN107423106B (en) Method and apparatus for supporting multi-frame syntax
WO2017113666A1 (en) Application interface switching method and device
CN106547547B (en) data acquisition method and device
CN109710259B (en) Data processing method, device and storage medium
RU2663709C2 (en) Method and device for data processing
JP6283749B2 (en) Method and apparatus for prompting device connection
WO2017008394A1 (en) Method of implementing download control procedure and device utilizing same
CN109117144B (en) Page processing method, device, terminal and storage medium
CN107911482B (en) Target application opening method and device
RU2626089C2 (en) Method and device for subject application download
CN107463372B (en) Data-driven page updating method and device
CN110704053B (en) Style information processing method and device
CN109558553B (en) Method and device for determining style
US11210449B2 (en) Page display method and device and storage medium
CN105808304B (en) Code deployment method, device and system
CN105468606B (en) Webpage saving method and device
CN109491655B (en) Input event processing method and device
CN108563487B (en) User interface updating method and device
WO2023245344A1 (en) Application processing method and device, terminal, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22947125

Country of ref document: EP

Kind code of ref document: A1