CN106843921A - Resource loading method and device - Google Patents

Resource loading method and device Download PDF

Info

Publication number
CN106843921A
CN106843921A CN201611143656.4A CN201611143656A CN106843921A CN 106843921 A CN106843921 A CN 106843921A CN 201611143656 A CN201611143656 A CN 201611143656A CN 106843921 A CN106843921 A CN 106843921A
Authority
CN
China
Prior art keywords
resource file
file
resource
folder
default
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.)
Granted
Application number
CN201611143656.4A
Other languages
Chinese (zh)
Other versions
CN106843921B (en
Inventor
赵冬霜
蔡振宾
周宏斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuanxin Information Technology Group Co.,Ltd.
Original Assignee
Beijing Yuanxin 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 Yuanxin Science and Technology Co Ltd filed Critical Beijing Yuanxin Science and Technology Co Ltd
Priority to CN201611143656.4A priority Critical patent/CN106843921B/en
Publication of CN106843921A publication Critical patent/CN106843921A/en
Application granted granted Critical
Publication of CN106843921B publication Critical patent/CN106843921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

This application discloses resource loading method and device, wherein methods described includes:Resource is loaded in response to smart machine, it is determined that with the presence or absence of the resource file with same names and/or form in default resource file folder in the file outside default resource file is pressed from both sides;There is the resource file with same names and/or form in default resource file folder in file outside in response to being pressed from both sides in default resource file, the file from outside default resource file folder is loaded with the resource file of same names and/or form and loads remaining resource file from default resource file folder.The present invention can simply and easily be customized and realize more feature and the system interface of personalization, and the influence to system is preferably minimized.

Description

Resource loading method and device
Technical field
The application is related to electric digital data processing field, more particularly to resource loading method and device.
Background technology
The method of existing custom-built system pattern is required to realize changing system style by way of burning third party ROM, This method is typically cumbersome, when also having the failure of brush machine often sometimes for different equipment, causes the equipment can not With the normal of influence user uses.In addition, the method for brush third party ROM has by malice implantation wooden horse, virus or wide sometimes Accuse, at this moment user often has the risk of the individual privacy information that is stolen.
The content of the invention
In order to overcome the deficiencies in the prior art, the technical problem to be solved in the present invention to be to provide a kind of resource loading Method and device, it can simply and easily change system style, without any risk.
In order to solve the above technical problems, resource loading method of the invention, including:
Resource is loaded in response to smart machine, it is determined that whether there is and institute in the file outside default resource file is pressed from both sides State the resource file of same names and/or form in default resource file folder;
Exist in file outside in response to being pressed from both sides in default resource file mutually of the same name with default resource file folder The resource file of title and/or form, the file from outside default resource file folder is loaded with same names and/or lattice The resource file of formula and from the default resource file folder load remaining resource file.
Used as the improvement of the method for the invention, methods described also includes:Establishment meets the self-defined of system code designation Resource folder;Resource file with same names and/or form in default resource file folder is saved in described making by oneself In adopted resource folder.
Used as the further improvement of the method for the invention, the User Defined Resource file is stored in ancillary equipment.
Used as the further improvement of the method for the invention, methods described also includes:In response to the ancillary equipment It is connected with the smart machine, makes smart machine start-up loading resource.
Improved as the another kind of the method for the invention, the file outside the folder from the default resource file adds Carrier has the resource file of same names and/or form and remaining resource file includes from default resource file folder loading: The resource file with same names and/or form be text when, from the text load its content and Remaining content is loaded from the corresponding text of default resource file folder.
In order to solve the above technical problems, resource loading device of the invention, including:
Judge module, for loading resource in response to smart machine, it is determined that the file outside default resource file folder In with the presence or absence of with the default resource file folder in same names and/or form resource file;
Load-on module, for existing in the file outside in response to being pressed from both sides in default resource file and default resource text The resource file of same names and/or form in part folder, the file from outside default resource file folder is loaded with phase Remaining resource file is loaded with the resource file of title and/or form and from default resource file folder.
In order to solve the above technical problems, tangible computer computer-readable recording medium of the invention, including for performing resource loading side The computer program code of method, the computer program code includes:For loading resource in response to smart machine, it is determined that silent With the presence or absence of the money with same names and/or form in default resource file folder in the file recognized outside resource folder The executable code of source file;For existing and the default resource in the file outside in response to being pressed from both sides in default resource file The resource file of same names and/or form in file, the file from outside default resource file folder is loaded with The resource file and the executable generation from remaining resource file of default resource file folder loading of same names and/or form Code.
In order to solve the above technical problems, the present invention provides a kind of device, including at least one processor;And at least one deposit Reservoir, containing computer program code, at least one memory and the computer program code are configured to, with institute At least one processor is stated so that described device performs at least part of step of resource loading method of the invention.
According to the present invention, without changing ROM, user or developer only need to oneself in mobile phone EMS memory or ancillary equipment The file for meeting resource loading rule is added in definition file, what system will automatically load and show these users customization is System resource.When user no longer needs new pattern, it is also possible to added by deleting the resource that meets in user-defined file folder The file of rule is carried to recover to load and show the system resource given tacit consent to.The program is simple and convenient, is easy to user and developer logical Cross simple treatment to customize and realize more feature and the system interface of personalization, and the influence to system be preferably minimized, The behavior of malicious user is avoided simultaneously.
After the detailed description of embodiment of the present invention is read in conjunction with the figure, other features of the invention and advantage will become more Plus it is clear.
Brief description of the drawings
Fig. 1 is the flow chart of the embodiment according to the inventive method.
Fig. 2 is the structural representation of the embodiment according to present system.
For clarity, these accompanying drawings are figure that is schematic and simplifying, and they are only gived for understanding institute of the present invention Necessary details, and omit other details.
Specific embodiment
Embodiments of the present invention and embodiment are described in detail with reference to the accompanying drawings.
By detailed description given below, the scope of application of the invention will be evident that.It will be appreciated, however, that detailed While thin description and specific example show the preferred embodiment of the present invention, they are given only for illustration purpose.
For the ease of following description, the implication of some terms is given below.
ROM refers to read-only storage mirror image.
System resource or resource file refer to default installation on mobile phone software need some picture files, content of text, Audio-video document and relevant configuration file.
Default resource file folder is that system is carried, and user and developer only have reading authority, do not have modification authority.
User Defined Resource file, for system default resource folder, user and developer are to this file Accompany reading and modification authority.
The file for meeting resource loading rule refers to that needs meet name and file format rule that system loads requirement automatically File.
Smart machine such as mobile phone can create system default resource folder, the operation system of prepackage in system partitioning when dispatching from the factory System acquiescence can be loaded and the resource file in display system default resource file folder.
Fig. 1 shows the flow chart of an embodiment of resource loading method of the invention.
Each step of resource loading method is specifically described with reference to flow chart shown in Fig. 1.
In step s 102, user created in the internal memory of mobile phone or other storage devices meet system code designation from Define resource folder.
In step S104, user will protect with the resource file of same names and/or form in system default resource folder It is stored in the User Defined Resource file.For picture, audio-video document, it is necessary to title is identical.For text, it is necessary to Title is identical, and its content meets call format.
In step S106, resource is loaded in response to mobile phone, it is first determined whether there is in User Defined Resource file with The resource file of same names and/or form in the default resource file folder.If it is judged that being "Yes", then treatment is carried out To step S108;Otherwise, treatment proceeds to step S110.
In step S108, the resource text of same names and/or form is loaded with from the User Defined Resource file Part and from the default resource file folder load remaining resource file so that mobile phone for example embodies the custom-built system sample of user Formula, and mobile phone or burning ROM need not be restarted.That is, for system style, user can only changing section system sample Formula, such as user commonly use the pattern of application.Certainly, user can also change whole system pattern.Equally, described with mutually of the same name And/or the resource file of form is when being called text, its content may only correspond to corresponding text in the default resource file folder A part for the content of presents, in this case, can load in it from the text in User Defined Resource file first Hold, then the corresponding text from default resource file folder loads remaining content.
In step s 110, from default resource file folder loading resource file.
The present invention will efficiently reduce the workload of custom-built system pattern, it is to avoid user is implanted malicious user security The risk of program.Additionally, exist while system default resource folder ensure the stability of a system, in User Defined Resource file In file it is problematic when, situations such as system is not in collapse.And the presence of User Defined Resource file ensure that customization system The easy flexibility of resource of uniting.
According to a kind of implementation method of the inventive method, the User Defined Resource file is stored in ancillary equipment, institute Stating method also includes:It is connected with the smart machine in response to the ancillary equipment, makes smart machine start-up loading resource.This Sample, enables users to more easily for example change the system style of mobile phone.
Fig. 2 shows the structural representation of an embodiment of resource loading device of the invention, and the device includes:Wound Modeling block 210, the User Defined Resource file of system code designation is met for creating;Preserving module 220, for will with it is described The resource file of same names and/or form is saved in the User Defined Resource file in default resource file folder;Judge Module 230, for loading resource in response to smart machine, it is determined that whether there is in the file outside default resource file is pressed from both sides With the resource file of same names and/or form in default resource file folder;Load-on module 240, in response to silent There is the resource text with same names and/or form in default resource file folder in the file recognized outside resource folder Part, the file from outside default resource file folder is loaded with the resource file of same names and/or form and from institute State default resource file folder and load remaining resource file.Wherein described load-on module 240 includes the first loading submodule 242, uses In when the resource file with same names and/or form is text, its content is loaded from the text And load remaining content from the corresponding text of default resource file folder.
A kind of implementation method of system according to the invention, the User Defined Resource file is stored in ancillary equipment. Under the situation, the resource loading device also includes starting module, in response to the ancillary equipment and the smart machine Connection, makes smart machine start-up loading resource.
Multiple difference embodiments described herein or its special characteristic, structure or characteristic can be at one of the invention or many It is appropriately combined in individual implementation method.In addition, in some cases, if suitably, in flow chart and/or stream treatment description step Rapid order can be changed, and accurately must not necessarily be performed in the described sequence.In addition, multiple different aspects of the invention can be used Software, hardware, firmware or its other computer-implemented modules or device for combining and/or performing the function carry out reality Apply.Software implementation of the invention may include to be stored in computer-readable medium and by holding that one or more processors are performed Line code.Computer-readable medium may include computer hard disc driver, ROM, RAM, flash memory, pocket computer storage medium such as CD-ROM, DVD-ROM, flash disc drives and/or such as other devices with USB (USB) interface, and/or appoint What its appropriate tangible or non-of short duration computer-readable medium or executable code can be preserved thereon and by computing device Computer storage.The present invention can be used with reference to any appropriate operating system.
Unless explicitly stated otherwise, singulative as used herein " ", " being somebody's turn to do " include plural reference (i.e. with " at least one " The meaning).It will be further understood that terminology used herein " having ", " including " and/or "comprising" show to exist it is described Feature, step, operation, element and/or part, but do not preclude the presence or addition of one or more other features, step, behaviour Work, element, part and/or its combination.Term "and/or" as used in this includes one or more relevant items enumerated Any and all combination.
Some currently preferred embodiments of the present invention is foregoing described, it should be emphasized, however, that the present invention is not limited to these Embodiment, and can be the other manner realization in the range of present subject matter.Those skilled in the art can be in the technology of the present invention The inspiration of design and do not depart from various changes and modifications are made to the present invention on the basis of present invention, these deformations or change Still fall within protection scope of the present invention.

Claims (10)

1. a kind of resource loading method, it is characterised in that methods described includes:
Resource is loaded in response to smart machine, it is determined that whether there is in the file outside default resource file is pressed from both sides silent with described Recognize the resource file of same names and/or form in resource folder;
In file outside in response to being pressed from both sides in default resource file exist with the default resource file folder in same names and/ Or the resource file of form, the file from outside default resource file folder is loaded with same names and/or form Resource file and from the default resource file folder load remaining resource file.
2. method according to claim 1, it is characterised in that methods described also includes:
Establishment meets the User Defined Resource file of system code designation;
Resource file with same names and/or form in default resource file folder is saved in the User Defined Resource text In part folder.
3. method according to claim 2, it is characterised in that the User Defined Resource file is stored in ancillary equipment In.
4. method according to claim 3, it is characterised in that methods described also includes:
It is connected with the smart machine in response to the ancillary equipment, makes smart machine start-up loading resource.
5. according to any described methods of claim 1-4, it is characterised in that outside the folder from the default resource file File is loaded with the resource file of same names and/or form and loads remaining resource text from default resource file folder Part includes:
When the resource file with same names and/or form is text, loaded in it from the text Hold and load remaining content from the corresponding text of default resource file folder.
6. a kind of resource loading device, it is characterised in that described device includes:
Judge module, for loading resource in response to smart machine, it is determined that being in the file outside default resource file is pressed from both sides The no resource file existed with same names and/or form in default resource file folder;
Load-on module, for existing in the file outside in response to being pressed from both sides in default resource file and default resource file folder The resource file of middle same names and/or form, the file from outside default resource file folder is loaded with mutually of the same name Claim and/or form resource file and from the default resource file folder load remaining resource file.
7. device according to claim 6, it is characterised in that described device also includes:
Creation module, the User Defined Resource file of system code designation is met for creating;
Preserving module, for the resource file with same names and/or form in default resource file folder to be saved in into institute In stating User Defined Resource file.
8. device according to claim 7, it is characterised in that the User Defined Resource file is stored in ancillary equipment In.
9. device according to claim 8, it is characterised in that described device also includes:
Starting module, for being connected with the smart machine in response to the ancillary equipment, makes smart machine start-up loading resource.
10. according to any described devices of claim 6-9, it is characterised in that the load-on module includes:
First loading submodule, for when the resource file with same names and/or form is text, from institute State text load its content and from the default resource file folder corresponding text load remaining content.
CN201611143656.4A 2016-12-13 2016-12-13 Resource loading method and device Active CN106843921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611143656.4A CN106843921B (en) 2016-12-13 2016-12-13 Resource loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611143656.4A CN106843921B (en) 2016-12-13 2016-12-13 Resource loading method and device

Publications (2)

Publication Number Publication Date
CN106843921A true CN106843921A (en) 2017-06-13
CN106843921B CN106843921B (en) 2020-07-10

Family

ID=59139816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611143656.4A Active CN106843921B (en) 2016-12-13 2016-12-13 Resource loading method and device

Country Status (1)

Country Link
CN (1) CN106843921B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595192A (en) * 2018-05-08 2018-09-28 青岛海信宽带多媒体技术有限公司 A kind of installation method and terminal device of application program
CN113448642A (en) * 2020-03-11 2021-09-28 成都鼎桥通信技术有限公司 System file access method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118558A (en) * 2007-07-10 2008-02-06 青岛海信移动通信技术股份有限公司 Converting method and apparatus for resource file
CN103702197A (en) * 2013-12-31 2014-04-02 乐视致新电子科技(天津)有限公司 Image resource re-directing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118558A (en) * 2007-07-10 2008-02-06 青岛海信移动通信技术股份有限公司 Converting method and apparatus for resource file
CN103702197A (en) * 2013-12-31 2014-04-02 乐视致新电子科技(天津)有限公司 Image resource re-directing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595192A (en) * 2018-05-08 2018-09-28 青岛海信宽带多媒体技术有限公司 A kind of installation method and terminal device of application program
CN108595192B (en) * 2018-05-08 2021-08-27 青岛海信宽带多媒体技术有限公司 Application program installation method and terminal equipment
CN113448642A (en) * 2020-03-11 2021-09-28 成都鼎桥通信技术有限公司 System file access method and device and electronic equipment

Also Published As

Publication number Publication date
CN106843921B (en) 2020-07-10

Similar Documents

Publication Publication Date Title
US10454942B2 (en) Managed clone applications
US10140113B2 (en) Data processing method and device of preset application after upgrading
CN113632086B (en) Editing in a file storage system using a license model based on a secure temporary session
KR101619557B1 (en) Computer application packages with customizations
RU2575985C2 (en) Method and apparatus for vetting executable program using model
CN103970563B (en) The method of dynamic load Android class
CN105204873B (en) A kind of terminal and application interface display methods
US9317681B2 (en) Information processing apparatus, information processing method, and computer program product
WO2016019893A1 (en) Application installation method and apparatus
WO2020063780A1 (en) Application layout restoration method and apparatus, device and storage medium
US8701195B2 (en) Method for antivirus in a mobile device by using a mobile storage and a system thereof
US20110225579A1 (en) Configurable software deployment
CN104866365A (en) Method and device for improving boot speed, and electronic equipment
KR102024820B1 (en) Desktop sharing method and mobile terminal
CN104035842A (en) Method for deleting and recovering built-in application program
CN103677638A (en) Method and device for processing private documents
CN103389905A (en) Plug-in loading method and plug-in loading system
CN106843921A (en) Resource loading method and device
CN112069468A (en) Method and equipment for dynamic watermarking of page
WO2019011083A1 (en) Private information processing method and apparatus, and mobile terminal
US11423175B1 (en) Systems and methods for protecting users
US9513928B2 (en) Method of operating multiple operating systems and the electronic device thereof
CN111930363B (en) Block interface code generation method and device
CN102280134A (en) Method for improving data security in removable storage device
CN107911820B (en) Private system data file management method and terminal equipment

Legal Events

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

Effective date of registration: 20210204

Address after: 101300 room 153, 1 / F, building 17, 16 Caixiang East Road, Nancai Town, Shunyi District, Beijing

Patentee after: Yuanxin Information Technology Group Co.,Ltd.

Address before: 100176 room 2222, building D, building 33, 99 Kechuang 14th Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Patentee before: BEIJING YUANXIN SCIENCE & TECHNOLOGY Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20170613

Assignee: Beijing Yuanxin Junsheng Technology Co.,Ltd.

Assignor: Yuanxin Information Technology Group Co.,Ltd.

Contract record no.: X2021110000018

Denomination of invention: Resource loading method and device

Granted publication date: 20200710

License type: Common License

Record date: 20210531