JP2017526069A - Application program restoration method, apparatus, and recording medium - Google Patents

Application program restoration method, apparatus, and recording medium Download PDF

Info

Publication number
JP2017526069A
JP2017526069A JP2017508621A JP2017508621A JP2017526069A JP 2017526069 A JP2017526069 A JP 2017526069A JP 2017508621 A JP2017508621 A JP 2017508621A JP 2017508621 A JP2017508621 A JP 2017508621A JP 2017526069 A JP2017526069 A JP 2017526069A
Authority
JP
Japan
Prior art keywords
application program
script plug
script
version number
plug
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017508621A
Other languages
Japanese (ja)
Other versions
JP6458133B2 (en
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 JP2017526069A publication Critical patent/JP2017526069A/en
Application granted granted Critical
Publication of JP6458133B2 publication Critical patent/JP6458133B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本発明は、アプリケーションプログラム修復方法、装置及び記録媒体に係る。前記方法は、サーバ側により送信されたスクリプトプラグインの設定情報を受信するステップと、前記設定情報に基づいて対応する有効なスクリプトプラグインを取得するステップと、アプリケーションプログラムが実行されるプロセスにおいて、前記有効スクリプトを起動して前記アプリケーションプログラムを修復するステップと、を含む。本発明は、クライアント側のアプリケーションプログラムにおける問題に対し、問題を修復するためのスクリプトプラグインの設定情報をサーバ側によりクライアント側に配信し、クライアント側が設定情報に基づいて、対応するスクリプトプラグインを自動的に取得し、起動し、実行できるため、クライアント側の使用を影響せずに問題を修復することができる。The present invention relates to an application program restoration method, apparatus, and recording medium. The method includes a step of receiving script plug-in setting information transmitted by the server side, a step of obtaining a corresponding valid script plug-in based on the setting information, and a process in which an application program is executed. Activating the valid script to repair the application program. The present invention distributes script plug-in setting information for repairing a problem to an application program on the client side to the client side by the server side, and the client side selects a corresponding script plug-in based on the setting information It can be automatically acquired, started, and executed, so problems can be fixed without affecting client-side usage.

Description

優先権主張Priority claim

本願は、2015年5月14日に提出された、出願番号が201510246297.4で、出願人が百度在線網絡技術(北京)有限公司で、発明の名称が「アプリケーションプログラム修復方法、装置及び記録媒体」である中国特許出願に基づく優先権を主張し、当該特許出願の全文を引用により本願に組み込む。   The present application is filed on May 14, 2015, the application number is 201510246297.4, the applicant is Baidu Network Technology (Beijing) Co., Ltd., and the name of the invention is “Application Program Restoration Method, Apparatus and Recording Medium” And claim the priority based on the Chinese patent application, which is incorporated herein by reference in its entirety.

本発明は、コンピュータ技術分野に関し、特にアプリケーションプログラムの修復方法、装置及び記録媒体に関する。   The present invention relates to the field of computer technology, and more particularly to an application program restoration method, apparatus, and recording medium.

iOSシステムは、アメリカのアップル社により提供された現在最も流行しているモバイルオペレーティングシステムであり、iOSシステムに基づいて開発されたiOSアプリケーションプログラムの数量が百万を超えており、製品間の競争が激しく、ユーザが商品の品質に対する要求もだんだん高まってきている。特に、ユーザの多いアプリケーションプログラムについて、製品の品質がアプリケーション開発者にとって大きなチャレンジになる。   The iOS system is currently the most popular mobile operating system provided by Apple Inc. in the United States. The number of iOS application programs developed based on the iOS system exceeds 1 million, and there is competition between products. Intensely, users are increasingly demanding product quality. Especially for application programs with many users, product quality becomes a big challenge for application developers.

既存のiOSアプリケーションプログラムが比較的大きな問題、又は早急に修復することが必要な問題に遭遇した場合、通常は、アプリケーションプログラムを修正して、改めてパケッジにしてアップル社のアプリストア(App Store)に提出し、審査されてから更新される必要があり、或いは、一部のアプリケーションプログラムでは、問題があった機能に対し、サーバ側により停止させるように制御することができる。審査に要する時間は通常予測困難であるため、問題があったアプリケーションプログラム、又は一部機能の使用停止は、ユーザの使用に影響を与え、且つ比較的大きな損失をもたらすことになる。   When an existing iOS application program encounters a relatively large problem or a problem that needs to be repaired immediately, it is normal to modify the application program and repackage it into the Apple App Store. It needs to be updated after being submitted and reviewed, or in some application programs, it can be controlled by the server side to stop functions that have problems. Since the time required for review is usually difficult to predict, the suspension of use of an application program or a part of a function that has a problem affects the use of the user and causes a relatively large loss.

従来の解決手段では、下記のような複数の欠点が存在する。
(1) 限界:サーバ側にだけアプリケーションプログラムの全ての問題の解決を頼ることは不可能で、かかる問題の存在は重大な損失をもたらすおそれがある。
(2) 実効性が低い:アプリストア(App Store)の審査に要する時間を予測することができないため、審査の再度の提出は、往々にして、タイムリーにアプリケーションプログラムのオンライン上の問題の解決にならない。
(3) ユーザ体験への影響:オンライン上問題が存在するために、ユーザがアプリケーションプログラムのクライアント側の機能を正常に使用することができなくなる。
(4) 開発量の増加:オンラインでの問題の修復は、開発者の作業量が増加することになる。
The conventional solutions have the following disadvantages.
(1) Limitation: It is impossible to rely on the server side to solve all problems of the application program, and the presence of such problems can cause serious losses.
(2) Low effectiveness: Since it is impossible to predict the time required for app store review, re-submission of review is often a timely solution to application program online problems. do not become.
(3) Impact on user experience: Since there is an online problem, the user cannot normally use the client-side functions of the application program.
(4) Increase in development volume: Online problem repair increases the developer's workload.

かかる事情に鑑みてなされた本発明の主な目的は、アプリケーションプログラムの修復方法、装置及び記録媒体を提供することで、タイムリーでかつ便利にアプリケーションプログラムの問題を修復することを実現することである。   The main object of the present invention made in view of such circumstances is to provide a method, apparatus, and recording medium for restoring an application program, thereby realizing timely and convenient restoration of the problem of the application program. is there.

本願に係る実施形態による具体的な解決手段は以下の通りになる。   The specific solution according to the embodiment of the present application is as follows.

第1態様において、本実施形態はアプリケーションプログラムの修復方法を提供し、この修復方法は、
サーバ側により配信(distribute)されたスクリプトプラグイン(script plug-in)の設定情報を受信するステップと、
前記設定情報に基づいて、対応する有効なスクリプトプラグインを取得するステップと、
アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムを修復するステップと、を含む。
In the first aspect, the present embodiment provides a repair method for an application program, and the repair method includes:
Receiving the setting information of the script plug-in distributed by the server side;
Obtaining a corresponding valid script plug-in based on the configuration information;
Activating the valid script plug-in to repair the application program in a process in which the application program is executed.

第2態様において、本実施形態はアプリケーションプログラム修復装置をさらに提供し、この修復装置は、
サーバ側により配信されたスクリプトプラグインの設定情報を受信する設定受信モジュールと、
前記設定情報に基づいて、対応する有効なスクリプトプラグインを取得するスクリプト取得モジュールと、
アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムを修復するアプリケーションプログラム修復モジュールと、を備える。
In a second aspect, the present embodiment further provides an application program repair device, the repair device comprising:
A setting receiving module that receives setting information of the script plug-in distributed by the server side;
A script acquisition module for acquiring a corresponding valid script plug-in based on the setting information;
An application program repair module that activates the valid script plug-in to repair the application program in a process in which the application program is executed;

第3態様において、本実施形態は不揮発性コンピュータ記録媒体を提供し、前記コンピュータの記録媒体には一つ以上のモジュールが保存され、前記一つ以上のモジュールがアプリケーションプログラムの修復方法を実行する機器により実行されると、前記機器は次の動作をする。すなわち、
サーバ側により配信されたスクリプトプラグインの設定情報を受信し、
前記設定情報に基づいて対応する有効なスクリプトプラグインを取得し、
アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムを修復する。
In a third aspect, the present embodiment provides a non-volatile computer recording medium, wherein one or more modules are stored in the computer recording medium, and the one or more modules execute an application program restoration method. When executed, the device performs the following operation. That is,
Receive the script plug-in setting information distributed by the server side,
Obtain a corresponding valid script plug-in based on the setting information,
In the process in which the application program is executed, the effective script plug-in is activated to repair the application program.

本実施形態によって提供されたアプリケーションプログラム修復方法、装置及び記録媒体は、クライアント側のアプリケーションプログラムの問題に対して、サーバ側が問題を修復するためのスクリプトプラグインの設定情報をクライアント側に送信し、クライアント側が設定情報に基づいて、自動的に対応するスクリプトプラグインを取得し、起動し、そして実行することができ、ユーザの使用に影響を与えず問題を修復することができる。   The application program restoration method, apparatus, and recording medium provided by the present embodiment transmit setting information of a script plug-in for the server side to repair the problem to the client side for the problem of the client side application program, Based on the setting information, the client side can automatically obtain, activate, and execute the corresponding script plug-in, and can repair the problem without affecting the user's use.

以下、本発明に係る実施例をより詳しく説明するために、実施例に用いられる図面を簡単に説明し、勿論、以下の図面は本発明に係る一部の実施形態に過ぎず、当業者にとって、創造的労働をすることなく、これらの図面に対する修正や置き換えは可能である。
本発明の実施例1に係るアプリケーションプログラムの修復方法のフローチャートである。 本発明の実施例2に係るアプリケーションプログラムの修復方法のフローチャートである。 本発明の実施例3に係るアプリケーションプログラムの修復方法のフローチャートである。 本発明の実施例4に係るアプリケーションプログラムの修復方法のフローチャートである。 本発明の実施例5に係るアプリケーションプログラムの修復装置の構成の概略図である。
Hereinafter, in order to describe the embodiments according to the present invention in more detail, the drawings used in the embodiments will be briefly described. Of course, the following drawings are only some embodiments according to the present invention and will be understood by those skilled in the art. These drawings can be modified or replaced without creative labor.
It is a flowchart of the restoration method of the application program which concerns on Example 1 of this invention. It is a flowchart of the restoration method of the application program which concerns on Example 2 of this invention. It is a flowchart of the restoration method of the application program which concerns on Example 3 of this invention. It is a flowchart of the restoration method of the application program which concerns on Example 4 of this invention. It is the schematic of the structure of the restoration apparatus of the application program which concerns on Example 5 of this invention.

以下、図面を参照しながら本発明に係る実施例をより明確、かつ完全に説明する。勿論、後述する実施例は本発明に係る実施形態の一部であり、全部の実施例ではなく、本発明の原理を説明するためのものに過ぎず、本発明を制限するものではないことは明らかである。本発明の実施例に基づいて、当業者が創造的な労働をすることなく取得するほかの実施例はいずれも本発明の保護範囲に属するものとする。   Hereinafter, embodiments according to the present invention will be described more clearly and completely with reference to the drawings. Of course, the examples to be described later are a part of the embodiments according to the present invention, and are not all examples, only for explaining the principle of the present invention, and do not limit the present invention. it is obvious. Based on the embodiments of the present invention, any other embodiments obtained by those skilled in the art without creative labor shall fall within the protection scope of the present invention.

実施例1
図1は、本発明の実施例1に係るアプリケーションプログラムの修復方法のフローチャートであり、本実施例は、インストールされた、実行しているアプリケーションプログラムに動的に修復を行う場合に適用することが可能である。具体的には、サーバ側がクライアント側で実行しているユーザアプリケーションプログラムを制御して動的に修正を行う。この方法はアプリケーションプログラムの修復装置が実行し、当該装置はソフトウェアにより実現されることができ、ユーザ側が所属するクライアント側に設置される。図1に示すように、この方法は以下のステップを含む。
Example 1
FIG. 1 is a flowchart of a method for repairing an application program according to the first embodiment of the present invention. This embodiment can be applied to a case where an installed application program is dynamically repaired. Is possible. Specifically, the server side controls the user application program executed on the client side and dynamically corrects it. This method is executed by an application program repair device, which can be implemented by software and is installed on the client side to which the user belongs. As shown in FIG. 1, the method includes the following steps.

S110:サーバ側により配信されたスクリプトプラグインの設定情報を受信する。   S110: The script plug-in setting information distributed by the server side is received.

スクリプトプラグインは、クライアント側のアプリケーションプログラムの問題を修復するために用いられるもので、通常、開発者がアプリケーションプログラムに問題があることを発見した場合、修復するためのスクリプトプラグインを開発し、或いは現在のスクリプトプラグインを更新するようにする。サーバ側は、問題を修復する必要がある場合に、先ず、クライアント側にスクリプトプラグインの設定情報を配信することになる。クライアント側に設定情報を自発的に配信してスクリプトプラグインの更新があることを知らせてもよく、クライアント側により発送された更新リクエストに応じて設定情報を送信してもよい。設定情報は、スクリプトプラグインの基本情報を含み、例えは、少なくともスクリプトプラグインのバージョン番号を含んでもよく、ダウンロードアドレス及び認証情報などを更に含んでもよい。毎回更新されるスクリプトプラグインは一つでもよく、複数でもよいため、一回に配信される設定情報は一つまたは複数のバージョン番号が含まれてもよい。サーバ側は、クライアント側のバージョンに基づいて、対応するスクリプトプラグインのバージョン番号をクライアント側に配信してもよい。   Script plug-ins are used to repair problems with client-side application programs. Normally, when a developer finds a problem with an application program, a script plug-in is developed to repair the problem. Alternatively, update the current script plugin. When the server needs to repair the problem, first, the script plug-in setting information is distributed to the client side. The setting information may be voluntarily distributed to the client side to notify that there is an update of the script plug-in, or the setting information may be transmitted in response to the update request sent out by the client side. The setting information includes basic information of the script plug-in. For example, the setting information may include at least the version number of the script plug-in, and may further include a download address, authentication information, and the like. Since one or more script plug-ins may be updated each time, the setting information distributed at a time may include one or a plurality of version numbers. The server side may distribute the version number of the corresponding script plug-in to the client side based on the client side version.

S120:前記設定情報に基づいて、対応する有効なスクリプトプラグインを取得する。   S120: A corresponding valid script plug-in is acquired based on the setting information.

クライアント側は、設定情報を受信すると、更新されるスクリプトプラグインがどれかを知ることができ、それに基づいて、対応する有効なスクリプトプラグインを取得する。具体的に、クライアント側から対応するスクリプトプラグインをダウンロードしてもよく、或いは、ローガルにおいてスクリプトプラグインが存在しているか否かを探索するようにしてもよい。即ち、S120の操作は、具体的に、前記設定情報の中から前記スクリプトプラグインのバージョン番号を取得するステップと、ローガルに前記バージョン番号に対応するスクリプトプラグインが格納されていることを検出した場合、有効なスクリプトプラグインとするステップと、ローガルに前記バージョン番号に対応するスクリプトプラグインが格納されていることを検出していなかった場合、サーバ側から対応する有効なスクリプトプラグインをダウンロードするステップと、を含む。   Upon receiving the setting information, the client side can know which script plug-in is to be updated, and obtains a corresponding valid script plug-in based on the information. Specifically, the corresponding script plug-in may be downloaded from the client side, or it may be searched whether or not the script plug-in exists locally. That is, the operation of S120 specifically detects the step of obtaining the version number of the script plug-in from the setting information, and detects that the script plug-in corresponding to the version number is stored locally. If it is not detected that the script plug-in corresponding to the version number is stored locally and the step of making it a valid script plug-in, the corresponding valid script plug-in is downloaded from the server side. Steps.

クライアント側は、複数のスクリプトプラグインを格納することができ、サーバ側の設定情報に基づいて、現在どのスクリプトプラグインが有効なのかを特定することにより、有効なスクリプトプラグインを起動して問題を修復する。このようにすれば、クライアント側がスクリプトプラグインを再びダウンロードすることを防止できるとともに、サーバ側も必要に応じてクライアント側における既存のスクリプトプラグインを用いて問題を修復することが可能になり、より柔軟的になる。サーバ側は、クライアント側に既存のスクリプトプラグイン及び新たに配信されたスクリプトプラグインを同時に有効にするように設定することができ、このようにすると、新しいスクリプトプラグインのサイズを小さくすることができ、伝送すべきデータ量を削減することもできる。   The client side can store multiple script plug-ins, and based on the server-side configuration information, identify which script plug-in is currently valid, and launch a valid script plug-in. To repair. In this way, it is possible to prevent the client side from downloading the script plug-in again, and the server side can repair the problem using the existing script plug-in on the client side as needed. Be flexible. The server side can be set to enable the existing script plug-in and the newly distributed script plug-in at the client side at the same time, which can reduce the size of the new script plug-in. It is also possible to reduce the amount of data to be transmitted.

S130:アプリケーションプログラムが実行されているプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムを修復する。   S130: In the process in which the application program is executed, the effective script plug-in is activated to repair the application program.

スクリプトプラグインとは、アプリケーションプログラムの問題を動的に修復することができるパッチファィルであって、アプリケーションプログラムによってサポートされるプログラミング環境において実行することができ、かつアプリケーションプログラムのオリジナルコードを変更することなく、アプリケーションプログラムの実行中に発生する問題を動的に修復することができる。   A script plug-in is a patch file that can dynamically repair a problem in an application program, can be executed in a programming environment supported by the application program, and changes the original code of the application program In addition, problems occurring during execution of the application program can be repaired dynamically.

S130では、以下のステップによりアプリケーションプログラムの修復を行うことが好ましい。即ち、
アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムの関数プッシュ操作を監視するステップと、
前記有効なスクリプトプラグインにおいて設定された目的関数のプッシュ要求を監視により発見した場合、前記有効なスクリプトプラグインにおける置換え関数が前記目的関数の代わりにプッシュ操作を実行し、前記置換え関数を実行して前記アプリケーションプログラムを修復するステップと、を含む。
In S130, it is preferable to repair the application program by the following steps. That is,
In the process of executing the application program, activating the valid script plug-in to monitor the function push operation of the application program;
When the push request of the objective function set in the valid script plug-in is found by monitoring, the replacement function in the valid script plug-in executes a push operation instead of the objective function, and executes the replacement function. And repairing the application program.

スクリプトプラグインにおいて置換えるべき目的関数があることの確認は、当該目的関数の関数名称を確認することができ、かつスクリプトプラグインにおいては、目的関数の代わりに実行する置換え関数が提供されている。目的関数は、通常問題のある関数であり、目的関数の代わりに置換え関数を実行することにより、アプリケーションプログラムに存在する問題を修復することができる。又は、この方法を用いて、アプリケーションプログラムの機能を増やしてもよい。   Confirmation that there is an objective function to be replaced in the script plug-in can confirm the function name of the objective function, and the script plug-in provides a replacement function to be executed instead of the objective function. . The objective function is usually a function having a problem, and the problem existing in the application program can be repaired by executing the replacement function instead of the objective function. Or you may increase the function of an application program using this method.

前記アプリケーションプログラムの修復方法は、特に、iOSシステムに基づいて開発されたクローズドコード(closed code)プログラムのアプリケーションプログラムに適用される。アプリケーションプログラムに問題があった場合、開発者はスクリプトプラグインという形で、オリジナルのアプリケーションプログラムを変えることなく問題を修復することができるため、iOSシステムのアプリスドアによる審査を経る必要がない。スクリプトプラグインに用いられるプログラミング言語は、アプリケーションプログラムがその実行環境をサポートすることができ、かつその関数の代わりに実行できる言語にすることができ、好ましくは、前記スクリプトプラグインのプログラミング言語がLua言語である。Lua言語は、重さの軽い言語であって、サイズが小さく、起動速度が速く、他のアプリケーションプログラムに簡単に埋め込んで実行し、かつ、優れた拡張性を有し、ホスト言語が提供する機能を、まるで内蔵された(built-in)機能のような便利さで利用することができる。Lua言語のスクリプトプラグインがクライアント側にダウンロードされた後に、クライアント側のアプリケーションプログラムを実行する時に、クライアント側は、Luaエンジンを自動的に起動して実行環境を有効にするとともに、スクリプトプラグインのコードを有効にすることで、クライアント側のアプリケーションプログラムの問題を修復する目的を達成する。   The application program restoration method is particularly applied to an application program of a closed code program developed based on an iOS system. If there is a problem with the application program, the developer can repair the problem in the form of a script plug-in without changing the original application program, so there is no need to go through an examination by the iOS system application door. The programming language used for the script plug-in can be a language that allows an application program to support its execution environment and execute instead of its functions. Preferably, the programming language of the script plug-in is Lua. Language. The Lua language is a lightweight language that is small in size, fast in start-up, easily embedded in other application programs and executed, and has excellent extensibility and functions provided by the host language. Can be used for convenience as if it were a built-in function. After the Lua language script plug-in is downloaded to the client side, when the client-side application program is executed, the client side automatically activates the Lua engine to enable the execution environment, and the script plug-in By enabling the code, the goal of repairing client application program problems is achieved.

本発明の実施例に係る発明によって、クライアント側のアプリケーションプログラムにおける問題に対して、サーバ側が問題を修復するためのスクリプトプラグインの設定情報をクライアント側に配信し、クライアント側が設定情報に基づいて、自動的に対応するスクリプトプラグインを取得し、起動し、実行することができるため、ユーザの使用に影響を与えずに、問題を修復することができる。   By the invention according to the embodiment of the present invention, for the problem in the client side application program, the server side distributes the script plug-in setting information for repairing the problem to the client side, and the client side based on the setting information, Since the corresponding script plug-in can be automatically acquired, started, and executed, the problem can be repaired without affecting the user's use.

クライアント側は、さらに、実行ログを報告してもよく、例えば、スクリプトプラグインのダウンロードが成功した後に、又は、スクリプトプラグインの実行が成功した後に、実行ログをサーバ側に報告することにより、開発者がスクリプトプラグインのリクエスト、ダウンロード及び実行などの全プロセスを知ることができ、統計、問題の特定及びスクリプトプラグインのコード最適化が容易になる。   The client side may further report an execution log, for example, by reporting the execution log to the server side after successful download of the script plug-in or after successful execution of the script plug-in, Developers can know the entire process of requesting, downloading and executing script plug-ins, making it easy to statistics, problem identification and script plug-in code optimization.

前述した解決手段を元に設定情報に基づいてスクリプトプラグインに有効性の認証を行うことにより、問題修復の信頼性を向上させるので好ましい。有効性の認証は、多岐にわたって行われてもよく、好ましくは、スクリプトプラグインのバージョン番号及び認証情報によって実現される。   It is preferable because the reliability of problem repair is improved by authenticating the validity of the script plug-in based on the setting information based on the solution described above. The validity authentication may be performed in various ways, and is preferably realized by the version number of the script plug-in and the authentication information.

実施例2
図2は、本発明の実施例2に係るアプリケーションプログラムの修復方法のフローチャートである。本実施例は上記の実施例を元に、前記設定情報に基づいて対応する有効なスクリプトプラグインを取得する動作を具体的に最適化した。本実施例の方法は、
サーバ側により配信されたスクリプトプラグインの設定情報を受信するステップ210(S210)と、
前記設定情報からスクリプトプラグインの第1バージョン番号を取得するステップ220(S220)と、
ローガルに現在使用されている有効なスクリプトプラグインの第2バージョン番号を取得するステップ230(S230)と、
前記第1バージョン番号と前記2バージョン番号とを比較して、前記第1バージョン番号の有効性を認証するステップ240(S240)と、
前記第1バージョン番号が有効である場合、対応する有効なスクリプトプラグインを取得するステップ250(S250)と、
アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムを修復するステップ260(S260)と、を含む。
Example 2
FIG. 2 is a flowchart of the application program restoration method according to the second embodiment of the present invention. In this embodiment, based on the above-described embodiment, the operation for acquiring the corresponding effective script plug-in based on the setting information is specifically optimized. The method of this example is
Step 210 (S210) for receiving script plug-in setting information distributed by the server side;
Acquiring a first version number of the script plug-in from the setting information 220 (S220);
Obtaining a second version number of a valid script plug-in currently used by the local 230 (S230);
Comparing the first version number with the two version numbers and authenticating the validity of the first version number 240 (S240);
If the first version number is valid, obtaining a corresponding valid script plug-in 250 (S250);
In a process in which the application program is executed, a step 260 (S260) of starting the valid script plug-in and repairing the application program is included.

上記解決手段において、第1バージョン番号は、サーバ側によって設定され、有効にして使用することが必要であるスクリプトプラグインのバージョン番号であり、クライアント側のローガルの第2バージョン番号は、クライアント側で既に有効になっており用いられるスクリプトプラグインのバージョン番号である。二つのバージョン番号を比較することによって、現在設定するスクリプトプラグインの有効性を認証することができる。例えば、第1バージョン番号の順位が第2バージョン番号の順位により高い場合は、第1バージョン番号が有効であると判断する。そうでなければ、クライアント側は、実際に比較的新しいバージョンに更新されており、スクリプトプラグインを再度更新する必要がない。   In the above solution, the first version number is a version number of the script plug-in that is set by the server side and needs to be enabled and used, and the local second version number on the client side is the client side. This is the version number of the script plug-in that is already enabled and used. By comparing the two version numbers, the validity of the script plug-in currently set can be authenticated. For example, if the rank of the first version number is higher than the rank of the second version number, it is determined that the first version number is valid. Otherwise, the client side has actually been updated to a relatively new version and there is no need to update the script plug-in again.

実施例3
図3は、本発明の実施例3に係るアプリケーションプログラムの修復方法に関するフローチャートであり、本実施例では上記の実施例を元にし、かつ、ダウンロードする方法によって有効なスクリプトプラグインを取得する解決手段をより具体的に最適化する。本実施例の方法は、
サーバ側により配信されたスクリプトプラグインの設定情報を受信するステップ310(S310)と、
前記設定情報に基づいて、対応する有効なスクリプトプラグインをダウンロードするステップ320(S320)と、
前記設定情報から前記スクリプトプラグインの第1ダイジェストアルゴリズム値を取得するステップ330(S330)と、
ダウンロード済みの前記スクリプトプラグインの第2ダイジェストアルゴリズム値を算出するステップ340(S340)と、
第1ダイジェストアルゴリズム値と第2ダイジェストアルゴリズム値とを比較して、ダウンロードされた前記スクリプトプラグインの有効性を認証し、有効である場合、S360を実行し、無効である場合、S320を繰り返して実行し、または、今回の動作を終了し、異常があることを知らせるステップ350(S350)と、
アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムを修復するステップ360(S360)と、を含む。
Example 3
FIG. 3 is a flowchart relating to the application program repair method according to the third embodiment of the present invention. Optimize more specifically. The method of this example is
Step 310 (S310) for receiving script plug-in setting information distributed by the server side;
Downloading a corresponding valid script plug-in based on the setting information 320 (S320);
A step 330 (S330) of obtaining a first digest algorithm value of the script plug-in from the setting information;
Calculating a second digest algorithm value of the downloaded script plug-in (S340);
The first digest algorithm value and the second digest algorithm value are compared to authenticate the validity of the downloaded script plug-in. If it is valid, S360 is executed. If it is invalid, S320 is repeated. Step 350 (S350) that executes or terminates the current operation and notifies that there is an abnormality,
In a process in which the application program is executed, a step 360 (S360) of starting the valid script plug-in and repairing the application program is included.

上記解決手段において、MD5のダイジェストアルゴリズムを用いることができる。第1ダイジェストアルゴリズム値は、サーバ側がスクリプトプラグイン全体に対して計算して取得したダイジェストアルゴリズム値であり、認証情報とする。第2ダイジェストアルゴリズム値は、クライアント側がスクリプトプラグインをダウンロードした後に、そのスクリプトプラグインに対して計算して取得したダイジェストアルゴリズム値であり、スクリプトプラグインのダウンロードが完全かつ正確であれば、二つのダイジェストアルゴリズム値は同一であり、ダウンロードされたスクリプトプラグインが有効である。ダイジェストアルゴリズムに基づいてスクリプトプラグインに対して認証を行うことにより、ダウンロードの完全性を確保することができる。   In the above solution, a digest algorithm of MD5 can be used. The first digest algorithm value is a digest algorithm value calculated and acquired by the server side for the entire script plug-in, and is used as authentication information. The second digest algorithm value is a digest algorithm value calculated and acquired for the script plug-in after the client side downloaded the script plug-in. If the download of the script plug-in is complete and accurate, The digest algorithm values are the same, and the downloaded script plug-in is valid. By authenticating the script plug-in based on the digest algorithm, it is possible to ensure the integrity of the download.

実施例4
図4は本発明の実施例4に係るアプリケーションプログラムの修復方法に関するフローチャートであり、本実施例は前述した実施例を基礎とする応用例を提供する。該方法は、次のステップを含む。
S401、開発者はクライアント側の問題を修復するためのLuaスクリプトプラグインを作成し、サーバ側に配置するステップ401と、
S402、上記Luaスクリプトプラグインに対応する設定情報(前記設定情報には、該スクリプトプラグインのバージョン番号と、サーバ側のダウンロードアドレスと、MD5値と、を含む)を生成し、サーバ側に格納するステップ402と、
S403、サーバ側がクライアント側のバージョンに応じて、該クライアント側に適用するスクリプトプラグインの設定情報を配信するステップ403と、
S404、クライアント側はサーバ側により配信された設定情報を受信するステップ404と、
S405、クライアント側はスクリプトプラグインのバージョン情報を検証し、配信されたバージョン番号が現在有効なバージョン番号より高いか否かを判断し、現在有効なバージョン番号がより高い場合は有効であり、S406を実行する、そうでなければ、このプロセスを終了するステップ405と、
S406、設定情報が有効である場合、クライアント側が有効になった設定情報をリセットするステップ406と、
具体的には、クライアント側が現在有効なスクリプトプラグインのバージョン番号を置換える。クライアント側が、既に存在する他のスクリプトプラグインを削除してもよく、後の使用に備えて記憶してもよい。
クライアント側は、設定情報を受信した後に、直接有効性の検証及びダウンロード操作を実行してもよく、設定情報を受信して有効であることを検証した後に、ユーザに通知し、ユーザのコマンドに応じてダウンロード操作を実行してもよい。
S407、クライアント側は改めて設定されたスクリプトプラグインをダウンロードし、ダウンロードが成功した場合に、S408を実行し、そうでなければ、プロセスを終了するステップ407と、
S408、ダウンロードが成功し後に、クライアント側はサーバ側にログを報告するステップ408と、
S409、クライアント側はダウンロードしたスクリプトプラグインのMD5値を検証し、即ち、設定情報中のMD5値と、スクリプトプラグインをダウンロードし計算して得られたMD5値とが一致するかどうかを比較し、設定情報のMD5値とスクリプトプラグインをダウンロードし計算して得られたMD5値とが一致する場合、有効なスクリプトプラグインであり、S410を実行し、そうでなければ、プロセスを終了するステップ409と、
S410、スクリプトプラグインが有効である場合、Luaエンジンを起動し、Luaスクリプトプラグインの実行環境を有効にし、起動が成功した場合、S411を実行し、そうでなければ、プロセスを終了するステップ410と、
S411、Luaエンジンの起動が成功した後に、クライアント側はログをサーバ側に報告するステップ411と、
S412、クライアント側は、問題がある部分を実行する時に、Luaスクリプトプラグインの実行をトリガーして有効にし、問題を修復するステップ412。
Example 4
FIG. 4 is a flowchart regarding a method for restoring an application program according to the fourth embodiment of the present invention. This embodiment provides an application example based on the above-described embodiment. The method includes the following steps.
S401, the developer creates a Lua script plug-in for repairing a problem on the client side and places it on the server side, step 401;
S402, setting information corresponding to the above Lua script plug-in (the setting information includes the version number of the script plug-in, the download address on the server side, and the MD5 value), and stores it on the server side Step 402,
S403, a step in which the server side distributes setting information of a script plug-in to be applied to the client side according to the version on the client side;
S404, the step in which the client side receives the setting information distributed by the server side 404;
S405, the client side verifies the version information of the script plug-in, determines whether or not the distributed version number is higher than the currently valid version number, and is valid if the currently valid version number is higher, S406 Otherwise, step 405 ending this process;
S406, if the setting information is valid, step 406 for resetting the valid setting information on the client side;
Specifically, the client side replaces the version number of the script plug-in that is currently valid. The client side may delete other script plug-ins that already exist and may store them for later use.
The client side may directly execute the verification and download operation after receiving the setting information. After receiving the setting information and verifying that it is valid, the client side notifies the user, A download operation may be executed accordingly.
S407, the client side downloads the newly set script plug-in, and if the download is successful, executes S408; otherwise, the process ends 407;
S408, after the download is successful, the client side reports the log to the server side, step 408;
S409, the client side verifies the MD5 value of the downloaded script plug-in, that is, compares whether the MD5 value in the setting information matches the MD5 value obtained by downloading and calculating the script plug-in. If the MD5 value of the setting information matches the MD5 value obtained by downloading and calculating the script plug-in, this is a valid script plug-in, and S410 is executed. Otherwise, the process is terminated. 409,
S410, if the script plug-in is valid, start the Lua engine, enable the execution environment of the Lua script plug-in, execute S411 if the start is successful, otherwise terminate the process Step 410 When,
S411, after successfully starting the Lua engine, the client side reports the log to the server side in step 411;
S412, the client side triggers and enables execution of the Lua script plug-in when executing the problematic part, and repairs the problem 412.

本実施例に係る解決手段において、Lua+Waxフレームを使用してもよく、クライアント側とサーバ側とが協働して、動的にiOSクライアント側に存在する問題を動的にかつ素早く修復することで、新バージョンの提出或いはユーザの正常使用に影響を与えることを避け、製品には以下のメリットをもたらす。   In the solution according to the present embodiment, a Lua + Wax frame may be used, and the client side and the server side cooperate to dynamically and quickly repair problems existing on the iOS client side. Avoiding the submission of new versions or the normal use of the user, the product brings the following benefits:

1.動的に、素早く、柔軟的に一部のiOSアプリケーションプログラムの問題を修復し、再度パッケージにして審査に提出することが不要で、かつユーザの使用に影響を与えない。
2.修復プロセスの全体が制御可能であり、リスクが低い。
3.Luaスクリプトのサイズが小さく、ユーザのデータ通信量を節約することができる。
4.拡張性に優れ、複数の問題を並行して、効率の高い修復ができる。
1. It is not necessary to dynamically, quickly, and flexibly repair a problem of a part of the iOS application program, repackage it, and submit it for examination, and does not affect the use of the user.
2. The entire repair process is controllable and the risk is low.
3. The size of the Lua script is small, and the user's data communication volume can be saved.
4). It is highly scalable and can efficiently repair multiple problems in parallel.

