CN105630518A - Method and device for updating resources of Android application software - Google Patents

Method and device for updating resources of Android application software Download PDF

Info

Publication number
CN105630518A
CN105630518A CN201410589908.0A CN201410589908A CN105630518A CN 105630518 A CN105630518 A CN 105630518A CN 201410589908 A CN201410589908 A CN 201410589908A CN 105630518 A CN105630518 A CN 105630518A
Authority
CN
China
Prior art keywords
resource
apk
activity
updated
application software
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410589908.0A
Other languages
Chinese (zh)
Inventor
阎文斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Na Jia Development Of Information Science And Technology Co Ltd
Original Assignee
Beijing Na Jia Development Of Information Science And Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Na Jia Development Of Information Science And Technology Co Ltd filed Critical Beijing Na Jia Development Of Information Science And Technology Co Ltd
Priority to CN201410589908.0A priority Critical patent/CN105630518A/en
Publication of CN105630518A publication Critical patent/CN105630518A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and device for updating resources of Android application software. A specific implementation manner of the method comprises the following steps: constructing an Android software installation package APK with resources to be updated; creating an agency Activity and loading Activity of the APK; redirecting the resources to be updated through the agency Activity; and calling the resources to be updated in the APK according to the redirection. Through the implementation manner, the dynamic updating of the resources of application software can be realized without re-packaging the installation package of the application software.

Description

