CN112887951A - Bluetooth-based system and method for pre-installing application of Android terminal in factory - Google Patents

Bluetooth-based system and method for pre-installing application of Android terminal in factory Download PDF

Info

Publication number
CN112887951A
CN112887951A CN202110084321.4A CN202110084321A CN112887951A CN 112887951 A CN112887951 A CN 112887951A CN 202110084321 A CN202110084321 A CN 202110084321A CN 112887951 A CN112887951 A CN 112887951A
Authority
CN
China
Prior art keywords
terminal
android
bluetooth
seed
terminals
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
CN202110084321.4A
Other languages
Chinese (zh)
Other versions
CN112887951B (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.)
Readboy Education Technology Co Ltd
Original Assignee
Readboy Education 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 Readboy Education Technology Co Ltd filed Critical Readboy Education Technology Co Ltd
Priority to CN202110084321.4A priority Critical patent/CN112887951B/en
Publication of CN112887951A publication Critical patent/CN112887951A/en
Application granted granted Critical
Publication of CN112887951B publication Critical patent/CN112887951B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a system and a method for realizing Android terminal preinstallation application in a factory based on Bluetooth, wherein the system comprises a seed terminal, an Android terminal of a non-seed terminal and an application installation service module arranged in the Android terminal, so that the installation and the uninstallation of the preinstallation application are realized in an exponential mode, and the efficiency of a preset task is greatly improved. When a new preset task exists each time, only a preset task compression package needs to be simply manufactured and copied to a small number of seed terminals, the requirement of frequent change of preset application can be well met, compared with the traditional mode, the method is flexible to operate, the whole process is basically automated, and the labor cost is greatly reduced.

Description