実施例5
図5は本実施例5に係るアプリケーションプログラムの修復装置の構成に関する概略図であり、該装置は、設定受信モジュール510と、スクリプト取得モジュール520と、アプリケーションプログラム修復モジュール530と、を備える。
Example 5
FIG. 5 is a schematic diagram relating to the configuration of the application program restoration apparatus according to the fifth embodiment, and the apparatus includes a setting reception module 510, a script acquisition module 520, and an application program restoration module 530.

設定受信モジュール510は、サーバ側により配信されたスクリプトプラグインの設定情報を受信し、スクリプト取得モジュール520は、前記設定情報に基づいて対応する有効なスクリプトプラグインを取得し、アプリケーションプログラム修復モジュール530は、アプリケーションプログラムが実行されているプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムを修復する。   The setting reception module 510 receives script plug-in setting information distributed by the server side, and the script acquisition module 520 acquires a corresponding valid script plug-in based on the setting information, and the application program repair module 530. In the process in which the application program is executed, the effective script plug-in is activated to repair the application program.

具体的に、プログラム修復モジュール530は、プッシュ監視ユニット531と、アプログラム置換えユニット532と、を備える。   Specifically, the program restoration module 530 includes a push monitoring unit 531 and an aprogram replacement unit 532.

プッシュ監視ユニット531は、アプリケーションプログラムが実行されているプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムの関数プッシュ操作を監視し、プログラム置換えユニット532は、前記スクリプトプラグインにおいて設置された目的関数のプッシュ要求を監視して発見した時に、前記目的関数の代わりに前記有効なスクリプトプラグインにおける置換え関数がプッシュ操作を実行し、前記置換え関数を実行して前記アプリケーションプログラムを修復する。   The push monitoring unit 531 activates the effective script plug-in and monitors the function push operation of the application program in the process in which the application program is executed, and the program replacement unit 532 is installed in the script plug-in. When the target function push request is found by monitoring, the replacement function in the valid script plug-in executes a push operation instead of the objective function, and the application program is repaired by executing the replacement function.