The method and apparatus that Android application software resources update
Technical field
The application relates to field of computer technology, is specifically related to field of terminal technology, particularly relates to the method and apparatus that Android application software resources update.
Background technology
In Android platform, after application software installation, if want the file under update contruction file (APK) installation directory to need super administrator right just can change, but if user opens super administrator right, it is likely that be subject to the invasion of Malware.
Generally, after application development completes, if resource file updates, such as add interface, amendment interface, function optimization etc., then needing packs to the installation kit of application software again just can normally complete renewal and run. Such as, current substantial amounts of payment application is required for third-party SDK (SDK, SoftwareDevelopmentKit) it is bundled in the installation kit of self, if paying SDK to update, then application vendor needs to repack the new application software installation kit issuing oneself, update cycle is frequent, and application vendor is accomplished by repacking application software installation kit continually, brings a lot of inconvenience. How to realize the resource updates of application software when not repacking compiling application software installation kit, be current problems faced.
Summary of the invention
In view of this, this application provides the method and apparatus that a kind of Android application software resources update.
On the one hand, this application provides a kind of method that Android application software resources update, described method includes:
Build the Android software installation kit APK comprising resource to be updated;
Create and act on behalf of Activity and load the Activity of described APK;
By the described Activity that acts on behalf of, described resource to be updated is redirected;
The resource to be updated in described APK is called according to described redirection.
In some optional implementations, described establishment is acted on behalf of Activity and loads the Activity of described APK and include:
Activity for described APK defines a base class Activity;
The described Activity of agency is configured by described base class Activity;
The described Activity that acts on behalf of performs the Activity of described APK.
In some optional implementations, the Android software installation kit APK that described structure comprises resource to be updated includes: by by resource file packing to be updated or compiling, generating Android software installation kit.
In some optional implementations, by the described Activity of agency described resource to be updated redirected and include described acting on behalf of the Activity heavy duty access method of described resource and path.
In some optional implementations, by the described Activity of agency, described resource to be updated redirection is also included: described APK arranges the authority of caller.
In some optional implementations, described described resource to be updated redirection by the described Activity of agency is also included: current caller is judged by described APK according to self context environmental, if being judged as, application software calls, then the context environmental that program is run switches to the context environmental of application software.
In some optional implementations, before building the Android software installation kit APK comprising resource to be updated, also include:
Detecting the presence of resource to be updated, if having detected, then performing the structure of the APK comprising described resource to be updated.
In some optional implementations, before call the resource to be updated in described APK according to described redirection, also include:
During described accessible with application software resource, it is judged that self is with or without resource requirement, if judged result is not for having, then in described APK, search resource according to redirecting.
On the other hand, present invention also provides the device that a kind of Android application software resources update, described device includes:
Build module, for building the Android software installation kit APK comprising resource to be updated;
Load-on module, acts on behalf of Activity for creating and loads the Activity of described APK;
Redirection module, is redirected described resource to be updated by the described Activity that acts on behalf of;
Calling module, calls the resource to be updated in described APK according to described redirection.
In some optional implementations, described device also includes:
Detection module, is used for detecting the presence of uninstalled resource, if having detected, then performs the structure of the APK comprising resource to be updated;
Judge module, for when accessible with application software resource, it is judged that self is with or without resource requirement, if judged result is not for having, then searches in described APK according to redirecting and accesses resource.
The method and apparatus that the Android application software resources that the application provides update, by building the Android software installation kit APK comprising resource to be updated, create subsequently and act on behalf of Activity and load the Activity of described APK, by the described Activity that acts on behalf of, described resource to be updated is redirected afterwards, the resource to be updated in described APK is called finally according to described redirection, the dynamic renewal of application resource can be realized without the installation kit of application software being repacked compiling, having saved system resource.
Accompanying drawing explanation
By reading the detailed description that non-limiting example is made made with reference to the following drawings, other features, purpose and advantage will become more apparent upon:
Fig. 1 is the flow chart of an embodiment of the method that the application Android application software resources update;
Fig. 2 is the flow chart of another embodiment of the method that the application Android application software resources update;
Fig. 3 is the flow chart of the further embodiment of the method that the application Android application software resources update;
Fig. 4 is the high-level schematic functional block diagram of an embodiment of the device that the application Android application software resources update.
Detailed description of the invention
Below in conjunction with drawings and Examples, the application is described in further detail. It is understood that specific embodiment described herein is used only for explaining related invention, but not the restriction to this invention. It also should be noted that, for the ease of describing, accompanying drawing illustrate only the part relevant to about invention.
It should be noted that when not conflicting, the embodiment in the application and the feature in embodiment can be mutually combined. Describe the application below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
Refer to Fig. 1, it illustrates the flow process 100 of an embodiment of a kind of Android application software resources update method of the application. The present embodiment is mainly applied to illustrate in intelligent terminal in this way, this terminal can include smart mobile phone, panel computer, E-book reader, MP3 player (MovingPictureExpertsGroupAudioLayerIII, dynamic image expert's compression standard audio frequency aspect 3), MP4 player (MovingPictureExpertsGroupAudioLayerIV, dynamic image expert's compression standard audio frequency aspect 4), pocket computer on knee and desk computer etc.
The method that described Android application resource updates, comprises the following steps:
Step 101, builds the Android software installation kit APK comprising resource to be updated.
Android software installation package file (AndroidPackage, APK) is that the application program in a kind of Android operation system installs file format. The code of one Android application program is wanted to run in Android device, must first be compiled, then be packaged as a file that be can recognise that by android system just can be run, and this can be " APK " by android system identification the file format run. The code file (.dex file) being compiled is comprised in one APK file, file resource (resources), Resource TOC (assets), certificate (certificates), and inventory file (manifestfile). A usual APK comprises following file:
META-INF file;
Resource folder required for res:APK;
AndroidManifest.xml: one traditional Android inventory file, for describing other application programs of the name of this application program, version number, requested permissions, the service of registration, link. This document uses XML file format, it is possible to being compiled as binary XML, the instrument of use is AXMLPrinter2 or apktool;
Classes.dex:classes file compiled by DEX after file format, on Dalvik virtual machine run main code part;
Resources.arsc: the Binary Resources file after compiling.
The software environment that software is depended on for existence is referred to as host environment, namely host program. After Android is application software initiated, its running environment is the host of software and program. In some optional implementations, build the Android software installation kit APK comprising resource to be updated and include: by by resource file packing to be updated or compiling, generating Android software installation kit. Wherein, resource file can be binary file, comprises the data that the interface to application software, word string, picture, menu etc. update, and is storable under the assigned catalogue of the such as download directory that SD card user sets. Above-mentioned resource file is put in a new APK by the modes such as compiling of packing, generates the APK file comprising resource to be updated. The resource file of APK generally has .res file extension, leaves in above-mentioned res file, comprises without updating the data such as word string that code just can change, picture, layout.
The compilation process of above-mentioned resource file can be realized by following steps: first resolves AndroidManifest.xml, then the resource bag being cited is added, collect resource file, and the resource collected is added to resource table (not including values class in the resource collected), (the resource general description of values class is that some are such as color to compile the resource that type is values afterwards, size, character string, patterns etc. are value simply) and Xml resource file, after Xml file is compiled as binary format, title and address according to resource generate resource symbol, then resource index table is generated, compiling AndroidManifest.xml file, ultimately produce R.java file, and APK file of packing.
Resource.arsc file in host program is the resource to be updated distribution address in APK file so that explorer can according to the address search being assigned to resource. Wherein, resource.arsc file is used for describing the configuration information of resource, and its content is equivalent to a resource index table. The APK comprising resource to be updated can realize resource updates by installation; Can not also install, by host program extract wherein resource to complete the renewal of resource.
In some optional implementations, above-mentioned resource to be updated includes encryption resource file and clear resources file. By signature file, above-mentioned resource file being encrypted, application software need to pass through signature authentication when loading the resource file of encryption, it is prevented that the malice of other plug-in units is distorted.
Step 102, creates and acts on behalf of Activity and load the Activity of described APK.
Moving object Activity is one of four big assemblies basic in Android, and it is an application component, is responsible for mutual with user. In the application, Activity is implemented as an independent class, and movable class can show a user interface being made up of view control, and event is responded.
In the present embodiment, when host program calls the APK comprising resource to be updated, first pass through application programming interface (ApplicationProgrammingInterface, API) APK is started, created by host program after startup and act on behalf of Activity, for making all logics acting on behalf of in the Activity of the Activity APK performing to comprise resource to be updated, a base class Activity need to be defined, base class Activity is configured acting on behalf of Activity by SetProxy method, then the execution of the Activity of the APK comprising resource to be updated is transferred to what create in host act on behalf of Activity. so, the Activity of the APK comprising resource to be updated is inherited from acting on behalf of Activity. above-mentioned API is restricted to Call Condition, when host program starts the APK comprising resource to be updated, namely calls and acts on behalf of Activity.
Step 103, is redirected described resource to be updated by the described Activity that acts on behalf of.
In some optional implementations, by the described Activity of agency, described resource to be updated is redirected the acquisition methods and path that include building a new explorer or heavily loaded described resource, make host program when calling resource, call the resource in APK according to the resource acquiring method of new explorer or heavy duty and path.
In some optional implementations, by the described Activity of agency, described resource to be updated redirection is also included: current caller is judged by described APK according to self context environmental, if being judged as, application software calls, then the context environmental that program is run switches to the context environmental of application software.
In some optional implementations, by the described Activity of agency, described resource to be updated redirection be may also include described APK and the authority of caller is set, whether caller is had permission and calls this resource and be configured, when resource is called, judge whether caller has the authority calling this resource, if caller identification result is self or host program, then resource is allowed to be called; If identification result is other plug-in units, then refusal calls resource, it is prevented that the plug-in unit of other lacks of competence calling or distorting APK, it is ensured that safety.
When the APK comprising resource to be updated self calls resource therein, authority differentiates by rear, calls resource according to the resource acquiring method of self and path.
Step 104, calls the resource to be updated in described APK according to described redirection.
When host calls the resource in APK file, first carry out authority discriminating, differentiate that acting on behalf of Activity by rear foundation accesses, to redirecting of resource, the resource obtained in APK, completes the renewal of resource. Host can according to self needing to call resource, the resource in dynamic load APK.
When APK is called by host, owing to acting on behalf of in Activity by building new explorer or heavy duty resource acquiring method and path implement resource redirection, the path of APK has been passed in host program, the resource management object AssetManager of host is by creating a new resource object, the resource in APK can be loaded, reach resource updates purpose. In the process, it is not necessary to whole application software is repacked compiling, only the resource selection in APK is loaded, can be achieved with the renewal of resource.
Above-described embodiment for the application, the scene of application can be, when application software has renewal, such as interface modification, function optimization etc., without repacking compiling, only build the APK file of not installing comprising resource to be updated, and by acting on behalf of Activity, resource therein is redirected, call resource according to redirection afterwards and can realize the dynamic renewal of resource.
The method that above-described embodiment of the application provides is by building the Android software installation kit APK comprising resource to be updated, create subsequently and act on behalf of Activity and load the Activity of described APK, by the described Activity that acts on behalf of, described resource to be updated is redirected afterwards, the resource to be updated in described APK is called finally according to described redirection, the dynamic renewal of application resource can be realized without the installation kit of application software being repacked compiling, having saved system resource.
With further reference to Fig. 2, it illustrates the flow process 200 of another embodiment of the method that Android application software resources update. The flow process 200 of this Android application software resources update method, comprises the following steps:
Step 201, detects the presence of resource to be updated, if having detected, then performs step 202.
In some optional implementations, it is possible to setting the detection cycle, resource updates is regularly detected by application software. When renewal having been detected, automatically load new resource.
In other optional modes, application software detects when resource has renewal, system send the instruction loading new resources, or chosen whether to load new resource by user.
Step 202, builds the Android software installation kit APK comprising resource to be updated.
In some optional implementations, build the Android software installation kit APK comprising resource to be updated and include: by by resource file packing to be updated or compiling, generating Android software installation kit. Above-mentioned resource file is put in a new APK by the modes such as compiling of packing, generates the APK file comprising resource to be updated.
Resource.arsc file in host program is the resource distribution address in uninstalled APK file so that explorer can according to the address search being assigned to resource. Wherein, resource.arsc file is used for describing the configuration information of resource, and its content is equivalent to a resource index table. The APK comprising resource to be updated can realize resource updates by installation; Can not also install, by host program extract wherein resource to complete the renewal of resource.
In some optional implementations, above-mentioned resource to be updated includes encryption resource file and clear resources file. By signature file, above-mentioned resource file is encrypted, signature authentication need to be passed through when host loads the resource file of encryption, it is prevented that the malice of other plug-in units is distorted.
Step 203, creates and acts on behalf of Activity and load the Activity of described APK.
In the present embodiment, when host program calls the APK comprising resource to be updated, first pass through application programming interface (ApplicationProgrammingInterface, API) APK is started, created by host program after startup and act on behalf of Activity, for making all logics acting on behalf of in the Activity of the Activity APK performing to comprise resource to be updated, a base class Activity need to be defined, base class Activity is configured acting on behalf of Activity by SetProxy, the execution of the Activity of the APK comprising resource to be updated is transferred to what create in host act on behalf of Activity. so, the Activity of the APK comprising resource to be updated is inherited from acting on behalf of Activity. above-mentioned API is restricted to Call Condition, when host program starts the APK comprising resource to be updated, namely calls and acts on behalf of Activity.
Step 204, is redirected described resource to be updated by the described Activity that acts on behalf of.
In some optional implementations, by the described Activity of agency, described resource to be updated is redirected the acquisition methods and path that include building a new explorer or heavily loaded described resource, make host program when calling resource, call the resource in APK according to the resource acquiring method of new explorer or heavy duty and path.
In some optional implementations, by the described Activity of agency, described resource to be updated redirection is also included: current caller is judged by described APK according to self context environmental, if being judged as, application software calls, then the context environmental that program is run switches to the context environmental of application software.
In some optional implementations, by the described Activity of agency, described resource to be updated redirection be may also include described APK and the authority of caller is set, whether caller is had permission and calls this resource and be configured, when resource is called, judge whether caller has the authority calling this resource, if caller identification result is self or host program, then resource is allowed to be called; If identification result is other plug-in units, then refusal calls resource, it is prevented that the plug-in unit of other lacks of competence calling or distorting APK, it is ensured that safety.
When the APK comprising resource to be updated self calls resource therein, authority differentiates by rear, calls resource according to the resource acquiring method of self and path.
Step 205, calls the resource to be updated in described APK according to described redirection.
When host calls the resource in APK file, first carry out authority discriminating, differentiate that acting on behalf of Activity by rear foundation accesses, to redirecting of resource, the resource obtained in APK, completes the renewal of resource. Host can according to self needing to call resource, the resource in dynamic load APK.
When APK is called by host, owing to acting on behalf of in Activity by building new explorer or heavy duty resource acquiring method and path implement resource redirection, the path of APK has been passed in host program, the resource management object AssetManager of host is by creating a new resource object, the resource in APK can be loaded, reach resource updates purpose. In the process, it is not necessary to whole application software is repacked compiling, only the resource selection in APK is loaded, can be achieved with the renewal of resource.
From figure 2 it can be seen that the embodiment corresponding with Fig. 1 the difference is that, the flow process 200 of the method that Android application software resources in the present embodiment update has had more the step 201 detecting the presence of resource to be updated. By the step 201 increased, the scheme that the present embodiment describes contributes to realizing detection and the selective updating automatically of resource, improves real-time and safety that application software resources update.
With further reference to Fig. 3, it illustrates the flow process 300 of the further embodiment of the method that Android application software resources update. The method that these Android application software resources update, comprises the following steps:
Step 301, builds the Android software installation kit APK comprising resource to be updated.
In some optional implementations, build the Android software installation kit APK comprising resource to be updated and include: by by resource file packing to be updated or compiling, generating Android software installation kit. Above-mentioned resource file is put in a new APK by the modes such as compiling of packing, generates the APK file comprising resource to be updated.
Resource.arsc file in host program is the resource distribution address in uninstalled APK file so that explorer can according to the address search being assigned to resource. Wherein, resource.arsc file is used for describing the configuration information of resource, and its content is equivalent to a resource index table. The APK comprising resource to be updated can realize resource updates by installation; Can not also install, by host program extract wherein resource to complete the renewal of resource.
In some optional implementations, above-mentioned resource to be updated includes encryption resource file and clear resources file. By signature file, above-mentioned resource file is encrypted, signature authentication need to be passed through when host loads the resource file of encryption, it is prevented that the malice of other plug-in units is distorted.
Step 302, creates and acts on behalf of Activity and load the Activity of described APK.
In the present embodiment, when host program calls the APK comprising resource to be updated, first pass through application programming interface (ApplicationProgrammingInterface, API) APK is started, created by host program after startup and act on behalf of Activity, for making all logics acting on behalf of in the Activity of the Activity APK performing to comprise resource to be updated, a base class Activity need to be defined, base class Activity is configured acting on behalf of Activity by SetProxy method, the execution of the Activity of the APK comprising resource to be updated is transferred to what create in host act on behalf of Activity. so, the Activity of the APK comprising resource to be updated is inherited from acting on behalf of Activity. above-mentioned API is restricted to Call Condition, when host program starts the APK comprising resource to be updated, namely calls and acts on behalf of Activity.
Step 303, is redirected described resource to be updated by the described Activity that acts on behalf of.
In some optional implementations, by the described Activity of agency, described resource to be updated is redirected the acquisition methods and path that include building a new explorer or heavily loaded described resource, make host program when calling resource, call the resource in APK according to the resource acquiring method of new explorer or heavy duty and path.
In some optional implementations, by the described Activity of agency, described resource to be updated redirection is also included: current caller is judged by described APK according to self context environmental, if being judged as, application software calls, then the context environmental that program is run switches to the context environmental of application software.
In some optional implementations, by the described Activity of agency, described resource to be updated redirection be may also include described APK and the authority of caller is set, whether caller is had permission and calls this resource and be configured, when resource is called, judge whether caller has the authority calling this resource, if caller identification result is self or host program, then resource is allowed to be called; If identification result is other plug-in units, then refusal calls resource, it is prevented that the plug-in unit of other lacks of competence calling or distorting APK, it is ensured that safety.
When the APK comprising resource to be updated self calls resource therein, authority differentiates by rear, calls resource according to the resource acquiring method of self and path.
Step 304, during described accessible with application software resource, it is judged that self is with or without resource requirement, if judged result is not for having, then performs step 305.
In some optional implementations, during accessible with application software resource, if self not this resource, then search in the APK comprising resource to be updated, owing to this resource acquiring method and path are heavily loaded, in the above-mentioned APK that resources to be accessed by is redirected.
Step 305, calls the resource to be updated in described APK according to described redirection.
When host calls the resource in APK file, first carry out authority discriminating, differentiate that acting on behalf of Activity by rear foundation accesses, to redirecting of resource, the resource obtained in APK, completes the renewal of resource. Host can according to self needing to call resource, the resource in dynamic load APK.
When APK is called by host, owing to acting on behalf of in Activity by building new explorer or heavy duty resource acquiring method and path implement resource redirection, the path of APK has been passed in host program, the resource management object AssetManager of host is by creating a new resource object, the resource in APK can be loaded, reach resource updates purpose. In the process, it is not necessary to whole application software is repacked compiling, only the resource selection in APK is loaded, can be achieved with the renewal of resource.
From figure 3, it can be seen that the embodiment corresponding with Fig. 1 the difference is that, when the flow process 300 of the method that Android application resource in the present embodiment updates has had more described accessible with application software resource, it is judged that self is with or without the step 304 of resource requirement. By the step 304 increased, the scheme of the present embodiment statement achieves host's more new resources as required, when comprising the existing resource file of application software in the APK file comprising resource to be updated, it is to avoid repeats to call and more new resources, has saved system resource.
With further reference to Fig. 4, it illustrates the structural representation of an embodiment of the device that Android application software resources update.
As shown in Figure 4, the Android application software resources updating device 400 described in the present embodiment includes: build module 401, load-on module 402, redirection module 403, calling module 404. Wherein, module 401 is built for building the Android software installation kit APK comprising resource to be updated; Load-on module 402 is acted on behalf of Activity for creating and loads the Activity of described APK; Described resource to be updated is redirected by redirection module 403 by the described Activity that acts on behalf of; Calling module 404 calls the resource to be updated in described APK according to described redirection.
In the present embodiment, after application software, building module 401 is APK file by resource construction to be updated, created by load-on module 402 afterwards and act on behalf of Activity and load the Activity building the APK that module 401 builds, resource to be updated in APK is redirected by redirection module 403, finally controlled application program by calling module 404 call according to described redirection and load resource, complete the renewal of resource.
In some optional embodiments, described device 400 also includes detection module (not shown), and described detection module is for detecting APK resource to be updated, if having detected, is then APK by resource construction to be updated; And judge module (not shown), described judge module is for when described accessible with application software resource, it is judged that self is with or without resource requirement, if judged result is not for having, then searches in described APK according to redirecting and accesses resource.
It is described in module involved in the embodiment of the present application to be realized by the mode of software, it is also possible to realized by the mode of hardware. Described module can also be arranged within a processor, for instance, it is possible to it is described as: a kind of processor includes building module, load-on module, redirection module and calling module. Wherein, the title of these modules is not intended that the restriction to this module itself under certain conditions, for instance, build module and be also described as " module for building ".
As on the other hand, present invention also provides a kind of computer-readable recording medium, this computer-readable recording medium can be the computer-readable recording medium comprised in device described in above-described embodiment; Can also be individualism, be unkitted the computer-readable recording medium allocating in terminal. Described computer-readable recording medium storage has one or more than one program, and described program is used for performing to be described in the method that the Android application software resources of the application update by one or more than one processor.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle. Skilled artisan would appreciate that, invention scope involved in the application, it is not limited to the technical scheme of the particular combination of above-mentioned technical characteristic, when also should be encompassed in without departing from described inventive concept simultaneously, other technical scheme being carried out combination in any by above-mentioned technical characteristic or its equivalent feature and being formed. Such as features described above and (but not limited to) disclosed herein have the technical characteristic of similar functions and replace mutually and the technical scheme that formed.