Bluetooth-based system and method for pre-installing application of Android terminal in factory
Technical Field
The invention relates to the technical field of Android terminal preinstallation application, in particular to a system and a method for realizing Android terminal preinstallation application in a factory based on Bluetooth.
Background
The Android terminal is widely applied, and from a mobile phone to a tablet, most of profits of various manufacturers are realized on software, wherein presetting of third-party application is undoubtedly a good choice. Currently, the provisioning of third party applications faces a problem, as the new client's subscription and the expiration of old contracts, the provisioning of new applications and the offloading of provisioned applications frequently occur.
There are two conventional preset application modes: the first mode is that the application is preset or deleted when the ROM is packaged, the method is simple and efficient, but the flexibility is poor, the application can be realized only by means of the ROM packaging, and the ROM packaging is not frequent generally; the second mode is that before the terminal device leaves the factory, the terminal device is connected with a computer through a USB (universal serial bus) line to realize the installation and the uninstallation of the application, and the mode is flexible, but the manual operation cost of a processing plant can be increased.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a system and a method for realizing Android terminal preinstalled application in a factory based on Bluetooth.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a Bluetooth-based system for realizing preinstalled application of an Android terminal in a factory, which comprises the following steps:
and (3) seed terminal: one or more Android terminals are adopted as seed terminals, application installation service modules are installed in the seed terminals, the application installation service modules of the seed terminals are used for being automatically started when the seed terminals are started for the first time after the ROM is upgraded, and then the applications to be installed and the applications to be uninstalled are installed according to preset task compression packages configured in the seed terminals; the preset task compression package comprises application files to be installed and application lists to be uninstalled; the seed terminal has a Bluetooth connection function, the application installation service module of the seed terminal is also used for opening the Bluetooth of the seed terminal after the installation and the uninstallation of the application are finished, setting the Bluetooth of the seed terminal to be allowed to be found by other Android terminals, and transmitting a preset task compression packet to the connected Android terminal after the seed terminal establishes Bluetooth connection with other Android terminals;
android terminal of non-seed terminal: the method comprises the steps that an application installation service module is arranged in an Android terminal of a non-seed terminal, the application installation service module of the Android terminal of the non-seed terminal is used for being automatically started when the Android terminal is started for the first time after a ROM is upgraded, after the application installation service module is started, the Bluetooth of the Android terminal is firstly opened, the Bluetooth of other Android terminals is continuously searched while the Bluetooth of the Android terminal is forbidden to be found by other Android terminals, after the Bluetooth of other Android terminals is searched, a connection request is sent to the Android terminal, Bluetooth connection is established between the Android terminal and the Android terminal, and then Bluetooth searching is stopped; the application installation service module of the Android terminal of the non-seed terminal is also used for receiving a preset task compression packet sent by the connected Android terminal after the Android terminal establishes Bluetooth connection with other Android terminals, decompressing the preset task compression packet after receiving the preset task compression packet, completing installation and unloading tasks of the application according to the preset task compression packet, and finally setting the Bluetooth of the Android terminal to be allowed to be found by other Android terminals; the application installation service module of the Android terminal of the non-seed terminal is also used for establishing Bluetooth connection with the Android terminal after the Android terminal receives the connection requests of other Android terminals, and sending the preset task compression packet to the connected Android terminal.
Further, in the system, the application installation service module of the Android terminal of the non-seed terminal generates a bluetooth device list when searching for the bluetooth of other Android terminals, then randomly selects the Android terminal with the bluetooth in an idle state in the bluetooth device list and initiatively initiates a connection request, the Android terminal of the opposite party establishes bluetooth connection with the Android terminal after receiving the connection request, at this time, the bluetooth state of the Android terminal of the opposite party is changed from the idle state to a binding state, and the other Android terminals cannot send connection requests to the Android terminal of the opposite party; and after each Android terminal receives the preset task compression packet sent by the other Android terminal, the Bluetooth connection is immediately disconnected, so that the Bluetooth state of the other Android terminal is changed into an idle state again, and the Bluetooth can be discovered and connected by other Android terminals still searching for Bluetooth.
Furthermore, in the system, when receiving connection requests sent by a plurality of other Android terminals, the Android terminal in the idle state of bluetooth receives the connection request received first.
Further, in the system, the preset task compression package is named by adopting a set format, and the application installation service module of the seed terminal detects whether the preset task compression package exists or not by detecting the file name.
Further, in the system, the application installation service modules of the Android terminal serving as the seed terminal and the Android terminal serving as the non-seed terminal are further used for monitoring and recording the abnormal condition of the Android terminal and monitoring the shutdown event of the Android terminal; when the shutdown event of the Android terminal is found, if the Android terminal is abnormal, an error dialog box is popped up and shutdown is prevented, so that timely processing is facilitated; if the Android terminal is not in an abnormal condition, the Bluetooth is closed and the cache data is cleared before the Android terminal is powered off, and a set mark is set so that the application installation service module can not be started again when the Android terminal is powered on next time.
The invention also provides a method for utilizing the system, which comprises the following specific processes:
after all Android terminals to be processed upgrade ROMs, taking one or more Android terminals out as seed terminals, and placing preset task compression packages in the seed terminals; when the seed terminal is started for the first time after the ROM is upgraded, the set application installation service module is automatically started, when a preset task compression package is detected in the seed terminal, the preset task compression package is decompressed, the application files in the preset task compression package are installed, and the corresponding applications are unloaded according to the application list to be unloaded in the preset task compression package; after the application installation service module of the seed terminal completes the installation and the uninstallation of the application, the Bluetooth of the seed terminal is opened and is set to be allowed to be discovered by other Android terminals;
placing the seed terminal in a place where the Android terminal of the non-seed terminal is concentrated; when the Android terminal of each non-seed terminal is started for the first time after the ROM is upgraded, the set application installation service module is automatically started, the Bluetooth of the Android terminal is started firstly, and the Bluetooth of other Android terminals is continuously searched while the Bluetooth of the Android terminal is forbidden to be found by other Android terminals;
initially, the Android terminal of the non-seed terminal can find that the Android terminal is the Bluetooth of the seed terminal, sends a connection request to the seed terminal after finding, and stops Bluetooth searching after the other side receives the connection request of the other side; the method comprises the steps that after receiving a connection request from an Android terminal of a non-seed terminal, the seed terminal establishes Bluetooth connection with the Android terminal, and sends a preset task compression packet to the Android terminal of the connected non-seed terminal; after receiving the preset task compression package, the Android terminal of the non-seed terminal decompresses the preset task compression package by the set application installation service module, installs the application file therein, unloads the corresponding application according to the application list to be unloaded therein, and sets the Bluetooth of the Android terminal to be allowed to be discovered by other Android terminals;
after some Android terminals of the non-seed terminals complete the preset tasks, the Android terminals of other non-seed terminals which do not complete the preset tasks can find the Bluetooth of the seed terminal and the Bluetooth of the Android terminal of the non-seed terminal which completes the preset tasks, the preset task compressed packet sent by the other party can be received as long as the Bluetooth of one of the seed terminal and the Android terminal of the non-seed terminal which does not complete the preset tasks is connected, the application installation service module arranged on the Android terminal of the non-seed terminal which does not complete the preset tasks decompresses the preset task compressed packet, the application file in the application compressed packet is installed, the corresponding application is unloaded according to the application list to be unloaded, and the Bluetooth of the Android terminal in which the application file is located is set to allow the Bluetooth of the Android terminal to be found by other Android terminals after the.
Further, in the method, an application installation service module of an Android terminal of a non-seed terminal generates a bluetooth device list when searching for bluetooth of other Android terminals, then randomly selects an Android terminal with a bluetooth in an idle state in the bluetooth device list and initiatively initiates a connection request, a peer Android terminal establishes bluetooth connection with the peer Android terminal after receiving the connection request, at this time, the bluetooth state of the peer Android terminal is changed from the idle state to a binding state, and the other Android terminals do not send connection requests to the peer Android terminal; and after each Android terminal receives the preset task compression packet sent by the other Android terminal, the Bluetooth connection is immediately disconnected, so that the Bluetooth state of the other Android terminal is changed into an idle state again, and the Bluetooth can be discovered and connected by other Android terminals still searching for Bluetooth.
Furthermore, in the method, when receiving connection requests sent by a plurality of other Android terminals, the Android terminal in the idle state of bluetooth receives the connection request received first.
Further, in the method, the preset task compression packet is placed in the seed terminal in a copying manner.
Further, in the method, the application installation service modules of the Android terminal serving as the seed terminal and the Android terminal serving as the non-seed terminal also monitor and record abnormal conditions of the Android terminal, and monitor shutdown events of the Android terminal; when the shutdown event of the Android terminal is found, if the Android terminal is abnormal, an error dialog box is popped up and shutdown is prevented, so that timely processing is facilitated; if the Android terminal is not in an abnormal condition, the Bluetooth is closed and the cache data is cleared before the Android terminal is powered off, and a set mark is set so that the application installation service module can not be started again when the Android terminal is powered on next time.
The invention has the beneficial effects that: the invention realizes the installation and the uninstallation of the preset application in an exponential mode, and greatly improves the efficiency of the preset task. When a new preset task exists each time, only a preset task compression package needs to be simply manufactured and copied to a small number of seed terminals, the requirement of frequent change of preset application can be well met, compared with the traditional mode, the method is flexible to operate, the whole process is basically automated, and the labor cost is greatly reduced.
Detailed Description
The present invention will be further described below, and it should be noted that the present embodiment is based on the technical solution, and a detailed implementation manner and a specific operation process are provided, but the protection scope of the present invention is not limited to the present embodiment.
Example 1
The embodiment provides a system for realizing Android terminal preinstallation application in factory based on bluetooth, including:
and (3) seed terminal: one or more Android terminals are adopted as seed terminals, application installation service modules are installed in the seed terminals, the application installation service modules of the seed terminals are used for being automatically started when the seed terminals are started for the first time after the ROM is upgraded, and then the applications to be installed and the applications to be uninstalled are installed according to preset task compression packages configured in the seed terminals; the preset task compression package comprises application files to be installed and application lists to be uninstalled; the seed terminal has a Bluetooth connection function, the application installation service module of the seed terminal is also used for opening the Bluetooth of the seed terminal after the installation and the uninstallation of the application are finished, setting the Bluetooth of the seed terminal to be allowed to be found by other Android terminals, and transmitting a preset task compression packet to the connected Android terminal after the seed terminal establishes Bluetooth connection with other Android terminals;
android terminal of non-seed terminal: the method comprises the steps that an application installation service module is arranged in an Android terminal of a non-seed terminal, the application installation service module of the Android terminal of the non-seed terminal is used for being automatically started when the Android terminal is started for the first time after a ROM is upgraded, after the application installation service module is started, the Bluetooth of the Android terminal is firstly opened, the Bluetooth of other Android terminals is continuously searched while the Bluetooth of the Android terminal is forbidden to be found by other Android terminals, after the Bluetooth of other Android terminals is searched, a connection request is sent to the Android terminal, Bluetooth connection is established between the Android terminal and the Android terminal, and then Bluetooth searching is stopped; the application installation service module of the Android terminal of the non-seed terminal is also used for receiving a preset task compression packet sent by the connected Android terminal after the Android terminal establishes Bluetooth connection with other Android terminals, decompressing the preset task compression packet after receiving the preset task compression packet, completing installation and unloading tasks of the application according to the preset task compression packet, and finally setting the Bluetooth of the Android terminal to be allowed to be found by other Android terminals; the application installation service module of the Android terminal of the non-seed terminal is also used for establishing Bluetooth connection with the Android terminal after the Android terminal receives the connection requests of other Android terminals, and sending the preset task compression packet to the connected Android terminal.
Therefore, the Bluetooth of the Android terminal of each non-seed terminal cannot be found by other Android terminals until the Android terminal finishes the preset task. Therefore, the Android terminals which have already finished the preset task can be found by other Android terminals, the Android terminals which have finished the preset task can play the same role as the seed terminal, wait for connection requests sent by other Android terminals and provide services for transmitting the preset task compressed packet. Therefore, all Android terminals can finish the installation and the uninstallation of the preset application in an exponential mode.
It should be noted that, when searching for the bluetooth of another Android terminal, the application installation service module of the Android terminal of the non-seed terminal generates a bluetooth device list, then randomly selects an Android terminal in which the bluetooth is in an idle state (BOND _ NONE) in the bluetooth device list and initiatively initiates a connection request, and after receiving the connection request, the Android terminal of the opposite party establishes a bluetooth connection with the Android terminal, at this time, the bluetooth state of the Android terminal of the opposite party is changed from the idle state (BOND _ NONE) to a bound state (BOND _ bound), and the other Android terminals do not send connection requests to the Android terminal of the opposite party any more; and after each Android terminal receives the preset task compression packet sent by the other Android terminal, the Bluetooth connection is immediately disconnected, and the Bluetooth state of the other Android terminal is changed into an idle state (BOND _ NONE) again, so that the Bluetooth can be discovered and connected by other Android terminals still searching for Bluetooth.
Furthermore, the Android terminal with the Bluetooth in the idle state (BOND _ NONE) receives the connection request which is received firstly when receiving the connection requests sent by a plurality of other Android terminals.
It should be noted that, in this embodiment, the preset task compressed packet is configured in the seed terminal in a copy manner.
Furthermore, in this embodiment, the preset task compression package is named in a set format, and the application installation service module of the seed terminal detects whether there is a preset task compression package by detecting a file name.
It should be noted that the seed terminal is to be placed in a place where the Android terminals of the non-seed terminals are more concentrated, so that the Android terminals of other non-seed terminals can be connected to the seed terminal.
In this embodiment, the application installation service modules of the Android terminals serving as the seed terminal and the Android terminals serving as the non-seed terminals are further configured to monitor and record an abnormal condition of the Android terminal, and monitor a shutdown event of the Android terminal (the Android terminal that completes a preset task will finally enter a manual shutdown process); when the shutdown event of the Android terminal is found, if the Android terminal is abnormal, an error dialog box is popped up and shutdown is prevented, so that timely processing is facilitated; if the Android terminal is not in an abnormal condition, the Bluetooth is closed and the cache data is cleared before the Android terminal is powered off, and a set mark is set so that the application installation service module can not be started again when the Android terminal is powered on next time.
It should be noted that after the Android terminal in the factory upgrades the ROM, the Android terminal generally maintains a boot state for a certain time, which provides conditions for implementing the scheme of this embodiment.
It should be noted that, in the specific implementation, the interference of other external bluetooth devices is first excluded in the factory.
Example 2
The present embodiment provides a method using the system described in embodiment 1, which includes the following specific steps:
after all Android terminals to be processed upgrade ROMs, taking one or more Android terminals out as seed terminals, and placing preset task compression packages in the seed terminals; when the seed terminal is started for the first time after the ROM is upgraded, the set application installation service module is automatically started, when a preset task compression package is detected in the seed terminal, the preset task compression package is decompressed, the application files in the preset task compression package are installed, and the corresponding applications are unloaded according to the application list to be unloaded in the preset task compression package; after the application installation service module of the seed terminal completes the installation and the uninstallation of the application, the Bluetooth of the seed terminal is opened and is set to be allowed to be discovered by other Android terminals;
placing the seed terminal in a place where the Android terminal of the non-seed terminal is concentrated; when the Android terminal of each non-seed terminal is started for the first time after the ROM is upgraded, the set application installation service module is automatically started, the Bluetooth of the Android terminal is started firstly, and the Bluetooth of other Android terminals is continuously searched while the Bluetooth of the Android terminal is forbidden to be found by other Android terminals;
initially, the Android terminal of the non-seed terminal can find that the Android terminal is the Bluetooth of the seed terminal, sends a connection request to the seed terminal after finding, and stops Bluetooth searching after the other side receives the connection request of the other side; the method comprises the steps that after receiving a connection request from an Android terminal of a non-seed terminal, the seed terminal establishes Bluetooth connection with the Android terminal, and sends a preset task compression packet to the Android terminal of the connected non-seed terminal; after receiving the preset task compression package, the Android terminal of the non-seed terminal decompresses the preset task compression package by the set application installation service module, installs the application file therein, unloads the corresponding application according to the application list to be unloaded therein, and sets the Bluetooth of the Android terminal to be allowed to be discovered by other Android terminals;
after some Android terminals of the non-seed terminals complete the preset tasks, the Android terminals of other non-seed terminals which do not complete the preset tasks can find the Bluetooth of the seed terminal and the Bluetooth of the Android terminal of the non-seed terminal which completes the preset tasks, the preset task compressed packet sent by the other party can be received as long as the Bluetooth of one of the seed terminal and the Android terminal of the non-seed terminal which does not complete the preset tasks is connected, the application installation service module arranged on the Android terminal of the non-seed terminal which does not complete the preset tasks decompresses the preset task compressed packet, the application file in the application compressed packet is installed, the corresponding application is unloaded according to the application list to be unloaded, and the Bluetooth of the Android terminal in which the application file is located is set to allow the Bluetooth of the Android terminal to be found by other Android terminals after the.
In the method, an application installation service module of an Android terminal of a non-seed terminal generates a Bluetooth device list when searching Bluetooth of other Android terminals, then randomly selects an Android terminal of which the Bluetooth is in an idle state (BOND _ NONE) in the Bluetooth device list and initiatively initiates a connection request, a counterpart Android terminal establishes Bluetooth connection with the counterpart Android terminal after receiving the connection request, and at the moment, the Bluetooth state of the counterpart Android terminal is changed from the idle state (BOND _ NONE) to a bound state (BOND _ BONDED), and the other Android terminals cannot send connection requests to the counterpart Android terminal; and after each Android terminal receives the preset task compression packet sent by the other Android terminal, the Bluetooth connection is immediately disconnected, and the Bluetooth state of the other Android terminal is changed into an idle state (BOND _ NONE) again, so that the Bluetooth can be discovered and connected by other Android terminals still searching for Bluetooth.
Furthermore, the Android terminal with the Bluetooth in the idle state (BOND _ NONE) receives the connection request which is received firstly when receiving the connection requests sent by a plurality of other Android terminals.
Further, in the method, the preset task compressed packet is placed in the seed terminal in a copying manner.
Further, in the method, the preset task compression package is named by adopting a set format, and the application installation service module of the seed terminal detects whether the preset task compression package exists in the seed terminal or not by detecting the file name.
Further, in the method, the application installation service modules of the Android terminal serving as the seed terminal and the Android terminal serving as the non-seed terminal also monitor and record abnormal conditions of the Android terminal, and monitor shutdown events of the Android terminal; when the shutdown event of the Android terminal is found, if the Android terminal is abnormal, an error dialog box is popped up and shutdown is prevented, so that timely processing is facilitated; if the Android terminal is not in an abnormal condition, the Bluetooth is closed and the cache data is cleared before the Android terminal is powered off, and a set mark is set so that the application installation service module can not be started again when the Android terminal is powered on next time.
Various corresponding changes and modifications can be made by those skilled in the art based on the above technical solutions and concepts, and all such changes and modifications should be included in the protection scope of the present invention.

