WO2017185606A1 - Procédé et système de développement d'apk basé sur un mécanisme de superposition - Google Patents

Procédé et système de développement d'apk basé sur un mécanisme de superposition Download PDF

Info

Publication number
WO2017185606A1
WO2017185606A1 PCT/CN2016/099919 CN2016099919W WO2017185606A1 WO 2017185606 A1 WO2017185606 A1 WO 2017185606A1 CN 2016099919 W CN2016099919 W CN 2016099919W WO 2017185606 A1 WO2017185606 A1 WO 2017185606A1
Authority
WO
WIPO (PCT)
Prior art keywords
code file
overlay
apk
modified
directory
Prior art date
Application number
PCT/CN2016/099919
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 WO2017185606A1 publication Critical patent/WO2017185606A1/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Definitions

  • the source code in the APK can be divided into three parts, namely, a Java source code file, an AndroidManifest.xml file, and a resource file.
  • the AndroidManifest.xml file is the global configuration file of the APK. It is located in the root directory of the APK. Each Android project contains a Manifest file.
  • the AndroidManifest.xml file describes the global data in the APK, including the exposed groups in the APK (activities ( Activities, services, etc., as well as their respective implementation classes, various important information such as data and startup locations that can be processed.
  • the modification of the manifest file is based on the modification of the program code, and the native overlay mechanism cannot be used to implement the replacement of the manifest file.
  • the JAVA source code file is only the modification of the program code. The replacement of JAVA source code files cannot be performed by using the overlay mechanism, which greatly increases the cost of code maintenance.
  • the overlay mechanism is used to complete the replacement of the code file to be modified in the development of the Android project, and since the resource information identifier is added to the code file to be modified in the Android project to be developed, the code file that the overlay mechanism can perform the replacement is not limited.
  • the resource code file in the Android project to be developed may also be other non-resource code files in the Android project to be developed, and the extension of the overlay mechanism application is implemented.
  • FIG. 2 is a schematic structural diagram of an APK development system based on an overlay mechanism according to an embodiment of the present invention
  • the method of the embodiment of the present invention implements the use of the overlay mechanism to replace the code file to be modified in the process of compiling the Android project to be developed, wherein the code file to be modified includes a non-resource file, thereby indirectly implementing the overlay mechanism application. Extension.
  • the above-mentioned compiled configuration information may be determined according to the Android.mk file, and the specific execution may be copying the compiled configuration information of the corresponding code file under the Android.mk file.
  • the code file to be modified is replaced in the process of compiling the Android project to be developed.
  • the developer makes the APK only the compilation configuration information for Android.mk is needed, instead of the code file to be modified. Do the modification of the code logic, the operation is more convenient.
  • the above device models include chip models and/or Android models.
  • the APK development device uses the overlay mechanism to replace the Java source code file and/or the AndroidManifest.xml file except the resource file, and the method of the embodiment of the present invention is compared with the prior art. Developers can implement the replacement of the manifest file without modifying the Java source code file and/or the program code in the manifest file when developing the APK. It can theoretically eliminate the Java source code file and/or the manifest file due to manual error. The resulting APK development error; and, the use of the overlay mechanism to complete the development of all code files in the APK, greatly reducing the cost of code maintenance.
  • the new code file in the specific embodiment of the present invention may be all types of code files including a manifest file, a JAVA source code file, and a resource file, or may only be a replacement of a part of the code file; further, according to the original The replaced code file under Android project is packaged with the unreplaced code file to generate the upgraded APK.
  • the application of the specific implementation method should not be limited to the upgrade for the APK, but also for the development based on the APK corresponding to the newly built Android project.
  • the APK development system based on the overlay mechanism provided by the embodiment of the present invention implements the replacement of the code file to be modified in the Android project to be developed by the APK development device, and is modified for the Android project to be developed.
  • the code file adds the resource information identifier, so that the code file that can be executed by the overlay mechanism is not limited to the resource code file in the Android project to be developed, and may be other non-resource code files in the Android project to be developed, and the overlay mechanism application is implemented.
  • the expansion of the same non-resource code file is achieved by directly modifying the program code in the non-resource code file in the prior art, which reduces the pressure on the developer to make the APK and reduces the maintenance cost of the code file. And theoretically eliminates the APK development error caused by personal mistakes when the developer makes the APK due to the modification of the program code.
  • the system of the embodiment of the present invention can be applied to the field of APK development, especially to a code development platform deployed by a large network operation company, which can greatly reduce the development of an APK by a large network operation company. Code maintenance costs.
  • the embodiment of the present invention provides a non-volatile computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions can execute an overlay mechanism-based APK development method in any of the foregoing method embodiments;
  • the non-volatile computer storage medium of the present invention stores computer-executable instructions that are set to:
  • the input device 330 can receive the input digital or character information and generate a key signal input related to user settings and function control of the overlay mechanism-based APK development device.
  • the output device 340 can include a display device such as a display screen.
  • the above product can perform the method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
  • the above product can perform the method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
  • Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Library & Information Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

Des modes de réalisation de la présente invention concernent un procédé de développement d'APK basé sur un mécanisme de superposition, comprenant les étapes suivantes : produire un répertoire de superposition selon un répertoire de projet source d'un projet Android à développer correspondant à un fichier de code à modifier, et préstocker un nouveau fichier de code dans le répertoire de superposition ; ajouter un identifiant d'informations de ressource identifiable par le mécanisme de superposition au fichier de code à modifier ; remplacer le fichier de code à modifier par le nouveau fichier de code en fonction du mécanisme de superposition selon le répertoire de superposition et l'identifiant d'informations de ressource ; et produire un APK en fonction du projet Android à développer comprenant le nouveau fichier de code. Les modes de réalisation de la présente invention concernent également un système de développement d'APK basé sur un mécanisme de superposition. Le fait qu'un document de code qui peut être remplacé grâce à un mécanisme de superposition soit un fichier de code de ressource dans un projet Android à développer, ou un autre fichier de code de non-ressource du projet Android à développer met en œuvre l'extension de l'application du mécanisme de superposition.
PCT/CN2016/099919 2016-04-29 2016-09-23 Procédé et système de développement d'apk basé sur un mécanisme de superposition WO2017185606A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610282807.8A CN105912342A (zh) 2016-04-29 2016-04-29 基于overlay机制的APK开发方法及系统
CN201610282807.8 2016-04-29

Publications (1)

Publication Number Publication Date
WO2017185606A1 true WO2017185606A1 (fr) 2017-11-02

Family

ID=56753219

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/099919 WO2017185606A1 (fr) 2016-04-29 2016-09-23 Procédé et système de développement d'apk basé sur un mécanisme de superposition

Country Status (2)

Country Link
CN (1) CN105912342A (fr)
WO (1) WO2017185606A1 (fr)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804083A (zh) * 2018-05-23 2018-11-13 有米科技股份有限公司 一种代码操作方法及装置
CN110083344A (zh) * 2019-04-30 2019-08-02 北京金山安全软件有限公司 一种软件开发工具包修改方法、装置及电子设备
CN110673827A (zh) * 2019-08-27 2020-01-10 广州视源电子科技股份有限公司 基于安卓系统的资源调用方法及装置、电子设备
CN110908655A (zh) * 2019-10-16 2020-03-24 浙江大搜车软件技术有限公司 换肤方法、装置、计算机设备和可读存储介质
CN111399810A (zh) * 2020-03-11 2020-07-10 杭州涂鸦信息技术有限公司 一种iOS应用程序动态组件化开发方法及其系统和设备
CN111399864A (zh) * 2020-03-16 2020-07-10 北京五八信息技术有限公司 一种安卓系统应用程序基础包生成方法以及生成装置
CN111737504A (zh) * 2020-06-23 2020-10-02 网易(杭州)网络有限公司 图像资源检测方法、装置、设备及存储介质
CN111796855A (zh) * 2020-07-22 2020-10-20 大箴(杭州)科技有限公司 一种增量版本更新方法、装置、存储介质及计算机设备
CN112000340A (zh) * 2020-08-19 2020-11-27 北京字节跳动网络技术有限公司 文件处理方法、装置、电子设备及存储介质
CN112764798A (zh) * 2021-01-08 2021-05-07 重庆创通联智物联网有限公司 电子设备定制模式的实现方法及电子设备
CN113138790A (zh) * 2021-05-14 2021-07-20 广东九联科技股份有限公司 Android机顶盒客制化集成方法、装置及机顶盒集成开发系统
CN113282541A (zh) * 2021-06-04 2021-08-20 网易(杭州)网络有限公司 文件调用方法、装置和电子设备
CN113330427A (zh) * 2019-04-16 2021-08-31 深圳市欢太科技有限公司 快应用安装包调试方法、装置、电子设备以及存储介质
CN113760249A (zh) * 2021-01-05 2021-12-07 北京沃东天骏信息技术有限公司 程序文件的处理方法、装置及设备

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291494B (zh) * 2017-05-27 2021-02-02 北京五八信息技术有限公司 应用程序安装包的生成方法及装置
CN108363592B (zh) * 2018-02-05 2021-12-07 深圳壹账通智能科技有限公司 应用软件的运行方法、装置、设备及计算机可读存储介质
CN108536431A (zh) * 2018-04-04 2018-09-14 浙江小泰科技有限公司 一种全局命令行创建前端项目方法及系统
CN113672229A (zh) * 2020-05-14 2021-11-19 武汉斗鱼网络科技有限公司 一种目录注册方法、装置、设备及存储介质
CN112181472A (zh) * 2020-08-31 2021-01-05 贝壳技术有限公司 基于Flutter的代码添加方法、装置、电子设备和存储介质
CN113805892B (zh) * 2021-09-17 2024-04-05 杭州云深科技有限公司 一种异常apk的识别方法、电子设备及可读存储介质
CN116048617B (zh) * 2022-08-16 2024-05-24 荣耀终端有限公司 信息获取方法、装置、芯片、电子设备及介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1306757A2 (fr) * 2001-10-24 2003-05-02 Broadcom Corporation Tranfert de données accompagné de code pour recouvrements de logiciel
CN103186380A (zh) * 2011-12-31 2013-07-03 北大方正集团有限公司 Apk的开发方法和装置
CN104866293A (zh) * 2014-02-25 2015-08-26 北京娜迦信息科技发展有限公司 一种对Android应用程序扩展功能的方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461578B (zh) * 2014-12-26 2018-09-11 广州品唯软件有限公司 代码自动合并方法和系统
CN104731581B (zh) * 2015-02-03 2018-02-13 惠州Tcl移动通信有限公司 一种基于Android系统的框架代码修改方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1306757A2 (fr) * 2001-10-24 2003-05-02 Broadcom Corporation Tranfert de données accompagné de code pour recouvrements de logiciel
CN103186380A (zh) * 2011-12-31 2013-07-03 北大方正集团有限公司 Apk的开发方法和装置
CN104866293A (zh) * 2014-02-25 2015-08-26 北京娜迦信息科技发展有限公司 一种对Android应用程序扩展功能的方法及装置

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804083A (zh) * 2018-05-23 2018-11-13 有米科技股份有限公司 一种代码操作方法及装置
CN113330427A (zh) * 2019-04-16 2021-08-31 深圳市欢太科技有限公司 快应用安装包调试方法、装置、电子设备以及存储介质
CN110083344A (zh) * 2019-04-30 2019-08-02 北京金山安全软件有限公司 一种软件开发工具包修改方法、装置及电子设备
CN110083344B (zh) * 2019-04-30 2023-07-21 北京金山安全软件有限公司 一种软件开发工具包修改方法、装置及电子设备
CN110673827A (zh) * 2019-08-27 2020-01-10 广州视源电子科技股份有限公司 基于安卓系统的资源调用方法及装置、电子设备
CN110673827B (zh) * 2019-08-27 2022-12-20 广州视源电子科技股份有限公司 基于安卓系统的资源调用方法及装置、电子设备
CN110908655A (zh) * 2019-10-16 2020-03-24 浙江大搜车软件技术有限公司 换肤方法、装置、计算机设备和可读存储介质
CN110908655B (zh) * 2019-10-16 2023-12-05 浙江大搜车软件技术有限公司 换肤方法、装置、计算机设备和可读存储介质
CN111399810A (zh) * 2020-03-11 2020-07-10 杭州涂鸦信息技术有限公司 一种iOS应用程序动态组件化开发方法及其系统和设备
CN111399864A (zh) * 2020-03-16 2020-07-10 北京五八信息技术有限公司 一种安卓系统应用程序基础包生成方法以及生成装置
CN111737504A (zh) * 2020-06-23 2020-10-02 网易(杭州)网络有限公司 图像资源检测方法、装置、设备及存储介质
CN111737504B (zh) * 2020-06-23 2023-09-15 网易(杭州)网络有限公司 图像资源检测方法、装置、设备及存储介质
CN111796855B (zh) * 2020-07-22 2023-06-09 大箴(杭州)科技有限公司 一种增量版本更新方法、装置、存储介质及计算机设备
CN111796855A (zh) * 2020-07-22 2020-10-20 大箴(杭州)科技有限公司 一种增量版本更新方法、装置、存储介质及计算机设备
CN112000340A (zh) * 2020-08-19 2020-11-27 北京字节跳动网络技术有限公司 文件处理方法、装置、电子设备及存储介质
CN113760249A (zh) * 2021-01-05 2021-12-07 北京沃东天骏信息技术有限公司 程序文件的处理方法、装置及设备
CN112764798A (zh) * 2021-01-08 2021-05-07 重庆创通联智物联网有限公司 电子设备定制模式的实现方法及电子设备
CN112764798B (zh) * 2021-01-08 2023-10-03 重庆创通联智物联网有限公司 电子设备定制模式的实现方法及电子设备
CN113138790A (zh) * 2021-05-14 2021-07-20 广东九联科技股份有限公司 Android机顶盒客制化集成方法、装置及机顶盒集成开发系统
CN113138790B (zh) * 2021-05-14 2023-11-10 广东九联科技股份有限公司 Android机顶盒客制化集成方法、装置及机顶盒集成开发系统
CN113282541A (zh) * 2021-06-04 2021-08-20 网易(杭州)网络有限公司 文件调用方法、装置和电子设备
CN113282541B (zh) * 2021-06-04 2023-08-11 网易(杭州)网络有限公司 文件调用方法、装置和电子设备

Also Published As

Publication number Publication date
CN105912342A (zh) 2016-08-31

Similar Documents

Publication Publication Date Title
WO2017185606A1 (fr) Procédé et système de développement d'apk basé sur un mécanisme de superposition
CN110083382B (zh) 跨平台内容管理和分发系统
EP3204849B1 (fr) Systèmes et procédés pour mettre à jour des fichiers de code source
JP6294886B2 (ja) アプリケーション用の中間言語コードからネイティブコードを生成すること
US10540262B2 (en) Using edit and continue to dynamically set and unset optimizations in source code while debugging
Wolfson et al. Android developer tools essentials: Android Studio to Zipalign
Hellman Android programming: Pushing the limits
CN111740948B (zh) 数据包发布方法、动态更新方法、装置、设备及介质
JP2017146966A (ja) パッケージファイルに対する機能拡張方法およびシステム
CN103186380B (zh) Apk的开发方法和装置
CN111111201B (zh) 一种基于游戏的技能创建方法、装置、服务器及介质
CN113805882A (zh) 应用程序开发的方法、装置、电子设备及存储介质
CN111399840A (zh) 一种模块开发方法及装置
CN109857432B (zh) 一种游戏应用的热更新方法和装置
CN108351766B (zh) 从移动设备创建和修改应用
CN114461182A (zh) 流水线构建的方法、装置、电子设备及计算机可读存储介质
CN111596951A (zh) 一种工程文件的配置方法及装置
US20170052765A1 (en) Method and system for creating app
US9965271B2 (en) Projection of build and design-time inputs and outputs between different build environments
CN114721647B (zh) 一种基于无代码应用开发的面向对象编程方法
CN112068879A (zh) 基于配置化的客户端应用程序开发框架构建方法及装置
CN115857999A (zh) 基于vue的系统架构改造获得微前端系统架构的方法及系统
US11573787B1 (en) Hot reloading a running application with an unsaved source code change
US9646118B1 (en) Linking of simulators into a circuit design tool
CN104965719A (zh) 应用安装文件生成方法和装置

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16900115

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16900115

Country of ref document: EP

Kind code of ref document: A1