Claims (10)

1. the method that Android application software resources update, it is characterised in that described method includes:
Build the Android software installation kit APK comprising resource to be updated;
Create and act on behalf of Activity and load the Activity of described APK;
By the described Activity that acts on behalf of, described resource to be updated is redirected;
The resource to be updated in described APK is called according to described redirection.
2. the method that Android application software resources according to claim 1 update, it is characterised in that described establishment is acted on behalf of Activity and loads the Activity of described APK and include:
Activity for described APK defines a base class Activity;
The described Activity of agency is configured by described base class Activity;
The described Activity that acts on behalf of performs the Activity of described APK.
3. the method that Android application software resources according to claim 1 update, it is characterized in that, the Android software installation kit APK that described structure comprises resource to be updated includes: by by resource file packing to be updated or compiling, generating Android software installation kit.
4. the method that Android application software resources according to claim 1 update, it is characterised in that described described resource to be updated redirection by the described Activity of agency includes the described access method acting on behalf of the Activity described resource of heavy duty and path.
5. the method that Android application software resources according to claim 4 update, it is characterised in that described described resource to be updated redirection by the described Activity of agency is also included: described APK arranges the authority of caller.
6. the method that the Android application software resources according to claim 4 or 5 update, it is characterized in that, described described resource to be updated redirection by the described Activity of agency is also included: current caller is judged by described APK according to self context environmental, if being judged as, application software calls, then the context environmental that program is run switches to the context environmental of application software.
7. the method that Android application software resources according to claim 1 update, it is characterised in that before building the Android software installation kit APK comprising resource to be updated, also include:
Detecting the presence of resource to be updated, if having detected, then performing the structure of the APK comprising described resource to be updated.
8. the method that Android application software resources according to claim 1 update, it is characterised in that before call the resource to be updated in described APK according to described redirection, also include:
During described accessible with application software resource, it is judged that self is with or without resource requirement, if judged result is not for having, then in described APK, search resource according to redirecting.
9. the device that Android application software resources update, it is characterised in that described device includes:
Build module, for building the Android software installation kit APK comprising resource to be updated;
Load-on module, acts on behalf of Activity for creating and loads the Activity of described APK;
Redirection module, is redirected described resource to be updated by the described Activity that acts on behalf of;
Calling module, calls the resource to be updated in described APK according to described redirection.
10. the device that Android application software resources according to claim 10 update, it is characterised in that described device also includes:
Detection module, is used for detecting the presence of uninstalled resource, if having detected, then performs the structure of the APK comprising resource to be updated;
Judge module, for when accessible with application software resource, it is judged that self is with or without resource requirement, if judged result is not for having, then searches in described APK according to redirecting and accesses resource.
CN201410589908.0A 2014-10-28 2014-10-28 Method and device for updating resources of Android application software Pending CN105630518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410589908.0A CN105630518A (en) 2014-10-28 2014-10-28 Method and device for updating resources of Android application software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410589908.0A CN105630518A (en) 2014-10-28 2014-10-28 Method and device for updating resources of Android application software

