CN112256237A - Operating system customization method, customization system, electronic equipment and customized resource file - Google Patents

Operating system customization method, customization system, electronic equipment and customized resource file Download PDF

Info

Publication number
CN112256237A
CN112256237A CN202011034598.8A CN202011034598A CN112256237A CN 112256237 A CN112256237 A CN 112256237A CN 202011034598 A CN202011034598 A CN 202011034598A CN 112256237 A CN112256237 A CN 112256237A
Authority
CN
China
Prior art keywords
file
guide
label
attribute
tag
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
CN202011034598.8A
Other languages
Chinese (zh)
Other versions
CN112256237B (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.)
Shenzhen Youjin Payment Technology Co ltd
Original Assignee
Shenzhen Youjin Payment 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 Shenzhen Youjin Payment Technology Co ltd filed Critical Shenzhen Youjin Payment Technology Co ltd
Priority to CN202011034598.8A priority Critical patent/CN112256237B/en
Publication of CN112256237A publication Critical patent/CN112256237A/en
Application granted granted Critical
Publication of CN112256237B publication Critical patent/CN112256237B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • 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/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The invention relates to an operating system customization method, a customization system, electronic equipment and a customization resource file, comprising the following steps: s1, obtaining a customized resource file with a preset format, and analyzing a root directory in the customized resource file to obtain a first guide file; s2, analyzing the first guide file to obtain a first guide label and an attribute label of the first guide label, judging whether the attribute label of the first guide label meets the requirement, if so, executing S3, and if not, ignoring the first guide label and executing S4; s3, acquiring corresponding file resources according to the first guide label to generate a corresponding system file through analysis; s4, confirming whether the first guide labels corresponding to the first guide files all finish attribute marking judgment, if so, executing S5, and if not, executing S2; and S5, generating a final customized operating system according to the system file. The implementation of the invention can realize a uniform customization process, the process is simple, and the customization process with various requirements can be easily realized.

Description

