CN112527334A - Android platform based variable-size customer pre-installation customized partition method and POS machine - Google Patents

Android platform based variable-size customer pre-installation customized partition method and POS machine Download PDF

Info

Publication number
CN112527334A
CN112527334A CN202011499780.0A CN202011499780A CN112527334A CN 112527334 A CN112527334 A CN 112527334A CN 202011499780 A CN202011499780 A CN 202011499780A CN 112527334 A CN112527334 A CN 112527334A
Authority
CN
China
Prior art keywords
partition
file
equipment
size
installation
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
CN202011499780.0A
Other languages
Chinese (zh)
Other versions
CN112527334B (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.)
Fujian Newland Payment Technology Co ltd
Original Assignee
Fujian Newland 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 Fujian Newland Payment Technology Co ltd filed Critical Fujian Newland Payment Technology Co ltd
Priority to CN202011499780.0A priority Critical patent/CN112527334B/en
Publication of CN112527334A publication Critical patent/CN112527334A/en
Application granted granted Critical
Publication of CN112527334B publication Critical patent/CN112527334B/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/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a method for pre-installing customized partitions for clients with variable sizes based on an Android platform and a POS machine, wherein the method comprises the following steps: s1, acquiring the size of the customer pre-installation data packet; s2, adding a partition information in the compiling by the compiling server; s3, the compiling server completes software compiling by using the compiling script and generates a device partition table file, namely a PrimayGPT file; s4, signing the PrimayGPT file by using a remote signing machine; s5, the terminal equipment enters a downloading mode; s6, loading the signed PirmayGPT file and programming the PirmayGPT file into the terminal equipment; s7, the terminal equipment updates the equipment partition table information, and then the equipment is restarted and enters a downloading mode; s8, making a user pre-installed partition file and signing; s9, programming the prepared user preinstalled partition file with the signature into the terminal equipment; and S10PC, after the downloading tool finishes downloading the files of the preinstalled partitions by the user, restarting the equipment, and after the equipment is normally started, finishing the installation of the files and the certificates in the preinstalled partitions by the user.

Description