Publications (1)

Publication Number Publication Date
CN105630518A true CN105630518A (en) 2016-06-01

Family

ID=56045508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410589908.0A Pending CN105630518A (en) 2014-10-28 2014-10-28 Method and device for updating resources of Android application software

Country Status (1)

Country Link
CN (1) CN105630518A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168719A (en) * 2017-06-02 2017-09-15 广州视源电子科技股份有限公司 Application program running method and device, terminal and computer readable storage medium
CN107193580A (en) * 2017-03-31 2017-09-22 北京元心科技有限公司 Method for updating system and non-of short duration computer-readable medium
CN107436781A (en) * 2017-06-28 2017-12-05 北京五八信息技术有限公司 APK file treating method and apparatus
CN107678789A (en) * 2016-07-27 2018-02-09 平安科技(深圳)有限公司 The update method and device at UI interfaces
CN107885540A (en) * 2016-09-28 2018-04-06 腾讯科技(深圳)有限公司 A kind of method, apparatus and terminal of loading application programs static resource
CN108228264A (en) * 2016-12-12 2018-06-29 北京国双科技有限公司 plug-in resource loading method and device
CN109076126A (en) * 2017-03-21 2018-12-21 华为技术有限公司 Permission update method and terminal device
CN110399196A (en) * 2019-07-30 2019-11-01 努比亚技术有限公司 Wearable device and its changing interface implementation method and computer readable storage medium
CN110673827A (en) * 2019-08-27 2020-01-10 广州视源电子科技股份有限公司 Resource calling method and device based on android system and electronic equipment
CN110837378A (en) * 2018-08-16 2020-02-25 腾讯科技(深圳)有限公司 Calling method and device for software development kit SDK function
WO2020063008A1 (en) * 2018-09-26 2020-04-02 Oppo广东移动通信有限公司 Resource configuration method and apparatus, terminal, and storage medium
CN113312073A (en) * 2021-06-15 2021-08-27 上海益世界信息技术集团有限公司广州分公司 Installation package file processing method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120144379A1 (en) * 2010-12-07 2012-06-07 Hon Hai Precision Industry Co., Ltd. System and method for updadting software
US20130139139A1 (en) * 2011-11-28 2013-05-30 Wyse Technology Inc. Automatic updating of an application or a driver on a client device using a deployment configuration file
CN103176810A (en) * 2011-12-26 2013-06-26 北京神州泰岳软件股份有限公司 Method and system for android operating system terminal skin changing
CN103530156A (en) * 2013-10-17 2014-01-22 北京奇虎科技有限公司 Method and device for dynamically loading and calling program
CN103677877A (en) * 2012-09-12 2014-03-26 腾讯科技(深圳)有限公司 Method and device for updating local advertisement software development kit
CN103744669A (en) * 2013-12-26 2014-04-23 世纪龙信息网络有限责任公司 Method and system for creation and calling of Android system Activity plug-ins

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120144379A1 (en) * 2010-12-07 2012-06-07 Hon Hai Precision Industry Co., Ltd. System and method for updadting software
US20130139139A1 (en) * 2011-11-28 2013-05-30 Wyse Technology Inc. Automatic updating of an application or a driver on a client device using a deployment configuration file
CN103176810A (en) * 2011-12-26 2013-06-26 北京神州泰岳软件股份有限公司 Method and system for android operating system terminal skin changing
CN103677877A (en) * 2012-09-12 2014-03-26 腾讯科技(深圳)有限公司 Method and device for updating local advertisement software development kit
CN103530156A (en) * 2013-10-17 2014-01-22 北京奇虎科技有限公司 Method and device for dynamically loading and calling program
CN103744669A (en) * 2013-12-26 2014-04-23 世纪龙信息网络有限责任公司 Method and system for creation and calling of Android system Activity plug-ins

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
SINGWHATIWANNA: ""Android apk动态加载机制的研究(二):资源加载和activity生命周期管理"", 《HTTP://BLOG.CSDN.NET/SINGWHATIWANNA/ARTICLE/DETAILS/23387079》 *
SINGWHATIWANNA: ""Android apk动态加载机制的研究"", 《HTTP://BLOG.CSDN.NET/ SINGWHATIWANNA/ARTICLE/DETAILS/22597587》 *
TRINEA: ""Android插件化动态升级"", 《HTTPS://WWW.CNBLOGS.COM/TRINEA/P/3980597.HTML》 *
YUANZEYAO: ""实现Android动态加载APK(Fragment or Activity实现)"", 《HTTP://BLOG.CSDN.NET/YUANZEYAO/ARTICLE/DETAILS/38565345》 *
邱彦林: "《AIR Android应用开发实践》", 31 August 2012, 北京:机械工业出版社 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678789A (en) * 2016-07-27 2018-02-09 平安科技(深圳)有限公司 The update method and device at UI interfaces
CN107885540A (en) * 2016-09-28 2018-04-06 腾讯科技(深圳)有限公司 A kind of method, apparatus and terminal of loading application programs static resource
CN108228264A (en) * 2016-12-12 2018-06-29 北京国双科技有限公司 plug-in resource loading method and device
CN108228264B (en) * 2016-12-12 2021-07-30 北京国双科技有限公司 Plug-in resource loading method and device
CN109076126B (en) * 2017-03-21 2020-09-18 华为技术有限公司 Permission updating method and terminal equipment
CN109076126A (en) * 2017-03-21 2018-12-21 华为技术有限公司 Permission update method and terminal device
CN107193580A (en) * 2017-03-31 2017-09-22 北京元心科技有限公司 Method for updating system and non-of short duration computer-readable medium
CN107168719A (en) * 2017-06-02 2017-09-15 广州视源电子科技股份有限公司 Application program running method and device, terminal and computer readable storage medium
CN107436781A (en) * 2017-06-28 2017-12-05 北京五八信息技术有限公司 APK file treating method and apparatus
CN110837378B (en) * 2018-08-16 2021-07-02 腾讯科技(深圳)有限公司 Calling method and device for software development kit SDK function
CN110837378A (en) * 2018-08-16 2020-02-25 腾讯科技(深圳)有限公司 Calling method and device for software development kit SDK function
WO2020063008A1 (en) * 2018-09-26 2020-04-02 Oppo广东移动通信有限公司 Resource configuration method and apparatus, terminal, and storage medium
CN110399196A (en) * 2019-07-30 2019-11-01 努比亚技术有限公司 Wearable device and its changing interface implementation method and computer readable storage medium
CN110399196B (en) * 2019-07-30 2024-04-23 努比亚技术有限公司 Wearable device, interface switching implementation method thereof and computer readable storage medium
CN110673827A (en) * 2019-08-27 2020-01-10 广州视源电子科技股份有限公司 Resource calling method and device based on android system and electronic equipment
CN110673827B (en) * 2019-08-27 2022-12-20 广州视源电子科技股份有限公司 Resource calling method and device based on android system and electronic equipment
CN113312073A (en) * 2021-06-15 2021-08-27 上海益世界信息技术集团有限公司广州分公司 Installation package file processing method and related device
CN113312073B (en) * 2021-06-15 2022-05-27 上海益世界信息技术集团有限公司广州分公司 Installation package file processing method and related device