Operating system customization method, customization system, electronic equipment and customized resource file
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an operating system customization method, a customization system, an electronic device, and a customized resource file.
Background
For the PDAs and POS applied in various industries at present, the industries of the applications are different, the corresponding user requirements are also different, and different customized OSs are generated based on different requirements. For example, if there are many demand items in the industry demand, the corresponding custom task amount is large. Especially, the cost and efficiency of some small-demand and large-scale customized projects are not in direct proportion. Moreover, customization is demanding, which requires a lot of manpower and material resources since each custom OS needs to go through a specific customization and OS compilation.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide an operating system customization method, a customization system, an electronic device and a customized resource file, aiming at the above-mentioned defects in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: constructing an operating system customization method comprising:
s1, obtaining a customized resource file generated according to a preset format, and analyzing a root directory in the customized resource file to obtain a first guide file;
s2, analyzing the first guide file to obtain a first guide label in the first guide file and an attribute label of the first guide label, and judging whether the attribute label of the first guide label meets the requirement, if so, executing step S3, otherwise, ignoring the first guide label and executing step S4;
s3, acquiring corresponding file resources according to the first guide label to generate a corresponding system file through analysis;
s4, confirming whether the first guide labels corresponding to the first guide files all finish attribute marking judgment, if so, executing a step S5, and if not, executing a step S2;
and S5, generating a final customized operating system according to the system file.
Preferably, in the step S2, the acquiring the first index tag in the first index file and the attribute flag of the first index tag includes:
analyzing the custom XML file, and acquiring a name corresponding to the custom XML file according to the custom ID in the custom XML file, so as to acquire the first guide tag and the attribute tag of the first guide tag according to the name.
Preferably, the attribute flag of the first index tag includes true and false, and the attribute flag of the first index tag satisfies the preset requirement only when the attribute flag of the first index tag is true.
Preferably, an operating system customization method of the present invention further includes:
s61, acquiring the sub-target corresponding to the first guide label, and confirming whether a second guide file is arranged under the sub-target corresponding to the first guide label, if so, executing S62, and if not, executing the step S3;
s62, analyzing the second guide file to obtain a second guide label corresponding to the first guide label and an attribute label of the second guide label;
s63, generating a corresponding system file according to the attribute tag of the second guide tag, and executing the step S4.
Preferably, the second guideline file is an XML file having the same name as the first guideline tag corresponding thereto.
Preferably, the attribute tag of the second guidance tag is an apk file name corresponding to the second guidance tag, and the generating a corresponding system file according to the attribute tag of the second guidance tag includes:
and acquiring the file resource corresponding to the second guide label according to the attribute mark of the second guide label to analyze and generate a corresponding system file.
The present invention also provides an operating system customization system, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a customized resource file generated according to a preset format and analyzing a root directory in the customized resource file to acquire a first guide file;
the analysis unit is used for analyzing the first guide file to obtain a first guide label in the first guide file and an attribute mark of the first guide label, judging whether the attribute mark of the first guide label meets a requirement or not, and outputting a first result when the attribute mark meets a preset requirement, otherwise, outputting a second result;
the first execution unit is used for acquiring the file resource corresponding to the first guide label to analyze and generate a corresponding system file when the analysis unit outputs a first result;
the judging unit is used for confirming whether the first guide labels corresponding to the first guide files are judged completely, outputting a positive result when the judgment is finished, and driving the analyzing unit to act if the judgment is not finished;
the second execution unit is used for generating a final customized operating system according to the system file when the judging unit outputs a positive result;
and the third execution unit is used for driving the judgment unit to act when the analysis unit outputs the second result.
The present invention also constructs a customized resource file comprising:
the system comprises a plurality of first configuration files arranged under a root directory and a first guide file arranged with a first configuration file level directory;
the first index file is internally provided with a plurality of first index tags corresponding to the first configuration file, each first index tag is provided with a first attribute mark, and when the first index file is executed, whether the first configuration file corresponding to the first index tag is executed or not is determined through the first attribute marks.
Preferably, a customized resource file of the present invention further comprises:
a plurality of second configuration files arranged under the subdirectory of the first configuration file and a second guide file arranged with the second configuration file horizontal directory;
and when the second guidance file is executed, the second configuration file corresponding to the first guidance label is obtained through the second attribute label.
The invention also features an electronic device including a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the operating system customization method according to any one of the above.
The implementation of the operating system customization method, the customization system, the electronic equipment and the customized resource file has the following beneficial effects: the method realizes a uniform customization process, has a simple process, and can easily realize the customization process with various requirements.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a flowchart of an operating system customization method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another embodiment of a method for customizing an operating system according to the present invention;
FIG. 3 is a logical block diagram of one embodiment of an operating system customization system of the present invention;
FIG. 4 is a diagram of a first embodiment of a customized resource file of the present invention.
Detailed Description
For a more clear understanding of the technical features, objects and effects of the present invention, embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
As shown in fig. 1, in a first embodiment of an operating system customization method of the present invention, the method includes: s1, obtaining a customized resource file generated according to a preset format, and analyzing a root directory in the customized resource file to obtain a first guide file; specifically, the customized resource file is generated according to a preset format, and in the operating system customizing process, in the operating system generating process, the customized resource file is analyzed and corresponding operation is performed according to the analysis result. In the analysis process, the root directory of the customized file is firstly analyzed, and a first guide file under the root directory is obtained. The first index file may be obtained according to file attributes, such as a file name or a file suffix name.
S2, analyzing the first guide file to obtain a first guide label in the first guide file and an attribute label of the first guide label, and judging whether the attribute label of the first guide label meets the requirement, if so, executing a step S3, otherwise, ignoring the first guide label and executing a step S4; specifically, the acquired first guidance file is analyzed, and a first guidance label is acquired from the first guidance file, wherein the first guidance label corresponds to a function module of the operating system and is used for guiding the corresponding function module so as to perform corresponding operation on the function module as required. Different first guide labels correspond to different functional modules one to one. In the actual use process, different operating systems are configured with different functional modules, when the first guide tag is set, the first guide tag can cover more functional modules configured by a plurality of different operating systems, and in the specific operating system generation process, the first guide tag selects the functional module to be processed according to the attribute of the first guide tag which is set in advance. That is, according to the attribute of the first guide tag, it is really necessary to skip the functional module corresponding to the first guide tag, so as not to generate the corresponding functional module in the generated operating system.
S3, acquiring corresponding file resources according to the first guide label to generate a corresponding system file through analysis; specifically, when it is determined that the operating system needs to add a corresponding function module according to the attribute flag of the first guide tag, the corresponding file resource is obtained according to the first guide tag and is analyzed to generate a corresponding system file, that is, the system file can be understood as a certain function corresponding to the operating system.
S4, confirming whether the first guide labels corresponding to the first guide files all finish attribute marking judgment, if so, executing a step S5, and if not, executing a step S2; and S5, generating a final customized operating system according to the system file. In the process of analyzing the first guide file, determining whether the first guide tags in the first guide file all complete the judgment of the attribute marks, namely determining that the system files of the customized operating system corresponding to the customized resource file are all generated after all the first guide tags complete the judgment of the attribute marks, and at this moment, the customized operating system generated according to the system files is the final customized operating system.
Optionally, in step S2, the obtaining the first guideline label in the first guideline file and the attribute flag of the first guideline label includes: analyzing the custom XML file, and acquiring a corresponding name according to the custom ID in the custom XML file, so as to acquire the first guide tag and the attribute mark of the first guide tag according to the name. Specifically, the first guidance file may be a custom XML file set in the root directory, and the specific process of obtaining the first guidance file is to parse the custom XML file, obtain a corresponding name according to a custom ID in the custom XML file, and perform attribute tag association on the name.
Optionally, the attribute flag of the first guidance label includes true and false, and the attribute flag of the first guidance label meets the preset requirement only when the attribute flag of the first guidance label is true. Specifically, when it acquires the attribute tag association of the corresponding name for the custom ID, it may define whether it needs to be executed through true and false. In a particular embodiment, parsing the custom XML file results in the following,
Figure BDA0002704813440000051
Figure BDA0002704813440000061
the names of the corresponding system functions can be respectively obtained according to the custom ID, and are respectively "apps", "key", "property", "resource", "the me", "update", "key", "description", and the like, when the first guide tag is obtained through analysis, that is, the system function name is obtained, the attribute tag of the first guide tag can be judged at the same time, the attribute tag of the first guide tag is marked as true or false, and the function tag marked as true is subjected to an action of obtaining the corresponding file resource.
Optionally, as shown in fig. 2, the operating system customization method of the present invention further includes:
s61, acquiring the sub-target corresponding to the first guide label, and confirming whether a second guide file is arranged under the sub-target corresponding to the first guide label, if so, executing S62, and if not, executing S3;
s62, analyzing the second guide file to obtain a second guide label corresponding to the first guide label and an attribute label of the second guide label;
s63, generating the corresponding system file according to the attribute tag of the second guide tag, and executing the step S4.
Specifically, in the functional module division process of the operating system, there may be division of a large functional module into small functional modules of the next hierarchy. At this time, when the attribute of the first guidance label is judged to meet the requirement, the corresponding sub-target, namely the functional module corresponding to the first level, is obtained according to the first guidance label, and then whether a second guidance file is arranged under the sub-target corresponding to the first guidance label or not is confirmed, namely whether the functional module further comprises a corresponding sub-functional module or not is confirmed. It can be understood that the second guide file corresponds to the sub-function module, and when there is no second guide file under the sub-target corresponding to the first guide tag, it may directly obtain the corresponding file resource according to the first guide tag, and when there is a second guide file under the sub-target corresponding to the first guide tag, it is necessary to parse the second guide file to obtain the second guide tag corresponding to the first guide tag and the attribute flag of the first guide tag. And generating the corresponding system file of the first guide label correspondingly according to the second guide label and the attribute mark of the second guide label.
Optionally, the second guidance file is an XML file having the same name as the first guidance tag corresponding to the second guidance file. Wherein the name of the first guideline file may be the same as the name of the first guideline tag for a corresponding mapping. In a specific embodiment, in the process of parsing the sub-target corresponding to the property, the property XML file is obtained, and the property XML file is parsed, which specifically includes the following steps:
<?xml version="1.0"encoding="utf-8"?>
<propertygroup>
<property id="1"name="ro.build.id">PKQ1.190118.001</property>
<property id="2"name="ro.vendor.build.id">V1.0.0.PKQ1.190118.001</property>
<property id="3"name="ro.build.sw">V1.0.0</property>
<property id="4"name="ro.build.display.id">PKQ1.190118.001 670release-keys</property>
<property id="5"name="ro.build.version.sdk">28</property>
<property id="6"name="ro.build.version.release">9</property>
<property id="7"name="ro.build.version.security_patch">2020-05-06</property>
<property id="8"name="ro.build.date">Mon May 11 21:17:25CST2020</property>
<property id="9"name="ro.build.type">user</property>
<property id="10"name="ro.build.tags">release-keys</property>
</propertygroup>
i.e., generating system attributes via the second index tag and its corresponding attribute tag.
Optionally, in some embodiments, the attribute flag of the second guidance flag is an apk file name corresponding to the second guidance flag, and generating the corresponding system file according to the attribute flag of the second guidance flag includes: and acquiring the file resource corresponding to the second guide label according to the attribute label of the second guide label to analyze and generate a corresponding system file. Specifically, in some system file configuration processes, it may directly refer to an existing configuration, and then may directly mark the attribute of the second index tag as an apk file corresponding to the second index tag. In a specific example, parsing the app xml file results in the following,
<?xml version="1.0"encoding="utf-8"?>
<apps>
<!--system/app-->
<app id="1"name="app">wechat.apk</property>
<!--system/priv-app-->
<app id="2"name="priv-app">filemanager.apk</property>
<!--vendor/app-->
<app id="3"name="vendor-app">autuinstall.apk</property>
<!--vendor/priv-app-->
<app id="4"name="vendor-priv-app">USettings.apk</property>
<!--Pre-installed apps-->
<app id="5"name="fretab-app">Chrome.apk</property>
</apps>。
as shown in fig. 3, an operating system customization system of the present invention includes:
an obtaining unit 110, configured to obtain a customized resource file generated according to a preset format, and analyze a root directory in the customized resource file to obtain a first guide file;
the parsing unit 120 is configured to parse the first guidance file to obtain a first guidance tag in the first guidance file and an attribute tag of the first guidance tag, determine whether the attribute tag of the first guidance tag meets a requirement, output a first result when the attribute tag meets a preset requirement, and otherwise output a second result;
the first executing unit 131 is configured to, when the parsing unit 120 outputs the first result, obtain a file resource corresponding to the first guide tag to parse and generate a corresponding system file;
the judging unit 140 is configured to determine whether all the first guidance labels corresponding to the first guidance file are determined, and output a positive result when the determination is completed, otherwise, drive the analyzing unit 120 to operate;
a second executing unit 132, configured to generate a final customized operating system according to the system file when the determining unit 140 outputs a positive result;
the third executing unit 133 is configured to drive the determining unit 140 to operate when the analyzing unit 120 outputs the second result.
Specifically, the specific coordination operation process among the units of the operating system customization system may specifically refer to the operating system customization method, and details are not described here.
In addition, an electronic device of the present invention includes a memory and a processor; the memory is used for storing a computer program; the processor is configured to execute the computer program to implement the operating system customization method as any of the above. In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as a computer software program. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed by an electronic device and executed to perform the above-described functions defined in the methods of embodiments of the present invention. The electronic equipment can be a terminal such as a notebook, a desktop, a tablet computer, a smart phone and the like, and can also be a server.
In addition, the invention provides a customized resource file, comprising: the system comprises a plurality of first configuration files arranged under a root directory and a first guide file arranged with a first configuration file level directory; the first guide file is internally provided with a plurality of first guide labels corresponding to the first configuration file, each first guide label is provided with a first attribute mark, and when the first guide file is executed, whether the first configuration file corresponding to the first guide label is executed or not is confirmed through the first attribute marks. Specifically, a configuration file and a first guide file for guiding to acquire the configuration file are set in the customized resource file, the first guide file and the first configuration file are set in a flat directory, and a plurality of first guide tags are set in the first guide file and a first attribute flag is set in the first guide file. It is understood that the configuration file corresponds to the functional module, i.e. a first configuration file is used to implement the configuration of a functional module of the operating system. Zip suffix end compressed package, wherein may contain system attribute default settings, custom system resources, physical key mapping configuration, and the like corresponding configuration files. FIG. 4 illustrates a format of a custom resource file in one embodiment. The first index file name is a store.xml file, and as shown in the following content, the configuration of upgrading under the flat-level directory is controlled by the store.xml file, if upgrading is needed, the first attribute mark corresponding to the first index tag in the store.xml file is configured as true, and if upgrading is not needed, the first attribute mark corresponding to the first index tag in the store.xml file is configured as false, or is removed or annotated. The configuration can be arbitrarily set according to the operating system which needs to be acquired.
Figure BDA0002704813440000101
Optionally, the customized resource file of the present invention further includes a plurality of second configuration files set under the subdirectory of the first configuration file, and a second index file set with the second configuration file horizontal directory; and when the second guidance file is executed, the second configuration file corresponding to the first guidance label is obtained through the second attribute label. Specifically, the functional modules according to the operating system may be further refined, that is, when a certain functional module is configured, the setting of the functional module may be divided into smaller sub-functional modules, the configuration of each sub-functional module is configured through a second configuration file, and the second configuration file may directly contain system parameters or may be a guide for system parameters, so as to obtain the existing parameter module.
Taking the default setting of the system property as an example, as shown below, under the property folder in the customized resource file, all the system properties are contained therein, and the properties required by the user can also be added therein. The attribute configuration is in the form of key-value.
<?xml version="1.0"encoding="utf-8"?>
<propertygroup>
<property id="1"name="ro.build.id">PKQ1.190118.001</property>
<property id="2"name="ro.vendor.build.id">V1.0.0.PKQ1.190118.001</property>
<property id="3"name="ro.build.sw">V1.0.0</property>
<property id="4"name="ro.build.display.id">PKQ1.190118.001 670 release-keys</property>
<property id="5"name="ro.build.version.sdk">28</property>
<property id="6"name="ro.build.version.release">9</property>
<property id="7"name="ro.build.version.security_patch">2020-05-06</property>
<property id="8"name="ro.build.date">Mon May 11 21:17:25CST2020</property>
<property id="9"name="ro.build.type">user</property>
<property id="10"name="ro.build.tags">release-keys</property>
</propertygroup>
In some customized system resources including system applications (apps), resources and the same, some scenarios need to customize such contents, the corresponding file resources may be copied to the corresponding directories, then xml files are configured under the corresponding directories, and guidance is performed by setting second attribute marks on the second guidance tags:
<?xml version="1.0"encoding="utf-8"?>
<apps>
<!--system/app-->
<app id="1"name="app">wechat.apk</property>
<!--system/priv-app-->
<app id="2"name="priv-app">filemanager.apk</property>
<!--vendor/app-->
<app id="3"name="vendor-app">autuinstall.apk</property>
<!--vendor/priv-app-->
<app id="4"name="vendor-priv-app">USettings.apk</property>
<!--Pre-installed apps-->
<app id="5"name="fretab-app">Chrome.apk</property>
</apps>。
copying resources including a boot logo, boot animation, ring tones and the like in a resource file to a corresponding directory, wherein the resource.xml file needs to be configured, and the me includes a screen locking interface, fonts, desktop layout and the like, and the me.xml file also needs to be configured. upgrade is a system update item, and can update system security patches, fatal bugs and the like. The description is an upgrade description and the like, and the corresponding configuration process can be realized by acquiring the corresponding configuration content according to each second guide label, and finally, the customization of the operating system can be realized.
It can be understood that after the customized resource file is configured, the customized resource file can be copied and placed into the storage root directory of the corresponding device or deployed to a remote server, the customized resource file package can be manually checked or automatically checked through networking, and when the customized package is retrieved or the upgrading process is manually triggered, the corresponding directory is analyzed. And obtaining the customized OS after the analysis process is completed.
It is to be understood that the foregoing examples, while indicating the preferred embodiments of the invention, are given by way of illustration and description, and are not to be construed as limiting the scope of the invention; it should be noted that, for those skilled in the art, the above technical features can be freely combined, and several changes and modifications can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention; therefore, all equivalent changes and modifications made within the scope of the claims of the present invention should be covered by the claims of the present invention.

