WO2019237804A1 - Method and apparatus for changing skin of application software, and system, and storage medium - Google Patents

Method and apparatus for changing skin of application software, and system, and storage medium Download PDF

Info

Publication number
WO2019237804A1
WO2019237804A1 PCT/CN2019/081770 CN2019081770W WO2019237804A1 WO 2019237804 A1 WO2019237804 A1 WO 2019237804A1 CN 2019081770 W CN2019081770 W CN 2019081770W WO 2019237804 A1 WO2019237804 A1 WO 2019237804A1
Authority
WO
WIPO (PCT)
Prior art keywords
skin
resource
application software
package
resource package
Prior art date
Application number
PCT/CN2019/081770
Other languages
French (fr)
Chinese (zh)
Inventor
朱行军
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2019237804A1 publication Critical patent/WO2019237804A1/en

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/451Execution arrangements for user interfaces

Definitions

  • Embodiments of the present invention relate to the field of communications technologies, and in particular, to a method, an apparatus, and a storage medium for replacing application software skins.
  • the skin replacement of application software belongs to the sub-category of theme replacement, that is, changing the application control color, font color, background, etc. Users can set different skins according to their preferences, making the application interface beautiful and decent, and having a good user experience.
  • the principle that most systems change the skin of application software is to use the resource management mechanism (such as the Android system uses the Android resource management mechanism), rewrite the framework code, forcibly scan the resource package, and generate a resource mapping relationship.
  • the mapping relationship is to replace the application skin.
  • this method of skin replacement of application software is limited to applications developed by the corresponding system platform or native applications, and skins of third-party applications cannot be replaced.
  • the purpose of the embodiments of the present invention is to provide a method, a device, and a storage medium for replacing application software skins, so as to solve the problem that skins of third-party applications cannot be replaced in some existing situations.
  • a method for replacing an application software skin includes compiling a skin replacement resource package, and the skin replacement resource package includes a mapping relationship between a skin replacement resource package and a target application software.
  • the target application software is user-specified application software requiring skin replacement; when it is monitored that the skin replacement resource package is installed, the content of the skin replacement resource package is parsed and the skin replacement resource package and the target application are obtained Software mapping relationship; replacing the original skin resource package of the target application software with the skin replacement resource package.
  • a device for replacing application software skin includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, When the computer program is executed by the processor, the following steps are implemented: compiling a skin replacement resource package, the skin replacement resource package includes a mapping relationship between the skin replacement resource package and a target application software, and the target application software is Application software for skin replacement; when it is monitored that the skin replacement resource package is installed, parse the content of the skin replacement resource package and obtain a mapping relationship between the skin replacement resource package and target application software; Replacing the original skin resource package with the skin replacement resource package.
  • a storage medium stores one or more programs, and the one or more programs can be executed by one or more processors, so as to implement the first embodiment. Steps described in one aspect.
  • an embodiment of the present invention further provides a computer program product.
  • the computer program product includes a computer program stored on a storage medium.
  • the computer program includes program instructions. When the program instructions are executed by a computer, And causing the computer to execute the method described in each of the above aspects.
  • FIG. 1 is a flowchart of a method for changing an application software skin according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of compiling a skin replacement resource package according to the first embodiment of the present invention
  • FIG. 3 is a flowchart of replacing an original skin resource package of a target application software with the skin replacement resource package in Embodiment 1 of the present invention
  • FIG. 4 is a schematic structural diagram of a module of an apparatus for replacing an application software skin according to Embodiment 2 of the present invention.
  • the first embodiment of the present invention provides a method for changing the skin of an application software, and a method for monitoring the installation of a skin replacement resource package.
  • the method flow may include:
  • Step S101 Compile a skin replacement resource package, where the skin replacement resource package includes a mapping relationship between the skin replacement resource package and a target application software, and the target application software is user-specified application software that needs to replace the skin;
  • Step S102 When it is monitored that the skin replacement resource package is installed, parse the content of the skin replacement resource package and obtain the mapping relationship between the skin replacement resource package and the target application software;
  • Step S103 Replace the original skin resource package of the target application software with the skin replacement resource package.
  • the inventor has found in the research for realizing the present invention that the main reason why the skin of the third-party application cannot be replaced in some existing situations is due to the limitation of the technology of the system resource management scheme, and the information of the third-party application software cannot be obtained. Therefore, in some existing situations, the skin of the third-party application software cannot be replaced, and only the self-developed skin of the mobile phone manufacturer or Google's native application skin can be replaced.
  • the skin replacement resource package of the target application is compiled in advance, and when the skin replacement resource package is compiled, the mapping relationship between the skin replacement resource package and the target application software is written in the skin replacement resource package, so that the system resources
  • the management mechanism can obtain information about the target application software, and even if the target application software is a third-party application, the skin can be replaced.
  • compiling the skin replacement resource package in step S101 may include:
  • Step S201 Determine the target application software for which skin needs to be replaced
  • Step S202 Extract information of the target application software to generate a resource package to be filled, where the resource package to be filled includes a package name of the target application software and keywords of skin information;
  • Step S203 Fill the skin resource selected by the user and the package name into the resource package to be filled;
  • Step S204 Compile the filled resource package into a system specified format to obtain a skin replacement resource package, and the skin replacement resource package determines the mapping relationship between the skin replacement resource package and the target application software by using the package name.
  • the skin replacement resource package needs to be installed. Specifically, it can be installed in a system default path or a user-specified path.
  • the default path may be the path where the skin resource pack of the target application software is installed.
  • the user can be provided with an interactive portal for changing the skin of the application software.
  • the portal can be set in the system setting interface, on the desktop, or in the system's own management interface.
  • the system can show the user all the application software including third-party applications that the system has installed, and then determine the target application software that needs to be replaced according to the user's selection.
  • the method may further include: providing a user with a resource acquisition path for the custom skin, the resource acquisition path includes from Download skin resources from the server and / or obtain skin resources from local resources.
  • the main function of the resource server is to provide users with massive resources, and at the same time can push resources according to user behavior, hobbies, environment and other factors; local resources can provide users with an entrance to select local resources.
  • Users can select the corresponding resources from the server or locally, such as pictures and colors, and place them in the resource package.
  • step S203 filling the package name into the resource package to be filled includes: writing the package name of the target application software into an entry file of a specified system application program.
  • AndroidManifest.xml is the entry file for the Android application. It is a necessary file in each Android application. It is located in the root directory of the entire project. It describes the implementation classes of the components exposed in the package, and the various types that can be processed. Data and startup location.
  • Step S204 Compiling the filled resource package into a system-designated format to obtain a skin replacement resource package, including: compiling the filled resource package into an apk format to obtain the skin replacement resource package.
  • decompilation technology is used to extract application resource information that requires skin replacement, and fill resources based on the information.
  • the package name and resource name of the third-party application are obtained.
  • the user can obtain the corresponding color system or background image from the server or local resources according to personal preferences, fill it into the resource package, and specify it in the resource package.
  • the target application that is, an application that requires skin replacement, improves the user experience.
  • step S103 replacing the original skin resource package of the target application software with the skin replacement resource package includes:
  • Step S301 When the target application software has been installed in the system, confirm that the mapping relationship is established.
  • Step S302 Scan the skin replacement resource package, obtain information about its mapping relationship, and generate an index file.
  • Step S303 Store the skin replacement resource package and the index file under a specified resource replacement path
  • Step S304 When the target application loads a skin resource, the target application is provided with the skin resource in the skin replacement resource package according to the resource mapping relationship in the index file.
  • the index file may be an identification map file (Idmap file), and the specified resource replacement path may be an overlay path.
  • a resource is called via getString / getDrawable, and the resource ID of the resource is passed as a parameter to the Framework layer.
  • the resources IDs of resources with the same name but different states are the same. For example, pictures with different resolutions but the same name are placed under drawable-hdpi / drawable-ldpi / drawable-mdpi, but they are targeted at compile time. There is only one resource ID generated by this image.
  • the framework layer will use this resources ID when looking for resources, combined with the current system configuration (configuration, including resolution, language, horizontal and vertical screen), that is, through resources ID and configuration, it will first call the resource file added through RRO, and according to the configuration Use the best matching resource file, if no file is found at this time, then call the application's native resource file.
  • configuration including resolution, language, horizontal and vertical screen
  • step S103 it may be judged whether the mapping relationship is established first, and when the mapping relationship is established, the action of replacing the original skin resource package of the target application software with the skin replacement resource package is performed.
  • the mapping relationship there may be multiple reasons for the failure of the mapping relationship. For example, although the user sets the target application software that he wants to replace, the system does not actually download or install the target application software. At this time, step S103 cannot be performed, or the An error occurs in the mapping relationship. At this time, a native resource file of the target application software needs to be loaded.
  • an interface for monitoring installation of a resource package is added.
  • a skin replacement resource package (generally a skin replacement resource package is a new resource package) is installed, it will scan the content of the skin replacement resource package and parse the skin. Replace the resource pack, place it in the overlay directory, and generate an Idmap file based on the resource pack information.
  • the Android system preferentially scans from the overlay path and provides the application with the resource mapping relationship in the Idmap. Corresponding resource pack to achieve the function of skin switching.
  • a mapping relationship between a skin replacement resource package and a target application software is written in a compiled skin replacement resource package, and when the installation of the skin replacement resource package is monitored, according to the parsed
  • the mapping relationship between the skin replacement resource package and the target application software replacing the original skin resource package of the target application software with the skin replacement resource package, thereby achieving the purpose of skin replacement for any application including third-party applications,
  • the user experience is improved, and there is no need to change the system framework.
  • the functions are independent, zero-coupling with the platform, and highly portable.
  • the second embodiment of the present invention provides a device for replacing application software skins.
  • the device includes, but is not limited to, a memory 401, a processor 402, and a memory stored in the memory.
  • a computer program that can be run on the processor, and when the computer program is executed by the processor, the following steps are implemented: compiling a skin replacement resource package, the skin replacement resource package includes the skin replacement resource package and the target application software Mapping relationship, the target application software is user-specified application software requiring skin replacement; when it is monitored that the skin replacement resource package is installed, the content of the skin replacement resource package is parsed and the skin replacement resource package is obtained Mapping relationship with the target application software; replacing the original skin resource package of the target application software with the skin replacement resource package.
  • the processor 402 when the processor 402 executes the step of compiling the skin replacement resource package, the processor 402 is further configured to execute the computer program to implement the following steps: determine the target application software that needs to be replaced with the skin; and extract the The information of the target application software generates a resource package to be filled, the resource package to be filled includes a package name of the target application software and keywords of skin information; and a skin resource and the package name selected by the user are filled into the package.
  • the resource package to be filled compile the filled resource package into a system specified format to obtain a skin replacement resource package, and the skin replacement resource package determines a mapping relationship between the skin replacement resource package and the target application software by using the package name; Skin replacement resource pack.
  • the user can be provided with an interactive portal for changing the skin of application software, which can be set in the system setting interface, on the desktop, or in the application management interface that comes with the system.
  • the system can show the user all the application software including third-party applications that the system has installed, and then determine the target application software that needs to be replaced according to the user's selection.
  • the processor 402 before executing the step of filling the skin resource selected by the user into the resource pack to be filled, the processor 402 is further configured to execute the computer program to implement the following steps: path selection A sub-module configured to provide a user with a resource acquisition path for a custom skin, where the resource acquisition path includes downloading a skin resource from a server and / or acquiring a skin resource from a local resource.
  • the main function of the resource server is to provide users with massive resources, and at the same time, it can push resources according to user behavior, hobbies, environment and other factors; local resources can provide users with an entrance to select local resources.
  • Users can select the corresponding resources from the server or locally, such as pictures and colors, and place them in the resource package.
  • the processor 402 when the processor 402 executes the step of filling the package name into the resource package to be filled, the processor 402 is further configured to execute the computer program to implement the following steps: The package name of the target application software is written into the entry file of the specified system application program; when the filled resource package is compiled into a system specified format to obtain a skin replacement resource package, the processor 402 is further configured to execute the computer program To achieve the following steps: compile the filled resource pack into an apk format to obtain the skin replacement resource pack.
  • the installation sub-module can install the skin replacement resource package to a system default path.
  • the default path can be the path of the skin resource package installation of the target application software, or Install to the user-specified path.
  • decompilation technology is used to extract application resource information that requires skin replacement, and fill resources based on the information.
  • the package name and resource name of the third-party application are obtained.
  • the user can obtain the corresponding color system or background image from the server or local resources according to personal preferences, fill it into the resource package, and specify it in the resource package.
  • the target application that is, an application that requires skin replacement, improves the user experience.
  • the processor 402 executes the step of replacing the original skin resource package of the target application software with the skin replacement resource package
  • the processor 402 is further configured to execute the computer program to implement the following steps: : When the target application software has been installed in the system, confirm that the mapping relationship is established; scan the skin replacement resource package to obtain information about its mapping relationship, and generate an index file; replace the skin replacement resource package and the index The file is stored under the specified resource replacement path; when the target application loads a skin resource, the target application is provided with the skin resource in the skin replacement resource package according to the resource mapping relationship in the index file.
  • RRO runtime resource replacement
  • the installation of the resource package is monitored through the RRO mechanism.
  • the skin replacement resource package usually the skin replacement resource package is a new resource package
  • the content of the skin replacement resource package is scanned to analyze the skin replacement resource.
  • Package place it in the overlay directory, and generate an Idmap file based on the resource package information.
  • the Android system preferentially scans from the overlay path, and provides the application with the corresponding Resource pack to achieve the function of skin switching.
  • the mapping relationship between the skin replacement resource package and the target application software is written in the compiled skin replacement resource package, and when the installation of the skin replacement resource package is monitored, The mapping relationship between the skin replacement resource package and the target application software, replacing the original skin resource package of the target application software with the skin replacement resource package, thereby achieving the purpose of skin replacement for any application including third-party applications,
  • the user experience is improved, and there is no need to change the system framework.
  • the functions are independent, zero-coupling with the platform, and highly portable.
  • Embodiment 4 of the present invention provides a storage medium including a stored program, and when the program runs, controls a device where the storage medium is located to perform the operations described in Embodiment 1.
  • An embodiment of the present invention provides a computer program product.
  • the computer program product includes a computer program stored on a storage medium, and the computer program includes program instructions.
  • the program instructions When the program instructions are executed by a computer, the computer executes the instructions. Method in any of the above method embodiments.
  • Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • computer storage medium includes both volatile and nonvolatile implementations in any method or technology used to store information such as computer-readable instructions, data structures, program modules or other data.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or may Any other medium used to store desired information and which can be accessed by a computer.
  • a communication medium typically contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium .

Abstract

Disclosed are a method and apparatus for changing the skin of application software, and a storage medium. The method comprises: compiling a skin replacement resource package, wherein the skin replacement resource package contains a mapping relationship between the skin replacement resource package and target application software, and the target application software is application software which is specified by a user and has a skin that needs to be replaced; when it is monitored that the skin replacement resource package is installed, parsing the contents of the skin replacement resource package and acquiring the mapping relationship between the skin replacement resource package and the target application software; and replacing the original skin resource package of the target application software with the skin replacement resource package.

Description

一种更换应用软件皮肤的方法、装置、系统及存储介质Method, device, system and storage medium for replacing application software skin
交叉引用cross reference
本发明要求在2018年6月15日提交中国专利局、申请号为201810623564.9、发明名称为“一种更换应用软件皮肤的方法、装置、系统及存储介质”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。The present invention claims the priority of a Chinese patent application filed on June 15, 2018 with the Chinese Patent Office, with the application number 201810623564.9, and the invention name being "A Method, Device, System and Storage Medium for Replacing Application Software Skin" The entire contents are incorporated herein by reference.
技术领域Technical field
本发明实施例涉及通讯技术领域,尤其涉及一种更换应用软件皮肤的方法、装置及存储介质。Embodiments of the present invention relate to the field of communications technologies, and in particular, to a method, an apparatus, and a storage medium for replacing application software skins.
背景技术Background technique
应用软件的皮肤更换,属于主题更换的子类,即改变应用控件颜色、字体颜色、背景等。用户可以根据自己的喜好设置不同的皮肤,使得应用界面美观得体,有很好的用户体验性。The skin replacement of application software belongs to the sub-category of theme replacement, that is, changing the application control color, font color, background, etc. Users can set different skins according to their preferences, making the application interface beautiful and decent, and having a good user experience.
在一些情形下,大部分系统更换应用软件的皮肤的原理是利用资源管理机制(如安卓系统利用的是安卓资源管理机制),改写框架代码,强制扫描资源包,生成一种资源映射关系,根据该映射关系去更换应用皮肤。但是这种应用软件皮肤更换的方法,仅限于相应系统平台开发的应用或原生应用,不能对第三方应用的皮肤进行更换。In some cases, the principle that most systems change the skin of application software is to use the resource management mechanism (such as the Android system uses the Android resource management mechanism), rewrite the framework code, forcibly scan the resource package, and generate a resource mapping relationship. The mapping relationship is to replace the application skin. However, this method of skin replacement of application software is limited to applications developed by the corresponding system platform or native applications, and skins of third-party applications cannot be replaced.
发明内容Summary of the Invention
有鉴于此,本发明实施例的目的在于提供一种更换应用软件皮肤的方法、装置及存储介质,以解决在一些已有的情形下不能对第三方应用的皮肤进行更换的问题。In view of this, the purpose of the embodiments of the present invention is to provide a method, a device, and a storage medium for replacing application software skins, so as to solve the problem that skins of third-party applications cannot be replaced in some existing situations.
本发明实施例解决上述技术问题所采用的技术方案如下:The technical solutions adopted by the embodiments of the present invention to solve the above technical problems are as follows:
根据本发明实施例的第一个方面,提供一种更换应用软件皮肤的方法,所述方法包括:编译皮肤替换资源包,所述皮肤替换资源包包含皮肤替换资源包与目标应用软件的映射关系,所述目标应用软件为用户指定的需替换皮肤的应用软件;当监听到所述皮肤替换资源包被安装时,解析所述皮肤替换资源包的内容并获取所述皮肤替换资源包与目标应用软件的映射关系;将所述目标应用软件的原皮肤资源包替换为所述皮肤替换资源包。According to a first aspect of the embodiments of the present invention, a method for replacing an application software skin is provided. The method includes compiling a skin replacement resource package, and the skin replacement resource package includes a mapping relationship between a skin replacement resource package and a target application software. The target application software is user-specified application software requiring skin replacement; when it is monitored that the skin replacement resource package is installed, the content of the skin replacement resource package is parsed and the skin replacement resource package and the target application are obtained Software mapping relationship; replacing the original skin resource package of the target application software with the skin replacement resource package.
根据本发明实施例的第二个方面,提供一种更换应用软件皮肤的装置,所述装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如下步骤:编译皮肤替换资源包,所述皮肤替换资源包包含皮肤替换资源包与目标应用软件的映射关系,所述目标应用软件为用户指定的需替换皮肤的应用软件;当监听到所述皮肤替换资源包被安装时,解析所述皮肤替换资源包的内容并获取所述皮肤替换资源包与目标应用软件的映射关系;将所述目标应用软件的原皮肤资源包替换为所述皮肤替换资源包。According to a second aspect of the embodiments of the present invention, a device for replacing application software skin is provided, the device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, When the computer program is executed by the processor, the following steps are implemented: compiling a skin replacement resource package, the skin replacement resource package includes a mapping relationship between the skin replacement resource package and a target application software, and the target application software is Application software for skin replacement; when it is monitored that the skin replacement resource package is installed, parse the content of the skin replacement resource package and obtain a mapping relationship between the skin replacement resource package and target application software; Replacing the original skin resource package with the skin replacement resource package.
根据本发明实施例的第三个方面,提供一种存储介质,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如第一方面所述的步骤。According to a third aspect of the embodiments of the present invention, a storage medium is provided, where the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors, so as to implement the first embodiment. Steps described in one aspect.
为实现上述发明目的,本发明实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行以上各个方面所述的方法。In order to achieve the above-mentioned object of the present invention, an embodiment of the present invention further provides a computer program product. The computer program product includes a computer program stored on a storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, And causing the computer to execute the method described in each of the above aspects.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明实施例一提供的一种更换应用软件皮肤的方法的流程图;FIG. 1 is a flowchart of a method for changing an application software skin according to Embodiment 1 of the present invention; FIG.
图2为本发明实施例一中编译皮肤替换资源包的流程图;2 is a flowchart of compiling a skin replacement resource package according to the first embodiment of the present invention;
图3为本发明实施例一中将目标应用软件的原皮肤资源包替换为该皮肤替换资源包的流程图;FIG. 3 is a flowchart of replacing an original skin resource package of a target application software with the skin replacement resource package in Embodiment 1 of the present invention; FIG.
图4为本发明实施例二提供的一种更换应用软件皮肤的装置的模块结构示意图。FIG. 4 is a schematic structural diagram of a module of an apparatus for replacing an application software skin according to Embodiment 2 of the present invention.
本发明实施例目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the objectives, functional features and advantages of the embodiments of the present invention will be further described with reference to the embodiments and the drawings.
具体实施方式detailed description
为了使本发明实施例所要解决的技术问题、技术方案及有益效果更加清楚、明白,以下结合附图和实施例,对本发明实施例进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明实施例,并不用于限定本发明实施例。In order to make the technical problems, technical solutions, and beneficial effects to be more clearly understood by the embodiments of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the embodiments of the present invention, and are not used to limit the embodiments of the present invention.
本发明实施例一提供了一种更换应用软件皮肤的方法,对皮肤替换资源包的安装进行监听的方法,请参阅图1,方法流程可以包括:The first embodiment of the present invention provides a method for changing the skin of an application software, and a method for monitoring the installation of a skin replacement resource package. Referring to FIG. 1, the method flow may include:
步骤S101、编译皮肤替换资源包,该皮肤替换资源包包含皮肤替换资源包与目标应用软件的映射关系,该目标应用软件为用户指定的需替换皮肤的应用软件;Step S101: Compile a skin replacement resource package, where the skin replacement resource package includes a mapping relationship between the skin replacement resource package and a target application software, and the target application software is user-specified application software that needs to replace the skin;
步骤S102、当监听到该皮肤替换资源包被安装时,解析该皮肤替换资源包的内容并获取该皮肤替换资源包与目标应用软件的映射关系;Step S102: When it is monitored that the skin replacement resource package is installed, parse the content of the skin replacement resource package and obtain the mapping relationship between the skin replacement resource package and the target application software;
步骤S103、将该目标应用软件的原皮肤资源包替换为该皮肤替换资源包。Step S103: Replace the original skin resource package of the target application software with the skin replacement resource package.
发明人在实现本发明的研究中发现,在一些已有的情形下不能对第三方应用的皮肤进行更换的主要原因是由于系统资源管理方案技术的局限性,无法获取第三方应用软件的信息,因此在一些已有的情形下不能更换第三方应用软件皮肤,只能更换手机厂商自研或者谷歌原生的应用皮肤。The inventor has found in the research for realizing the present invention that the main reason why the skin of the third-party application cannot be replaced in some existing situations is due to the limitation of the technology of the system resource management scheme, and the information of the third-party application software cannot be obtained. Therefore, in some existing situations, the skin of the third-party application software cannot be replaced, and only the self-developed skin of the mobile phone manufacturer or Google's native application skin can be replaced.
因此,本实施例预先编译目标应用程序的皮肤替换资源包,并在编译皮 肤替换资源包时,在该皮肤替换资源包中写入皮肤替换资源包与目标应用软件的映射关系,使系统的资源管理机制能够获取目标应用软件的相关信息,即使目标应用软件为第三方应用,也可以实现皮肤的更换。Therefore, in this embodiment, the skin replacement resource package of the target application is compiled in advance, and when the skin replacement resource package is compiled, the mapping relationship between the skin replacement resource package and the target application software is written in the skin replacement resource package, so that the system resources The management mechanism can obtain information about the target application software, and even if the target application software is a third-party application, the skin can be replaced.
请参阅图2,在一个可行的方案中,步骤S101的编译皮肤替换资源包,可以包括:Referring to FIG. 2, in a feasible solution, compiling the skin replacement resource package in step S101 may include:
步骤S201、确定需要更换皮肤的目标应用软件;Step S201: Determine the target application software for which skin needs to be replaced;
步骤S202、提取该目标应用软件的信息生成待填充的资源包,该待填充的资源包包含该目标应用软件的包名及皮肤信息的关键词;Step S202: Extract information of the target application software to generate a resource package to be filled, where the resource package to be filled includes a package name of the target application software and keywords of skin information;
步骤S203、将用户选择的皮肤资源及该包名填充到该待填充的资源包中;Step S203: Fill the skin resource selected by the user and the package name into the resource package to be filled;
步骤S204、将填充后的资源包编译成系统指定格式得到皮肤替换资源包,该皮肤替换资源包通过该包名确定其与该目标应用软件的映射关系。Step S204: Compile the filled resource package into a system specified format to obtain a skin replacement resource package, and the skin replacement resource package determines the mapping relationship between the skin replacement resource package and the target application software by using the package name.
实际应用中,在编译完成后,需要安装该皮肤替换资源包,具体的,可以安装到系统默认路径中或用户指定的路径中。其中,默认的路径可以是目标应用软件的皮肤资源包安装的路径。In actual application, after the compilation is completed, the skin replacement resource package needs to be installed. Specifically, it can be installed in a system default path or a user-specified path. The default path may be the path where the skin resource pack of the target application software is installed.
实际应用中,可以为用户提供一个更换应用软件的皮肤的交互入口,该入口可以设置在系统设置界面中、桌面上或者系统自带的应该管理界面中。用户通过交互入口进入操作界面后,系统可以向用户展示系统已安装的包括第三方应用的所有的应用软件,然后根据用户的选择确定需要更换皮肤的目标应用软件。In practical applications, the user can be provided with an interactive portal for changing the skin of the application software. The portal can be set in the system setting interface, on the desktop, or in the system's own management interface. After the user enters the operation interface through the interactive entrance, the system can show the user all the application software including third-party applications that the system has installed, and then determine the target application software that needs to be replaced according to the user's selection.
在一个可行的方案中,步骤S203、将用户选择的皮肤资源填充到该待填充的资源包中之前,该方法还可以包括:向用户提供自定义皮肤的资源获取路径,该资源获取路径包括从服务器中下载皮肤资源和/或从本地资源中获取皮肤资源。In a feasible solution, before step S203, filling the skin resource selected by the user into the resource pack to be filled, the method may further include: providing a user with a resource acquisition path for the custom skin, the resource acquisition path includes from Download skin resources from the server and / or obtain skin resources from local resources.
其中,资源服务器的主要功能是给用户提供海量资源,同时能够根据用户行为、爱好、环境等因素推送资源;本地资源则能够给用户提供选择本地 资源的入口。Among them, the main function of the resource server is to provide users with massive resources, and at the same time can push resources according to user behavior, hobbies, environment and other factors; local resources can provide users with an entrance to select local resources.
用户可以从服务器端或者本地选择对应的资源,如图片、颜色等,放置到资源包中。Users can select the corresponding resources from the server or locally, such as pictures and colors, and place them in the resource package.
实际应用中,步骤S203、将包名填充到该待填充的资源包中,包括:将所述目标应用软件的包名写入指定的系统应用程序的入口文件中。In actual application, step S203, filling the package name into the resource package to be filled includes: writing the package name of the target application software into an entry file of a specified system application program.
以应用环境为安卓系统为例,则需要编写androidmenifest.xml文件,将该目标应用软件的包名写入androidmenifest.xml文件中。AndroidManifest.xml是安卓应用程序的入口文件,是每个安卓应用程序中必须的文件,它位于整个项目的根目录,描述了包(package)中暴露的组件的实现类、各种能被处理的数据和启动位置。Taking the application environment as an example of the Android system, you need to write the androidmenifest.xml file, and write the package name of the target application software into the androidmenifest.xml file. AndroidManifest.xml is the entry file for the Android application. It is a necessary file in each Android application. It is located in the root directory of the entire project. It describes the implementation classes of the components exposed in the package, and the various types that can be processed. Data and startup location.
步骤S204、将填充后的资源包编译成系统指定格式得到皮肤替换资源包,包括:将填充后的资源包编译成apk格式得到该皮肤替换资源包。Step S204: Compiling the filled resource package into a system-designated format to obtain a skin replacement resource package, including: compiling the filled resource package into an apk format to obtain the skin replacement resource package.
本实施例中,采用了反编译技术提取需要更换皮肤的应用资源信息,根据其信息填充资源。通过反编译,获取第三方应用程序的包名、资源名等,用户可以根据个人喜好,从服务器或本地资源中获取对应的色系或者背景图片,填充到资源包中,同时在资源包中指定目标应用程序,即需要更换皮肤的应用程序,提高了用户的体验。In this embodiment, decompilation technology is used to extract application resource information that requires skin replacement, and fill resources based on the information. Through decompilation, the package name and resource name of the third-party application are obtained. The user can obtain the corresponding color system or background image from the server or local resources according to personal preferences, fill it into the resource package, and specify it in the resource package. The target application, that is, an application that requires skin replacement, improves the user experience.
请参阅图3,在一个可行的方案中,步骤S103、将该目标应用软件的原皮肤资源包替换为该皮肤替换资源包,包括:Referring to FIG. 3, in a feasible solution, step S103, replacing the original skin resource package of the target application software with the skin replacement resource package includes:
步骤S301、当系统已经安装了该目标应用软件时,确认该映射关系成立;Step S301: When the target application software has been installed in the system, confirm that the mapping relationship is established.
步骤S302、扫描该皮肤替换资源包,获取其映射关系的信息,生成索引文件;Step S302: Scan the skin replacement resource package, obtain information about its mapping relationship, and generate an index file.
步骤S303、将该皮肤替换资源包及该索引文件存储到指定的资源替换的路径下;Step S303: Store the skin replacement resource package and the index file under a specified resource replacement path;
步骤S304、当该目标应用程序加载皮肤资源时,根据该索引文件中的资源映射关系向该目标应用提供该皮肤替换资源包中的皮肤资源。Step S304: When the target application loads a skin resource, the target application is provided with the skin resource in the skin replacement resource package according to the resource mapping relationship in the index file.
实际应用中,当系统环境为安卓系统时,可以利用安卓系统运行时资源替换(Runtime Resource Overlay,RRO)来实现皮肤资源的替换,无需对系统框架进行更改,实现了功能的独立化,与平台零耦合,移植性强。此时,索引文件可以是身份识别地图文件(Idmap文件),指定的资源替换的路径可以是overlay路径。In practical applications, when the system environment is Android, you can use the Android system's Runtime Resource Replacement (RRO) to replace skin resources without changing the system framework, and achieve functional independence and platform integration. Zero coupling and strong portability. At this time, the index file may be an identification map file (Idmap file), and the specified resource replacement path may be an overlay path.
在RRO机制下,当应用程序运行时,通过getString/getDrawable去调用某个资源,会将该资源的资源识别号码(resources ID)作为参数传给框架(Framework)层。实际应用中,同一名称但不同状态的资源的resources ID是一样的,比如不同分辨率但名称相同的图片分别被放置在了drawable-hdpi/drawable-ldpi/drawable-mdpi下,但在编译时针对该图片生成的resources ID却只有一个。Framework层查找资源时会使用这个resources ID,同时结合当前系统的配置(configuration,包括分辨率、语言、横竖屏),即通过resources ID和configuration,首先会调用通过RRO添加的资源文件,并根据configuration使用最匹配的资源文件,如果此时没有找到文件,则再调用应用程序原生的资源文件。Under the RRO mechanism, when an application is running, a resource is called via getString / getDrawable, and the resource ID of the resource is passed as a parameter to the Framework layer. In practical applications, the resources IDs of resources with the same name but different states are the same. For example, pictures with different resolutions but the same name are placed under drawable-hdpi / drawable-ldpi / drawable-mdpi, but they are targeted at compile time. There is only one resource ID generated by this image. The framework layer will use this resources ID when looking for resources, combined with the current system configuration (configuration, including resolution, language, horizontal and vertical screen), that is, through resources ID and configuration, it will first call the resource file added through RRO, and according to the configuration Use the best matching resource file, if no file is found at this time, then call the application's native resource file.
实际应用中,在执行步骤S103时,可以先判断该映射关系是否成立,在映射关系成立时,才执行将该目标应用软件的原皮肤资源包替换为该皮肤替换资源包的动作。实际应用中,映射关系不成立的原因有多种可能,比如,虽然用户设置了希望替换的目标应用软件,但是实际上系统并未下载或安装该目标应用软件,此时无法执行步骤S103,或者该映射关系发生错误,此时,则需要加载目标应用软件的原生的资源文件。In actual application, when step S103 is performed, it may be judged whether the mapping relationship is established first, and when the mapping relationship is established, the action of replacing the original skin resource package of the target application software with the skin replacement resource package is performed. In practical applications, there may be multiple reasons for the failure of the mapping relationship. For example, although the user sets the target application software that he wants to replace, the system does not actually download or install the target application software. At this time, step S103 cannot be performed, or the An error occurs in the mapping relationship. At this time, a native resource file of the target application software needs to be loaded.
本实施例中,增加了对资源包安装监听的接口,当监听到皮肤替换资源包(通常皮肤替换资源包都是新的资源包)安装时,会去扫描皮肤替换资源包的内容,解析皮肤替换资源包,将其放在overlay目录下,同时根据资源包信息生成Idmap文件,应用程序在加载资源时,安卓系统优先从overlay路径下扫描,根据Idmap中的资源映射关系,向该应用程序提供相应的资源包,从 而实现皮肤切换的功能。In this embodiment, an interface for monitoring installation of a resource package is added. When a skin replacement resource package (generally a skin replacement resource package is a new resource package) is installed, it will scan the content of the skin replacement resource package and parse the skin. Replace the resource pack, place it in the overlay directory, and generate an Idmap file based on the resource pack information. When the application loads resources, the Android system preferentially scans from the overlay path and provides the application with the resource mapping relationship in the Idmap. Corresponding resource pack to achieve the function of skin switching.
本实施例的更换应用软件皮肤的方法,在编译的皮肤替换资源包中写入了皮肤替换资源包与目标应用软件的映射关系,并在监听到皮肤替换资源包的安装时,根据解析到的皮肤替换资源包与目标应用软件的映射关系,将目标应用软件的原皮肤资源包替换为该皮肤替换资源包,从而实现了对包括第三方应用程序在内的任意应用程序进行皮肤更换的目的,提高了用户的体验,并且无需对系统框架进行更改,实现了功能的独立化,与平台零耦合,移植性强。In the method for replacing an application software skin in this embodiment, a mapping relationship between a skin replacement resource package and a target application software is written in a compiled skin replacement resource package, and when the installation of the skin replacement resource package is monitored, according to the parsed The mapping relationship between the skin replacement resource package and the target application software, replacing the original skin resource package of the target application software with the skin replacement resource package, thereby achieving the purpose of skin replacement for any application including third-party applications, The user experience is improved, and there is no need to change the system framework. The functions are independent, zero-coupling with the platform, and highly portable.
在前述实施例的基础上,本发明实施例二提供了一种更换应用软件皮肤的装置,请参阅图4,该装置至少包括,但不限于:存储器401、处理器402及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如下步骤:编译皮肤替换资源包,所述皮肤替换资源包包含皮肤替换资源包与目标应用软件的映射关系,所述目标应用软件为用户指定的需替换皮肤的应用软件;当监听到所述皮肤替换资源包被安装时,解析所述皮肤替换资源包的内容并获取所述皮肤替换资源包与目标应用软件的映射关系;将所述目标应用软件的原皮肤资源包替换为所述皮肤替换资源包。Based on the foregoing embodiments, the second embodiment of the present invention provides a device for replacing application software skins. Please refer to FIG. 4. The device includes, but is not limited to, a memory 401, a processor 402, and a memory stored in the memory. A computer program that can be run on the processor, and when the computer program is executed by the processor, the following steps are implemented: compiling a skin replacement resource package, the skin replacement resource package includes the skin replacement resource package and the target application software Mapping relationship, the target application software is user-specified application software requiring skin replacement; when it is monitored that the skin replacement resource package is installed, the content of the skin replacement resource package is parsed and the skin replacement resource package is obtained Mapping relationship with the target application software; replacing the original skin resource package of the target application software with the skin replacement resource package.
在一个可行的方案中,当所述处理器402在执行编译皮肤替换资源包的步骤时,还用于执行所述计算机程序,以实现如下步骤:确定需要更换皮肤的目标应用软件;提取所述目标应用软件的信息生成待填充的资源包,所述待填充的资源包包含所述目标应用软件的包名及皮肤信息的关键词;将用户选择的皮肤资源及所述包名填充到所述待填充的资源包中;将填充后的资源包编译成系统指定格式得到皮肤替换资源包,所述皮肤替换资源包通过所述包名确定其与所述目标应用软件的映射关系;安装所述皮肤替换资源包。In a feasible solution, when the processor 402 executes the step of compiling the skin replacement resource package, the processor 402 is further configured to execute the computer program to implement the following steps: determine the target application software that needs to be replaced with the skin; and extract the The information of the target application software generates a resource package to be filled, the resource package to be filled includes a package name of the target application software and keywords of skin information; and a skin resource and the package name selected by the user are filled into the package. In the resource package to be filled; compile the filled resource package into a system specified format to obtain a skin replacement resource package, and the skin replacement resource package determines a mapping relationship between the skin replacement resource package and the target application software by using the package name; Skin replacement resource pack.
实际应用中,可以为用户提供一个更换应用软件的皮肤的交互入口,该入口可以设置在系统设置界面中、桌面上或者系统自带的应用管理界面中。 用户通过交互入口进入操作界面后,系统可以向用户展示系统已安装的包括第三方应用的所有的应用软件,然后根据用户的选择确定需要更换皮肤的目标应用软件。In practical applications, the user can be provided with an interactive portal for changing the skin of application software, which can be set in the system setting interface, on the desktop, or in the application management interface that comes with the system. After the user enters the operation interface through the interactive entrance, the system can show the user all the application software including third-party applications that the system has installed, and then determine the target application software that needs to be replaced according to the user's selection.
在一个可行的方案中,所述处理器402在执行将用户选择的皮肤资源填充到所述待填充的资源包中的步骤之前,还用于执行所述计算机程序,以实现如下步骤:路径选择子模块,用于向用户提供自定义皮肤的资源获取路径,所述资源获取路径包括从服务器中下载皮肤资源和/或从本地资源中获取皮肤资源。In a feasible solution, before executing the step of filling the skin resource selected by the user into the resource pack to be filled, the processor 402 is further configured to execute the computer program to implement the following steps: path selection A sub-module configured to provide a user with a resource acquisition path for a custom skin, where the resource acquisition path includes downloading a skin resource from a server and / or acquiring a skin resource from a local resource.
其中,资源服务器的主要功能是给用户提供海量资源,同时能够根据用户行为、爱好、环境等因素推送资源;本地资源则能够给用户提供选择本地资源的入口。Among them, the main function of the resource server is to provide users with massive resources, and at the same time, it can push resources according to user behavior, hobbies, environment and other factors; local resources can provide users with an entrance to select local resources.
用户可以从服务器端或者本地选择对应的资源,如图片、颜色等,放置到资源包中。Users can select the corresponding resources from the server or locally, such as pictures and colors, and place them in the resource package.
在一个可行的方案中,所述处理器402在执行将所述包名填充到所述待填充的资源包中的步骤时,还用于执行所述计算机程序,以实现如下步骤:将所述目标应用软件的包名写入指定的系统应用程序的入口文件中;在将填充后的资源包编译成系统指定格式得到皮肤替换资源包时,所述处理器402还用于执行所述计算机程序,以实现如下步骤:将填充后的资源包编译成apk格式得到所述皮肤替换资源包。In a feasible solution, when the processor 402 executes the step of filling the package name into the resource package to be filled, the processor 402 is further configured to execute the computer program to implement the following steps: The package name of the target application software is written into the entry file of the specified system application program; when the filled resource package is compiled into a system specified format to obtain a skin replacement resource package, the processor 402 is further configured to execute the computer program To achieve the following steps: compile the filled resource pack into an apk format to obtain the skin replacement resource pack.
实际应用中,安装子模块在安装该皮肤替换资源包时,可以将该皮肤替换资源包安装到系统默认的路径下,该默认的路径可以是目标应用软件的皮肤资源包安装的路径,也可以安装到用户指定的路径下。In actual application, when installing the skin replacement resource package, the installation sub-module can install the skin replacement resource package to a system default path. The default path can be the path of the skin resource package installation of the target application software, or Install to the user-specified path.
本实施例中,采用了反编译技术提取需要更换皮肤的应用资源信息,根据其信息填充资源。通过反编译,获取第三方应用程序的包名、资源名等,用户可以根据个人喜好,从服务器或本地资源中获取对应的色系或者背景图片,填充到资源包中,同时在资源包中指定目标应用程序,即需要更换皮肤 的应用程序,提高了用户的体验。In this embodiment, decompilation technology is used to extract application resource information that requires skin replacement, and fill resources based on the information. Through decompilation, the package name and resource name of the third-party application are obtained. The user can obtain the corresponding color system or background image from the server or local resources according to personal preferences, fill it into the resource package, and specify it in the resource package. The target application, that is, an application that requires skin replacement, improves the user experience.
在一个可行的方案中,所述处理器402在执行将所述目标应用软件的原皮肤资源包替换为所述皮肤替换资源包的步骤时,还用于执行所述计算机程序,以实现如下步骤:在系统已经安装了所述目标应用软件时,确认所述映射关系成立;扫描所述皮肤替换资源包,获取其映射关系的信息,生成索引文件;将所述皮肤替换资源包及所述索引文件存储到指定的资源替换的路径下;当所述目标应用程序加载皮肤资源时,根据所述索引文件中的资源映射关系向所述目标应用提供所述皮肤替换资源包中的皮肤资源。In a feasible solution, when the processor 402 executes the step of replacing the original skin resource package of the target application software with the skin replacement resource package, the processor 402 is further configured to execute the computer program to implement the following steps: : When the target application software has been installed in the system, confirm that the mapping relationship is established; scan the skin replacement resource package to obtain information about its mapping relationship, and generate an index file; replace the skin replacement resource package and the index The file is stored under the specified resource replacement path; when the target application loads a skin resource, the target application is provided with the skin resource in the skin replacement resource package according to the resource mapping relationship in the index file.
实际应用中,可以利用安卓系统运行时资源替换(Runtime Resource Overlay,RRO)来实现皮肤资源的替换,无需对系统框架进行更改,实现了功能的独立化,与平台零耦合,移植性强。In practical applications, you can use the Android system's runtime resource replacement (RRO) to replace skin resources without changing the system framework. It achieves functional independence, zero coupling with the platform, and strong portability.
具体的,通过RRO机制对资源包的安装进行监听,在监听到皮肤替换资源包(通常皮肤替换资源包都是新的资源包)安装时,去扫描皮肤替换资源包的内容,解析皮肤替换资源包,将其放在overlay目录下,同时根据资源包信息生成Idmap文件,应用程序在加载资源时,安卓系统优先从overlay路径下扫描,根据Idmap中的资源映射关系,向该应用程序提供相应的资源包,从而实现皮肤切换的功能。Specifically, the installation of the resource package is monitored through the RRO mechanism. When the skin replacement resource package (usually the skin replacement resource package is a new resource package) is installed, the content of the skin replacement resource package is scanned to analyze the skin replacement resource. Package, place it in the overlay directory, and generate an Idmap file based on the resource package information. When the application loads resources, the Android system preferentially scans from the overlay path, and provides the application with the corresponding Resource pack to achieve the function of skin switching.
本实施例的更换应用软件皮肤的装置,在编译的皮肤替换资源包中写入了皮肤替换资源包与目标应用软件的映射关系,并在监听到皮肤替换资源包的安装时,根据解析到的皮肤替换资源包与目标应用软件的映射关系,将目标应用软件的原皮肤资源包替换为该皮肤替换资源包,从而实现了对包括第三方应用程序在内的任意应用程序进行皮肤更换的目的,提高了用户的体验,并且无需对系统框架进行更改,实现了功能的独立化,与平台零耦合,移植性强。In the device for replacing application software skin in this embodiment, the mapping relationship between the skin replacement resource package and the target application software is written in the compiled skin replacement resource package, and when the installation of the skin replacement resource package is monitored, The mapping relationship between the skin replacement resource package and the target application software, replacing the original skin resource package of the target application software with the skin replacement resource package, thereby achieving the purpose of skin replacement for any application including third-party applications, The user experience is improved, and there is no need to change the system framework. The functions are independent, zero-coupling with the platform, and highly portable.
在前述实施例的基础上,本发明实施例四提供了一种存储介质,该存储介质包括存储的程序,在该程序运行时控制该存储介质所在设备执行如实施 例一所述的操作。On the basis of the foregoing embodiments, Embodiment 4 of the present invention provides a storage medium including a stored program, and when the program runs, controls a device where the storage medium is located to perform the operations described in Embodiment 1.
本发明实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意方法实施例中的方法。An embodiment of the present invention provides a computer program product. The computer program product includes a computer program stored on a storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the instructions. Method in any of the above method embodiments.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art can understand that all or some steps, systems, and functional modules / units in the methods disclosed in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical The components execute cooperatively. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is known to those of ordinary skill in the art, the term computer storage medium includes both volatile and nonvolatile implementations in any method or technology used to store information such as computer-readable instructions, data structures, program modules or other data. Removable, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or may Any other medium used to store desired information and which can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that a communication medium typically contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium .
以上参照附图说明了本发明实施例的优选实施例,并非因此局限本发明实施例的权利范围。本领域技术人员不脱离本发明实施例的范围和实质内所作的任何修改、等同替换和改进,均应在本发明实施例的权利范围之内。The preferred embodiments of the embodiments of the present invention have been described above with reference to the accompanying drawings, and thus do not limit the scope of rights of the embodiments of the present invention. Any modification, equivalent replacement, and improvement made by those skilled in the art without departing from the scope and substance of the embodiments of the present invention should fall within the scope of rights of the embodiments of the present invention.