Similar Documents

Publication Publication Date Title
CN105630518A (en) Method and device for updating resources of Android application software
CN103049692B (en) A kind of application installation method, device and equipment
Batyuk et al. Using static analysis for automatic assessment and mitigation of unwanted and malicious activities within Android applications
KR101456489B1 (en) Method and apparatus for managing access privileges in a CLDC OSGi environment
CN108536451B (en) Method and device for embedding embedded point of application program
KR101518420B1 (en) Apparatus and method for managing apk file in a android platform
CN103970563B (en) The method of dynamic load Android class
US20180129794A1 (en) Method for Protecting Dex File from Decompilation in Android System
CN104424423B (en) The permission of application program determines method and apparatus
CN103365644A (en) Method and device for expanding software functions
CN103778373A (en) Virus detection method and device
CN103902265A (en) Application implementation method and application implementation device
CN102455931B (en) Method and system for developing Android platform engineering
WO2015050588A2 (en) Method and system for combining multiple applications into a single binary file while maintaining per process sandboxing
CN110727440A (en) Software packaging method
US9280674B2 (en) Information processing apparatus and method of controlling same
CN110333872B (en) Application processing method, device, equipment and medium
CN105159788A (en) Method and system for dynamic resource sharing between Android applications
US20180285426A1 (en) Systems and methods for package component visualizations
CN103544434A (en) Method and terminal used for ensuring safe operation of application program
Alepis et al. Hey doc, is this normal?: Exploring android permissions in the post marshmallow era
CN106897607A (en) A kind of method for monitoring application program and device
CN105516154A (en) Security policy configuration method and device applied to SEAndroid (Security-Enhanced Android) system
CN106569880A (en) Method and system for dynamically sharing resources between Android applications
CN106055375A (en) Application program installation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160601