CN108733426B - Method and device for running application by electronic equipment and electronic equipment - Google Patents

Method and device for running application by electronic equipment and electronic equipment Download PDF

Info

Publication number
CN108733426B
CN108733426B CN201710264039.8A CN201710264039A CN108733426B CN 108733426 B CN108733426 B CN 108733426B CN 201710264039 A CN201710264039 A CN 201710264039A CN 108733426 B CN108733426 B CN 108733426B
Authority
CN
China
Prior art keywords
file
directory
application
resource
executable
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.)
Active
Application number
CN201710264039.8A
Other languages
Chinese (zh)
Other versions
CN108733426A (en
Inventor
王小品
田乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Haima Cloud Technology Co ltd
Original Assignee
Haima Cloud Tianjin Information Technology Co Ltd
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 Haima Cloud Tianjin Information Technology Co Ltd filed Critical Haima Cloud Tianjin Information Technology Co Ltd
Priority to CN201710264039.8A priority Critical patent/CN108733426B/en
Publication of CN108733426A publication Critical patent/CN108733426A/en
Application granted granted Critical
Publication of CN108733426B publication Critical patent/CN108733426B/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
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The method, the device and the electronic equipment for running the application by the electronic equipment modify the identification file and/or the identification data of the application, so that the designated directory is identified as the directory storing the complete resource file by the executable file. As long as the executable file and a small amount of resource files required by starting the executable file are stored in the electronic equipment, the application corresponding to the executable file can be started in advance, so that the time consumed by installing a large amount of resource files is effectively saved, and the user experience is improved. Meanwhile, the technical scheme does not need to modify the kernel of the operating system, is simple and easy to implement, and can be realized by installing a user mode application by a user of the electronic equipment.

Description

Method and device for running application by electronic equipment and electronic equipment
Technical Field
The invention relates to a method and a device for running an application by electronic equipment and the electronic equipment.
Background
Electronic devices with operating systems, such as personal computers, mobile terminals, etc., are playing an increasingly important role in everyday life. An important function of an electronic device is to run various applications, which refer to software or programs that can be run in some kind of operating system. At present, users of electronic devices need more and more applications, and the storage space of the electronic devices is limited, so that the applications needed by many users do not have enough storage space to be installed.
At present, the applications of mainstream operating systems, such as Windows, Mac, IOS, Linux, and operating systems derived on the basis of Linux, such as Android, are installed through an installation package. After the installation package is operated, a large number of files are generated, the files are located under one or more top-level father directories to form a certain directory hierarchical relationship, and the position of the top-level father directory and the structure of the subdirectories under the top-level father directory are determined by the operating system and the installation package together. Files generated after the installation package operates are executable files (sometimes called executable programs), the executable files can operate in an operating system, and processes corresponding to the executable files are generated in the operating system during operation; another type of file cannot run in the operating system by itself, and the function of the file is to be called by the executable file in the running process, and the files are collectively called as resource files. The directory hierarchical relationship formed after the installation package is operated can determine the specific path of any resource file, and convenience is provided for calling the resource file by the executable file. The application runs normally, and both the executable file and the resource file are indispensable.
Analyzing the sizes of the executable file and the resource file, the result shows that the executable file applied in the current mainstream operating system is small, and generally dozens of MB at most; the applied resource files may be very large, and some applied resource files may accumulate up to several hundred GB. A natural idea is that an application first installs an executable file and a few resource files that are necessary when the executable file is started, and then downloads the resource files gradually during the running process of the executable file. However, the current mainstream operating systems do not directly support the above idea, and it is possible to modify the kernel of the operating system, but the kernel work for modifying the operating system is huge. How to simply realize the above idea has not been reported yet.
The disclosure in the "background" section of the specification is helpful to those skilled in the art to understand the technical solution of the present invention, but should not be construed as necessarily belonging to the prior art or common general knowledge.
Disclosure of Invention
In order to overcome the defects reflected by the background technology, the invention provides a method and a device for running an application by electronic equipment and the electronic equipment.
The method for running the application by the electronic equipment comprises the following steps:
the identification file and/or identification data of the application is modified so that the executable file identifies the specified directory as the directory storing the complete resource file.
Further, the identification file or the identification data is used for identifying the storage directory of the resource file or the integrity of the resource file.
Further, the specified directory stores the latest version of the resource file necessary for starting the executable file.
Further, the method further comprises the following steps: and downloading the resource file to the specified directory after the executable file is started.
Further, the method further comprises the following steps: if the integrity of the resource file is strictly checked when the executable file is started, the strict checking mechanism of the executable file is removed.
Further, the format of the identification data is field start, the character after the field includes a directory name, and the directory name includes an initial root directory or a top parent directory of the storage resource file.
Further, the identification file includes a name of the resource file.
The device for running the application by the electronic equipment comprises a platform application, wherein the platform application is used for modifying the identification file and/or the identification data of the application so that the executable file can identify the specified directory as the directory storing the complete resource file.
Further, the platform application is also used for downloading executable files or resource files.
The electronic equipment comprises a device for running the application by the electronic equipment.
Since the apparatus for running the application by the electronic device can be used for implementing the method for running the application by the electronic device, some descriptions of the apparatus for running the application by the electronic device are omitted. By contrast, those skilled in the art have a clear and complete understanding of the apparatus that the electronic device is capable of running an application.
In the technical scheme of the invention, the words such as 'comprise', 'use' and the like are understood in an open-ended expression mode. The content that can be known by a person skilled in the art through reading the description and combining with the prior art or common general knowledge will not be described in detail in the description.
According to the method and the device for running the application by the electronic equipment and the electronic equipment, provided that the executable file and the resource file required by starting the small number of executable files are stored in the electronic equipment, the application corresponding to the executable file can be started in advance, so that the time consumed by installing a large number of resource files is effectively saved, and the user experience is improved. Meanwhile, the technical scheme does not need to modify the kernel of the operating system, is simple and easy to implement, and can be realized by installing a user mode application by a user of the electronic equipment.
Drawings
Fig. 1 is a flowchart illustrating a method for running an application by a relatively complete electronic device according to an embodiment.
Detailed Description
The following describes embodiments of the present invention in further detail. It should be noted, however, that the scope of the present invention is not limited by the specific disclosure described. Any technical solution obtained by performing the same or equivalent replacement on technical elements in the described specific technical solution or technical solution obtained by a person skilled in the art without creative work on the basis of the described specific technical solution should be considered to fall within the protection scope of the present invention.
Many developers of applications set up an identification file, which is a separate file, and identification data, which is data for identification and recorded in a file or a database. The common use of the identification file or identification data identifies, on the one hand, the storage directory of the resource file and, on the other hand, the integrity of the resource file. The completeness or completeness not only means that all resource files are stored in the resource file storage directory, but also means that the resource files stored in the resource file storage directory are all of the latest version. The application developer upgrades the application, may add or delete the resource file, may also update the version of the resource file, and the name, size, version number, check value, etc. of the resource file may all be recorded in the identification file or identification data.
On the basis of the above-mentioned technology, a method for running an application by an electronic device can be realized. A more complete flow of the method for running an application by an electronic device is shown in fig. 1. The method for running the application by the electronic equipment comprises the following core steps:
s102: the identification file and/or identification data of the application is modified so that the executable file identifies the specified directory as the directory storing the complete resource file.
Since the executable file identifies the directory in which the resource file is stored and the integrity of the resource file by the identification file and/or the identification data, modifies the identification file and/or the identification data of the application (and/or indicates that only one or both of the identification file and the identification data may need to be modified), the executable file can identify the designated directory instead of the directory preset by the application as the directory for storing the resource file and consider the resource file as complete, even if the resource file is not complete in reality, the executable file can be started in advance, and certainly, at least the resource file necessary for starting the executable file is stored in the designated directory. Note that the resource file necessary for starting the executable file stored in the designated directory should be the resource file of the latest version, so as to avoid triggering update downloading due to the fact that the resource file is not the latest version after the executable file calls the resource file. The update download inevitably wastes time, affecting the user experience of the electronic device.
The different applications in different operating systems, the setting of the identification file and the identification data are greatly different, and the identification file can be obtained through a reverse executable file or directly requested to an application developer.
After step S102 is completed, corresponding subsequent steps are required, and the subsequent steps include:
s103: and downloading the resource file to the specified directory after the executable file is started.
After step S102 is completed, the executable file can be started, but the resource file stored in the designated directory is often incomplete, so that the resource file needs to be downloaded to the designated directory while the executable file runs, and the running of the executable file is affected if the resource file is not downloaded in time. Resource files are often stored on dedicated devices, such as dedicated storage servers. The resource files on the special equipment should be updated in time, the resource files of the latest version are stored, and the situation that the executable files trigger updating and downloading after calling the resource files is avoided.
In special cases, a pre-step is also required, which comprises:
s101: if the integrity of the resource file is strictly checked when the executable file is started, the strict checking mechanism of the executable file is removed.
Some executables will strictly check the integrity of the resource file at startup. The strict check refers to checking not only the identification file and the identification data, but also whether the resource file is actually stored in the relevant directory. If the integrity of the resource file is strictly checked when the executable file is started, the technical scheme of the invention cannot be implemented, so that a strict checking mechanism of the executable file needs to be removed. The removal can be realized by modifying the source code of the executable file or performing reverse operations such as disassembling and decompiling on the executable file to modify the code obtained by the reverse operations, and in addition, the setting of the operating system can be modified or corresponding tools can be used for different operating systems.
The method for running the application by the electronic device is further described below by a specific operating system. The operating system of the electronic device is the open source Android (Android) system. A platform application is developed in the android system, the function of the platform application is to provide a platform for a user to select the application, and the user can select which application to start on the platform application.
Identification files and identification data are often set in the "/data/data/application package name" directory for android system applications. The storage directory for identifying the resource file usually adopts identification data, the common format of the identification data is that a certain field starts, characters after the field comprise directory names, and the directory names comprise initial root directories or top-level father directories for storing the resource file. The initial root directory refers to a root directory where resource files of an application are located if the application is installed in a conventional running installation package, the initial root directory is generally determined by an operating system and the installation package together, and some operating systems also allow a user to select the initial root directory. The top parent directory is the top parent directory formed after the installation package mentioned in the background art runs. The identification data may be recorded in a file or in an associated database. The integrity of the resource file is usually identified by using an identification file, which includes the name of the resource file and possibly one or more of the version number, check value, file size, etc. of the resource file. Generally, for the sake of easy calling, the resource files are all stored in the same top parent directory, and the identification file is also stored in the top parent directory, and the identification file includes the names of all resource files that the executable file needs to call. However, there may be some special cases that the resource files are stored in different top parent directories, different identification files are set in different top parent directories, and at this time, the identification files often only include names of all resource files in a certain directory.
For example, a game named yin and yang teacher, which can run on the android system. The developer of the game sets a neox _ config.xml file under the directory of "/data/data/com.netease.endoji.baidu/shared _ prefs" of the android system, and the content of the neox _ config.xml field in the neox _ config.xml file is as follows:
Figure BDA0001275529780000041
the NeoXRoot field is identification data of Yin Yang Shi. If the platform application modifies the directory in the character following the NeoXRoot field to a directory specified by the platform application, the executable file may consider the resource file to be stored in the specified directory. To check the integrity of the resource file, the developer of yin-yang chemist sets a filelist. Txt file and resource file are stored in the same parent directory, and have fixed format, and each row includes three information of resource file name, check value (the fifth version of message digest algorithm, i.e. MD5 value), and file size. The partial contents of the filelist.
Figure BDA0001275529780000051
If the platform application also creates a filelist.txt file under the specified directory, the content in the filelist.txt file is consistent with the latest version of the resource file, and the resource file is considered to be complete after the executable file of Yin Yang Shi checks the filelist.txt file.
The platform application may store executable files of each application on the electronic device in advance, establish a designated directory corresponding to the executable files of each application, store resource files necessary when the executable file of the latest version is started in the designated directory, and modify the identification files and identification data of each application accordingly. After a user selects a certain application, the platform application starts an executable file of the application, the executable file firstly checks the identification data after starting, the resource file is found to be stored in the specified directory, then the identification file in the specified directory is checked, the resource file is found to be complete, the executable file starts to run, and the operations of downloading the resource file and the like are not performed any more.
In the application of the android system, the resource files required when the executable file is started can be obtained from the kernel of the android system, and a developer of the platform application can know which files the resource files required when the executable file is started are when the executable file is run in advance. For applications such as games, the total size of the resource file may reach hundreds of MB or even hundreds of GB, but the resource file necessary for the startup of the executable file is often only tens of MB. A small amount of resource files are stored in the electronic equipment, the executable files can be started, and the platform application synchronously downloads the resource files required to be called by the executable files in the running process of the subsequent executable files. As long as the resource file is downloaded when the calling command of the executable file is sent, the normal operation of the executable file cannot be influenced.
Considering that the executable file and the resource file required when the executable file is started are not large, the electronic device may not store any executable file and resource file in advance, and the platform application downloads the executable file of the application and the resource file required when the executable file is started after the user selects a certain application. The file downloading time is short, and the user experience cannot be seriously influenced.
The corresponding program is written in the operating system of the electronic device, the method for running the application by the electronic device can be implemented, and the software including the program can be regarded as a device for running the application by the electronic device. The device for running the application by the electronic equipment is essentially computer software, and is realized by establishing program modules corresponding to all the steps according to the description of all the steps of the method for running the application by the electronic equipment to form a program module framework based on a computer program. The apparatus for running the application by the electronic device is not a physical apparatus mainly implemented by hardware. The device for running the application by the electronic equipment comprises a platform application, wherein the platform application is used for modifying the identification file and/or the identification data of the application so that the executable file can identify the specified directory as the directory storing the complete resource file. The application platform is also used for downloading executable files or resource files from a dedicated device, such as a dedicated storage server.
Electronic equipment, including the above-mentioned electronic equipment device of running application.
By using the technical scheme of the invention, as long as the executable file and a small amount of resource files required by starting the executable file are stored in the electronic equipment, the application corresponding to the executable file can be started in advance, thereby effectively saving the time consumed by installing a large amount of resource files and improving the user experience of the electronic equipment. Meanwhile, the technical scheme does not need to modify the kernel of the operating system, is simple and easy to implement, and the user of the electronic equipment does not need to perform complex operations such as reinstallation of the operating system and the like, and can realize the installation of the user mode application.
Other solutions can be fully constructed by the person skilled in the art on the basis of the specific solutions described above. This is not to be taken as an example.

Claims (7)

1. A method for running an application by an electronic device, the method comprising:
if the integrity of the resource file is strictly checked when the executable file is started, a strict checking mechanism of the executable file is removed;
modifying the identification file and/or the identification data of the application to enable the executable file to identify the designated directory as the directory storing the complete resource file; the identification file or the identification data is used for identifying the storage directory of the resource file or the integrity of the resource file, and the specified directory at least stores the resource file of the latest version which is necessary when the executable file is started.
2. The method of claim 1, further comprising: and downloading the resource file to the specified directory after the executable file is started.
3. The method of claim 1, wherein the identification data is formatted as a field start, and characters following the field include a directory name, and the directory name includes an initial root directory or a top-level parent directory of the storage resource file.
4. The method of claim 1, wherein the identification file comprises a name of the resource file.
5. The device for running the application by the electronic equipment is characterized by comprising a platform application, wherein the platform application is used for removing a strict checking mechanism of an executable file if the integrity of a resource file is strictly checked when the executable file is started; modifying the identification file and/or the identification data of the application to enable the executable file to identify the designated directory as the directory storing the complete resource file; the identification file or the identification data is used for identifying the storage directory of the resource file or the integrity of the resource file, and the specified directory at least stores the resource file of the latest version which is necessary when the executable file is started.
6. The apparatus of claim 5, wherein the platform application is further configured to download an executable file or a resource file.
7. Electronic equipment, characterized in that it comprises means for running applications by the electronic equipment of claim 5 or 6.
CN201710264039.8A 2017-04-21 2017-04-21 Method and device for running application by electronic equipment and electronic equipment Active CN108733426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710264039.8A CN108733426B (en) 2017-04-21 2017-04-21 Method and device for running application by electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710264039.8A CN108733426B (en) 2017-04-21 2017-04-21 Method and device for running application by electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN108733426A CN108733426A (en) 2018-11-02
CN108733426B true CN108733426B (en) 2021-10-29

Family

ID=63933699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710264039.8A Active CN108733426B (en) 2017-04-21 2017-04-21 Method and device for running application by electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN108733426B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142028A (en) * 2011-03-18 2011-08-03 鸿富锦精密工业(深圳)有限公司 Electronic equipment and file path display method thereof
CN102682057A (en) * 2012-01-11 2012-09-19 广东欧珀移动通信有限公司 Management method for generative paths of data files of Android application program
CN104252374A (en) * 2014-10-17 2014-12-31 北京奇虎科技有限公司 Program control method and device on basis of architecture change
CN104424225A (en) * 2013-08-26 2015-03-18 联想(北京)有限公司 File processing method and device based on file transfer process
CN104572237A (en) * 2015-01-19 2015-04-29 上海动联信息技术股份有限公司 Automatic quick generation system and method for UKey installation package
CN104794399A (en) * 2015-04-23 2015-07-22 北京北信源软件股份有限公司 Terminal protection system and method based on massive program behavior data
CN105068921A (en) * 2015-07-23 2015-11-18 清华大学 App comparative analysis based Android application store credibility evaluation method

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101452402B (en) * 2008-11-28 2012-05-30 珠海金山快快科技有限公司 Software operation system and software operation method
US8230208B2 (en) * 2009-04-20 2012-07-24 Intel Corporation Booting an operating system of a system using a read ahead technique
CN101833464A (en) * 2010-04-16 2010-09-15 深圳市五巨科技有限公司 Method and device for sectionally loading application programs by mobile terminal
CN102902566A (en) * 2012-09-29 2013-01-30 广东欧珀移动通信有限公司 Method and device for installing and starting application software
CN103019770B (en) * 2012-11-21 2015-12-09 北京荣之联科技股份有限公司 A kind of application program quick launch management system and method
WO2014117338A1 (en) * 2013-01-30 2014-08-07 东莞宇龙通信科技有限公司 Terminal and method for quickly activating application program
US9182966B2 (en) * 2013-12-31 2015-11-10 International Business Machines Corporation Enabling dynamic software installer requirement dependency checks
CN105404522A (en) * 2014-07-15 2016-03-16 阿里巴巴集团控股有限公司 Method for building intelligent terminal application program, device for building intelligent terminal application program and intelligent terminal
CN104866365B (en) * 2015-06-12 2019-04-26 联想(北京)有限公司 Promote the method, apparatus and electronic equipment of starting up speed
CN105320547A (en) * 2015-11-30 2016-02-10 努比亚技术有限公司 Method and device for quickly starting application programs on mobile terminal
CN106169052B (en) * 2016-07-19 2018-04-06 北京海泰方圆科技股份有限公司 Processing method, device and the mobile terminal of application program
CN106559484A (en) * 2016-11-14 2017-04-05 北京海誉动想科技股份有限公司 The method that instance system exempts from installation and operation application

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142028A (en) * 2011-03-18 2011-08-03 鸿富锦精密工业(深圳)有限公司 Electronic equipment and file path display method thereof
CN102682057A (en) * 2012-01-11 2012-09-19 广东欧珀移动通信有限公司 Management method for generative paths of data files of Android application program
CN104424225A (en) * 2013-08-26 2015-03-18 联想(北京)有限公司 File processing method and device based on file transfer process
CN104252374A (en) * 2014-10-17 2014-12-31 北京奇虎科技有限公司 Program control method and device on basis of architecture change
CN104572237A (en) * 2015-01-19 2015-04-29 上海动联信息技术股份有限公司 Automatic quick generation system and method for UKey installation package
CN104794399A (en) * 2015-04-23 2015-07-22 北京北信源软件股份有限公司 Terminal protection system and method based on massive program behavior data
CN105068921A (en) * 2015-07-23 2015-11-18 清华大学 App comparative analysis based Android application store credibility evaluation method

Also Published As

Publication number Publication date
CN108733426A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN107506221B (en) Application program upgrading method, device and equipment
CN105786538B (en) software upgrading method and device based on android system
US20110041124A1 (en) Version Management System
CN107193607B (en) Method and apparatus for updating code file, storage medium, processor, and terminal
KR20070049095A (en) Servicing a component-base software product
US20120174086A1 (en) Extensible Patch Management
CN105320554A (en) Program updating method as well as client and system for program updating
CA2860657C (en) Installation engine and package format for parallelizable, reliable installations
CN109800005B (en) Client hot update method and device
TW201621647A (en) Operating system updating method
CN111078481A (en) Method and device for acquiring configuration check list, electronic equipment and storage medium
CN111538523A (en) Differential upgrading method, device and storage medium
CN110597544A (en) Software system upgrading method and device
CN110597545A (en) Hot patch intelligent upgrading method and system based on OTA component
CN111722868A (en) Method for quickly transplanting high-version linux kernel of Shenwei firewall
EP3260981B1 (en) Information processing apparatus, information processing system, and information processing method for updating firmware
CN106293790B (en) application program upgrading method and device based on Firefox operating system
CN111782236A (en) System software upgrading method and device, storage medium and all-in-one machine equipment
CN108733426B (en) Method and device for running application by electronic equipment and electronic equipment
US8615751B2 (en) Seeding product information
CN113821228B (en) Method for constructing ROS or ROS-like project based on layered container mirror image
CN114296764A (en) System upgrading method and device, storage medium and electronic equipment
CN111949303A (en) Upgrade package processing method and device, electronic equipment and storage medium
CN115421785B (en) Method, device and medium for transplanting application program
CN113645046B (en) Network card driver installation method, main server and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231213

Address after: 230031 Room 672, 6/F, Building A3A4, Zhong'an Chuanggu Science Park, No. 900, Wangjiang West Road, High-tech Zone, Hefei, Anhui

Patentee after: Anhui Haima Cloud Technology Co.,Ltd.

Address before: 301700 room 2d25, Building 29, No.89 Heyuan Road, Jingjin science and Technology Valley Industrial Park, Wuqing District, Tianjin

Patentee before: HAIMAYUN (TIANJIN) INFORMATION TECHNOLOGY CO.,LTD.