WO2022184112A1 - Android system application debugging method and apparatus, program, medium, and electronic device - Google Patents

Android system application debugging method and apparatus, program, medium, and electronic device Download PDF

Info

Publication number
WO2022184112A1
WO2022184112A1 PCT/CN2022/078906 CN2022078906W WO2022184112A1 WO 2022184112 A1 WO2022184112 A1 WO 2022184112A1 CN 2022078906 W CN2022078906 W CN 2022078906W WO 2022184112 A1 WO2022184112 A1 WO 2022184112A1
Authority
WO
WIPO (PCT)
Prior art keywords
update
target application
storage location
update information
android
Prior art date
Application number
PCT/CN2022/078906
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 粒界(上海)信息科技有限公司
Publication of WO2022184112A1 publication Critical patent/WO2022184112A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3624Software debugging by performing operations on the source code, e.g. via a compiler
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to an application debugging method, device, program, medium and electronic device of an Android system.
  • the rendering engine needs to render and load art resources (for example, multimedia data such as models, images, videos, etc.) to the specified position of the page at a certain time according to certain rendering logic, so as to realize the display.
  • art resources for example, multimedia data such as models, images, videos, etc.
  • the debugging process is generally as follows: Compile and package the rendering engine framework, rendering logic and art resources into an APK (Android application package, Android application package), then uninstall the old version of the APK on the Android machine, and install the newly packaged version. APK, start a new APK for debugging.
  • APK Android application package, Android application package
  • packaging, uninstalling, and installing APKs all take time, and generally take a long time, each debugging needs to wait for a long time to obtain the verification result of this debugging, and the debugging efficiency is low, which in turn affects the development efficiency.
  • the purpose of the present disclosure is to provide an application debugging method, device, program, medium and electronic device of the Android system, so as to improve the application debugging efficiency of the Android system.
  • an application debugging method of an Android system comprising:
  • the engine framework package installed on the Android device to start running for this debugging, wherein the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and does not contain rendering logic and art resources, In addition, the engine framework package acquires the rendering logic and art resources of the target application from the specified storage location of the Android device during the running process.
  • the update content of the rendering logic of the target application is rendering logic code
  • update information includes update content of the rendering logic of the target application, compile the rendering logic code to obtain a compiled file;
  • the updated content of the art resource of the target application is multimedia data
  • the update information includes the update content of the art resource of the target application, determine the second storage location corresponding to the multimedia data;
  • the method further includes:
  • the original data is replaced with the multimedia data.
  • the method further includes:
  • the method further includes:
  • the engine framework package is directly controlled to start running for this debugging.
  • the method further includes:
  • an application debugging device of an Android system comprising:
  • a judgment module configured to judge whether there is update information for the target application if a debugging instruction for the target application is received, where the update information includes the update content of the rendering logic and/or art resources of the target application;
  • an update module configured to obtain an update file according to the update information if it is determined that the update information exists, and send the update file to a designated storage location of the Android device;
  • the first control module is used to control the engine framework package installed on the Android device to start running for this debugging, wherein the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and does not It includes rendering logic and art resources, and the engine framework package obtains the rendering logic and art resources of the target application from the specified storage location of the Android device during the running process.
  • the update content of the rendering logic of the target application is rendering logic code
  • the update module includes:
  • a compiling submodule configured to compile the rendering logic code if the update information includes the update content of the rendering logic of the target application, and obtain a compiled file
  • a first sending submodule configured to send the compiled file to a first storage location in the Android device for storing rendering logic.
  • the updated content of the art resource of the target application is multimedia data
  • the update module includes:
  • a determination submodule configured to determine a second storage location corresponding to the multimedia data if the update information includes the updated content of the art resource of the target application;
  • the second sending submodule is configured to send the multimedia data to the second storage location.
  • the update module also includes:
  • a replacement submodule configured to replace the original data with the multimedia data if it is identified that the second storage location stores the original data before the multimedia data is sent.
  • the device further includes:
  • the confirmation module is used to confirm that the update file has been successfully stored in the specified Android device before the first control module controls the engine framework package installed on the Android device to start running if it is determined that the update information exists. storage location.
  • the device further includes:
  • the second control module is configured to directly control the engine framework package to start running if it is determined that the update information does not exist for this debugging.
  • the device further includes:
  • an encapsulation module for encapsulating the framework of the rendering engine corresponding to the target application into an engine framework package
  • a sending module for sending the engine framework package to the Android device
  • An installation module is used to android the engine framework package on the Android device.
  • a computer program comprising computer readable code which, when run on a computing processing device, causes the computing processing device to perform the process described in accordance with the first aspect of the present disclosure Methods.
  • a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of the method described in the first aspect of the present disclosure.
  • an electronic device comprising:
  • a processor for executing the computer program in the memory to implement the steps of the method in the first aspect of the present disclosure.
  • the update information includes the update content of the rendering logic and/or art resources of the target application. If it is determined that there is update information, according to The update information obtains the update file, and sends the update file to the designated storage location of the Android device, and controls the engine framework package installed on the Android device to start running for this debugging.
  • the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and does not contain rendering logic and art resources, and the engine framework package obtains the rendering logic and art of the target application from the specified storage location of the Android device during the running process. resource.
  • the framework of the rendering engine is separated from the rendering logic and art resources, and the framework of the rendering engine is separately packaged as an engine framework package and installed on the Android device.
  • the debugging process if the rendering logic or art resources are updated, Then push the updated content to the specified storage location, so that the engine framework package can load the display content through the storage location when running.
  • the update mechanism is more flexible, and there is no need to pack, uninstall, and reinstall the APK frequently, eliminating the need for packaging, uninstalling, and reloading.
  • the time it takes to install the APK is conducive to improving the debugging efficiency, which in turn is conducive to improving the development efficiency of the application.
  • FIG. 1 is a flowchart of an application debugging method of an Android system provided according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of an application debugging method of an Android system provided according to another embodiment of the present disclosure
  • FIG. 3 is a block diagram of an application debugging apparatus of an Android system provided according to an embodiment of the present disclosure
  • Fig. 4 is a block diagram of an electronic device according to an exemplary embodiment.
  • FIG. 1 is a flowchart of an application debugging method of an Android system provided according to an embodiment of the present disclosure.
  • the method provided by the present disclosure can be applied to a device with debugging control capability, so as to use a series of steps provided by the method to debug the application of the Android system, which is not limited in the present disclosure.
  • the method may include the following steps:
  • step 11 if a debugging instruction for the target application is received, determine whether there is update information for the target application;
  • step 12 if it is determined that there is update information, the update file is obtained according to the update information, and the update file is sent to the designated storage location of the Android device;
  • step 13 the engine framework package installed on the Android device is controlled to start running for this debugging.
  • the rendering logic is used to describe the behavior and loading timing of the rendered content.
  • the rendering engine loads the art resources to the specified position of the page at the appropriate time according to the rendering logic.
  • the rendering engine may provide an editor for the user, and the user may edit the rendering logic code in the editor to specify the behavior and loading timing of the rendered content.
  • Art resources are the resources required to render a specified effect or page. It contains models and image data required for rendering logic elements. During the rendering process, art resources are displayed under the control of the rendering engine.
  • the art resources may be multimedia data such as models, images, videos, and audios.
  • step 11 if a debugging instruction for the target application is received, it is determined whether there is update information for the target application.
  • the update information includes the update content of the rendering logic and/or art resources of the target application.
  • the rendering logic of the target application is the rendering logic code
  • the update content of the art resources of the target application is multimedia data.
  • the debugging instruction can be triggered by a user operation, or can be triggered when a pre-written debugging script is executed.
  • a debugging instruction for the target application If a debugging instruction for the target application is received, it means that a new debugging is currently triggered. In order to ensure that the debugging can display the latest effects of the application, before debugging, it is necessary to confirm whether the debugging has updated the rendering logic or art resources.
  • the editor provided by the rendering engine can be used by the user to write rendering logic code. Therefore, it can be detected whether the rendering logic code in the editor is updated to determine whether there is update information for the rendering logic of the target application. .
  • the art resource can be changed by the user. Therefore, it can be determined whether there is update information for the art resource shared by the target by detecting whether the user has modified the art resource.
  • step 12 if it is determined that there is update information, an update file is obtained according to the update information, and the update file is sent to the designated storage location of the Android device.
  • the update content needs to be synchronized to the specified storage location of the Android device according to the update information, so that the debugging is performed for the latest update content.
  • step 12 may include the following steps:
  • update information includes the update content of the rendering logic of the target application, compile the rendering logic code to obtain the compiled file;
  • the update information includes the update content of the rendering logic of the target application, it means that the rendering logic code is updated, and the rendering logic code can be recognized and read by the Android device only after it has been compiled. Therefore, the rendering logic code can be compiled to obtain a compiled file.
  • the rendering logic code can be compiled into a dynamic link library that supports runtime loading, wherein the dynamic link library can use a specified name, path, etc., so that it can be found and correctly loaded by the rendering engine framework during rendering.
  • the compiled file can be sent to the first storage location in the Android device for storing rendering logic, so that the latest rendering logic can be stored in the first storage location in the Android device.
  • the rendering engine ie, the engine framework package
  • the rendering engine framework package corresponding to the target device on the Android device will obtain the rendering logic from the first storage location for loading.
  • step 12 may include the following steps:
  • the update information includes the update content of the art resource of the target application, determine the second storage location corresponding to the multimedia data;
  • the multimedia data is sent to the second storage location.
  • the update information includes the updated content of the art resources of the target application, it means that the art resources have been updated. Since there are usually many art resources for display resources, although they are stored in the same directory, different types of art resources are in the directory. There may be differences in the locations, therefore, the second storage location corresponding to the multimedia data (ie, the storage location in the Android device) needs to be determined. The storage location of the art resource in the Android device is specified when the code is written. Therefore, the second storage location corresponding to the multimedia data can be directly obtained.
  • the multimedia data can be sent to the second storage location.
  • the second storage location in the Android device can store the latest art resources.
  • the rendering engine ie, the engine framework package
  • the rendering engine corresponding to the target device on the Android device will obtain the multimedia data from the second storage location for loading.
  • the original data may be replaced with the multimedia data, that is, the original data may be overwritten with the multimedia data.
  • the multimedia data can be directly stored.
  • the update information may involve the update of more than one art resource, and may involve multiple multimedia data. Therefore, for each multimedia data, the above steps can be performed to determine the corresponding number of each multimedia data. Second storage location, and complete the data transmission.
  • step 13 the engine framework package installed on the Android device is controlled to start running for this debugging.
  • the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and does not contain rendering logic and art resources, and the engine framework package obtains the rendering logic and art of the target application from the specified storage location of the Android device during the running process. resource.
  • the framework of the rendering engine is separated from the rendering logic and art resources, the framework of the rendering engine is encapsulated into an engine framework package (excluding rendering logic and art resources), and the rendering logic and art resources are stored at the same time.
  • the engine framework package excluding rendering logic and art resources
  • the rendering logic and art resources are stored at the same time.
  • the designated storage location of the Android device for example, stored in the SD (Secure Digital, Secure Digital) card of the Android device.
  • the present disclosure can implement the installation of the engine framework package on the Android device in the following manner:
  • the Android engine framework package on Android devices The Android engine framework package on Android devices.
  • this step is done during the initial stage of debugging for the target application.
  • the framework of the rendering engine corresponding to the target application is encapsulated into an engine framework package, and then the engine framework package is sent to the Android device, and then the Android engine framework package is placed on the Android device.
  • the engine framework package encapsulates the framework of the rendering engine.
  • the rendering logic and art resources of the target application can be obtained from the specified storage location of the Android device for loading.
  • the engine framework package only encapsulates the basic rendering capabilities of the rendering engine and does not contain other data, no matter what modifications are made to the target application, the engine framework package does not need to be modified. Therefore, it only needs to be installed once, and the subsequent Debugging, there is no need to uninstall and install repeatedly in the subsequent debugging process.
  • step 12 the engine framework package installed on the Android device can be controlled to start running for this debugging.
  • the debugger can obtain the verification result according to the rendering result to complete the debugging. If there is a new debugging requirement subsequently, a series of steps of the method of the present disclosure can be re-executed.
  • the method provided by the present disclosure may further include the following steps:
  • step 12 the update file will be sent to the designated storage location of the Android device. It takes a certain amount of time for the file to be sent and stored. If the update file is not stored, the debugging will be started. will be invalid. Therefore, before step 13, it is possible to confirm whether the update file has been successfully stored in the designated storage location of the Android device. After confirming that the update file has been successfully stored in the designated storage location of the Android device, Qin Guangxia controls the engine framework package to run to start this debugging.
  • FIG. 2 is a flowchart of an application debugging method of an Android system provided according to another embodiment of the present disclosure. As shown in Figure 2, the method may include the following steps:
  • step 21 if a debugging instruction for the target application is received, determine whether there is update information for the target application;
  • step 22 If it is determined that there is update information, go to step 22, if it is determined that there is no update information, go to step 24 directly;
  • step 22 the update file is obtained according to the update information, and the update file is sent to the designated storage location of the Android device;
  • step 23 confirm whether the update file is successfully stored in the designated storage location of the Android device
  • step 24 If it is confirmed that the update file has been successfully stored in the designated storage location, go to step 24;
  • step 24 the engine framework package installed on the Android device is controlled to start running for this debugging.
  • step 21 can refer to step 11, and the processing flow when it is determined that there is update information can refer to the foregoing related descriptions such as step 12, step 13, etc., which will not be repeated here.
  • the update information includes the update content of the rendering logic and/or art resources of the target application. If it is determined that there is update information, according to The update information obtains the update file, and sends the update file to the designated storage location of the Android device, and controls the engine framework package installed on the Android device to start running for this debugging.
  • the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and does not contain rendering logic and art resources, and the engine framework package obtains the rendering logic and art of the target application from the specified storage location of the Android device during the running process. resource.
  • the framework of the rendering engine is separated from the rendering logic and art resources, and the framework of the rendering engine is separately packaged as an engine framework package and installed on the Android device.
  • the debugging process if the rendering logic or art resources are updated, Then push the updated content to the specified storage location, so that the engine framework package can load the display content through the storage location when running.
  • the update mechanism is more flexible, and there is no need to pack, uninstall, and reinstall the APK frequently, eliminating the need for packaging, uninstalling, and reloading.
  • the time it takes to install the APK is conducive to improving the debugging efficiency, which in turn is conducive to improving the development efficiency of the application.
  • FIG. 3 is a block diagram of an application debugging apparatus of an Android system provided according to an embodiment of the present disclosure. As shown in FIG. 3, the apparatus 30 may include:
  • the judgment module 31 is configured to judge whether there is update information for the target application if the debugging instruction for the target application is received, and the update information includes the update content of the rendering logic and/or art resources of the target application;
  • an update module 32 configured to obtain an update file according to the update information if it is determined that the update information exists, and send the update file to a designated storage location of the Android device;
  • the first control module 33 is used to control the engine framework package installed on the Android device to start running for this debugging, wherein the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and It does not contain rendering logic and art resources, and the engine framework package obtains the rendering logic and art resources of the target application from the specified storage location of the Android device during the running process.
  • the update content of the rendering logic of the target application is rendering logic code
  • the update module 32 includes:
  • a compiling submodule configured to compile the rendering logic code if the update information includes the update content of the rendering logic of the target application, and obtain a compiled file
  • a first sending submodule configured to send the compiled file to a first storage location in the Android device for storing rendering logic.
  • the updated content of the art resource of the target application is multimedia data
  • the update module 32 includes:
  • a determination submodule configured to determine a second storage location corresponding to the multimedia data if the update information includes the updated content of the art resource of the target application;
  • the second sending submodule is configured to send the multimedia data to the second storage location.
  • the update module 32 also includes:
  • a replacement submodule configured to replace the original data with the multimedia data if it is identified that the second storage location stores the original data before the multimedia data is sent.
  • the device 30 further includes:
  • the confirmation module is used to confirm that the update file has been successfully stored in the specified Android device before the first control module controls the engine framework package installed on the Android device to start running if it is determined that the update information exists. storage location.
  • the device 30 further includes:
  • the second control module is configured to directly control the engine framework package to start running if it is determined that the update information does not exist for this debugging.
  • the device 30 further includes:
  • an encapsulation module for encapsulating the framework of the rendering engine corresponding to the target application into an engine framework package
  • a sending module for sending the engine framework package to the Android device
  • An installation module is used to android the engine framework package on the Android device.
  • the present disclosure also provides a computer program, including computer-readable codes, which, when the computer-readable codes are executed on a computing processing device, cause the computing processing device to execute the application debugging method of the Android system provided by the present disclosure.
  • FIG. 4 is a block diagram of an electronic device 700 according to an exemplary embodiment.
  • the electronic device 700 may include: a processor 701 and a memory 702 .
  • the electronic device 700 may also include one or more of a multimedia component 703 , an input/output (I/O) interface 704 , and a communication component 705 .
  • I/O input/output
  • the processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned application debugging method of the Android system.
  • the memory 702 is used to store various types of data to support operations on the electronic device 700, such data may include, for example, instructions for any application or method operating on the electronic device 700, and application-related data, Such as contact data, messages sent and received, pictures, audio, video, and so on.
  • the memory 702 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (Static Random Access Memory, SRAM for short), electrically erasable programmable read-only memory ( Electrically Erasable Programmable Read-Only Memory (EEPROM for short), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read-Only Memory, ROM for short), magnetic memory, flash memory, magnetic disk or optical disk.
  • Multimedia components 703 may include screen and audio components. Wherein the screen can be, for example, a touch screen, and the audio component is used for outputting and/or inputting audio signals.
  • the audio component may include a microphone for receiving external audio signals.
  • the received audio signal may be further stored in memory 702 or transmitted through communication component 705 .
  • the audio assembly also includes at least one speaker for outputting audio signals.
  • the I/O interface 704 provides an interface between the processor 701 and other interface modules, and the above-mentioned other interface modules may be a keyboard, a mouse, a button, and the like. These buttons can be virtual buttons or physical buttons.
  • the communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or more of them The combination is not limited here. Therefore, the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module and so on.
  • the electronic device 700 may be implemented by one or more application-specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), digital signal processors (Digital Signal Processor, DSP for short), digital signal processing devices (Digital Signal Processing Device, referred to as DSPD), Programmable Logic Device (Programmable Logic Device, referred to as PLD), Field Programmable Gate Array (Field Programmable Gate Array, referred to as FPGA), controller, microcontroller, microprocessor or other electronic components
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • controller microcontroller
  • microprocessor or other electronic components The implementation is used to execute the above-mentioned application debugging method of the Android system.
  • a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned application debugging method of the Android system are implemented.
  • the computer-readable storage medium can be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions can be executed by the processor 701 of the electronic device 700 to complete the above-mentioned application debugging method of the Android system.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure relates to an Android system application debugging method and apparatus, a program, a medium, and an electronic device for improving application debugging efficiency. The method comprises: if a debugging instruction for a target application is received, determining whether update information for the target application is present, the update information comprising update content of a rendering logic and/or art resource of the target application; if it is determined that the update information is present, obtaining an update file according to the update information, and sending the update file to a specified storage location of an Android device; and controlling an engine framework package installed in the Android device to start running for this debugging, wherein the engine framework package encapsulates a framework of a rendering engine corresponding to the target application and does not contain the rendering logic and art resource, and the engine framework package obtains the rendering logic and art resource of the target application from the specified storage location of the Android device in the running process.