Claims (10)

1. System that uses is installed in advance at factory realization Android terminal based on bluetooth, its characterized in that includes:
and (3) seed terminal: one or more Android terminals are adopted as seed terminals, application installation service modules are installed in the seed terminals, the application installation service modules of the seed terminals are used for being automatically started when the seed terminals are started for the first time after the ROM is upgraded, and then the applications to be installed and the applications to be uninstalled are installed according to preset task compression packages configured in the seed terminals; the preset task compression package comprises application files to be installed and application lists to be uninstalled; the seed terminal has a Bluetooth connection function, the application installation service module of the seed terminal is also used for opening the Bluetooth of the seed terminal after the installation and the uninstallation of the application are finished, setting the Bluetooth of the seed terminal to be allowed to be found by other Android terminals, and transmitting a preset task compression packet to the connected Android terminal after the seed terminal establishes Bluetooth connection with other Android terminals;
android terminal of non-seed terminal: the method comprises the steps that an application installation service module is arranged in an Android terminal of a non-seed terminal, the application installation service module of the Android terminal of the non-seed terminal is used for being automatically started when the Android terminal is started for the first time after a ROM is upgraded, after the application installation service module is started, the Bluetooth of the Android terminal is firstly opened, the Bluetooth of other Android terminals is continuously searched while the Bluetooth of the Android terminal is forbidden to be found by other Android terminals, after the Bluetooth of other Android terminals is searched, a connection request is sent to the Android terminal, Bluetooth connection is established between the Android terminal and the Android terminal, and then Bluetooth searching is stopped; the application installation service module of the Android terminal of the non-seed terminal is also used for receiving a preset task compression packet sent by the connected Android terminal after the Android terminal establishes Bluetooth connection with other Android terminals, decompressing the preset task compression packet after receiving the preset task compression packet, completing installation and unloading tasks of the application according to the preset task compression packet, and finally setting the Bluetooth of the Android terminal to be allowed to be found by other Android terminals; the application installation service module of the Android terminal of the non-seed terminal is also used for establishing Bluetooth connection with the Android terminal after the Android terminal receives the connection requests of other Android terminals, and sending the preset task compression packet to the connected Android terminal.
2. The system according to claim 1, wherein an application installation service module of an Android terminal of a non-seed terminal generates a Bluetooth device list when searching for Bluetooth of other Android terminals, then randomly selects an Android terminal with Bluetooth in an idle state in the Bluetooth device list and actively initiates a connection request, a counterpart Android terminal establishes Bluetooth connection with the counterpart Android terminal after receiving the connection request, at this time, the Bluetooth state of the counterpart Android terminal is changed from the idle state to a binding state, and the other Android terminals do not send connection requests to the counterpart Android terminal any more; and after each Android terminal receives the preset task compression packet sent by the other Android terminal, the Bluetooth connection is immediately disconnected, so that the Bluetooth state of the other Android terminal is changed into an idle state again, and the Bluetooth can be discovered and connected by other Android terminals still searching for Bluetooth.
3. The system according to claim 2, wherein the Android terminal with Bluetooth in an idle state accepts the connection request received first when receiving connection requests sent by a plurality of other Android terminals.
4. The system of claim 1, wherein the pre-set task compression package is named in a set format, and the application installation service module of the seed terminal detects whether the pre-set task compression package exists by detecting a file name.
5. The system according to claim 1, wherein the application installation service modules of the Android terminals as the seed terminal and the Android terminals as the non-seed terminal are further used for monitoring and recording abnormal conditions of the Android terminal, and monitoring shutdown events of the Android terminal; when the shutdown event of the Android terminal is found, if the Android terminal is abnormal, an error dialog box is popped up and shutdown is prevented, so that timely processing is facilitated; if the Android terminal is not in an abnormal condition, the Bluetooth is closed and the cache data is cleared before the Android terminal is powered off, and a set mark is set so that the application installation service module can not be started again when the Android terminal is powered on next time.
6. A method using the system of any one of claims 1-5, characterized in that the specific process is as follows:
after all Android terminals to be processed upgrade ROMs, taking one or more Android terminals out as seed terminals, and placing preset task compression packages in the seed terminals; when the seed terminal is started for the first time after the ROM is upgraded, the set application installation service module is automatically started, when a preset task compression package is detected in the seed terminal, the preset task compression package is decompressed, the application files in the preset task compression package are installed, and the corresponding applications are unloaded according to the application list to be unloaded in the preset task compression package; after the application installation service module of the seed terminal completes the installation and the uninstallation of the application, the Bluetooth of the seed terminal is opened and is set to be allowed to be discovered by other Android terminals;
placing the seed terminal in a place where the Android terminal of the non-seed terminal is concentrated; when the Android terminal of each non-seed terminal is started for the first time after the ROM is upgraded, the set application installation service module is automatically started, the Bluetooth of the Android terminal is started firstly, and the Bluetooth of other Android terminals is continuously searched while the Bluetooth of the Android terminal is forbidden to be found by other Android terminals;
initially, the Android terminal of the non-seed terminal can find that the Android terminal is the Bluetooth of the seed terminal, sends a connection request to the seed terminal after finding, and stops Bluetooth searching after the other side receives the connection request of the other side; the method comprises the steps that after receiving a connection request from an Android terminal of a non-seed terminal, the seed terminal establishes Bluetooth connection with the Android terminal, and sends a preset task compression packet to the Android terminal of the connected non-seed terminal; after receiving the preset task compression package, the Android terminal of the non-seed terminal decompresses the preset task compression package by the set application installation service module, installs the application file therein, unloads the corresponding application according to the application list to be unloaded therein, and sets the Bluetooth of the Android terminal to be allowed to be discovered by other Android terminals;
after some Android terminals of the non-seed terminals complete the preset tasks, the Android terminals of other non-seed terminals which do not complete the preset tasks can find the Bluetooth of the seed terminal and the Bluetooth of the Android terminal of the non-seed terminal which completes the preset tasks, the preset task compressed packet sent by the other party can be received as long as the Bluetooth of one of the seed terminal and the Android terminal of the non-seed terminal which does not complete the preset tasks is connected, the application installation service module arranged on the Android terminal of the non-seed terminal which does not complete the preset tasks decompresses the preset task compressed packet, the application file in the application compressed packet is installed, the corresponding application is unloaded according to the application list to be unloaded, and the Bluetooth of the Android terminal in which the application file is located is set to allow the Bluetooth of the Android terminal to be found by other Android terminals after the.
7. The method according to claim 6, characterized in that an application installation service module of an Android terminal of a non-seed terminal generates a Bluetooth device list when searching for Bluetooth of other Android terminals, then randomly selects an Android terminal with Bluetooth in an idle state in the Bluetooth device list and actively initiates a connection request, a counterpart Android terminal establishes Bluetooth connection with the counterpart Android terminal after receiving the connection request, at this time, the Bluetooth state of the counterpart Android terminal is changed from the idle state to a binding state, and the other Android terminals do not send connection requests to the counterpart Android terminal any more; and after each Android terminal receives the preset task compression packet sent by the other Android terminal, the Bluetooth connection is immediately disconnected, so that the Bluetooth state of the other Android terminal is changed into an idle state again, and the Bluetooth can be discovered and connected by other Android terminals still searching for Bluetooth.
8. The method according to claim 7, wherein the Android terminal with Bluetooth in an idle state accepts the connection request received first when receiving connection requests sent by a plurality of other Android terminals.
9. The method of claim 5, wherein the pre-set task compression package is embedded in the seed terminal by means of copying.
10. The method according to claim 5, wherein the application installation service modules of the Android terminals as the seed terminal and the Android terminals as the non-seed terminal also monitor and record abnormal conditions of the Android terminal and monitor shutdown events of the Android terminal; when the shutdown event of the Android terminal is found, if the Android terminal is abnormal, an error dialog box is popped up and shutdown is prevented, so that timely processing is facilitated; if the Android terminal is not in an abnormal condition, the Bluetooth is closed and the cache data is cleared before the Android terminal is powered off, and a set mark is set so that the application installation service module can not be started again when the Android terminal is powered on next time.
CN202110084321.4A 2021-01-21 2021-01-21 Bluetooth-based system and method for pre-installing application of Android terminal in factory Active CN112887951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110084321.4A CN112887951B (en) 2021-01-21 2021-01-21 Bluetooth-based system and method for pre-installing application of Android terminal in factory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110084321.4A CN112887951B (en) 2021-01-21 2021-01-21 Bluetooth-based system and method for pre-installing application of Android terminal in factory