Claims (10)

1. An operating system customization method, comprising:
s1, obtaining a customized resource file generated according to a preset format, and analyzing a root directory in the customized resource file to obtain a first guide file;
s2, analyzing the first guide file to obtain a first guide label in the first guide file and an attribute label of the first guide label, and judging whether the attribute label of the first guide label meets the requirement, if so, executing step S3, otherwise, ignoring the first guide label and executing step S4;
s3, acquiring corresponding file resources according to the first guide label to generate a corresponding system file through analysis;
s4, confirming whether the first guide labels corresponding to the first guide files all finish attribute marking judgment, if so, executing a step S5, and if not, executing a step S2;
and S5, generating a final customized operating system according to the system file.
2. The operating system customization method according to claim 1, wherein in the step S2, the obtaining of the first index tag in the first index file and the attribute flag of the first index tag comprises:
analyzing the custom XML file, and acquiring a name corresponding to the custom XML file according to the custom ID in the custom XML file, so as to acquire the first guide tag and the attribute tag of the first guide tag according to the name.
3. The os customization method according to claim 2, wherein the attribute flag of the first index tag includes true and false, and the attribute flag of the first index tag satisfies the preset requirement only when the attribute flag of the first index tag is true.
4. The operating system customization method according to claim 1, further comprising:
s61, acquiring the sub-target corresponding to the first guide label, and confirming whether a second guide file is arranged under the sub-target corresponding to the first guide label, if so, executing S62, and if not, executing the step S3;
s62, analyzing the second guide file to obtain a second guide label corresponding to the first guide label and an attribute label of the second guide label;
s63, generating a corresponding system file according to the attribute tag of the second guide tag, and executing the step S4.
5. The operating system customization method according to claim 4, wherein the second guideline file is an XML file having the same name as the first guideline tag to which it corresponds.
6. The operating system customization method according to claim 4, wherein the attribute flag of the second index tag is an apk file name corresponding to the second index tag, and the generating of the corresponding system file according to the attribute flag of the second index tag comprises:
and acquiring the file resource corresponding to the second guide label according to the attribute mark of the second guide label to analyze and generate a corresponding system file.
7. An operating system customization system, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a customized resource file generated according to a preset format and analyzing a root directory in the customized resource file to acquire a first guide file;
the analysis unit is used for analyzing the first guide file to obtain a first guide label in the first guide file and an attribute mark of the first guide label, judging whether the attribute mark of the first guide label meets a requirement or not, and outputting a first result when the attribute mark meets a preset requirement, otherwise, outputting a second result;
the first execution unit is used for acquiring the file resource corresponding to the first guide label to analyze and generate a corresponding system file when the analysis unit outputs a first result;
the judging unit is used for confirming whether the first guide labels corresponding to the first guide files are judged completely, outputting a positive result when the judgment is finished, and driving the analyzing unit to act if the judgment is not finished;
the second execution unit is used for generating a final customized operating system according to the system file when the judging unit outputs a positive result;
and the third execution unit is used for driving the judgment unit to act when the analysis unit outputs the second result.
8. A customized resource file, comprising:
the system comprises a plurality of first configuration files arranged under a root directory and a first guide file arranged with a first configuration file level directory;
the first index file is internally provided with a plurality of first index tags corresponding to the first configuration file, each first index tag is provided with a first attribute mark, and when the first index file is executed, whether the first configuration file corresponding to the first index tag is executed or not is determined through the first attribute marks.
9. The customized resource file of claim 8, further comprising:
a plurality of second configuration files arranged under the subdirectory of the first configuration file and a second guide file arranged with the second configuration file horizontal directory;
and when the second guidance file is executed, the second configuration file corresponding to the first guidance label is obtained through the second attribute label.
10. An electronic device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the operating system customization method according to any one of claims 1-6.
CN202011034598.8A 2020-09-27 2020-09-27 Operating system customization method, customization system, electronic device and customization resource file Active CN112256237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011034598.8A CN112256237B (en) 2020-09-27 2020-09-27 Operating system customization method, customization system, electronic device and customization resource file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011034598.8A CN112256237B (en) 2020-09-27 2020-09-27 Operating system customization method, customization system, electronic device and customization resource file