本実施例に係る解決手段において、前記アプリケーションプログラムはiOSシステムに基づいて開発されたクローズドコードプログラムであり、好ましくは、前記スクリプトプラグインのプログラミング言語はLua言語である。   In the solution means according to the present embodiment, the application program is a closed code program developed based on an iOS system, and preferably the programming language of the script plug-in is a Lua language.

上記解決手段において、好ましくは、さらに、スクリプトプラグインに対して有効性の検証を行う。   In the above solution, preferably, the validity of the script plug-in is further verified.

スクリプト取得モジュールは、具体的に、第1バージョン番号取得ユニットと、第2バージョン番号取得ユニットと、有効性検証ユニットと、スクリプト取得ユニットと、を備える。   Specifically, the script acquisition module includes a first version number acquisition unit, a second version number acquisition unit, an validity verification unit, and a script acquisition unit.

第1バージョン番号取得ユニットは、前記設定情報からスクリプトプラグインの第1バージョン番号を取得し、第2バージョン番号取得ユニットは、現在ローカルに使われている有効なスクリプトプラグインの第2バージョン番号を取得し、有効性検証ユニットは、第1バージョン番号と第2バージョン番号とを比較し、前記第1バージョン番号の有効性を検証し、スクリプト取得ユニットは、前記第1バージョン番号が有効である場合、対応する有効なスクリプトプラグインを取得する。   The first version number acquisition unit acquires the first version number of the script plug-in from the setting information, and the second version number acquisition unit acquires the second version number of the valid script plug-in currently used locally. And the validity verification unit compares the first version number with the second version number to verify the validity of the first version number, and the script acquisition unit determines that the first version number is valid. , Get the corresponding valid script plugin.