Android platform based variable-size customer pre-installation customized partition method and POS machine
Technical Field
The invention relates to the technical field of preinstallation partitions of intelligent equipment, in particular to a method for preinstallation and customization of partitions for clients with variable sizes based on an Android platform and a POS machine.
Background
With the vigorous development of payment modules such as mobile payment, new retail, face payment and the like, the intelligent POS based on the Android system is more and more favored by merchants. The intelligent POS machine takes mobile payment as a basic function. A merchant management cloud platform matched with the Android intelligent POS is used for achieving collection management, member management, shop management and the like. However, with the change of the use scene and the use mode, the number of the APP to be preinstalled is also large, and the preinstalled partition with the fixed size designed in the early stage of the intelligent POS can not meet the new preinstalled requirement of the customer any more.
Currently, most intelligent POS has two modes of custom-installing certificates and applications in factory, one mode is to directly compile the certificates and applications of the clients into firmware codes. Another is to store client credentials and applications in a pre-installed partition of a fixed size. The first method is that the customer updates the application, which requires compiling new firmware, the cycle time is long, and the customer requirements cannot be met quickly. The second method cannot meet the pre-installation customization requirement of big data of a customer due to the fact that the data and the size of the pre-installation application are more and more.
Disclosure of Invention
In view of the above, the present invention provides a method for pre-installing customized partition for variable size customer based on Android platform and a POS machine, which are flexible to implement, convenient to adjust, and reliable to use.
In order to achieve the technical purpose, the technical scheme adopted by the invention is as follows:
a method for pre-installing customized partitions based on clients with variable sizes of an Android platform comprises the following steps:
s1, acquiring the size of a client pre-installation data packet;
s2, adding a partition information in the compiling by the compiling server for the terminal device, and configuring the attribute and size of the partition;
s3, the compiling server completes software compiling by using the compiling script, generates an equipment partition table file and sets the equipment partition table file as a PrimayGPT file;
s4, signing the PrimayGPT file by using a remote signing machine;
s5, the terminal equipment enters a downloading mode;
s6, loading the signed PirmayGPT file by using a PC downloading tool, and programming the PirmayGPT file into the terminal equipment;
s7, the terminal equipment updates the equipment partition table information, and then the equipment is restarted and enters a downloading mode;
s8, making a partition file pre-installed by a user and signing;
s9, programming the manufactured user preinstalled partition file with the signature into the terminal equipment by using a PC downloading tool;
and S10, restarting the equipment after the PC downloading tool finishes downloading the files of the pre-installed partition of the user, and finishing the installation of the files and the certificates in the pre-installed partition of the user after the equipment is normally started.
As a possible implementation manner, further, in step S1, the obtaining, by the compiling server, the size of the client pre-installation data package is performed, and the data content of the pre-installation data package at least includes the preset application and the certificate information.
As a possible implementation manner, further, in step S2, the partition information includes a partition name, partition UUID information, and a partition size.
As a possible implementation manner, further, in step S7, when the terminal device updates the device partition table information, a partition with a dynamic size is newly added to the last partition stored in the device of the terminal device.
As a preferred embodiment, in step S7, the method for the terminal device to update the device partition table information preferably includes: and the terminal equipment completes signature verification of the PirmayGPT file, and writes the PrimayGPT file into the storage address 0x0000000 of the terminal equipment when the verification result meets the preset requirement.
As a possible implementation manner, further, in step S8, the user pre-installs the partition file as being signed by a private key.
Based on the scheme, the invention further provides a method for dynamically adjusting the capacity of the preinstalled partition by the POS machine, and the method comprises the method for preinstalling the customized partition by the client with the variable size based on the Android platform.
Based on the above solution, the present invention further provides a computer-readable storage medium, wherein: the storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded by the processor and executed to implement the method for pre-installing customized partition based on the variable-size client of the Android platform.
Further, the present invention provides a POS data packing machine system loaded with a computer readable storage medium as described above.
By adopting the technical scheme, compared with the prior art, the invention has the beneficial effects that: the scheme is based on the technology of combining customer customized certificate installation and a large amount of APP installation data or other data preinstallation requirements and the like, and provides a customer preinstallation customized partition method with variable size based on an Android platform aiming at dynamically adjusting the application scene of a customer preinstallation partition according to the size of the data such as the customer preinstallation certificate and the application and the like by an intelligent POS machine, the method can flexibly and safely dynamically update equipment partition information, quickly respond to the customer preinstallation customized requirements, and simultaneously reduce the tedious operation that product maintenance personnel frequently update firmware, and simultaneously, the scheme also has the following advantages,
1. according to the scheme, a dynamic partition can be newly added on the premise of not influencing the original partition function, and information such as the name of the partition, the UUID of the partition and the like is set;
2. the scheme uses the signature information of the partition information to carry out validity verification in partition updating, and avoids that the safety of equipment and the partition function are influenced by randomly updating the partition.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a schematic implementation of the scheme of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be noted that the following examples are only illustrative of the present invention, and do not limit the scope of the present invention. Similarly, the following examples are only some but not all examples of the present invention, and all other examples obtained by those skilled in the art without any inventive work are within the scope of the present invention.
As shown in fig. 1, the method for pre-installing the customized partition for the size-variable client based on the Android platform includes the following steps:
s1, obtaining the size of a client pre-installation data packet through a compiling server, wherein the data content of the pre-installation data packet at least comprises preset application and certificate information;
s2, adding a partition information in the compiling process by the compiling server for the terminal equipment, and configuring the attribute and the size of the partition, wherein the partition information comprises a partition name, partition UUID information and partition size;
s3, the compiling server completes software compiling by using the compiling script, generates an equipment partition table file and sets the equipment partition table file as a PrimayGPT file;
s4, signing the PrimayGPT file by using a remote signing machine, and ensuring that the file can be downloaded to equipment;
s5, the terminal equipment enters a downloading mode (firmware downloading mode);
s6, loading the signed PirmayGPT file by using a PC downloading tool, and programming the PirmayGPT file into the terminal equipment;
s7, when the terminal device updates the device partition table information, newly adding a partition with a dynamic size in the last partition stored in the device of the terminal device, specifically: the terminal equipment completes signature verification of the PirmayGPT file, when the verification result meets the preset requirement, namely the verification result is correct, the PrimayGPT file is written into the storage address 0x0000000 of the terminal equipment, and then the equipment is restarted and enters a downloading mode;
s8, making a user pre-installed partition file and signing by using a private key;
s9, programming the manufactured user preinstalled partition file with the signature into the terminal equipment by using a PC downloading tool;
and S10, restarting the equipment after the PC downloading tool finishes downloading the files of the pre-installed partition of the user, and finishing the installation of the files and the certificates in the pre-installed partition of the user after the equipment is normally started.
The scheme can be used as a method for dynamically adjusting the capacity of the preinstalled partition by the POS machine.
The invention automatically generates the partition table through the dynamic partition configuration information, and then realizes the partition setting when the system is installed according to the partition table, thereby flexibly and safely finishing the customization of customers.
For example, some bank customers may need to preset 10 applications for a total of 200M in different customer promotions, but in a third party payment acquirer they may only need to preset 1-2 applications for a capacity of only around 10M. If a device fixes a partition size, such as 300M, it may be able to meet most customer needs, but this wastes a lot of storage space, especially for third party acquirers. The introduction of the technology can dynamically adjust the partitions according to the size of the preset data of the client, so that the requirements of the client are met, and meanwhile, the storage space of the equipment is maximized.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a part of the embodiments of the present invention, and not intended to limit the scope of the present invention, and all equivalent devices or equivalent processes performed by the present invention through the contents of the specification and the drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A method for pre-installing customized partitions based on clients with variable sizes of an Android platform is characterized by comprising the following steps:
acquiring the size of a client pre-installation data packet;
adding a partition information in the compiling by the compiling server for the terminal equipment, and configuring the attribute and the size of the partition;
the compiling server finishes software compiling by using the compiling script, generates an equipment partition table file and sets the equipment partition table file as a PrimayGPT file;
signing the primayGPT file by using a remote signing machine;
the terminal equipment enters a downloading mode;
loading the signed PirmayGPT file by using a PC (personal computer) downloading tool, and programming the PirmayGPT file into the terminal equipment;
the terminal equipment updates the equipment partition table information, and then the equipment is restarted and enters a downloading mode;
making a user pre-installed partition file and signing;
programming the manufactured user preinstalled partition file with the signature into the terminal equipment by using a PC downloading tool;
and after the PC downloading tool finishes downloading the files of the pre-installed partition of the user, restarting the equipment, and after the equipment is normally started, finishing the installation of the files and the certificates in the pre-installed partition of the user.
2. The Android platform variable-size customer pre-installation customized partition method of claim 1, wherein the size of the customer pre-installation data package is obtained through a compiling server, and the data content of the pre-installation data package at least comprises preset application and certificate information.
3. The Android platform-based variable-size customer pre-installation customized partition method of claim 1, wherein the partition information comprises a partition name, partition UUID information and a partition size.
4. The Android platform-based variable-size customer pre-installation customized partition method of claim 1, wherein when the terminal device updates the device partition table information, a partition with a dynamic size is newly added to a last partition stored in the device of the terminal device.
5. The Android platform variable-size customer pre-installation customized partition method of claim 4, wherein the method for updating the device partition table information by the terminal device comprises the following steps: and the terminal equipment completes signature verification of the PirmayGPT file, and writes the PrimayGPT file into the storage address 0x0000000 of the terminal equipment when the verification result meets the preset requirement.
6. The Android platform variable-size customer pre-installation customized partition method of claim 1, wherein the user pre-installation partition file is signed by a private key.
7. Method for dynamically adjusting the size of the capacity of the preinstalled partition by a POS machine, which is characterized in that the method comprises the method for preinstalling the customized partition based on the variable-size customer of the Android platform in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that: the storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded by a processor and executed to implement the Android platform based variable-size customer pre-installation customized partition method.
9. A POS data wrapping machine system loaded with a computer readable storage medium according to claim 8.
CN202011499780.0A 2020-12-18 2020-12-18 Android platform based variable-size customer pre-installation customization partitioning method and POS machine Active CN112527334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011499780.0A CN112527334B (en) 2020-12-18 2020-12-18 Android platform based variable-size customer pre-installation customization partitioning method and POS machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011499780.0A CN112527334B (en) 2020-12-18 2020-12-18 Android platform based variable-size customer pre-installation customization partitioning method and POS machine

Publications (2)

Publication Number Publication Date
CN112527334A true CN112527334A (en) 2021-03-19
CN112527334B CN112527334B (en) 2023-03-14

Family

ID=75001165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011499780.0A Active CN112527334B (en) 2020-12-18 2020-12-18 Android platform based variable-size customer pre-installation customization partitioning method and POS machine

Country Status (1)

Country Link
CN (1) CN112527334B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729255A (en) * 2014-01-20 2014-04-16 联想(北京)有限公司 Information processing method and device and electronic device
CN104836843A (en) * 2015-03-31 2015-08-12 北京奇虎科技有限公司 Client application program updating method and device
KR20170044850A (en) * 2015-10-16 2017-04-26 심재훈 Android application dynamic loading method
CN109086078A (en) * 2017-06-14 2018-12-25 展讯通信(上海)有限公司 Android system upgrade method, device, server and mobile terminal
CN109213726A (en) * 2017-06-29 2019-01-15 英特尔公司 The region part of programmable device reconfigures

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729255A (en) * 2014-01-20 2014-04-16 联想(北京)有限公司 Information processing method and device and electronic device
CN104836843A (en) * 2015-03-31 2015-08-12 北京奇虎科技有限公司 Client application program updating method and device
KR20170044850A (en) * 2015-10-16 2017-04-26 심재훈 Android application dynamic loading method
CN109086078A (en) * 2017-06-14 2018-12-25 展讯通信(上海)有限公司 Android system upgrade method, device, server and mobile terminal
CN109213726A (en) * 2017-06-29 2019-01-15 英特尔公司 The region part of programmable device reconfigures

Also Published As

Publication number Publication date
CN112527334B (en) 2023-03-14

Similar Documents

Publication Publication Date Title
CN107025559B (en) Service processing method and device
CN107506221B (en) Application program upgrading method, device and equipment
EP3525410B1 (en) Account login method, apparatus, and server
CN111274045B (en) Multi-platform docking method and device, computer equipment and readable storage medium
US20170192773A1 (en) Mobile applications
JP2006518499A (en) Ordering program data for loading into the device
CN111224786A (en) Block chain-based data security sharing method, device and medium
US20170351510A1 (en) Method for recognizing application type
TW201909067A (en) Payment processing method and apparatus, and electronic device
CN104753909A (en) Updated information authentication method, device and system
CN108460273B (en) Application management method of terminal, application server and terminal
CN109688472A (en) Upgrading TV system method, apparatus, equipment and storage medium
CN113077260A (en) Data access method and device based on block chain and electronic equipment
CN114448972A (en) Distributed storage log compression downloading method, system, terminal and storage medium
CN112527334B (en) Android platform based variable-size customer pre-installation customization partitioning method and POS machine
CN112612833B (en) Rule package updating method, device, equipment and storage medium
CN107479923A (en) Application program updating method, apparatus and display terminal
CN112037051A (en) Clearing account opening method and device
CN112527792A (en) Data storage method, device, equipment and storage medium
CN107277108B (en) Method, device and system for processing messages at nodes of block chain
CN113949632B (en) Dynamic node configuration method and device for block chain
CN115221559A (en) Data account access authorization method and device
CN115203746A (en) Data account access authorization method and device
CN115578180A (en) Bank outlet cash resource management method and device
CN111654398B (en) Configuration updating method and device, computer equipment and readable 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