Description

安卓系统的应用调试方法、装置、程序、介质及电子设备Application debugging method, device, program, medium and electronic device of Android system
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开要求在2021年03月05日提交中国专利局、申请号为202110245791.4、名称为“安卓系统的应用调试方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of a Chinese patent application with application number 202110245791.4 and titled "Application debugging method, device, storage medium and electronic device for Android system" filed with the Chinese Patent Office on March 5, 2021, the entire contents of which are approved by References are incorporated in this disclosure.
技术领域technical field
本公开涉及计算机技术领域,具体地,涉及一种安卓系统的应用调试方法、装置、程序、介质及电子设备。The present disclosure relates to the field of computer technology, and in particular, to an application debugging method, device, program, medium and electronic device of an Android system.
背景技术Background technique
目前,安卓系统上存在越来越多的展示类应用,例如,游戏、用于三维展示与交互的应用、能够进行VR(Virtual Reality,虚拟现实技术)展示与交互的应用,这一类应用均需要渲染引擎按照一定的渲染逻辑,将美术资源(例如,模型、图像、视频等多媒体数据)在一定的时机渲染加载到页面的指定位置,以实现展示。At present, there are more and more display applications on the Android system, such as games, applications for 3D display and interaction, and applications capable of VR (Virtual Reality, virtual reality technology) display and interaction. The rendering engine needs to render and load art resources (for example, multimedia data such as models, images, videos, etc.) to the specified position of the page at a certain time according to certain rendering logic, so as to realize the display.
在开发这类应用的过程中,需要反复地调试渲染逻辑、更换美术资源,以求达到最好的展示效果。调试流程一般为:将渲染引擎框架、渲染逻辑和美术资源编译并打包成一个APK(Android application package,安卓应用程序包),之后将安卓机上的旧版本APK卸载,并安装新打包的这一版APK,启动新APK用于调试。但是,由于打包、卸载、安装APK都需要耗费时间,且一般耗时较长,每次调试都需要等待较长时间才能获得本次调试的验证结果,调试效率低,进而导致开发效率受到影响。In the process of developing such applications, it is necessary to repeatedly debug the rendering logic and replace the art resources in order to achieve the best display effect. The debugging process is generally as follows: Compile and package the rendering engine framework, rendering logic and art resources into an APK (Android application package, Android application package), then uninstall the old version of the APK on the Android machine, and install the newly packaged version. APK, start a new APK for debugging. However, since packaging, uninstalling, and installing APKs all take time, and generally take a long time, each debugging needs to wait for a long time to obtain the verification result of this debugging, and the debugging efficiency is low, which in turn affects the development efficiency.
发明内容SUMMARY OF THE INVENTION
本公开的目的是提供一种安卓系统的应用调试方法、装置、程序、介质及电子设备,以提升安卓系统的应用调试效率。The purpose of the present disclosure is to provide an application debugging method, device, program, medium and electronic device of the Android system, so as to improve the application debugging efficiency of the Android system.
为了实现上述目的,根据本公开的第一方面,提供一种安卓系统的应用调试方法,所述方法包括:In order to achieve the above object, according to the first aspect of the present disclosure, an application debugging method of an Android system is provided, the method comprising:
若接收到针对目标应用的调试指令,判断是否存在针对所述目标应用的更新信息,所述更新信息包括对所述目标应用的渲染逻辑和/或美术资源的更新内容;If a debugging instruction for the target application is received, determine whether there is update information for the target application, where the update information includes the update content of the rendering logic and/or art resources of the target application;
若确定存在所述更新信息,根据所述更新信息获得更新文件,并将所述更新文件发送至安卓设备的指定存储位置;If it is determined that the update information exists, obtain an update file according to the update information, and send the update file to the designated storage location of the Android device;
控制安装于所述安卓设备的引擎框架包开始运行,以进行本次调试,其中,所述引擎框架包封装有所述目标应用所对应的渲染引擎的框架、且不包含渲染逻辑和美术资源,并且,所述引擎框架包在运行过程中从所述安卓设备的指定存储位置获取所述目标应用的渲染逻辑和美术资源。Control the engine framework package installed on the Android device to start running for this debugging, wherein the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and does not contain rendering logic and art resources, In addition, the engine framework package acquires the rendering logic and art resources of the target application from the specified storage location of the Android device during the running process.
可选地,对所述目标应用的渲染逻辑的更新内容为渲染逻辑代码;Optionally, the update content of the rendering logic of the target application is rendering logic code;
所述根据所述更新信息获得更新文件,并将所述更新文件发送至安卓设备的指定存储位置,包括:Obtaining the update file according to the update information, and sending the update file to the designated storage location of the Android device, including:
若所述更新信息中包括对所述目标应用的渲染逻辑的更新内容,对所述渲染逻辑代码进行编译,获得编译后的文件;If the update information includes update content of the rendering logic of the target application, compile the rendering logic code to obtain a compiled file;
将所述编译后的文件发送至所述安卓设备中用于存储渲染逻辑的第一存储位置。Sending the compiled file to a first storage location in the Android device for storing rendering logic.
可选地,对所述目标应用的美术资源的更新内容为多媒体数据;Optionally, the updated content of the art resource of the target application is multimedia data;
所述根据所述更新信息获得更新文件,并将所述更新文件发送至安卓设备的指定存储位置,包括:Obtaining the update file according to the update information, and sending the update file to the designated storage location of the Android device, including:
若所述更新信息中包括对所述目标应用的美术资源的更新内容,确定所述多媒体数据对应的第二存储位置;If the update information includes the update content of the art resource of the target application, determine the second storage location corresponding to the multimedia data;
将所述多媒体数据发送至所述第二存储位置。Sending the multimedia data to the second storage location.
可选地,所述方法还包括:Optionally, the method further includes:
若在发送所述多媒体数据之前识别到所述第二存储位置存储有原始数据,利用所述多媒体数据替换所述原始数据。If it is identified that original data is stored in the second storage location before the multimedia data is sent, the original data is replaced with the multimedia data.
可选地,若确定存在所述更新信息,在所述控制安装于所述安卓设备的引擎框架包开始运行的步骤之前,所述方法还包括:Optionally, if it is determined that the update information exists, before the step of controlling the engine framework package installed on the Android device to start running, the method further includes:
确认所述更新文件已成功存储至所述安卓设备的指定存储位置。Confirm that the update file has been successfully stored to the specified storage location of the Android device.
可选地,所述方法还包括:Optionally, the method further includes:
若确定不存在所述更新信息,直接控制所述引擎框架包开始运行,以进行本次调试。If it is determined that the update information does not exist, the engine framework package is directly controlled to start running for this debugging.
可选地,所述方法还包括:Optionally, the method further includes:
将与所述目标应用所对应的渲染引擎的框架封装为引擎框架包;encapsulating the framework of the rendering engine corresponding to the target application as an engine framework package;
将所述引擎框架包发送至所述安卓设备;sending the engine framework package to the Android device;
在所述安卓设备上安卓所述引擎框架包。Android the engine framework package on the Android device.
根据本公开的第二方面,提供一种安卓系统的应用调试装置,所述装置包括:According to a second aspect of the present disclosure, an application debugging device of an Android system is provided, the device comprising:
判断模块,用于若接收到针对目标应用的调试指令,判断是否存在针对所述目标应用的更新信息,所述更新信息包括对所述目标应用的渲染逻辑和/或美术资源的更新内容;A judgment module, configured to judge whether there is update information for the target application if a debugging instruction for the target application is received, where the update information includes the update content of the rendering logic and/or art resources of the target application;
更新模块,用于若确定存在所述更新信息,根据所述更新信息获得更新文件,并将所述更新文件发送至安卓设备的指定存储位置;an update module, configured to obtain an update file according to the update information if it is determined that the update information exists, and send the update file to a designated storage location of the Android device;
第一控制模块,用于控制安装于所述安卓设备的引擎框架包开始运行,以进行本次调试,其中,所述引擎框架包封装有所述目标应用所对应的渲染引擎的框架、且不包含渲染逻辑和美术资源,并且,所述引擎框架包在运行过程中从所述安卓设备的指定存储位置获取所述目标应用的渲染逻辑和美术资源。The first control module is used to control the engine framework package installed on the Android device to start running for this debugging, wherein the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and does not It includes rendering logic and art resources, and the engine framework package obtains the rendering logic and art resources of the target application from the specified storage location of the Android device during the running process.
可选地,对所述目标应用的渲染逻辑的更新内容为渲染逻辑代码;Optionally, the update content of the rendering logic of the target application is rendering logic code;
所述更新模块包括:The update module includes:
编译子模块,用于若所述更新信息中包括对所述目标应用的渲染逻辑的更新内容,对所述渲染逻辑代码进行编译,获得编译后的文件;a compiling submodule, configured to compile the rendering logic code if the update information includes the update content of the rendering logic of the target application, and obtain a compiled file;
第一发送子模块,用于将所述编译后的文件发送至所述安卓设备中用于存储渲染逻辑的第一存储位置。A first sending submodule, configured to send the compiled file to a first storage location in the Android device for storing rendering logic.
可选地,对所述目标应用的美术资源的更新内容为多媒体数据;Optionally, the updated content of the art resource of the target application is multimedia data;
所述更新模块包括:The update module includes:
确定子模块,用于若所述更新信息中包括对所述目标应用的美术资源的更新内容,确定所述多媒体数据对应的第二存储位置;A determination submodule, configured to determine a second storage location corresponding to the multimedia data if the update information includes the updated content of the art resource of the target application;
第二发送子模块,用于将所述多媒体数据发送至所述第二存储位置。The second sending submodule is configured to send the multimedia data to the second storage location.
可选地,所述更新模块还包括:Optionally, the update module also includes:
替换子模块,用于若在发送所述多媒体数据之前识别到所述第二存储位置存储有原始数据,利用所述多媒体数据替换所述原始数据。A replacement submodule, configured to replace the original data with the multimedia data if it is identified that the second storage location stores the original data before the multimedia data is sent.
可选地,所述装置还包括:Optionally, the device further includes:
确认模块,用于若确定存在所述更新信息,在所述第一控制模块控制安装于所述安卓设备的引擎框架包开始运行之前,确认所述更新文件已成功存储至所述安卓设备的指定存储位置。The confirmation module is used to confirm that the update file has been successfully stored in the specified Android device before the first control module controls the engine framework package installed on the Android device to start running if it is determined that the update information exists. storage location.
可选地,所述装置还包括:Optionally, the device further includes:
第二控制模块,用于若确定不存在所述更新信息,直接控制所述引擎框架包开始运行,以进行本次调试。The second control module is configured to directly control the engine framework package to start running if it is determined that the update information does not exist for this debugging.
可选地,所述装置还包括:Optionally, the device further includes:
封装模块,用于将与所述目标应用所对应的渲染引擎的框架封装为引擎框架包;an encapsulation module for encapsulating the framework of the rendering engine corresponding to the target application into an engine framework package;
发送模块,用于将所述引擎框架包发送至所述安卓设备;a sending module for sending the engine framework package to the Android device;
安装模块,用于在所述安卓设备上安卓所述引擎框架包。An installation module is used to android the engine framework package on the Android device.
根据本公开的第三方面,提供一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算处理设备上运行时,导致所述计算处理设备执行根据本公开第一方面所述的方法。According to a third aspect of the present disclosure, there is provided a computer program comprising computer readable code which, when run on a computing processing device, causes the computing processing device to perform the process described in accordance with the first aspect of the present disclosure Methods.
根据本公开的第四方面,提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本公开第一方面所述方法的步骤。According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of the method described in the first aspect of the present disclosure.
根据本公开的第五方面,提供一种电子设备,包括:According to a fifth aspect of the present disclosure, there is provided an electronic device, comprising:
存储器,其上存储有计算机程序;a memory on which a computer program is stored;
处理器,用于执行所述存储器中的所述计算机程序,以实现本公开第一方面所述方法的步骤。A processor for executing the computer program in the memory to implement the steps of the method in the first aspect of the present disclosure.
通过上述技术方案,若接收到针对目标应用的调试指令,判断是否存在针对目标应用的更新信息,更新信息包括对目标应用的渲染逻辑和/或美术资源的更新内容,若确定存在更新信息,根据更新信息获得更新文件,并将更新文件发送至安卓设备的指定存储位置,控制安装于安卓设备的引擎框架包开始运行,以进行本次调试。其中,引擎框架包封装有目标应用所对应的渲染引擎的框架、且不包含渲染逻辑和美术资源,并且,引擎框架包在运行过程中从安卓设备的指定存储位置获取目标应用的渲染逻辑和美术资源。由此,将渲染引擎的框架与渲染逻辑、美术资源分离开来,将渲染引擎的框架单独封装为引擎框架包并安装于安卓设备上,在调试过程中,若渲染逻辑或美术资源存在更新,则将更新的内容推送至指定的存储位置,以供引擎框架包运行时通过该存储位置加载展示内容。这样,在应用调试过程中,若存在更新,仅需对指定存储位置的数据进行增量更新,更新机制更加灵活,并且,无需频繁打包、卸载、重装APK,省去了打包、卸载、重装APK所花费的时间,有利于提升调试效率,进而有利于提升应用的开发效率。Through the above technical solution, if a debugging instruction for the target application is received, it is judged whether there is update information for the target application. The update information includes the update content of the rendering logic and/or art resources of the target application. If it is determined that there is update information, according to The update information obtains the update file, and sends the update file to the designated storage location of the Android device, and controls the engine framework package installed on the Android device to start running for this debugging. Among them, the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and does not contain rendering logic and art resources, and the engine framework package obtains the rendering logic and art of the target application from the specified storage location of the Android device during the running process. resource. Therefore, the framework of the rendering engine is separated from the rendering logic and art resources, and the framework of the rendering engine is separately packaged as an engine framework package and installed on the Android device. During the debugging process, if the rendering logic or art resources are updated, Then push the updated content to the specified storage location, so that the engine framework package can load the display content through the storage location when running. In this way, in the process of application debugging, if there is an update, only the data in the specified storage location needs to be incrementally updated, the update mechanism is more flexible, and there is no need to pack, uninstall, and reinstall the APK frequently, eliminating the need for packaging, uninstalling, and reloading. The time it takes to install the APK is conducive to improving the debugging efficiency, which in turn is conducive to improving the development efficiency of the application.
本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present disclosure will be described in detail in the detailed description that follows.
附图说明Description of drawings
附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present disclosure, and constitute a part of the specification, and together with the following detailed description, are used to explain the present disclosure, but not to limit the present disclosure. In the attached image:
图1是根据本公开的一种实施方式提供的安卓系统的应用调试方法的流程图;1 is a flowchart of an application debugging method of an Android system provided according to an embodiment of the present disclosure;
图2是根据本公开的另一种实施方式提供的安卓系统的应用调试方法的流程图;2 is a flowchart of an application debugging method of an Android system provided according to another embodiment of the present disclosure;
图3是根据本公开的一种实施方式提供的安卓系统的应用调试装置的框图;3 is a block diagram of an application debugging apparatus of an Android system provided according to an embodiment of the present disclosure;
图4是根据一示例性实施例示出的一种电子设备的框图。Fig. 4 is a block diagram of an electronic device according to an exemplary embodiment.
具体实施方式Detailed ways
以下结合附图对本公开的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本公开,并不用于限制本公开。The specific embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure, but not to limit the present disclosure.
图1是根据本公开的一种实施方式提供的安卓系统的应用调试方法的流程图。本公开提供的方法可以应用于具有调试控制能力的设备,以利用本方法提供的一系列步骤对安卓系统的应用进行调试,本公开对该设备不做限定。如图1所示,该方法可以包括以下步骤:FIG. 1 is a flowchart of an application debugging method of an Android system provided according to an embodiment of the present disclosure. The method provided by the present disclosure can be applied to a device with debugging control capability, so as to use a series of steps provided by the method to debug the application of the Android system, which is not limited in the present disclosure. As shown in Figure 1, the method may include the following steps:
在步骤11中,若接收到针对目标应用的调试指令,判断是否存在针对目标应用的更新信息;In step 11, if a debugging instruction for the target application is received, determine whether there is update information for the target application;
在步骤12中,若确定存在更新信息,根据更新信息获得更新文件,并将更新文件发送至安卓设备的指定存储位置;In step 12, if it is determined that there is update information, the update file is obtained according to the update information, and the update file is sent to the designated storage location of the Android device;
在步骤13中,控制安装于安卓设备的引擎框架包开始运行,以进行本次调试。In step 13, the engine framework package installed on the Android device is controlled to start running for this debugging.
下面首先对渲染逻辑和美术资源进行解释说明。The following first explains the rendering logic and art resources.
渲染逻辑用于描述渲染内容的行为和加载时机,在渲染过程中,渲染引擎依据渲染逻辑将美术资源在合适的时机加载到页面的指定位置。示例地,渲染引擎可以为用户提供编辑器,用户可以在该编辑器内编辑渲染逻辑代码,以指定渲染内容的行为和加载时机。The rendering logic is used to describe the behavior and loading timing of the rendered content. During the rendering process, the rendering engine loads the art resources to the specified position of the page at the appropriate time according to the rendering logic. For example, the rendering engine may provide an editor for the user, and the user may edit the rendering logic code in the editor to specify the behavior and loading timing of the rendered content.
美术资源为渲染出指定效果或页面所需要的资源,它包含有渲染逻辑元素所需要的模型、图像数据等,在渲染过程中,美术资源受渲染引擎的控制进行展示。示例地,美术资源可以为模型、图像、视频、音频等多媒体数据。Art resources are the resources required to render a specified effect or page. It contains models and image data required for rendering logic elements. During the rendering process, art resources are displayed under the control of the rendering engine. For example, the art resources may be multimedia data such as models, images, videos, and audios.
在步骤11中,若接收到针对目标应用的调试指令,判断是否存在针对目标应用的更新信息。In step 11, if a debugging instruction for the target application is received, it is determined whether there is update information for the target application.
其中,更新信息包括对目标应用的渲染逻辑和/或美术资源的更新内容。如前文中给出的关于渲染逻辑和美术资源的说明,可知对目标应用的渲染逻辑为渲染逻辑代码,对目标应用的美术资源的更新内容为多媒体数据。Wherein, the update information includes the update content of the rendering logic and/or art resources of the target application. As described above about rendering logic and art resources, it can be known that the rendering logic of the target application is the rendering logic code, and the update content of the art resources of the target application is multimedia data.
示例地,调试指令可以由用户操作触发,或者,可以在执行预先写好的调试脚本时触发。For example, the debugging instruction can be triggered by a user operation, or can be triggered when a pre-written debugging script is executed.
若接收到针对目标应用的调试指令,说明当前触发了一次新的调试,为了保证此次调试能够展示应用的最新效果,在调试前,需要确认此次调试对渲染逻辑或美术资源是否存在更新。If a debugging instruction for the target application is received, it means that a new debugging is currently triggered. In order to ensure that the debugging can display the latest effects of the application, before debugging, it is necessary to confirm whether the debugging has updated the rendering logic or art resources.
示例地,如前文所述,渲染引擎提供的编辑器可以供用户编写渲染逻辑代码,因此,可以检测编辑器中的渲染逻辑代码是否存在更新,以判断是否存在针对目标应用的渲染逻辑的更新信息。For example, as mentioned above, the editor provided by the rendering engine can be used by the user to write rendering logic code. Therefore, it can be detected whether the rendering logic code in the editor is updated to determine whether there is update information for the rendering logic of the target application. .
示例地,美术资源可以由用户更改,因此,可以通过检测到用户是否存在对美术资源的改动操作,以判断是否存在针对目标因共用的美术资源的更新信息。For example, the art resource can be changed by the user. Therefore, it can be determined whether there is update information for the art resource shared by the target by detecting whether the user has modified the art resource.
在步骤12中,若确定存在更新信息,根据更新信息获得更新文件,并将更新文件发送至安卓设备的指定存储位置。In step 12, if it is determined that there is update information, an update file is obtained according to the update information, and the update file is sent to the designated storage location of the Android device.
若确定存在更新信息,需要根据更新信息向安卓设备的指定存储位置同步更新内容,以使此次调试是针对最新更新内容所做的调试。If it is determined that there is update information, the update content needs to be synchronized to the specified storage location of the Android device according to the update information, so that the debugging is performed for the latest update content.
在一种可能的实施方式中,对目标应用的渲染逻辑的更新内容为渲染逻辑代码,相应地,步骤12可以包括以下步骤:In a possible implementation, the update content of the rendering logic of the target application is the rendering logic code, and accordingly, step 12 may include the following steps:
若更新信息中包括对目标应用的渲染逻辑的更新内容,对渲染逻辑代码进行编译,获得编译后的文件;If the update information includes the update content of the rendering logic of the target application, compile the rendering logic code to obtain the compiled file;
将编译后的文件发送至安卓设备中用于存储渲染逻辑的第一存储位置。Send the compiled file to a first storage location in the Android device for storing rendering logic.
若更新信息中包括对目标应用的渲染逻辑的更新内容,说明渲染逻辑代码存在更新,而渲染逻辑代码经过编译后,才能够被安卓设备识别、读取。因此,可以对渲染逻辑代码进行编译,以获得编译后的文件。示例地,可以将渲染逻辑代码编译为支持运行时加载的动态链接库,其中,动态链接库可以使用指定的名称、路径等,便于渲染时能够被渲染引擎框架找到并正确加载。If the update information includes the update content of the rendering logic of the target application, it means that the rendering logic code is updated, and the rendering logic code can be recognized and read by the Android device only after it has been compiled. Therefore, the rendering logic code can be compiled to obtain a compiled file. For example, the rendering logic code can be compiled into a dynamic link library that supports runtime loading, wherein the dynamic link library can use a specified name, path, etc., so that it can be found and correctly loaded by the rendering engine framework during rendering.
在获得编译后的文件后,就可以将编译后的文件发送至安卓设备中用于存储渲染逻辑的第一存储位置,从而,使安卓设备中的第一存储位置能够存储最新的渲染逻辑。在 渲染过程中,安卓设备上对应于目标设备的渲染引擎(即,引擎框架包)将从第一存储位置处获取渲染逻辑,用于加载。After the compiled file is obtained, the compiled file can be sent to the first storage location in the Android device for storing rendering logic, so that the latest rendering logic can be stored in the first storage location in the Android device. During the rendering process, the rendering engine (ie, the engine framework package) corresponding to the target device on the Android device will obtain the rendering logic from the first storage location for loading.
在另一种可能的实施方式中,对目标应用的美术资源的更新内容为多媒体数据,相应地,步骤12可以包括以下步骤:In another possible implementation, the updated content of the art resource of the target application is multimedia data, and accordingly, step 12 may include the following steps:
若更新信息中包括对目标应用的美术资源的更新内容,确定多媒体数据对应的第二存储位置;If the update information includes the update content of the art resource of the target application, determine the second storage location corresponding to the multimedia data;
将多媒体数据发送至第二存储位置。The multimedia data is sent to the second storage location.
若更新信息中包括对目标应用的美术资源的更新内容,说明美术资源存在更新,而由于展示类资源的美术资源通常较多,虽然存储在同一目录下,但是不同类的美术资源在目录中的位置可能存在区别,因此,需要确定多媒体数据对应的第二存储位置(即,在安卓设备中的存储位置)。美术资源在安卓设备中的存储位置是在编写代码时就规定好的,因此,多媒体数据对应的第二存储位置是可以直接获得的。If the update information includes the updated content of the art resources of the target application, it means that the art resources have been updated. Since there are usually many art resources for display resources, although they are stored in the same directory, different types of art resources are in the directory. There may be differences in the locations, therefore, the second storage location corresponding to the multimedia data (ie, the storage location in the Android device) needs to be determined. The storage location of the art resource in the Android device is specified when the code is written. Therefore, the second storage location corresponding to the multimedia data can be directly obtained.
在确定第二存储位置后,就可以将多媒体数据发送至第二存储位置。这样,安卓设备中的第二存储位置能够存储最新的美术资源。在渲染过程中,安卓设备上对应于目标设备的渲染引擎(即,引擎框架包)将从第二存储位置处获取该多媒体数据,用于加载。After the second storage location is determined, the multimedia data can be sent to the second storage location. In this way, the second storage location in the Android device can store the latest art resources. During the rendering process, the rendering engine (ie, the engine framework package) corresponding to the target device on the Android device will obtain the multimedia data from the second storage location for loading.
可选地,若在发送多媒体数据之前识别到第二存储位置存储有原始数据,可以利用多媒体数据替换原始数据,也就是利用多媒体数据覆盖掉原始数据。而若在发送多媒体数据之前第二存储位置并未存储有数据,则直接将多媒体数据存储即可。Optionally, if it is identified that original data is stored in the second storage location before sending the multimedia data, the original data may be replaced with the multimedia data, that is, the original data may be overwritten with the multimedia data. However, if there is no data stored in the second storage location before the multimedia data is sent, the multimedia data can be directly stored.
需要说明的是,更新信息中可能涉及到不止一处美术资源的更新,可能涉及到多个多媒体数据,因而,针对每个多媒体数据,均可以执行上述步骤,以确定各个多媒体数据各自对应的第二存储位置,并完成数据发送。It should be noted that the update information may involve the update of more than one art resource, and may involve multiple multimedia data. Therefore, for each multimedia data, the above steps can be performed to determine the corresponding number of each multimedia data. Second storage location, and complete the data transmission.
在步骤13中,控制安装于安卓设备的引擎框架包开始运行,以进行本次调试。In step 13, the engine framework package installed on the Android device is controlled to start running for this debugging.
其中,引擎框架包封装有目标应用所对应的渲染引擎的框架、且不包含渲染逻辑和美术资源,并且,引擎框架包在运行过程中从安卓设备的指定存储位置获取目标应用的渲染逻辑和美术资源。Among them, the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and does not contain rendering logic and art resources, and the engine framework package obtains the rendering logic and art of the target application from the specified storage location of the Android device during the running process. resource.
在本公开提供的方法中,将渲染引擎的框架与渲染逻辑、美术资源相分离,将渲染引擎的框架封装为引擎框架包(不包含渲染逻辑和美术资源),同时将渲染逻辑、美术资源存储于安卓设备的指定存储位置,例如,存储于安卓设备的SD(Secure Digital,安全数码)卡。In the method provided by the present disclosure, the framework of the rendering engine is separated from the rendering logic and art resources, the framework of the rendering engine is encapsulated into an engine framework package (excluding rendering logic and art resources), and the rendering logic and art resources are stored at the same time. In the designated storage location of the Android device, for example, stored in the SD (Secure Digital, Secure Digital) card of the Android device.
可选地,本公开可以通过如下方式实现引擎框架包在安卓设备上的安装:Optionally, the present disclosure can implement the installation of the engine framework package on the Android device in the following manner:
将与目标应用所对应的渲染引擎的框架封装为引擎框架包;Encapsulate the framework of the rendering engine corresponding to the target application as an engine framework package;
将引擎框架包发送至安卓设备;Send the engine framework package to the Android device;
在安卓设备上安卓引擎框架包。The Android engine framework package on Android devices.
通常情况下,该步骤在针对目标应用的调试初始阶段完成。首先,将与目标应用所对应的渲染引擎的框架封装为引擎框架包,之后,将引擎框架包发送至安卓设备,而后,在安卓设备上安卓引擎框架包。引擎框架包中封装了渲染引擎的框架,在运行时,能够从安卓设备的指定存储位置获取目标应用的渲染逻辑和美术资源,用于加载。Typically, this step is done during the initial stage of debugging for the target application. First, the framework of the rendering engine corresponding to the target application is encapsulated into an engine framework package, and then the engine framework package is sent to the Android device, and then the Android engine framework package is placed on the Android device. The engine framework package encapsulates the framework of the rendering engine. At runtime, the rendering logic and art resources of the target application can be obtained from the specified storage location of the Android device for loading.
由于引擎框架包仅封装了渲染引擎的基本渲染能力,而不包含其他的数据,无论目标应用做何种修改,引擎框架包都是不需要改动的,因此,仅需要安装一次,就可以应对后续的调试,在后续的调试过程中无需重复地卸载、安装。Since the engine framework package only encapsulates the basic rendering capabilities of the rendering engine and does not contain other data, no matter what modifications are made to the target application, the engine framework package does not need to be modified. Therefore, it only needs to be installed once, and the subsequent Debugging, there is no need to uninstall and install repeatedly in the subsequent debugging process.
也就是说,在步骤12之后,可以控制安装于安卓设备的引擎框架包开始运行,以进行本次调试。之后,调试人员可以根据本次的渲染结果得到验证结果,以完成本次调试。后续若有新的调试需求,可以重新执行本公开方法的一系列步骤。That is to say, after step 12, the engine framework package installed on the Android device can be controlled to start running for this debugging. After that, the debugger can obtain the verification result according to the rendering result to complete the debugging. If there is a new debugging requirement subsequently, a series of steps of the method of the present disclosure can be re-executed.
可选地,若确定存在更新信息,在步骤13之前,本公开提供的方法还可以包括以下步骤:Optionally, if it is determined that there is update information, before step 13, the method provided by the present disclosure may further include the following steps:
确认更新文件已成功存储至安卓设备的指定存储位置。Confirm that the update file has been successfully stored to the specified storage location of the Android device.
也就是说,若存在更新信息,经由步骤12,更新文件会被发送至安卓设备的指定存储位置,文件发送与存储需要一定的时间,若更新文件未存储完毕就开启此次调试,本次调试将是无效的。因此,在步骤13之前,可以确认更新文件是否已成功存储至安卓设备的指定存储位置,在确认更新文件已成功存储至安卓设备的指定存储位置的秦光霞,再控制引擎框架包运行,以开始本次调试。That is to say, if there is update information, through step 12, the update file will be sent to the designated storage location of the Android device. It takes a certain amount of time for the file to be sent and stored. If the update file is not stored, the debugging will be started. will be invalid. Therefore, before step 13, it is possible to confirm whether the update file has been successfully stored in the designated storage location of the Android device. After confirming that the update file has been successfully stored in the designated storage location of the Android device, Qin Guangxia controls the engine framework package to run to start this debugging.
图2是根据本公开的另一种实施方式提供的安卓系统的应用调试方法的流程图。如图2所示,该方法可以包括以下步骤:FIG. 2 is a flowchart of an application debugging method of an Android system provided according to another embodiment of the present disclosure. As shown in Figure 2, the method may include the following steps:
在步骤21中,若接收到针对目标应用的调试指令,判断是否存在针对目标应用的更新信息;In step 21, if a debugging instruction for the target application is received, determine whether there is update information for the target application;
若确定存在更新信息,执行步骤22,若确定不存在更新信息,直接执行步骤24;If it is determined that there is update information, go to step 22, if it is determined that there is no update information, go to step 24 directly;
在步骤22中,根据更新信息获得更新文件,并将更新文件发送至安卓设备的指定存储位置;In step 22, the update file is obtained according to the update information, and the update file is sent to the designated storage location of the Android device;
在步骤23中,确认更新文件是否成功存储至安卓设备的指定存储位置;In step 23, confirm whether the update file is successfully stored in the designated storage location of the Android device;
若确认更新文件已成功存储至指定存储位置,执行步骤24;If it is confirmed that the update file has been successfully stored in the designated storage location, go to step 24;
在步骤24中,控制安装于安卓设备的引擎框架包开始运行,以进行本次调试。In step 24, the engine framework package installed on the Android device is controlled to start running for this debugging.
也就是说,若确定不存在更新信息,直接控制引擎框架包开始运行,以进行本次调试。That is to say, if it is determined that there is no update information, the engine framework package is directly controlled to start running for this debugging.
其中,步骤21的说明可参见步骤11,确定存在更新信息情况下的处理流程可以参考前文的步骤12、步骤13等相关描述,此处不赘述。Wherein, the description of step 21 can refer to step 11, and the processing flow when it is determined that there is update information can refer to the foregoing related descriptions such as step 12, step 13, etc., which will not be repeated here.
通过上述技术方案,若接收到针对目标应用的调试指令,判断是否存在针对目标应用的更新信息,更新信息包括对目标应用的渲染逻辑和/或美术资源的更新内容,若确定存在更新信息,根据更新信息获得更新文件,并将更新文件发送至安卓设备的指定存储位置,控制安装于安卓设备的引擎框架包开始运行,以进行本次调试。其中,引擎框架包封装有目标应用所对应的渲染引擎的框架、且不包含渲染逻辑和美术资源,并且,引擎框架包在运行过程中从安卓设备的指定存储位置获取目标应用的渲染逻辑和美术资源。由此,将渲染引擎的框架与渲染逻辑、美术资源分离开来,将渲染引擎的框架单独封装为引擎框架包并安装于安卓设备上,在调试过程中,若渲染逻辑或美术资源存在更新,则将更新的内容推送至指定的存储位置,以供引擎框架包运行时通过该存储位置加载展示内容。这样,在应用调试过程中,若存在更新,仅需对指定存储位置的数据进行增量更新,更新机制更加灵活,并且,无需频繁打包、卸载、重装APK,省去了打包、卸载、重装APK所花费的时间,有利于提升调试效率,进而有利于提升应用的开发效率。Through the above technical solution, if a debugging instruction for the target application is received, it is judged whether there is update information for the target application. The update information includes the update content of the rendering logic and/or art resources of the target application. If it is determined that there is update information, according to The update information obtains the update file, and sends the update file to the designated storage location of the Android device, and controls the engine framework package installed on the Android device to start running for this debugging. Among them, the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and does not contain rendering logic and art resources, and the engine framework package obtains the rendering logic and art of the target application from the specified storage location of the Android device during the running process. resource. Therefore, the framework of the rendering engine is separated from the rendering logic and art resources, and the framework of the rendering engine is separately packaged as an engine framework package and installed on the Android device. During the debugging process, if the rendering logic or art resources are updated, Then push the updated content to the specified storage location, so that the engine framework package can load the display content through the storage location when running. In this way, in the process of application debugging, if there is an update, only the data in the specified storage location needs to be incrementally updated, the update mechanism is more flexible, and there is no need to pack, uninstall, and reinstall the APK frequently, eliminating the need for packaging, uninstalling, and reloading. The time it takes to install the APK is conducive to improving the debugging efficiency, which in turn is conducive to improving the development efficiency of the application.
图3是根据本公开的一种实施方式提供的安卓系统的应用调试装置的框图。如图3所示,该装置30可以包括:FIG. 3 is a block diagram of an application debugging apparatus of an Android system provided according to an embodiment of the present disclosure. As shown in FIG. 3, the apparatus 30 may include:
判断模块31,用于若接收到针对目标应用的调试指令,判断是否存在针对所述目标应用的更新信息,所述更新信息包括对所述目标应用的渲染逻辑和/或美术资源的更新内容;The judgment module 31 is configured to judge whether there is update information for the target application if the debugging instruction for the target application is received, and the update information includes the update content of the rendering logic and/or art resources of the target application;
更新模块32,用于若确定存在所述更新信息,根据所述更新信息获得更新文件,并将所述更新文件发送至安卓设备的指定存储位置;an update module 32, configured to obtain an update file according to the update information if it is determined that the update information exists, and send the update file to a designated storage location of the Android device;
第一控制模块33,用于控制安装于所述安卓设备的引擎框架包开始运行,以进行本次调试,其中,所述引擎框架包封装有所述目标应用所对应的渲染引擎的框架、且不包含渲染逻辑和美术资源,并且,所述引擎框架包在运行过程中从所述安卓设备的指定存 储位置获取所述目标应用的渲染逻辑和美术资源。The first control module 33 is used to control the engine framework package installed on the Android device to start running for this debugging, wherein the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and It does not contain rendering logic and art resources, and the engine framework package obtains the rendering logic and art resources of the target application from the specified storage location of the Android device during the running process.
可选地,对所述目标应用的渲染逻辑的更新内容为渲染逻辑代码;Optionally, the update content of the rendering logic of the target application is rendering logic code;
所述更新模块32包括:The update module 32 includes:
编译子模块,用于若所述更新信息中包括对所述目标应用的渲染逻辑的更新内容,对所述渲染逻辑代码进行编译,获得编译后的文件;a compiling submodule, configured to compile the rendering logic code if the update information includes the update content of the rendering logic of the target application, and obtain a compiled file;
第一发送子模块,用于将所述编译后的文件发送至所述安卓设备中用于存储渲染逻辑的第一存储位置。A first sending submodule, configured to send the compiled file to a first storage location in the Android device for storing rendering logic.
可选地,对所述目标应用的美术资源的更新内容为多媒体数据;Optionally, the updated content of the art resource of the target application is multimedia data;
所述更新模块32包括:The update module 32 includes:
确定子模块,用于若所述更新信息中包括对所述目标应用的美术资源的更新内容,确定所述多媒体数据对应的第二存储位置;A determination submodule, configured to determine a second storage location corresponding to the multimedia data if the update information includes the updated content of the art resource of the target application;
第二发送子模块,用于将所述多媒体数据发送至所述第二存储位置。The second sending submodule is configured to send the multimedia data to the second storage location.
可选地,所述更新模块32还包括:Optionally, the update module 32 also includes:
替换子模块,用于若在发送所述多媒体数据之前识别到所述第二存储位置存储有原始数据,利用所述多媒体数据替换所述原始数据。A replacement submodule, configured to replace the original data with the multimedia data if it is identified that the second storage location stores the original data before the multimedia data is sent.
可选地,所述装置30还包括:Optionally, the device 30 further includes:
确认模块,用于若确定存在所述更新信息,在所述第一控制模块控制安装于所述安卓设备的引擎框架包开始运行之前,确认所述更新文件已成功存储至所述安卓设备的指定存储位置。The confirmation module is used to confirm that the update file has been successfully stored in the specified Android device before the first control module controls the engine framework package installed on the Android device to start running if it is determined that the update information exists. storage location.
可选地,所述装置30还包括:Optionally, the device 30 further includes:
第二控制模块,用于若确定不存在所述更新信息,直接控制所述引擎框架包开始运行,以进行本次调试。The second control module is configured to directly control the engine framework package to start running if it is determined that the update information does not exist for this debugging.
可选地,所述装置30还包括:Optionally, the device 30 further includes:
封装模块,用于将与所述目标应用所对应的渲染引擎的框架封装为引擎框架包;an encapsulation module for encapsulating the framework of the rendering engine corresponding to the target application into an engine framework package;
发送模块,用于将所述引擎框架包发送至所述安卓设备;a sending module for sending the engine framework package to the Android device;
安装模块,用于在所述安卓设备上安卓所述引擎框架包。An installation module is used to android the engine framework package on the Android device.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
本公开还提供一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计 算处理设备上运行时,导致所述计算处理设备执行根据本公开提供的安卓系统的应用调试方法。The present disclosure also provides a computer program, including computer-readable codes, which, when the computer-readable codes are executed on a computing processing device, cause the computing processing device to execute the application debugging method of the Android system provided by the present disclosure.
图4是根据一示例性实施例示出的一种电子设备700的框图。如图4所示,该电子设备700可以包括:处理器701,存储器702。该电子设备700还可以包括多媒体组件703,输入/输出(I/O)接口704,以及通信组件705中的一者或多者。FIG. 4 is a block diagram of an electronic device 700 according to an exemplary embodiment. As shown in FIG. 4 , the electronic device 700 may include: a processor 701 and a memory 702 . The electronic device 700 may also include one or more of a multimedia component 703 , an input/output (I/O) interface 704 , and a communication component 705 .
其中,处理器701用于控制该电子设备700的整体操作,以完成上述的安卓系统的应用调试方法中的全部或部分步骤。存储器702用于存储各种类型的数据以支持在该电子设备700的操作,这些数据例如可以包括用于在该电子设备700上操作的任何应用程序或方法的指令,以及应用程序相关的数据,例如联系人数据、收发的消息、图片、音频、视频等等。该存储器702可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(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),磁存储器,快闪存储器,磁盘或光盘。多媒体组件703可以包括屏幕和音频组件。其中屏幕例如可以是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件可以包括一个麦克风,麦克风用于接收外部音频信号。所接收的音频信号可以被进一步存储在存储器702或通过通信组件705发送。音频组件还包括至少一个扬声器,用于输出音频信号。I/O接口704为处理器701和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮等。这些按钮可以是虚拟按钮或者实体按钮。通信组件705用于该电子设备700与其他设备之间进行有线或无线通信。无线通信,例如Wi-Fi,蓝牙,近场通信(Near Field Communication,简称NFC),2G、3G、4G、NB-IOT、eMTC、或其他5G等等,或它们中的一种或几种的组合,在此不做限定。因此相应的该通信组件705可以包括:Wi-Fi模块,蓝牙模块,NFC模块等等。The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned application debugging method of the Android system. The memory 702 is used to store various types of data to support operations on the electronic device 700, such data may include, for example, instructions for any application or method operating on the electronic device 700, and application-related data, Such as contact data, messages sent and received, pictures, audio, video, and so on. The memory 702 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (Static Random Access Memory, SRAM for short), electrically erasable programmable read-only memory ( Electrically Erasable Programmable Read-Only Memory (EEPROM for short), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read-Only Memory, ROM for short), magnetic memory, flash memory, magnetic disk or optical disk. Multimedia components 703 may include screen and audio components. Wherein the screen can be, for example, a touch screen, and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in memory 702 or transmitted through communication component 705 . The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 704 provides an interface between the processor 701 and other interface modules, and the above-mentioned other interface modules may be a keyboard, a mouse, a button, and the like. These buttons can be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or more of them The combination is not limited here. Therefore, the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module and so on.
在一示例性实施例中,电子设备700可以被一个或多个应用专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器(Digital Signal Processor,简称DSP)、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD)、现场可编程门阵列(Field  Programmable Gate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述的安卓系统的应用调试方法。In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), digital signal processors (Digital Signal Processor, DSP for short), digital signal processing devices (Digital Signal Processing Device, referred to as DSPD), Programmable Logic Device (Programmable Logic Device, referred to as PLD), Field Programmable Gate Array (Field Programmable Gate Array, referred to as FPGA), controller, microcontroller, microprocessor or other electronic components The implementation is used to execute the above-mentioned application debugging method of the Android system.
在另一示例性实施例中,还提供了一种包括程序指令的计算机可读存储介质,该程序指令被处理器执行时实现上述的安卓系统的应用调试方法的步骤。例如,该计算机可读存储介质可以为上述包括程序指令的存储器702,上述程序指令可由电子设备700的处理器701执行以完成上述的安卓系统的应用调试方法。In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned application debugging method of the Android system are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions can be executed by the processor 701 of the electronic device 700 to complete the above-mentioned application debugging method of the Android system.
以上结合附图详细描述了本公开的优选实施方式,但是,本公开并不限于上述实施方式中的具体细节,在本公开的技术构思范围内,可以对本公开的技术方案进行多种简单变型,这些简单变型均属于本公开的保护范围。The preferred embodiments of the present disclosure have been described above in detail with reference to the accompanying drawings. However, the present disclosure is not limited to the specific details of the above-mentioned embodiments. Various simple modifications can be made to the technical solutions of the present disclosure within the scope of the technical concept of the present disclosure. These simple modifications all fall within the protection scope of the present disclosure.
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合。为了避免不必要的重复,本公开对各种可能的组合方式不再另行说明。In addition, it should be noted that each specific technical feature described in the above-mentioned specific implementation manner may be combined in any suitable manner under the circumstance that there is no contradiction. In order to avoid unnecessary repetition, various possible combinations are not described in the present disclosure.
此外,本公开的各种不同的实施方式之间也可以进行任意组合,只要其不违背本公开的思想,其同样应当视为本公开所公开的内容。In addition, the various embodiments of the present disclosure can also be arbitrarily combined, as long as they do not violate the spirit of the present disclosure, they should also be regarded as the contents disclosed in the present disclosure.