また、スクリプト取得モジュールは、バージョン番号取得ユニットと、ローカル取得ユニットと、ダウンロード取得ユニットと、をさらに備える。ここで、バージョン番号取得ユニットは、前記設定情報から前記スクリプトプラグインのバージョン番号を取得し、ローカル取得ユニットは、ローガルに前記バージョン番号に対応するスクリプトプラグインが格納されていることを検出した場合、有効なスクリプトプラグインとし、ダウンロード取得ユニットは、ローガルに前記バージョン番号に対応するスクリプトプラグインが格納されていることを検出していない場合、前記サーバ側から対応する有効なスクリプトプラグインをダウンロードする。   The script acquisition module further includes a version number acquisition unit, a local acquisition unit, and a download acquisition unit. Here, the version number acquisition unit acquires the version number of the script plug-in from the setting information, and the local acquisition unit detects that the script plug-in corresponding to the version number is stored locally If the download acquisition unit does not detect that the script plug-in corresponding to the version number is stored locally, the corresponding script plug-in is downloaded from the server side. To do.

さらに、該装置は要約検証モジュールをさらに備え、前記要約検証モジュールは、前記サーバ側から対応する有効なスクリプトプラグインをダウンロードした後に、前記設定情報から前記スクリプトプラグインの第1ダイジェストアルゴリズム値を取得し、ダウンロード済みの前記スクリプトプラグインの第2ダイジェストアルゴリズム値を算出し、前記第1ダイジェストアルゴリズム値と第2ダイジェストアルゴリズム値とを比較することにより、ダウンロードした前記スクリプトプラグインの有効性を検証する。   Further, the apparatus further includes a summary verification module, and the summary verification module obtains a first digest algorithm value of the script plug-in from the setting information after downloading a corresponding valid script plug-in from the server side. Then, the second digest algorithm value of the downloaded script plug-in is calculated, and the effectiveness of the downloaded script plug-in is verified by comparing the first digest algorithm value and the second digest algorithm value. .