Publications (2)

Publication Number Publication Date
CN112887951A true CN112887951A (en) 2021-06-01
CN112887951B CN112887951B (en) 2022-10-21

Family

ID=76051696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110084321.4A Active CN112887951B (en) 2021-01-21 2021-01-21 Bluetooth-based system and method for pre-installing application of Android terminal in factory

Country Status (1)

Country Link
CN (1) CN112887951B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130051378A1 (en) * 2011-08-29 2013-02-28 Randal Gruberman System and method for remotely controlling features of wireless mobile devices
CN108234572A (en) * 2016-12-21 2018-06-29 青岛祥智电子技术有限公司 A kind of multiple terminals software parallel downloads upgrade method
CN108898686A (en) * 2018-07-20 2018-11-27 四川知格科技有限公司 A kind of parking lot charging method
CN108989428A (en) * 2018-07-17 2018-12-11 深圳市联新移动医疗科技有限公司 Bluetooth terminal upgrade method, server, computer readable storage medium and system
CN108989449A (en) * 2018-08-03 2018-12-11 杭州安恒信息技术股份有限公司 A kind of big file propagation method and device under the scene applied to large scale deployment
CN109257726A (en) * 2018-08-20 2019-01-22 深圳卡通新技术有限公司 A kind of identity identifying method based on Bluetooth communication, system and relevant apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130051378A1 (en) * 2011-08-29 2013-02-28 Randal Gruberman System and method for remotely controlling features of wireless mobile devices
CN108234572A (en) * 2016-12-21 2018-06-29 青岛祥智电子技术有限公司 A kind of multiple terminals software parallel downloads upgrade method
CN108989428A (en) * 2018-07-17 2018-12-11 深圳市联新移动医疗科技有限公司 Bluetooth terminal upgrade method, server, computer readable storage medium and system
CN108898686A (en) * 2018-07-20 2018-11-27 四川知格科技有限公司 A kind of parking lot charging method
CN108989449A (en) * 2018-08-03 2018-12-11 杭州安恒信息技术股份有限公司 A kind of big file propagation method and device under the scene applied to large scale deployment
CN109257726A (en) * 2018-08-20 2019-01-22 深圳卡通新技术有限公司 A kind of identity identifying method based on Bluetooth communication, system and relevant apparatus