Claims (17)

  1. 一种安卓系统的应用调试方法,其特征在于,所述方法包括:An application debugging method of an Android system, characterized in that the method comprises:
    若接收到针对目标应用的调试指令,判断是否存在针对所述目标应用的更新信息,所述更新信息包括对所述目标应用的渲染逻辑和/或美术资源的更新内容;If a debugging instruction for the target application is received, determine whether there is update information for the target application, where the update information includes the update content of the rendering logic and/or art resources of the target application;
    若确定存在所述更新信息,根据所述更新信息获得更新文件,并将所述更新文件发送至安卓设备的指定存储位置;If it is determined that the update information exists, obtain an update file according to the update information, and send the update file to the designated storage location of the Android device;
    控制安装于所述安卓设备的引擎框架包开始运行,以进行本次调试,其中,所述引擎框架包封装有所述目标应用所对应的渲染引擎的框架、且不包含渲染逻辑和美术资源,并且,所述引擎框架包在运行过程中从所述安卓设备的指定存储位置获取所述目标应用的渲染逻辑和美术资源。Control the engine framework package installed on the Android device to start running for this debugging, wherein the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and does not contain rendering logic and art resources, In addition, the engine framework package acquires the rendering logic and art resources of the target application from the specified storage location of the Android device during the running process.
  2. 根据权利要求1所述的方法,其特征在于,对所述目标应用的渲染逻辑的更新内容为渲染逻辑代码;The method according to claim 1, wherein the update content of the rendering logic of the target application is rendering logic code;
    所述根据所述更新信息获得更新文件,并将所述更新文件发送至安卓设备的指定存储位置,包括:Obtaining the update file according to the update information, and sending the update file to the designated storage location of the Android device, including:
    若所述更新信息中包括对所述目标应用的渲染逻辑的更新内容,对所述渲染逻辑代码进行编译,获得编译后的文件;If the update information includes update content of the rendering logic of the target application, compile the rendering logic code to obtain a compiled file;
    将所述编译后的文件发送至所述安卓设备中用于存储渲染逻辑的第一存储位置。Sending the compiled file to a first storage location in the Android device for storing rendering logic.
  3. 根据权利要求1或2所述的方法,其特征在于,对所述目标应用的美术资源的更新内容为多媒体数据;The method according to claim 1 or 2, wherein the update content of the art resource of the target application is multimedia data;
    所述根据所述更新信息获得更新文件,并将所述更新文件发送至安卓设备的指定存储位置,包括:Obtaining the update file according to the update information, and sending the update file to the designated storage location of the Android device, including:
    若所述更新信息中包括对所述目标应用的美术资源的更新内容,确定所述多媒体数据对应的第二存储位置;If the update information includes the update content of the art resource of the target application, determine the second storage location corresponding to the multimedia data;
    将所述多媒体数据发送至所述第二存储位置。Sending the multimedia data to the second storage location.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    若在发送所述多媒体数据之前识别到所述第二存储位置存储有原始数据,利用所述多媒体数据替换所述原始数据。If it is identified that original data is stored in the second storage location before the multimedia data is sent, the original data is replaced with the multimedia data.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,若确定存在所述更新信息,在所述控制安装于所述安卓设备的引擎框架包开始运行的步骤之前,所述方法还包括:The method according to any one of claims 1-4, wherein if it is determined that the update information exists, before the step of controlling the engine framework package installed on the Android device to start running, the method Also includes:
    确认所述更新文件已成功存储至所述安卓设备的指定存储位置。Confirm that the update file has been successfully stored to the specified storage location of the Android device.
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-5, wherein the method further comprises:
    若确定不存在所述更新信息,直接控制所述引擎框架包开始运行,以进行本次调试。If it is determined that the update information does not exist, the engine framework package is directly controlled to start running for this debugging.
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-6, wherein the method further comprises:
    将与所述目标应用所对应的渲染引擎的框架封装为引擎框架包;encapsulating the framework of the rendering engine corresponding to the target application as an engine framework package;
    将所述引擎框架包发送至所述安卓设备;sending the engine framework package to the Android device;
    在所述安卓设备上安卓所述引擎框架包。Android the engine framework package on the Android device.
  8. 一种安卓系统的应用调试装置,其特征在于,所述装置包括:An application debugging device of an Android system, characterized in that the device comprises:
    判断模块,用于若接收到针对目标应用的调试指令,判断是否存在针对所述目标应用的更新信息,所述更新信息包括对所述目标应用的渲染逻辑和/或美术资源的更新内容;A judgment module, configured to judge whether there is update information for the target application if a debugging instruction for the target application is received, where the update information includes the update content of the rendering logic and/or art resources of the target application;
    更新模块,用于若确定存在所述更新信息,根据所述更新信息获得更新文件,并将所述更新文件发送至安卓设备的指定存储位置;an update module, configured to obtain an update file according to the update information if it is determined that the update information exists, and send the update file to a designated storage location of the Android device;
    第一控制模块,用于控制安装于所述安卓设备的引擎框架包开始运行,以进行本次调试,其中,所述引擎框架包封装有所述目标应用所对应的渲染引擎的框架、且不包含渲染逻辑和美术资源,并且,所述引擎框架包在运行过程中从所述安卓设备的指定存储位置获取所述目标应用的渲染逻辑和美术资源。The first control module is used to control the engine framework package installed on the Android device to start running for this debugging, wherein the engine framework package encapsulates the framework of the rendering engine corresponding to the target application, and does not It includes rendering logic and art resources, and the engine framework package obtains the rendering logic and art resources of the target application from the specified storage location of the Android device during the running process.
  9. 根据权利要求8所述的装置,其特征在于,对所述目标应用的渲染逻辑的更新内容为渲染逻辑代码;The device according to claim 8, wherein the update content of the rendering logic of the target application is rendering logic code;
    所述更新模块包括:The update module includes:
    编译子模块,用于若所述更新信息中包括对所述目标应用的渲染逻辑的更新内容,对所述渲染逻辑代码进行编译,获得编译后的文件;a compiling submodule, configured to compile the rendering logic code if the update information includes the update content of the rendering logic of the target application, and obtain a compiled file;
    第一发送子模块,用于将所述编译后的文件发送至所述安卓设备中用于存储渲染逻辑的第一存储位置。A first sending submodule, configured to send the compiled file to a first storage location in the Android device for storing rendering logic.
  10. 根据权利要求8或9所述的装置,其特征在于,对所述目标应用的美术资源的更新内容为多媒体数据;The device according to claim 8 or 9, wherein the content of updating the art resource of the target application is multimedia data;
    所述更新模块包括:The update module includes:
    确定子模块,用于若所述更新信息中包括对所述目标应用的美术资源的更新内容,确定所述多媒体数据对应的第二存储位置;A determination submodule, configured to determine a second storage location corresponding to the multimedia data if the update information includes the updated content of the art resource of the target application;
    第二发送子模块,用于将所述多媒体数据发送至所述第二存储位置。The second sending submodule is configured to send the multimedia data to the second storage location.
  11. 根据权利要求10所述的装置,其特征在于,所述更新模块还包括:The device according to claim 10, wherein the update module further comprises:
    替换子模块,用于若在发送所述多媒体数据之前识别到所述第二存储位置存储有原始数据,利用所述多媒体数据替换所述原始数据。A replacement submodule, configured to replace the original data with the multimedia data if it is identified that the second storage location stores the original data before the multimedia data is sent.
  12. 根据权利要求8-11中任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 8-11, wherein the device further comprises:
    确认模块,用于若确定存在所述更新信息,在所述第一控制模块控制安装于所述安卓设备的引擎框架包开始运行之前,确认所述更新文件已成功存储至所述安卓设备的指定存储位置。The confirmation module is used to confirm that the update file has been successfully stored in the specified Android device before the first control module controls the engine framework package installed on the Android device to start running if it is determined that the update information exists. storage location.
  13. 根据权利要求8-12中任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 8-12, wherein the device further comprises:
    第二控制模块,用于若确定不存在所述更新信息,直接控制所述引擎框架包开始运行,以进行本次调试。The second control module is configured to directly control the engine framework package to start running if it is determined that the update information does not exist for this debugging.
  14. 根据权利要求8-13中任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 8-13, wherein the device further comprises:
    封装模块,用于将与所述目标应用所对应的渲染引擎的框架封装为引擎框架包;an encapsulation module for encapsulating the framework of the rendering engine corresponding to the target application into an engine framework package;
    发送模块,用于将所述引擎框架包发送至所述安卓设备;a sending module for sending the engine framework package to the Android device;
    安装模块,用于在所述安卓设备上安卓所述引擎框架包。An installation module is used to android the engine framework package on the Android device.
  15. 一种计算机程序,其特征在于,包括计算机可读代码,当所述计算机可读代码在计算处理设备上运行时,导致所述计算处理设备执行根据权利要求1-7中任一项所述的方法。A computer program, characterized in that it comprises computer-readable code, which, when the computer-readable code is executed on a computing and processing device, causes the computing and processing device to execute the method according to any one of claims 1-7. method.
  16. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处 理器执行时实现权利要求1-7中任一项所述方法的步骤。A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the steps of the method according to any one of claims 1-7 are implemented.
  17. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    存储器,其上存储有计算机程序;a memory on which a computer program is stored;
    处理器,用于执行所述存储器中的所述计算机程序,以实现权利要求1-7中任一项所述方法的步骤。A processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1-7.