Publications (2)

Publication Number Publication Date
CN112256237A true CN112256237A (en) 2021-01-22
CN112256237B CN112256237B (en) 2024-04-12

Family

ID=74233128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011034598.8A Active CN112256237B (en) 2020-09-27 2020-09-27 Operating system customization method, customization system, electronic device and customization resource file

Country Status (1)

Country Link
CN (1) CN112256237B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030195995A1 (en) * 2002-04-15 2003-10-16 Bassam Tabbara System and method for custom installation of an operating system on a remote client
US20080034420A1 (en) * 2006-08-01 2008-02-07 Array Networks, Inc. System and method of portal customization for a virtual private network device
CN102129381A (en) * 2011-03-14 2011-07-20 兰雨晴 Method for customizing linux operating system
US20150277885A1 (en) * 2014-03-31 2015-10-01 Motorola Mobility Llc System and Method for Providing Customized Resources on a Handheld Electronic Device
US9451006B1 (en) * 2013-12-12 2016-09-20 Intuit Inc. Methods, systems, and articles of manufacture for configuration-based client-side resource resolution framework for customizable user experience
CN110781139A (en) * 2018-07-30 2020-02-11 鸿合科技股份有限公司 Teaching plan resource management system and method and electronic equipment
CN110955458A (en) * 2019-10-22 2020-04-03 深圳市优博讯科技股份有限公司 EXT4 file system-based os rapid customization method, system, storage medium and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030195995A1 (en) * 2002-04-15 2003-10-16 Bassam Tabbara System and method for custom installation of an operating system on a remote client
US20080034420A1 (en) * 2006-08-01 2008-02-07 Array Networks, Inc. System and method of portal customization for a virtual private network device
CN102129381A (en) * 2011-03-14 2011-07-20 兰雨晴 Method for customizing linux operating system
US9451006B1 (en) * 2013-12-12 2016-09-20 Intuit Inc. Methods, systems, and articles of manufacture for configuration-based client-side resource resolution framework for customizable user experience
US20150277885A1 (en) * 2014-03-31 2015-10-01 Motorola Mobility Llc System and Method for Providing Customized Resources on a Handheld Electronic Device
CN110781139A (en) * 2018-07-30 2020-02-11 鸿合科技股份有限公司 Teaching plan resource management system and method and electronic equipment
CN110955458A (en) * 2019-10-22 2020-04-03 深圳市优博讯科技股份有限公司 EXT4 file system-based os rapid customization method, system, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN112256237B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
CN106775723B (en) Android platform-based system firmware customization method and Android device
CN111090437A (en) Application deployment method and device and computer readable storage medium
CN107656729B (en) List view updating apparatus, method and computer-readable storage medium
CN108319460B (en) Method and device for generating application program installation package, electronic equipment and storage medium
US8352913B2 (en) Generating and resolving component names in an integrated development environment
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
CN108874464B (en) Automatic scanning assembly method and device for middleware and storage medium
US20200183683A1 (en) Application architecture generation
CN108197024B (en) Embedded browser debugging method, debugging terminal and computer readable storage medium
CN111045683A (en) Applet code compiling method, device, equipment and medium
US20120290560A1 (en) Mechanism for efficiently querying application binary interface/application programming interface-related information
CN108255509B (en) Application deployment method, device, equipment and readable storage medium
CN111045717B (en) Method, device, computer equipment and storage medium for acquiring project dependent package
CN113268245A (en) Code analysis method, device and storage medium
CN113986256A (en) Method and device for issuing application program, electronic equipment and storage medium
CN106354727B (en) Widget file generation method and device
CN111752565A (en) Interface generation method and device, computer equipment and readable storage medium
CN115455925A (en) Contract generation method and device, electronic equipment and storage medium
CN107918543B (en) Installation package generation method and device, computer equipment and storage medium
CN112835568A (en) Project construction method and device
CN113703781A (en) Storage system interface generation method and device, electronic equipment and readable storage medium
CN112256237B (en) Operating system customization method, customization system, electronic device and customization resource file
CN115794214A (en) Application module metadata management method, device, storage medium and device
CN113377346B (en) Integrated environment building method and device, electronic equipment and storage medium
CN115437643A (en) Project code conversion method, device, equipment and storage medium

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