Claims (11)

  1. 一种更换应用软件皮肤的方法,其中,所述方法包括:A method for changing application software skin, wherein the method includes:
    编译皮肤替换资源包,所述皮肤替换资源包包含皮肤替换资源包与目标应用软件的映射关系,所述目标应用软件为用户指定的需替换皮肤的应用软件;Compile a skin replacement resource package, the skin replacement resource package includes a mapping relationship between the skin replacement resource package and target application software, and the target application software is user-specified application software that needs to replace the skin;
    当监听到所述皮肤替换资源包被安装时,解析所述皮肤替换资源包的内容并获取所述皮肤替换资源包与目标应用软件的映射关系;When it is monitored that the skin replacement resource package is installed, parse the content of the skin replacement resource package and obtain a mapping relationship between the skin replacement resource package and target application software;
    将所述目标应用软件的原皮肤资源包替换为所述皮肤替换资源包。Replacing the original skin resource package of the target application software with the skin replacement resource package.
  2. 如权利要求1所述的更换应用软件皮肤的方法,其中,所述编译皮肤替换资源包,包括:The method for replacing an application software skin according to claim 1, wherein the compiled skin replacement resource package comprises:
    确定需要更换皮肤的目标应用软件;Identify target application software that needs skin replacement;
    提取所述目标应用软件的信息生成待填充的资源包,所述待填充的资源包包含所述目标应用软件的包名及皮肤信息的关键词;Extracting information of the target application software to generate a resource package to be filled, the resource package to be filled includes a package name of the target application software and keywords of skin information;
    将用户选择的皮肤资源及所述包名填充到所述待填充的资源包中;Filling the skin resource selected by the user and the package name into the resource package to be filled;
    将填充后的资源包编译成系统指定格式得到皮肤替换资源包,所述皮肤替换资源包通过所述包名确定其与所述目标应用软件的映射关系。The filled resource package is compiled into a system specified format to obtain a skin replacement resource package, and the skin replacement resource package determines a mapping relationship between the skin replacement resource package and the target application software by using the package name.
  3. 如权利要求2所述的更换应用软件皮肤的方法,其中,所述将所述包名填充到所述待填充的资源包中,包括:The method for replacing an application software skin according to claim 2, wherein the filling the package name into the resource package to be filled comprises:
    将所述目标应用软件的包名写入指定的系统应用程序的入口文件中;Writing the package name of the target application software into an entry file of a designated system application program;
    所述将填充后的资源包编译成系统指定格式得到皮肤替换资源包,包括:Compiling the filled resource pack into a system-designated format to obtain a skin replacement resource pack includes:
    将填充后的资源包编译成apk格式得到所述皮肤替换资源包。Compiling the filled resource package into an apk format to obtain the skin replacement resource package.
  4. 如权利要求2所述的更换应用软件皮肤的方法,其中,所述将用户选择的皮肤资源填充到所述待填充的资源包中之前,所述方法还包括:The method for replacing application software skin according to claim 2, wherein before the filling a skin resource selected by a user into the resource pack to be filled, the method further comprises:
    向用户提供自定义皮肤的资源获取路径,所述资源获取路径包括从服务器中下载皮肤资源和/或从本地资源中获取皮肤资源。Provide a user with a resource acquisition path for a custom skin, where the resource acquisition path includes downloading a skin resource from a server and / or acquiring a skin resource from a local resource.
  5. 如权利要求1至4任一项所述的更换应用软件皮肤的方法,其中,所 述当所述映射关系成立时,将所述目标应用软件的原皮肤资源包替换为所述皮肤替换资源包,包括:The method for replacing an application software skin according to any one of claims 1 to 4, wherein, when the mapping relationship is established, replacing an original skin resource package of the target application software with the skin replacement resource package ,include:
    在系统已经安装了所述目标应用软件时,确认所述映射关系成立;Confirming that the mapping relationship is established when the target application software has been installed in the system;
    扫描所述皮肤替换资源包,获取其映射关系的信息,生成索引文件;Scanning the skin replacement resource package to obtain information of its mapping relationship, and generating an index file;
    将所述皮肤替换资源包及所述索引文件存储到指定的资源替换的路径下;Storing the skin replacement resource package and the index file to a specified resource replacement path;
    当所述目标应用程序加载皮肤资源时,根据所述索引文件中的资源映射关系向所述目标应用提供所述皮肤替换资源包中的皮肤资源。When the target application loads a skin resource, the target application is provided with the skin resource in the skin replacement resource package according to the resource mapping relationship in the index file.
  6. 一种更换应用软件皮肤的装置,其中,所述装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如下步骤:An apparatus for replacing an application software skin, wherein the apparatus includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is executed by the processor To achieve the following steps:
    编译皮肤替换资源包,所述皮肤替换资源包包含皮肤替换资源包与目标应用软件的映射关系,所述目标应用软件为用户指定的需替换皮肤的应用软件;Compile a skin replacement resource package, the skin replacement resource package includes a mapping relationship between the skin replacement resource package and target application software, and the target application software is user-specified application software that needs to replace the skin;
    当监听到所述皮肤替换资源包被安装时,解析所述皮肤替换资源包的内容并获取所述皮肤替换资源包与目标应用软件的映射关系;When it is monitored that the skin replacement resource package is installed, parse the content of the skin replacement resource package and obtain a mapping relationship between the skin replacement resource package and target application software;
    将所述目标应用软件的原皮肤资源包替换为所述皮肤替换资源包。Replacing the original skin resource package of the target application software with the skin replacement resource package.
  7. 如权利要求6所述的更换应用软件皮肤的装置,其中,当所述处理器在执行编译皮肤替换资源包的步骤时,还用于执行所述计算机程序,以实现如下步骤:The device for replacing application software skin according to claim 6, wherein when the processor executes the step of compiling the skin replacement resource package, it is further configured to execute the computer program to implement the following steps:
    确定需要更换皮肤的目标应用软件;Identify target application software that needs skin replacement;
    提取所述目标应用软件的信息生成待填充的资源包,所述待填充的资源包包含所述目标应用软件的包名及皮肤信息的关键词;Extracting information of the target application software to generate a resource package to be filled, the resource package to be filled includes a package name of the target application software and keywords of skin information;
    将用户选择的皮肤资源及所述包名填充到所述待填充的资源包中;Filling the skin resource selected by the user and the package name into the resource package to be filled;
    将填充后的资源包编译成系统指定格式得到皮肤替换资源包,所述皮肤替换资源包通过所述包名确定其与所述目标应用软件的映射关系。The filled resource package is compiled into a system specified format to obtain a skin replacement resource package, and the skin replacement resource package determines a mapping relationship between the skin replacement resource package and the target application software by using the package name.
  8. 如权利要求7所述的更换应用软件皮肤的装置,其中,所述处理器在执行将所述包名填充到所述待填充的资源包中的步骤时,还用于执行所述计 算机程序,以实现如下步骤:The device for replacing an application software skin according to claim 7, wherein the processor is further configured to execute the computer program when performing the step of filling the package name into the resource package to be filled, To achieve the following steps:
    将所述目标应用软件的包名写入指定的系统应用程序的入口文件中;Writing the package name of the target application software into an entry file of a designated system application program;
    在将填充后的资源包编译成系统指定格式得到皮肤替换资源包时,所述处理器还用于执行所述计算机程序,以实现如下步骤:When compiling the filled resource package into a system-designated format to obtain a skin replacement resource package, the processor is further configured to execute the computer program to implement the following steps:
    将填充后的资源包编译成apk格式得到所述皮肤替换资源包。Compiling the filled resource package into an apk format to obtain the skin replacement resource package.
  9. 如权利要求7所述的更换应用软件皮肤的装置,其中,所述处理器执行将用户选择的皮肤资源填充到所述待填充的资源包中的步骤之前,还用于执行所述计算机程序,以实现如下步骤:The device for replacing application software skin according to claim 7, wherein before the processor executes the step of filling a skin resource selected by a user into the resource pack to be filled, the processor is further configured to execute the computer program, To achieve the following steps:
    路径选择子模块,用于向用户提供自定义皮肤的资源获取路径,所述资源获取路径包括从服务器中下载皮肤资源和/或从本地资源中获取皮肤资源。A path selection submodule is used to provide a user with a resource acquisition path for a custom skin, the resource acquisition path includes downloading a skin resource from a server and / or acquiring a skin resource from a local resource.
  10. 根据权利要求6至9任一项所述的更换应用软件皮肤的装置,其中,所述处理器在执行将所述目标应用软件的原皮肤资源包替换为所述皮肤替换资源包的步骤时,还用于执行所述计算机程序,以实现如下步骤:The device for replacing an application software skin according to any one of claims 6 to 9, wherein when the processor executes a step of replacing an original skin resource pack of the target application software with the skin replacement resource pack, It is also used to execute the computer program to implement the following steps:
    在系统已经安装了所述目标应用软件时,确认所述映射关系成立;Confirming that the mapping relationship is established when the target application software has been installed in the system;
    扫描所述皮肤替换资源包,获取其映射关系的信息,生成索引文件;Scanning the skin replacement resource package to obtain information of its mapping relationship, and generating an index file;
    将所述皮肤替换资源包及所述索引文件存储到指定的资源替换的路径下;Storing the skin replacement resource package and the index file to a specified resource replacement path;
    当所述目标应用程序加载皮肤资源时,根据所述索引文件中的资源映射关系向所述目标应用提供所述皮肤替换资源包中的皮肤资源。When the target application loads a skin resource, the target application is provided with the skin resource in the skin replacement resource package according to the resource mapping relationship in the index file.
  11. 一种存储介质,其中,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如权利要求1-5任一项所述的步骤。A storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method according to any one of claims 1-5. step.