上記アプリケーションプログラム修復装置は、本発明の任意の実施例により提供されたアプリケーションプログラムの修復方法を実行することができ、実行方法に対応する機能モジュールと有益な効果とを有する。   The application program restoration apparatus can execute the application program restoration method provided by any embodiment of the present invention, and has functional modules corresponding to the execution method and beneficial effects.

本発明の実施例に係る解決手段を用いることにより、クライアント側のアプリケーションプログラムに存在する問題に対し、サーバ側によりクライアント側に問題を修復するためのスクリプトプラグインの設定情報を配信し、クライアント側が設定情報に基づいて、自動的に対応するスクリプトプラグインを取得し、起動し、実行することができるため、ユーザに影響を与えず、問題を修復することができる。   By using the solution according to the embodiment of the present invention, the server side distributes the script plug-in setting information for repairing the problem to the client side by the server side for the problem existing in the client side application program. Based on the setting information, the corresponding script plug-in can be automatically acquired, activated, and executed, so that the problem can be repaired without affecting the user.

実施例6
本実施例は不揮発性コンピュータ記録媒体を提供し、前記コンピュータ記録媒体に一つ以上のモジュールが格納され、前記一つ以上のモジュールがアプリケーションプログラム修復方法の機器により実行される時に、前記機器は、次の動作をする。すなわち、
サーバ側により配信されたスクリプトプラグインの設定情報を受信し、
前記設定情報に基づいて対応する有効なスクリプトプラグインを取得し、
アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムを修復する。
Example 6
This embodiment provides a non-volatile computer recording medium, wherein one or more modules are stored in the computer recording medium, and when the one or more modules are executed by an apparatus of an application program restoration method, the apparatus The following operations are performed. That is,
Receive the script plug-in setting information distributed by the server side,
Obtain a corresponding valid script plug-in based on the setting information,
In the process in which the application program is executed, the effective script plug-in is activated to repair the application program.