Also Published As

Publication number Publication date
CN112887951B (en) 2022-10-21

Similar Documents

Publication Publication Date Title
US9529580B2 (en) Vehicle control update methods and systems
US9841970B2 (en) Vehicle control update methods and systems
US9858064B2 (en) Methods and apparatus for vehicle computing system software updates
US7899959B2 (en) Method of loading software in mobile and desktop environments
US20060258342A1 (en) Methods and apparatus for providing wireless device-centric control of an external computing device
EP2878140B1 (en) Wireless firmware upgrades to an alarm security panel
US20040117785A1 (en) Component download manager for a wireless mobile station and method of operation
CN109831338B (en) Vehicle machine system upgrading method, cloud server and mobile terminal
WO2011127860A2 (en) Method, server and system for starting application
GB2378531A (en) Providing application / driver software for an accessory of a communications device
JP2006203392A (en) Software radio apparatus and on-vehicle information system
US8732694B2 (en) Method and system for performing services in server and client of client/server architecture
US20040039965A1 (en) Compliance testing communication protocols implemented on resource-constrained computing devices
US20100077024A1 (en) Method for transmitting data transmitted incompletely between server and client
WO2018086478A1 (en) Method and device for upgrading wifi module in set top box, set top box and system
CN107291510A (en) A kind of Linux inter-vehicle information systems quick start method
CN112235404A (en) Silent upgrade method and equipment for earphone and charging box
CN102968321A (en) Application program installation device and application program installation method
WO2012094853A1 (en) Method, device and system for installing terminal software
CN112887951B (en) Bluetooth-based system and method for pre-installing application of Android terminal in factory
CN112015441A (en) Updating method and system of vehicle-mounted terminal
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN1794654A (en) Equipment failure restoring device and method for digital household network
CN112929872B (en) System and method for realizing Android terminal preinstallation application in factory based on WIFI
JP5287632B2 (en) In-vehicle wireless communication device

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