PCT/CN2019/081770 2018-06-15 2019-04-08 Method and apparatus for changing skin of application software, and system, and storage medium WO2019237804A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810623564.9A CN110609720A (en) 2018-06-15 2018-06-15 Method, device and system for replacing application software skin and storage medium
CN201810623564.9 2018-06-15

Publications (1)

Publication Number Publication Date
WO2019237804A1 true WO2019237804A1 (en) 2019-12-19

Family

ID=68842766

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/081770 WO2019237804A1 (en) 2018-06-15 2019-04-08 Method and apparatus for changing skin of application software, and system, and storage medium

Country Status (2)

Country Link
CN (1) CN110609720A (en)
WO (1) WO2019237804A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070113189A1 (en) * 2005-11-15 2007-05-17 Microsoft Corporation Specifying per theme styles for custom graphical elements
CN101741984A (en) * 2009-12-21 2010-06-16 深圳华为通信技术有限公司 Theme switching method and device and mobile terminal and background software device
CN103942037A (en) * 2013-01-17 2014-07-23 阿里巴巴集团控股有限公司 Method and device for theme replacement of mobile device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8566839B2 (en) * 2008-03-14 2013-10-22 William J. Johnson System and method for automated content presentation objects
CN105094559B (en) * 2015-08-10 2019-07-26 联想(北京)有限公司 Display processing method and electronic equipment
CN106055328B (en) * 2016-05-27 2019-04-02 努比亚技术有限公司 For the subject replacement device and method of third-party application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070113189A1 (en) * 2005-11-15 2007-05-17 Microsoft Corporation Specifying per theme styles for custom graphical elements
CN101741984A (en) * 2009-12-21 2010-06-16 深圳华为通信技术有限公司 Theme switching method and device and mobile terminal and background software device
CN103942037A (en) * 2013-01-17 2014-07-23 阿里巴巴集团控股有限公司 Method and device for theme replacement of mobile device