PCT/CN2022/078906 2021-03-05 2022-03-02 Android system application debugging method and apparatus, program, medium, and electronic device WO2022184112A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110245791.4A CN113032248A (en) 2021-03-05 2021-03-05 Application debugging method and device of android system, storage medium and electronic equipment
CN202110245791.4 2021-03-05

Publications (1)

Publication Number Publication Date
WO2022184112A1 true WO2022184112A1 (en) 2022-09-09

Family

ID=76468078

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/078906 WO2022184112A1 (en) 2021-03-05 2022-03-02 Android system application debugging method and apparatus, program, medium, and electronic device

Country Status (2)

Country Link
CN (1) CN113032248A (en)
WO (1) WO2022184112A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032248A (en) * 2021-03-05 2021-06-25 粒界(上海)信息科技有限公司 Application debugging method and device of android system, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577172A (en) * 2012-07-30 2014-02-12 无锡梵天信息技术股份有限公司 Graphic processing engine system
US8698824B1 (en) * 2013-04-12 2014-04-15 Google Inc. Computing systems, devices and methods for rendering maps remote from a host application
CN107506306A (en) * 2017-09-28 2017-12-22 网易(杭州)网络有限公司 The method of testing and device of fine arts resource
CN110457218A (en) * 2019-08-07 2019-11-15 Oppo广东移动通信有限公司 Game engine test method, device, storage medium and electronic equipment
CN111158866A (en) * 2019-12-30 2020-05-15 珠海金山网络游戏科技有限公司 Engine system and rendering method thereof
CN113032248A (en) * 2021-03-05 2021-06-25 粒界(上海)信息科技有限公司 Application debugging method and device of android system, storage medium and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021082B (en) * 2014-06-16 2017-03-01 贝壳网际(北京)安全技术有限公司 A kind of remote debugging method for browser and device
CN105653448B (en) * 2015-12-25 2019-04-30 深圳中兴网信科技有限公司 Using adjustment method, using debugging apparatus and terminal
CN106941567A (en) * 2017-03-27 2017-07-11 广州优视网络科技有限公司 Show method, device and the user terminal of network picture
CN111831538B (en) * 2019-04-18 2024-03-26 腾讯科技(深圳)有限公司 Debugging method, device and storage medium
CN111796941A (en) * 2020-07-06 2020-10-20 北京字节跳动网络技术有限公司 Memory management method and device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577172A (en) * 2012-07-30 2014-02-12 无锡梵天信息技术股份有限公司 Graphic processing engine system
US8698824B1 (en) * 2013-04-12 2014-04-15 Google Inc. Computing systems, devices and methods for rendering maps remote from a host application
CN107506306A (en) * 2017-09-28 2017-12-22 网易(杭州)网络有限公司 The method of testing and device of fine arts resource
CN110457218A (en) * 2019-08-07 2019-11-15 Oppo广东移动通信有限公司 Game engine test method, device, storage medium and electronic equipment
CN111158866A (en) * 2019-12-30 2020-05-15 珠海金山网络游戏科技有限公司 Engine system and rendering method thereof
CN113032248A (en) * 2021-03-05 2021-06-25 粒界(上海)信息科技有限公司 Application debugging method and device of android system, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN113032248A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN109697060B (en) Video special effect system, generation method, device, equipment and storage medium thereof
CN106970873B (en) On-line mock testing method, device and system
JP6294886B2 (en) Generate native code from intermediate language code for applications
CN102402427B (en) A kind of update method of java application and device
US10846073B2 (en) Methods, apparatuses, terminals, servers, and systems for container generation
CN107168749B (en) Compiling method, device, equipment and computer readable storage medium
CN106909498B (en) Method and system for injecting fault into Java program
WO2017148171A1 (en) Starting method and device for embedded device
TWI649694B (en) Android dynamic framework and method thereof
CN107045438B (en) Application top view processing method, device and component
CN111740948B (en) Data packet issuing method, dynamic updating method, device, equipment and medium
JP2017146966A (en) Method and system for extending function to package file
CN107832059B (en) Code static analysis method and device based on Makefile
CN109857432B (en) Hot updating method and device for game application
WO2010139595A1 (en) Platform agnostic screen capture tool
WO2020177429A1 (en) Method and apparatus for embedding codes in application, and electronic device
US20130055217A1 (en) Breakpoint synchronization for modified program source code
US9639343B2 (en) Method for altering execution of a program, debugger, and computer-readable medium
US20180059978A1 (en) Virtual disk expansion method and apparatus
WO2022184112A1 (en) Android system application debugging method and apparatus, program, medium, and electronic device
CN112882694A (en) Program compiling method and device, electronic equipment and readable storage medium
CN109597631B (en) Process upgrading method and device and electronic equipment
CN106775916B (en) Method and device for reducing application installation packages and electronic equipment
US10552135B1 (en) Reducing a size of an application package
CN110688320B (en) Global variable detection method and device and terminal equipment

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: 22762575

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE