CN117201470A - Application management system based on intelligent box - Google Patents

Application management system based on intelligent box Download PDF

Info

Publication number
CN117201470A
CN117201470A CN202311141216.5A CN202311141216A CN117201470A CN 117201470 A CN117201470 A CN 117201470A CN 202311141216 A CN202311141216 A CN 202311141216A CN 117201470 A CN117201470 A CN 117201470A
Authority
CN
China
Prior art keywords
apk
application
file
downloading
intelligent box
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311141216.5A
Other languages
Chinese (zh)
Inventor
田维忠
国兴旺
曾中政
付清文
马萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guiyang Longma Video Technology Co ltd
Original Assignee
Guiyang Longma Video 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 Guiyang Longma Video Technology Co ltd filed Critical Guiyang Longma Video Technology Co ltd
Priority to CN202311141216.5A priority Critical patent/CN117201470A/en
Publication of CN117201470A publication Critical patent/CN117201470A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

An intelligent box-based application management system, comprising: the application APK management module is used for application APK inquiry, application APK input and application APK configuration, wherein the configuration comprises the establishment of the association of the application APK according to the intelligent box MAC address, the serial number and the intelligent box model; the home page list downloading module is used for responding to the solidified APK to download a home page application APK list, and determining a returned application APK list type according to the intelligent box type of the request parameter, wherein the solidified APK is a factory preset APK of the intelligent box; the download management module is used for responding to the application APK download request of the solidified APK, the upload management module is used for responding to the input application request of the application APK, and the solidified APK module is used for acquiring a home page application APK list, executing application APK file download and finishing application APK installation; the invention solves the problems of disordered management of loading and unloading of the version control of each application of a plurality of applications under the same company.

Description

Application management system based on intelligent box
Technical Field
The invention belongs to the field of intelligent boxes and computers, and particularly relates to an application management system based on an intelligent box.
Background
Based on the application market of the intelligent box, the newly added application must be downloaded and installed by the client of the intelligent box by being put on the shelf of the application market. When a large number of applications exist under the same company, the problem of disordered management of the upper and lower shelves of the version control of each application occurs.
Disclosure of Invention
In order to solve the problem of disordered management of loading and unloading of various applications under the same company.
An intelligent box-based application management system, comprising:
the application APK management module is used for application APK inquiry, application APK input and application APK configuration, wherein the configuration comprises the establishment of the association of the application APK according to the intelligent box MAC address, the serial number and the intelligent box model;
the home page list downloading module is used for responding to the solidified APK to download a home page application APK list, and determining a returned application APK list type according to the intelligent box type of the request parameter, wherein the solidified APK is a factory preset APK of the intelligent box;
the download management module is used for responding to an application APK download request of the solidified APK, wherein the download request comprises breakpoint download according to a continuous transmission formula if the download fails, and the continuous transmission formula is that a file download offset position = a file total length-a downloaded file length;
the uploading management module is used for responding to an input application request of the application APK, wherein the input application request is a server compressed package uploading request;
the updating module is used for responding to an updating application request of the application APK, and comprises judging that an application updating packet is returned if the version number of the application APK is smaller than the version number of the server side;
the device comprises a solidified APK module, a client and a client breakpoint downloading module, wherein the solidified APK module is used for acquiring a home page application APK list, executing application APK file downloading and completing installation of the application APK, the solidified APK is factory preset application of the client, and the application APK file downloading comprises client breakpoint downloading.
Further, the server-side compressed package uploading request comprises a file list and a directory description file obtained by executing a decompression instruction through the ZipArchive library.
Further, the server compressed package uploading request further comprises a step of responding to the compressed package fragment uploading request, a step of creating a Websocket transmission channel, and a step of obtaining the fragment data stream according to the Websocket transmission channel to obtain the application APK file compressed package.
Further, the application APK file compression package includes an application APK file group and an application APK description file.
Further, the home page application list downloading module further comprises a step of executing blacklist verification according to the intelligent box MAC address and the serial number, and if the blacklist exists, the illegal request is judged.
Furthermore, the installation of the application APK is an Android application installation instruction.
Further, the method includes the steps that the method further comprises the step of starting a timer to execute breakpoint downloading progress detection of the application APK, and the method is used for judging transmission results of breakpoint downloading of the application APK, wherein the transmission results are judged to be completed by comparing the length of the local file with the length of the file of the server, and if the local file is equal to the length of the file of the server, the transmission is judged to be completed.
Further, the compressed packet fragment uploading includes:
the file length of the client side is equal to the file length of the server side according to the request parameters, and if the file lengths are unequal, the file is uploaded in a slicing mode;
creating a WEBSocket object, and acquiring a fragment uploading data stream;
executing the fragment uploading data stream to write the compressed packet;
and reading the file length of the compressed package, comparing the length of the compressed package with the total length of the file of the uploading request parameter, and judging that the fragment uploading is completed.
Further, the client breakpoint download includes:
acquiring the length of a local APK file and the length of a server file, and judging that breakpoint downloading is performed if the local APK file and the server file are not equal;
initiating a breakpoint downloading request according to the length of the local APK file, creating a websocket client, and establishing an application APK downloading channel link by the websocket;
acquiring a data stream, writing the data stream into a local file, and starting a download detection timer;
judging a downloading result, and regularly reading the length of a local APK file by the detection timer, and judging that the downloading is completed if the length of the local APK file is equal to the length of a remote APK, wherein the length of the server APK file is obtained by a JSON string of a current downloading request return packet;
and executing the APK of the application and completing the starting of the application, wherein the APK is installed as an Android application.
Furthermore, the association of the application APK establishes a table for the database, wherein the table content is a MAC address, a serial number, an intelligent box model, a server-side directory where the application APK is located, and an application APK name, and the intelligent box model is an index field.
The application management system based on the intelligent box solves the problem of disordered management of the upper and lower frames of version control of each application of a plurality of applications in the same company.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1: the system framework diagram of the intelligent box-based application management system is provided for the embodiment of the invention;
fig. 2: the service end breakpoint downloading step diagram of the intelligent box-based application management system provided by the embodiment of the invention;
fig. 3: the embodiment of the invention provides a fragment uploading step diagram of an intelligent box-based application management system;
fig. 4: the embodiment of the invention provides a client breakpoint downloading diagram of an intelligent box-based application management system;
Detailed Description
The technical scheme in the embodiment of the invention is described below by combining the drawings in the embodiment of the invention, wherein the technical implementation in the embodiment is based on an Android platform at the front end and PHP language at the rear end.
The invention provides an application management system (see fig. 1) based on an intelligent box, which is characterized by comprising the following components:
p1100: and the application APK management module is used for applying APK inquiry, applying APK configuration and applying APK input. The application APK configuration comprises the steps of establishing association of application APKs according to an intelligent box MAC address, a serial number and an intelligent box model number and leading page application list configuration, wherein the association of the application APKs comprises the steps of establishing a Mysql database table, wherein the table field contents comprise the MAC address, the serial number, the intelligent box model number, a file directory where an application APK server end is located, an application APK name, and the intelligent box model number of the table is an index field and is used for quick retrieval, the leading page application list is used for downloading solidified APKs of the intelligent box and outputting the solidified APKs to a display terminal through leading page solidified APKs, the leading page list configuration comprises the number of application APKs of the display terminal, icons of each application APK, the name of the application APKs and the corresponding intelligent box model number; in this embodiment, the compression tool is a winar, and the corresponding relationship between the application APK and the intelligent box is distinguished by the directory name, for example, the directory name is "intelligent box MAC address-serial number-intelligent box model", and the application APK installation file and the description file are stored in the directory of "MAC address-serial number-intelligent box model".
P1200: the home page application list downloading module is used for responding to the solidified APK to download a home page application APK list, determining a returned application APK list type according to the intelligent box type of the request parameter, wherein the solidified APK is an intelligent box factory preset APK, in the embodiment, the home page application list is started to run by the solidified APK application of the intelligent box when the intelligent box responds to a remote control handle of a user to enter the solidified APK application, a home page downloading request is initiated according to a home page downloading address of a configuration file, the solidified APK application is preset with a home page downloading website, the website is preset when the intelligent box is factory, and therefore the solidified APK in the intelligent box cannot be provided with an application APK file when the intelligent box is factory, the solidified APK file package is small and has only basic downloading and installing functions, and the application APK is downloaded by the solidified APK application when the user actively enters the solidified APK application request through a remote control after the intelligent box is put into the market. The self-updating of the solidified APK is carried out by the system updating of the intelligent box, the field of the home page application list comprises the number of the application APKs, the icon of each application APK, the name of the application APK and the corresponding intelligent box model, the home page application list is returned according to the box model, the list is configured by the application APK management module, the module also comprises verification when downloading is requested, the verification comprises the verification of the MAC address, the serial number and the blacklist of the intelligent box model, and if the MAC address and the serial number in the request parameters exist in the blacklist, the execution of the downloading request is refused;
p1300: the download management module is configured to respond to an application APK download request of the cured APK, where the download request includes a breakpoint download request, determine whether to start the breakpoint download according to a request parameter of the download request, compare a local APK length of the request parameter with a server file length, and if the breakpoint download is not started equally, execute the breakpoint download according to a continuous transmission formula, where the continuous transmission formula is that a file download offset position = a file total length-a downloaded file length (a local APK length of the request parameter), in this embodiment, when the application APK downloads the application APK request, an application APK file is too large, a network is unstable in a download process, a user's tolerance weakens, and the user will force to cancel the download of the application APK midway, and in order to ensure that the file download will not be interrupted, and the download will be restarted each time, a server breakpoint download step executed in this embodiment includes (see fig. 2):
s400: responding to an APK downloading request of a curing APK application, creating a websocket service interception, and performing step S500;
s500: opening an application APK file by fopen of the PHP script, and performing step S600;
s600: performing file offset position positioning according to the local APK length of the request parameter by using the fseek function, moving to the file position, and performing step S700;
s700: reading a file byte stream by using fread, and returning the file byte stream through websocket link;
p1400: the uploading management module is used for responding to a compressed package input request of an application APK file group, executing compressed package decompression by ZipArchive to obtain a target directory, obtaining a file list and a directory description file according to the target directory, wherein the directory description file is in a JSON format, thus being convenient to obtain a directory description object after analysis, obtaining the directory description object by using the JSON for convenient programming, the content of the directory description file comprises a file name of the application APK, and the application APK corresponds to a model, wherein the box model is used for distinguishing which boxes can download the application APK, thus ensuring that the application APK downloaded by the box of the corresponding model can be correctly started, establishing table data according to the association of the file list and the directory description file, using the table data as a MYSQL table in the implementation, and responding to a segmented uploading request step of a management terminal, and using PHP language is realized below, and comprises (see figure 3):
s10: comparing the file length of the client side with the file length of the server side according to the request parameters, and if the file lengths are not equal, judging that the file is uploaded in a slicing way, and performing step S20;
s20: creating a WEBSocket object, acquiring a fragment uploading data stream, and performing step S50;
s50: using fseek to move the file position as the file tail, executing the fragment uploading data stream to write the compressed package, and performing step S60;
s60: and reading the file length of the compressed package, comparing the length of the compressed package with the total length of the file of the uploading request parameter, and judging that the fragment uploading is completed.
P1500: and the updating module is used for responding to an application updating request of the application APK, and comprises the steps of determining whether to execute the updating step according to the version number of the application APK updating request parameter, and executing application APK downloading if the request version number is smaller than the corresponding APK version number of the server side.
P1600: the module of solidifying APK, is used for launching the request of downloading of the application APK list of the first page, the preset installation of this module is put into intelligent box when the factory leaves the factory, and respond to the action execution of the remote controller and appoint the installation procedure of application APK of the first page, download of application APK of the first page includes the breakpoint of customer end to download, the breakpoint of customer end downloads the step and includes (see figure 4):
SS20: acquiring the length of a local APK file and the length of a server file, comparing, and if the lengths are not equal, judging that breakpoint downloading is performed, and performing step SS30;
SS30: initiating a breakpoint downloading request according to the length of the local APK file, creating a websocket client, building an application APK downloading channel link by the websocket, and performing step SS35;
SS35: acquiring a data stream, writing the data stream into a local file, creating a download detection timer, and performing step SS40;
SS40: judging a downloading result, regularly reading the length of a local APK file by the detection timer, and if the length of the local APK file is equal to the length of the APK of the server, judging that the downloading is completed, wherein the length of the APK of the server is obtained by the JSON string of a current downloading request return packet, and performing step SS50;
SS50: executing the application APK to install and completing the starting of the application, wherein the starting of the application is that a built-in system interface startActivity starts a local application APK.
In this embodiment, after the installation of the local application APK is completed, the subsequent update of the local application APK is no longer performed by the cured APK.
The application management system based on the intelligent box solves the problem of disordered management of the upper and lower frames of version control of each application of a plurality of applications in the same company.
The above embodiments of the present invention are only examples, and are not intended to limit the scope of the present invention, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An intelligent box-based application management system, comprising:
the application APK management module is used for application APK inquiry, application APK input and application APK configuration, wherein the configuration comprises the establishment of the association of the application APK according to the intelligent box MAC address, the serial number and the intelligent box model;
the home page list downloading module is used for responding to the solidified APK to download a home page application APK list, and determining a returned application APK list type according to the intelligent box type of the request parameter, wherein the solidified APK is a factory preset APK of the intelligent box;
the downloading management module is configured to respond to an APK downloading request of the application of the cured APK, where the downloading request includes executing a breakpoint downloading of the server according to a continuous transmission formula if the downloading fails, where the breakpoint downloading formula of the server is that a file downloading offset position = a total length of a file-a length of a downloaded file, and the breakpoint downloading of the server includes:
creating websocket service interception;
locating the file position;
performing data stream pushing to a client according to the websocket component;
the uploading management module is used for responding to an input application request of the application APK, wherein the input application request is a server compressed package uploading request;
the updating module is used for responding to an updating application request of the application APK, and comprises judging that an application updating packet is returned if the version number of the application APK is smaller than the version number of the server side;
the device comprises a solidified APK module, a client and a client breakpoint downloading module, wherein the solidified APK module is used for acquiring a home page application APK list, executing application APK file downloading and completing installation of the application APK, the solidified APK is factory preset application of the client, and the application APK file downloading comprises client breakpoint downloading.
2. The intelligent box-based application management system according to claim 1, wherein the server-side compressed package upload request includes a file list and a directory description file obtained by executing a decompression instruction through a zipArchive library.
3. The intelligent box-based application management system according to claim 1, wherein the server side compressed package upload request further comprises creating a Websocket transmission channel in response to the compressed package fragment upload request, and obtaining a fragment data stream obtaining application APK file compressed package according to the Websocket transmission channel.
4. The intelligent box-based application management system according to claim 3, wherein the application APK file compression package includes an application APK file group and an application APK description file.
5. The intelligent box-based application management system of claim 1, wherein the home application list download module further comprises performing blacklist verification based on the intelligent box MAC address and the serial number, and determining that an illegitimate request is made if there is a blacklist.
6. The intelligent box-based application management system of claim 1, wherein the installation of the application APK is an Android application installation instruction.
7. The intelligent box-based application management system according to claim 1, wherein the solidifying APK further comprises starting a timer to perform breakpoint download progress detection of the application APK, for determining a transmission result of the breakpoint download of the application APK, wherein the transmission result determination is compared with a local file length and a server file length, and if the local file length and the server file length are equal, it is determined that the transmission is completed.
8. The intelligent box-based application management system of claim 1, wherein the compressed packet fragment upload comprises:
the file length of the client side is equal to the file length of the server side according to the request parameters, and if the file lengths are unequal, the file is uploaded in a slicing mode;
creating a WEBSocket object, and acquiring a fragment uploading data stream;
executing the fragment uploading data stream to write the compressed packet;
and reading the file length of the compressed package, comparing the length of the compressed package with the total length of the file of the uploading request parameter, and judging that the fragment uploading is completed.
9. The intelligent box-based application management system of claim 1, wherein the client breakpoint download comprises:
acquiring the length of a local APK file and the length of a server file, and judging that breakpoint downloading is performed if the local APK file and the server file are not equal;
initiating a breakpoint downloading request according to the length of the local APK file, creating a websocket client, and establishing an application APK downloading channel link by the websocket;
acquiring a data stream, writing the data stream into a local file, and starting a download detection timer;
judging a downloading result, and regularly reading the length of a local APK file by the detection timer, and judging that the downloading is completed if the length of the local APK file is equal to the length of a remote APK, wherein the length of the server APK file is obtained by a JSON string of a current downloading request return packet;
and executing the APK of the application and completing the starting of the application, wherein the APK is installed as an Android application.
10. The intelligent box-based application management system according to claim 1, wherein the association of the application APK establishes a table for the database and the table content is a MAC address,
Serial number, intelligent box model, server directory where application APK is located, application APK name,
wherein the smart box model number is an index field.
CN202311141216.5A 2023-09-06 2023-09-06 Application management system based on intelligent box Pending CN117201470A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311141216.5A CN117201470A (en) 2023-09-06 2023-09-06 Application management system based on intelligent box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311141216.5A CN117201470A (en) 2023-09-06 2023-09-06 Application management system based on intelligent box

Publications (1)

Publication Number Publication Date
CN117201470A true CN117201470A (en) 2023-12-08

Family

ID=88995429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311141216.5A Pending CN117201470A (en) 2023-09-06 2023-09-06 Application management system based on intelligent box

Country Status (1)

Country Link
CN (1) CN117201470A (en)

Similar Documents

Publication Publication Date Title
CN103095838B (en) A kind of method of Android smartphone software of being upgraded by download increment AKU
EP2696532A2 (en) Method, server and system for starting application
CN110825394B (en) Automatic initialization method, system and storage medium for application program of cloud mobile phone
CN102622241B (en) A kind of method for upgrading software and device
CN102129378B (en) A kind of software menu updating method and device
CN101945135A (en) Method and system for upgrading widget system
JP2013517578A (en) Application operating method, apparatus and system
CN109284140B (en) Configuration method and related equipment
EP1775913A1 (en) Method for controlling multimedia middleware apparatus using metadata
CN110543324B (en) Plug-in increment updating method and device for application program
CN108874437B (en) Online cloud updating method for android application program
CN102970342A (en) Automatic update method of embedded terminal based on over the air (OTA) technology
CN112615747B (en) Method and device for automatically deploying and configuring network equipment
CN103973474A (en) Network terminal update configuration method
CN111538523A (en) Differential upgrading method, device and storage medium
CN101980503B (en) Method, device and system for managing widget application
CN105554735A (en) Method and system for binding intelligent device
CN103916846A (en) Terminal application updating method, system and device
CN111736876A (en) Client update control method, device, storage medium and server
CN111324365A (en) Method and equipment for upgrading super-converged system
CN108958786B (en) Matching and updating processing method and device for refrigerator software
CN112015454B (en) System upgrade package generation method and device, electronic equipment and storage medium
CN110018835B (en) YANG model configuration data processing method and device, terminal device and storage medium
CN117201470A (en) Application management system based on intelligent box
WO2023226670A1 (en) Esim firmware upgrade method and apparatus, and device and 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