Also Published As

Publication number Publication date
CN110609720A (en) 2019-12-24

Similar Documents

Publication Publication Date Title
US10740114B2 (en) Component invoking method and apparatus, and component data processing method and apparatus
US20190220304A1 (en) Method and device for processing application program page, and storage medium
US9569199B2 (en) Systems and methods to update source code files
US11012499B2 (en) Template directories for cartridges in a multi-tenant Platform-as-a-Service (PaaS) system
CN110750288A (en) Native engineering configuration method and device, electronic equipment and storage medium
EP3441876A1 (en) Patch upgrade-based file processing method and device, terminal, and storage medium
CN107479867B (en) Application software plug-in operation method and device
US11599654B2 (en) Method and apparatus for authority control, computer device and storage medium
CN109391676B (en) Terminal device control method, terminal device, and computer-readable storage medium
CN110688232A (en) Application program calling method, terminal device and computer readable storage medium
US11966795B2 (en) Method and device for loading minus-one screen, terminal, and computer readable storage medium
CN111740948B (en) Data packet issuing method, dynamic updating method, device, equipment and medium
KR102052776B1 (en) Installation engine and package format for parallelizable, reliable installations
CN111625260A (en) Method and system based on mixed mobile application program upgrading
RU2639667C2 (en) Context invitation in trial version of application
US20220374217A1 (en) Automated machine deployment and configuration
WO2019237804A1 (en) Method and apparatus for changing skin of application software, and system, and storage medium
US9940334B2 (en) Image forming apparatus and control method thereof
CN106775608B (en) Method and device for realizing independent system process
CN110727416B (en) Development framework generation method and related device
CN111857782A (en) Interface updating method and device, computer equipment and storage medium
CN117556395B (en) System application watermark generation method and device
CN111638903B (en) Method and device for generating difference information of different software versions
US20210286637A1 (en) Operating system-agnostic container runtime
US20230367616A1 (en) Data processing method, computer device, and storage medium

Legal Events

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

Ref document number: 19818965

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.05.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19818965

Country of ref document: EP

Kind code of ref document: A1