上記記録媒体に格納されているモジュールが前記機器により実行される時に、アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムを修復するステップには、
アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムの関数プッシュ操作を監視するステップと、
前記有効なスクリプトプラグインにおいて設置された目的関数のプッシュ要求を監視により発見した場合、前記有効なスクリプトプラグインにおける置換え関数が、前記目的関数の代わりに、プッシュ操作を実行することにより、前記置換え関数を実行して前記アプリケーションプログラムを修復するステップと、をさらに含んでもよい。
In a process in which an application program is executed when a module stored in the recording medium is executed by the device, the step of starting the effective script plug-in to repair the application program includes:
In the process of executing the application program, activating the valid script plug-in to monitor the function push operation of the application program;
When a push request for the objective function installed in the valid script plug-in is found by monitoring, the replacement function in the valid script plug-in executes the push operation instead of the objective function, thereby performing the replacement. And executing a function to repair the application program.

上記記録媒体に格納されているモジュールが前記機器によって実行される時に、前記アプリケーションプログラムはiOSシステムに基づいて開発されたクローズドコードプログラムであり、前記スクリプトプラグインのプログラミング言語はLua言語であることを含むことができる。   When the module stored in the recording medium is executed by the device, the application program is a closed code program developed based on an iOS system, and the programming language of the script plug-in is a Lua language. Can be included.

上記記録媒体に格納されているモジュールが前記機器によって実行される時に、前記設定情報に基づいて対応する有効なスクリプトプラグインを取得するステップにおいては、
前記設定情報からスクリプトプラグインの第1バージョン番号を取得するステップと、
ローガルに現在使用されている有効なスクリプトプラグインの第2バージョン番号を取得するステップと、
前記第1バージョン番号と前記第2バージョン番号とを比較し、前記第1バージョン番号の有効性を検証するステップと、
上記第1バージョン番号は有効である場合、対応する有効なスクリプトプラグインを取得するステップと、を含むことができる。
When the module stored in the recording medium is executed by the device, in the step of acquiring a corresponding valid script plug-in based on the setting information,
Obtaining a first version number of the script plug-in from the setting information;
Obtaining a second version number of a valid script plug-in currently in use in the local;
Comparing the first version number and the second version number to verify the validity of the first version number;
If the first version number is valid, a corresponding valid script plug-in can be obtained.

上記記録媒体に格納されているモジュールが前記機器によって実行される時に、前記設定情報に基づいて対応する有効なスクリプトプラグインを取得するステップにおいては、
前記設定情報から前記スクリプトプラグインのバージョン番号を取得するステップと、
ローガルに前記バージョン番号対応するスクリプトプラグインが記憶されていることを検出した場合、有効なスクリプトプラグインとするステップと、
ローガルに前記バージョン番号対応するスクリプトプラグインが記憶されていることを検出していない場合、サーバ側から対応する有効なスクリプトプラグインをダウンロードするステップと、を含むことができる。
When the module stored in the recording medium is executed by the device, in the step of acquiring a corresponding valid script plug-in based on the setting information,
Obtaining a version number of the script plug-in from the setting information;
When it is detected that a script plug-in corresponding to the version number is stored in a local language, a step of making it a valid script plug-in;
If it is not detected that the script plug-in corresponding to the version number is stored locally, the step of downloading the corresponding valid script plug-in from the server side can be included.

前記記録媒体の中に格納されているモジュールが前記機器に実行される場合、サーバ側から対応する有効なスクリプトプラグインをダウンロードした後に、
前記設定情報から前記スクリプトプラグインの第1ダイジェストアルゴリズム値を取得するステップと、
ダウンロード済みの前記スクリプトプラグインの第2ダイジェストアルゴリズム値を算出するステップと、
前記第1ダイジェストアルゴリズム値と前記第2ダイジェストアルゴリズム値とを比較することにより、ダウンロードされた前記スクリプトプラグインの有効性を検証するステップと、をさらに含むことができる。
When the module stored in the recording medium is executed by the device, after downloading the corresponding valid script plug-in from the server side,
Obtaining a first digest algorithm value of the script plug-in from the setting information;
Calculating a second digest algorithm value of the downloaded script plug-in;
The method may further include verifying the validity of the downloaded script plug-in by comparing the first digest algorithm value and the second digest algorithm value.

当業者は以上の実施形態についての説明により次のことを明確に理解することができる。本発明がソフトウェア及び必要な汎用ハードウェアにより実現することができ、勿論、ハードウェアにより実現することもできるが、多くの場合に、前者の実施形態がより好適である。このような理解を踏まえて、本発明の解決手段が実質的に又は従来技術に対して貢献している部分がソフトウェア製品の態様で実現することができる。該コンピュータソフトウェア製品は、コンピュータ読み取り可能な記録媒体、例えばコンピュータのフロッピーディスク、読み出し専用メモリ(Read−Only Memory、ROM)、ランダムアクセスメモリ(Random Access Memory、RAM)、フラッシュ(FLASH)、ハードディスクや光ディスク等に格納することができる。該コンピュータソフトウェア製品には、コンピュータ関連機器(パソコン、サーバ、又はネットワーク機器等が挙げられる)に本発明の各実施例に係る方法を実行させる複数の命令を含む。   A person skilled in the art can clearly understand the following from the description of the above embodiments. The present invention can be realized by software and necessary general-purpose hardware. Of course, the present invention can also be realized by hardware, but in many cases, the former embodiment is more suitable. Based on such an understanding, the part where the solution of the present invention contributes substantially or to the prior art can be realized in the form of a software product. The computer software product includes a computer-readable recording medium such as a computer floppy disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a flash (FLASH), a hard disk, and an optical disk. Etc. can be stored. The computer software product includes a plurality of instructions that cause a computer-related device (such as a personal computer, a server, or a network device) to execute the method according to each embodiment of the present invention.

注意されたいのは、上記アプリケーションプログラム修復装置に係る実施例において、各ユニット及びモジュールが機能ロジックによって分割されたものであるに過ぎず、前記の分割を制限するものではなく、対応する機能を実現することができれば足り、また、各機能ユニットの具体の名称は、互いに区別するためのものに過ぎず、本発明の保護範囲を制限するものではない。   It should be noted that in the embodiment of the application program restoration device, each unit and module is only divided by functional logic, and does not limit the division, and realizes the corresponding function. It is only necessary to be able to do this, and the specific names of the respective functional units are merely for distinguishing each other, and do not limit the protection scope of the present invention.

以上に述べたものは、本発明の具体的な実施形態に過ぎず、本発明の技術的範囲を制限するものではなく、本発明が公開した技術範囲内に当業者が容易に変更または置換えるものについては、本発明の技術的範囲内に含まれることを理解されるべきである。よって、本発明の技術的範囲は、特許の請求の範囲に記載された内容を基準とする。   What has been described above is merely a specific embodiment of the present invention, and does not limit the technical scope of the present invention. Those skilled in the art can easily change or replace the technical scope within the technical scope disclosed by the present invention. It should be understood that those are included within the scope of the present invention. Therefore, the technical scope of the present invention is based on the contents described in the claims.

Claims (13)

