WO2019237804A1 - Procédé et appareil permettant de changer l'enveloppe d'un logiciel d'application, système et support d'informations - Google Patents

Procédé et appareil permettant de changer l'enveloppe d'un logiciel d'application, système et support d'informations 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
English (en)
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/fr

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 .

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

L'invention concerne un procédé et un appareil permettant de changer l'enveloppe d'un logiciel d'application, ainsi qu'un support d'informations. Le procédé comprend les étapes suivantes : compiler un ensemble de ressources de remplacement d'enveloppe, l'ensemble de ressources de remplacement d'enveloppe contenant une relation de mappage entre l'ensemble de ressources de remplacement d'enveloppe et le logiciel d'application cible, et le logiciel d'application cible étant un logiciel d'application qui est spécifié par un utilisateur et ayant une enveloppe qui doit être remplacé; lorsqu'il est surveillé que l'ensemble de ressources de remplacement d'enveloppe est installé, analyser les contenus de l'ensemble de ressources de remplacement d'enveloppe et acquérir la relation de mappage entre l'ensemble de ressources de remplacement d'enveloppe et le logiciel d'application cible; et remplacer l'ensemble de ressources d'enveloppe d'origine du logiciel d'application cible avec l'ensemble de ressources de remplacement d'enveloppe.
PCT/CN2019/081770 2018-06-15 2019-04-08 Procédé et appareil permettant de changer l'enveloppe d'un logiciel d'application, système et support d'informations WO2019237804A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810623564.9A CN110609720A (zh) 2018-06-15 2018-06-15 一种更换应用软件皮肤的方法、装置、系统及存储介质
CN201810623564.9 2018-06-15

Publications (1)

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

Family

ID=68842766

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/081770 WO2019237804A1 (fr) 2018-06-15 2019-04-08 Procédé et appareil permettant de changer l'enveloppe d'un logiciel d'application, système et support d'informations

Country Status (2)

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

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 (zh) * 2009-12-21 2010-06-16 深圳华为通信技术有限公司 主题切换方法和装置以及移动终端和后台软件设备
CN103942037A (zh) * 2013-01-17 2014-07-23 阿里巴巴集团控股有限公司 一种移动设备的主题替换的方法和设备

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 (zh) * 2015-08-10 2019-07-26 联想(北京)有限公司 显示处理方法及电子设备
CN106055328B (zh) * 2016-05-27 2019-04-02 努比亚技术有限公司 针对第三方应用的主题更换装置及方法

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 (zh) * 2009-12-21 2010-06-16 深圳华为通信技术有限公司 主题切换方法和装置以及移动终端和后台软件设备
CN103942037A (zh) * 2013-01-17 2014-07-23 阿里巴巴集团控股有限公司 一种移动设备的主题替换的方法和设备

Also Published As

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

Similar Documents

Publication Publication Date Title
CN110750288B (zh) 原生工程配置方法、装置、电子设备及存储介质
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
EP3441876A1 (fr) Procédé et dispositif de traitement de fichier basé sur une mise à niveau de correctif, terminal et support d'informations
CN107479867B (zh) 应用软件插件化运行方法及装置
CN109391676B (zh) 终端设备控制方法、终端设备及计算机可读存储介质
US11599654B2 (en) Method and apparatus for authority control, computer device and storage medium
US11966795B2 (en) Method and device for loading minus-one screen, terminal, and computer readable storage medium
CN111740948B (zh) 数据包发布方法、动态更新方法、装置、设备及介质
KR102052776B1 (ko) 병행가능하고 신뢰성 있는 설치를 위한 설치 엔진 및 패키지 포맷
RU2639667C2 (ru) Контекстное приглашение в пробной версии приложения
US20220374217A1 (en) Automated machine deployment and configuration
CN111625260A (zh) 基于混合移动应用程序升级的方法、系统
WO2019237804A1 (fr) Procédé et appareil permettant de changer l'enveloppe d'un logiciel d'application, système et support d'informations
US9940334B2 (en) Image forming apparatus and control method thereof
CN106775608B (zh) 独立系统进程的实现方法和装置
CN110727416B (zh) 开发框架的生成方法及相关装置
CN111857782A (zh) 界面更新方法、装置、计算机设备和存储介质
CN117556395B (zh) 一种系统应用水印生成方法及装置
CN111638903B (zh) 不同软件版本的差异信息生成方法及装置
US20210286637A1 (en) Operating system-agnostic container runtime
US20230367616A1 (en) Data processing method, computer device, and storage medium
CN112114837B (zh) 固件更新方法及摄像机

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