サーバ側により配信されたスクリプトプラグインの設定情報を受信するステップと、
前記設定情報に基づいて、対応する有効なスクリプトプラグインを取得するステップと、
アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムを修復するステップと、を含む
ことを特徴とするアプリケーションプログラムの修復方法。
Receiving the script plug-in configuration information distributed by the server side;
Obtaining a corresponding valid script plug-in based on the configuration information;
In a process in which an application program is executed, the method includes a step of activating the effective script plug-in to repair the application program.
アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムを修復するステップにおいては、
アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムの関数プッシュ操作を監視するステップと、
前記有効なスクリプトプラグインにおいて設定された目的関数のプッシュ要求を監視により発見した場合、前記有効なスクリプトプラグインにおける置換え関数が、前記目的関数の代わりにプッシュ操作を実行することにより、前記置換え関数を実行して前記アプリケーションプログラムを修復するステップと、を含む
ことを特徴とする請求項1に記載のアプリケーションプログラムの修復方法。
In the process of executing the application program, in the step of starting the effective script plug-in and repairing the application program,
In the process of executing the application program, activating the valid script plug-in to monitor the function push operation of the application program;
When the push request of the objective function set in the valid script plug-in is found by monitoring, the replacement function in the valid script plug-in executes the push operation instead of the objective function, thereby the replacement function. The method of repairing the application program according to claim 1, further comprising: repairing the application program.
前記アプリケーションプログラムは、iOSシステムに基づいて開発されたクローズドコードプログラムであり、前記スクリプトプラグインのプログラミング言語はLua言語であること
を特徴とする請求項2に記載のアプリケーションプログラムの修復方法。
The method of claim 2, wherein the application program is a closed code program developed based on an iOS system, and a programming language of the script plug-in is a Lua language.
前記設定情報に基づいて、対応する有効なスクリプトプラグインを取得するステップにおいては、
前記設定情報からスクリプトプラグインの第1バージョン番号を取得するステップと、
ローカルに現在使用されている有効なスクリプトプラグインの第2バージョン番号を取得するステップと、
前記第1バージョン番号と前記第2バージョン番号とを比較して、前記第1バージョン番号の有効性を検証するステップと、
前記第1バージョンが有効である場合、対応する有効なスクリプトプラグインを取得するステップと、を含む
ことを特徴とする請求項1〜3のいずれか1項に記載のアプリケーションプログラムの修復方法。
In the step of acquiring a corresponding valid script plug-in based on the setting information,
Obtaining a first version number of the script plug-in from the setting information;
Obtaining a second version number of a valid script plugin currently in use locally;
Comparing the first version number and the second version number to verify the validity of the first version number;
The method for repairing an application program according to claim 1, further comprising: obtaining a corresponding valid script plug-in when the first version is valid.
前記設定情報に基づいて対応する有効なスクリプトプラグインを取得するステップにおいては、
前記設定情報から前記スクリプトプラグインのバージョン番号を取得するステップと、
ローカルに前記バージョン番号に対応するスクリプトプラグインが記憶されていることを検出した場合、有効なスクリプトプラグインとするステップと、
ローカルに前記バージョン番号に対応するスクリプトが記憶されていることを検出していない場合、前記サーバ側から対応する有効なスクリプトプラグインをダウンロードするステップと、を含む
ことを特徴とする請求項1〜3のいずれか1項に記載のアプリケーションプログラムの修復方法。
In the step of obtaining a corresponding valid script plug-in based on the setting information,
Obtaining a version number of the script plug-in from the setting information;
When it is detected that a script plug-in corresponding to the version number is stored locally, a step of making it a valid script plug-in;
And a step of downloading a corresponding valid script plug-in from the server side when it is not detected that a script corresponding to the version number is stored locally. 4. A method for repairing an application program according to any one of items 3 to 4.
前記サーバ側から対応する有効なスクリプトプラグインをダウンロードした後に、
前記設定情報から前記スクリプトプラグインの第1ダイジェストアルゴリズム値を取得するステップと、
ダウンロード済みの前記スクリプトプラグインの第2ダイジェストアルゴリズム値を算出するステップと、
前記第1ダイジェストアルゴリズム値と前記第2ダイジェストアルゴリズム値とを比較して、ダウンロードされた前記スクリプトプラグインの有効性を検証するステップと、をさらに含む、こと
を特徴とする請求項5に記載のアプリケーションプログラムの修復方法。
After downloading the corresponding valid script plug-in from the server side,
Obtaining a first digest algorithm value of the script plug-in from the setting information;
Calculating a second digest algorithm value of the downloaded script plug-in;
The method according to claim 5, further comprising: comparing the first digest algorithm value with the second digest algorithm value to verify the validity of the downloaded script plug-in. Application program repair method.
サーバ側により配信されたスクリプトプラグインの設定情報を受信する設定受信モジュールと、
前記設定情報に基づいて対応する有効なスクリプトプラグインを取得するスクリプト取得モジュールと、
アプリケーションプログラムが実行されるプロセスにおいて、有効なスクリプトプラグインを起動して前記アプリケーションプログラムを修復するアプリケーションプログラム修復モジュールと、を備える
ことを特徴とするアプリケーションプログラムの修復装置。
A setting receiving module that receives setting information of the script plug-in distributed by the server side;
A script acquisition module for acquiring a corresponding valid script plug-in based on the setting information;
An application program repair module comprising: an application program repair module that activates an effective script plug-in to repair the application program in a process in which the application program is executed.
プログラム修復モジュールは、
アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムの関数プッシュ操作を監視するプッシュ監視ユニットと、
前記有効なスクリプトプラグインにおいて設定された目的関数のプッシュ要求を監視した場合、前記有効なスクリプトプラグインにおける置換え関数を前記目的関数に置換えて前記置換え関数にプッシュ操作を実行することにより、前記置換え関数を実行し前記アプリケーションプログラムを修復するプログラム置換えユニットと、を備える
ことを特徴とする請求項7に記載のアプリケーションプログラムの修復装置。
Program repair module
A push monitoring unit that activates the valid script plug-in and monitors a function push operation of the application program in a process in which the application program is executed;
When the push request of the objective function set in the valid script plug-in is monitored, the replacement function in the valid script plug-in is replaced with the objective function, and a push operation is performed on the replacement function, thereby performing the replacement function. The apparatus according to claim 7, further comprising: a program replacement unit that executes a function and repairs the application program.
前記アプリケーションプログラムは、iOSシステムに基づいて開発されたクローズドコードプログラムであり、前記スクリプトプラグインのプログラミング言語はLua言語である
ことを特徴とする請求項8に記載のアプリケーションプログラムの修復装置。
The application program restoration apparatus according to claim 8, wherein the application program is a closed code program developed based on an iOS system, and a programming language of the script plug-in is a Lua language.
スクリプト取得モジュールは、
前記設定情報からスクリプトプラグインの第1バージョン番号を取得する第1バージョン番号取得ユニットと、
ローカルに現在使用されている有効なスクリプトプラグインの第2バージョン番号を取得する第2バージョン番号取得ユニットと、
前記第1バージョン番号と前記第2バージョン番号とを比較し、前記第1バージョン番号の有効性を検証する有効性検証ユニットと、
前記第1バージョン番号が有効である場合、対応する有効なスクリプトプラグインを取得するスクリプト取得ユニットと、を備える
ことを特徴とする請求項7〜9のいずれか1項に記載のアプリケーションプログラムの修復装置。
Script acquisition module
A first version number acquisition unit for acquiring a first version number of the script plug-in from the setting information;
A second version number obtaining unit for obtaining a second version number of a valid script plug-in currently being used locally;
A validity verification unit that compares the first version number and the second version number to verify the validity of the first version number;
The restoration of an application program according to any one of claims 7 to 9, further comprising: a script obtaining unit that obtains a corresponding valid script plug-in when the first version number is valid. apparatus.
スクリプト取得モジュールは、
前記設定情報から前記スクリプトプラグインのバージョン番号を取得するバージョン番号取得ユニットと、
ローカルに前記バージョン番号に対応するスクリプトプラグインが記憶されていることを検出した場合、有効なスクリプトプラグインとするローカル取得ユニットと、
ローカルに前記バージョン番号に対応するスクリプトプラグインが記憶されていることを検出していない場合、前記サーバ側から対応する有効なスクリプトプラグインをダウンロードするダウンロード取得ユニットと、を備える
ことを特徴とする請求項7〜9のいずれか1項に記載のアプリケーションプログラムの修復装置。
Script acquisition module
A version number acquisition unit for acquiring the version number of the script plug-in from the setting information;
When it is detected that a script plug-in corresponding to the version number is stored locally, a local acquisition unit that is a valid script plug-in,
A download acquisition unit that downloads a valid script plug-in corresponding from the server side when it is not detected that a script plug-in corresponding to the version number is stored locally; The apparatus for repairing an application program according to any one of claims 7 to 9.
前記サーバ側から対応する有効なスクリプトプラグインをダウンロードした後に、前記設定情報から前記スクリプトプラグインの第1ダイジェストアルゴリズム値を取得し、ダウンロード済みの前記スクリプトプラグインの第2ダイジェストアルゴリズム値を算出し、前記第1ダイジェストアルゴリズム値と第2ダイジェストアルゴリズム値とを比較して、ダウンロードされた前記スクリプトプラグインの有効性を検証するダイジェスト検証モジュール、をさらに備える
ことを特徴とする請求項11に記載のアプリケーションプログラムの修復装置。
After the corresponding valid script plug-in is downloaded from the server side, the first digest algorithm value of the script plug-in is obtained from the setting information, and the second digest algorithm value of the downloaded script plug-in is calculated. The digest verification module further comprising: a digest verification module that compares the first digest algorithm value with the second digest algorithm value to verify the validity of the downloaded script plug-in. Application program repair device.
不揮発性コンピュータ記録媒体であって、一つ以上のモジュールが記憶され、前記一つ以上のモジュールが1つのアプリケーションプログラムの修復方法を実行する機器により実行される時に、前記機器は、次の動作を実行し、すなわち、
サーバ側により配信されたスクリプトプラグインの設定情報を受信し、
前記設定情報に基づいて対応する有効なスクリプトプラグインを取得し、
アプリケーションプログラムが実行されるプロセスにおいて、前記有効なスクリプトプラグインを起動して前記アプリケーションプログラムを修復する
ことを特徴とする不揮発性コンピュータ記録媒体。
A non-volatile computer recording medium, in which one or more modules are stored, and when the one or more modules are executed by a device that executes a method for restoring one application program, the device performs the following operation: Perform, ie
Receive the script plug-in setting information distributed by the server side,
Obtain a corresponding valid script plug-in based on the setting information,
A non-volatile computer recording medium, wherein the application program is restored by activating the effective script plug-in in a process in which the application program is executed.
JP2017508621A 2015-05-14 2015-10-16 Application program restoration method, apparatus, and recording medium Active JP6458133B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201510246297.4A CN104866307B (en) 2015-05-14 2015-05-14 The restorative procedure and device of a kind of application program
CN201510246297.4 2015-05-14
PCT/CN2015/092066 WO2016179957A1 (en) 2015-05-14 2015-10-16 Method and device for repairing application programs, and storage medium

Publications (2)

Publication Number Publication Date
JP2017526069A true JP2017526069A (en) 2017-09-07
JP6458133B2 JP6458133B2 (en) 2019-01-23

Family

ID=53912158

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017508621A Active JP6458133B2 (en) 2015-05-14 2015-10-16 Application program restoration method, apparatus, and recording medium

Country Status (4)

Country Link
JP (1) JP6458133B2 (en)
KR (1) KR101952225B1 (en)
CN (1) CN104866307B (en)
WO (1) WO2016179957A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866307B (en) * 2015-05-14 2018-04-27 百度在线网络技术(北京)有限公司 The restorative procedure and device of a kind of application program
CN106020786A (en) * 2015-11-02 2016-10-12 广州市动景计算机科技有限公司 Method and device for dynamically restoring application program, and related system
CN107239267A (en) * 2016-03-29 2017-10-10 百度在线网络技术(北京)有限公司 The reparation extended method and device of application program
CN106021043A (en) * 2016-05-10 2016-10-12 浪潮电子信息产业股份有限公司 Method and device for acquiring configuration information of server
CN106372005B (en) * 2016-09-20 2019-10-11 深圳市华美兴泰科技股份有限公司 The method and device of image data is accessed in IOS system using external memorizer
CN106897095B (en) * 2017-02-24 2020-10-13 网易(杭州)网络有限公司 Method and device for hot repairing application program, readable storage medium and computing equipment
CN108829431A (en) * 2018-06-27 2018-11-16 杭州贝购科技有限公司 Update method, device, equipment and the storage medium of iOS application program
CN109725923A (en) * 2018-12-27 2019-05-07 广州华多网络科技有限公司 A kind of software light weight update method, device and equipment
CN110362330B (en) * 2019-07-18 2023-09-01 腾讯科技(深圳)有限公司 Application program updating method, device, terminal and storage medium
CN110543323A (en) * 2019-09-11 2019-12-06 北京搜狐新动力信息技术有限公司 Application program repairing method and device
CN113110864B (en) * 2021-03-19 2023-01-20 深圳市腾讯网络信息技术有限公司 Application program updating method and device and storage medium
CN114025037B (en) * 2021-10-28 2024-04-30 北京百度网讯科技有限公司 Cloud mobile phone overhaul method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003508846A (en) * 1999-09-01 2003-03-04 マイクロソフト コーポレイション Fix non-conforming applications by providing stubs for API
JP2005092803A (en) * 2003-09-19 2005-04-07 Fujitsu Ltd Device and method for applying modification information to software
JP2011059956A (en) * 2009-09-09 2011-03-24 Ricoh Co Ltd Printer driver, information processing apparatus and recording medium
JP2011164916A (en) * 2010-02-09 2011-08-25 Noria Co Ltd Software patch download solution
JP2012138131A (en) * 2012-04-24 2012-07-19 Toshiba Corp Computer
JP2014219939A (en) * 2013-05-10 2014-11-20 株式会社リコー Information processing system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622241B (en) * 2011-01-26 2016-06-15 腾讯科技(深圳)有限公司 A kind of method for upgrading software and device
CN102253850A (en) * 2011-07-08 2011-11-23 烽火通信科技股份有限公司 Incremental software updating method of internet protocol television (IPTV) set top box
CN102955700A (en) * 2011-08-18 2013-03-06 腾讯科技(深圳)有限公司 System and method for upgrading software
CN103176809B (en) * 2011-12-23 2016-04-13 腾讯科技(深圳)有限公司 Application upgrade method and system
CN103246528A (en) * 2012-02-10 2013-08-14 中兴通讯股份有限公司 Software updating method and device
CN104407889B (en) * 2014-11-11 2018-09-07 百度在线网络技术(北京)有限公司 The restorative procedure and device of application program
CN104504341B (en) * 2015-01-21 2018-01-23 联想(北京)有限公司 A kind of Loopholes of OS restorative procedure and device
CN104866307B (en) * 2015-05-14 2018-04-27 百度在线网络技术(北京)有限公司 The restorative procedure and device of a kind of application program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003508846A (en) * 1999-09-01 2003-03-04 マイクロソフト コーポレイション Fix non-conforming applications by providing stubs for API
JP2005092803A (en) * 2003-09-19 2005-04-07 Fujitsu Ltd Device and method for applying modification information to software
JP2011059956A (en) * 2009-09-09 2011-03-24 Ricoh Co Ltd Printer driver, information processing apparatus and recording medium
JP2011164916A (en) * 2010-02-09 2011-08-25 Noria Co Ltd Software patch download solution
JP2012138131A (en) * 2012-04-24 2012-07-19 Toshiba Corp Computer
JP2014219939A (en) * 2013-05-10 2014-11-20 株式会社リコー Information processing system

Also Published As

Publication number Publication date
JP6458133B2 (en) 2019-01-23
KR101952225B1 (en) 2019-02-26
CN104866307A (en) 2015-08-26
WO2016179957A1 (en) 2016-11-17
KR20170034901A (en) 2017-03-29
CN104866307B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
JP6458133B2 (en) Application program restoration method, apparatus, and recording medium
US10445504B2 (en) Secure remote kernel module signing
US7937699B2 (en) Unattended upgrade for a network appliance
US8572679B1 (en) Automatic system upgrade orchestrator
KR101937933B1 (en) Apparatus for quantifying security of open source software package, apparatus and method for optimization of open source software package
CN106843957A (en) System firmware upgrade method and device
WO2017166446A1 (en) Vulnerability-fixing method and device
JP5572573B2 (en) Mobile terminal, program, and communication system
CN107547239B (en) Configuration object updating method and device
CA2875828C (en) Auto-update while running client interface with handshake
KR101512611B1 (en) Systems and methods for repairing system files
CN108351923B (en) Thresholds associated with scripts executable by a unified extensible firmware interface system
CN109358888A (en) Server firmware upgrade method, device, system and computer readable storage medium
US20150381467A1 (en) System and method thereof for dynamically testing networked target systems through simulation by a mobile device
CN110943860A (en) BMC (baseboard management controller) firmware updating method and system, electronic equipment and storage medium
US9043779B2 (en) Loading remote binaries onto a write-protected device
US10176067B1 (en) On-demand diagnostics in a virtual environment
CN110727575B (en) Information processing method, system, device and storage medium
US11449324B2 (en) Automatic updating of an application executing on an application server
US9686310B2 (en) Method and apparatus for repairing a file
CN111679842B (en) Application program hot update processing method, device and system
CN106708494A (en) JAR upgrading method and apparatus
US20180212981A1 (en) Disabling applications on a client device remotely
CN111176687A (en) Method, device, equipment and storage medium for updating cloud host client program
TWI759096B (en) Building and deployment system and method of shared software solution and computer readable medium

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170215

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170215

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180109

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20180403

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180514

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180703

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180928

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20181204

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181221

R150 Certificate of patent or registration of utility model

Ref document number: 6458133

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250