CN115568035A - Wireless extraction method of mobile phone data, terminal and storage medium - Google Patents

Wireless extraction method of mobile phone data, terminal and storage medium Download PDF

Info

Publication number
CN115568035A
CN115568035A CN202211039016.4A CN202211039016A CN115568035A CN 115568035 A CN115568035 A CN 115568035A CN 202211039016 A CN202211039016 A CN 202211039016A CN 115568035 A CN115568035 A CN 115568035A
Authority
CN
China
Prior art keywords
mobile phone
target mobile
adb
data extraction
data
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
CN202211039016.4A
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.)
Xiamen Meiya Pico Information Co Ltd
Original Assignee
Xiamen Meiya Pico Information 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 Xiamen Meiya Pico Information Co Ltd filed Critical Xiamen Meiya Pico Information Co Ltd
Priority to CN202211039016.4A priority Critical patent/CN115568035A/en
Publication of CN115568035A publication Critical patent/CN115568035A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a wireless extraction method, a terminal and a storage medium of mobile phone data, wherein the method comprises the following steps: s1, enabling a data extraction terminal and a target mobile phone to access the same local area network; s2, after the target mobile phone enters a wireless debugging mode and generates the IP address, the port number and the pairing code of the target mobile phone, the IP address, the port number and the pairing code of the target mobile phone are obtained; s3, according to the acquired IP address, the port number and the pairing code, establishing ADB TCP/IP connection with the target mobile phone through an ADB remote connection command; and S4, extracting data from the target mobile phone through the established ADB TCP/IP connection. By utilizing the technical scheme, the method does not need to depend on third-party application, has small limitation, reduces the manual operation times of a user, improves the automation degree and the extraction efficiency, and is beneficial to mobile office of workers.

Description

Wireless extraction method of mobile phone data, terminal and storage medium
Technical Field
The invention relates to the field of mobile phone data forensics, in particular to a wireless mobile phone data extraction method, a terminal and a storage medium.
Background
At present, mobile phones have become indispensable tools for people to work, live, entertain and the like, and the data carried by the mobile phones are more and more abundant. The Android mobile phone affects the whole mobile internet market due to the high occupancy rate of the Android mobile phone. The importance of the Android mobile phone to data extraction is self-evident. The traditional data extraction equipment in the laboratory is a PC workstation, and a USB interface is used for extracting data; the mobile phone is required to be taken back to a laboratory for data extraction, but in the actual working situation, the mobile phone of the related mobile personnel is required to be capable of performing data extraction at each flow point for quick retrieval and investigation, and the traditional laboratory scheme cannot meet the requirement. At present, software for extracting data is installed in a notebook computer or a tablet computer to realize mobile operation in the market, and the software does not have portability.
According to a traditional USB wired extraction mode, mobile phone drivers need to be installed, the drivers of different mobile phones are different, the requirement for USB compatibility of acquisition equipment is higher, and if the drivers cannot be found, a target mobile phone cannot be extracted. The long-time USB wired contact can shorten the service life of the USB port of the device, and the USB port is damaged or has poor contact, which is not beneficial to the development of data extraction work.
The mainstream wireless data extraction mode in the market at present has 2 schemes, and the first scheme adopts a data hijack mode, and the extracted mobile phone needs to open a browser to access any webpage and skip the webpage to download the data extraction APP through the data hijack, but because the compatibility and the safety of the mobile phone third-party browser are problems, the problem that the webpage hijack fails or the safety limit does not allow the downloading of the third-party APP can occur. The second scheme adopts the equipment end to extract APP through NFC transmission data to extract the mobile phone, and the equipment end and the mobile phone are directly connected through WiFi to be in communication connection. After the user has transmitted the file through NFC, need the user to go the file management and look for data and draw APP, manually go to install APP, still need manually to open APP after the installation is accomplished, the extraction process needs the user to click the operation many times, degree of automation is lower, influences extraction efficiency, and open the hot spot equipment that wiFi directly links very power consumptively, can shorten the time of endurance who draws equipment like this, be unfavorable for removing the development of drawing work.
In conclusion, the existing USB wired extraction scheme has the defects that the USB driver is failed to be installed and the USB port is easily damaged; the existing wireless extraction mode is too dependent on third-party software, and has the defect of more limitation; the existing NFC and WiFi direct connection mode has the defects of more times of manual participation, power consumption of equipment and the like.
Disclosure of Invention
The embodiment of the invention provides a wireless extraction method of mobile phone data, a terminal and a storage medium, which aim to solve the technical problems that the existing wireless extraction method of mobile phone data depends on third-party software, the automation degree is low and the equipment consumes power.
In order to achieve the above object, on one hand, a method for wirelessly extracting data of a mobile phone is provided, including:
s1, enabling a data extraction terminal and a target mobile phone to access the same local area network;
s2, after the target mobile phone enters a wireless debugging mode and generates the IP address, the port number and the pairing code of the target mobile phone, the data extraction terminal acquires the IP address, the port number and the pairing code of the target mobile phone;
s3, the data extraction terminal establishes ADB TCP/IP connection with the target mobile phone through an ADB remote connection command according to the acquired IP address, the port number and the pairing code;
and S4, the data extraction terminal extracts data from the target mobile phone through the established ADB TCP/IP connection.
Preferably, the method, wherein step S2 comprises:
after the target mobile phone enters a wireless debugging mode and generates an IP address, a port number and a pairing code of the target mobile phone, the data extraction terminal acquires a picture containing the IP address, the port number and the pairing code of the target mobile phone;
and the data extraction terminal identifies the acquired picture to obtain the IP address, the port number and the pairing code of the target mobile phone.
Preferably, the method, in step S2, the entering of the target mobile phone into the wireless debug mode and the generation of the IP address, the port number, and the pairing code of the target mobile phone includes:
the target mobile phone starts wireless debugging in response to the instruction of entering the wireless debugging mode;
replacing X in service.adb.tcp.portX configured in a target mobile phone with a randomly generated port number;
and monitoring the randomly generated port number by an ADB Daemon process in the target mobile phone, and waiting for an ADB server side in the data extraction terminal to establish connection.
Preferably, in step S2, the method further includes displaying the IP address, the port number, and the pairing code of the target mobile phone on a display screen of the target mobile phone after the target mobile phone generates the IP address, the port number, and the pairing code of the target mobile phone, and the acquiring, by the data extraction terminal, a picture including the IP address, the port number, and the pairing code of the target mobile phone includes:
acquiring a picture containing an IP address, a port number and a pairing code of a target mobile phone in a shooting mode through a camera arranged on a data extraction terminal; or
And the data extraction terminal receives a screenshot picture which is transmitted by the target mobile phone and contains the IP address, the port number and the pairing code of the target mobile phone.
Preferably, in the method, the data extraction terminal includes an ADB client and an ADB server, and the ADB client establishes a connection with the ADB server through a designated port.
Preferably, the method, wherein step S3 comprises:
the ADB client executes an ADB remote connection command according to the acquired IP address, port number and pairing code, and issues the IP address, port number and pairing code of the target mobile phone to the ADB server;
and the ADB server receives the IP address, the port number and the pairing code of the target mobile phone issued by the ADB client, and establishes TCP/IP connection with the adbd Daemon process of the target mobile phone.
Preferably, the method is that a plurality of target mobile phones are provided; the data extraction terminal establishes ADB TCP/IP connection with a plurality of target mobile phones through ADB remote connection commands respectively, each target mobile phone establishing ADB TCP/IP connection with the data extraction terminal generates a unique serial number, and the data extraction terminal distinguishes different target mobile phones through the serial numbers.
Preferably, the method, wherein step S4 includes:
the data extraction terminal is connected with a target mobile phone through the established ADB TCP/IP and is provided with an extraction application component, and the extraction application component is used for extracting data through an android interface on the target mobile phone and sending the data to the data extraction terminal;
and the data extraction terminal receives the data sent by the extraction application component, and analyzes and restores the data.
Preferably, the method further comprises, after step S4:
and the data extraction terminal sends a prompt for unloading the extraction application component to the target mobile phone through the established ADB TCP/IP connection, responds to an instruction of unloading the extraction application component in the target mobile phone selected by the user, and unloads the extraction application component through the established ADB TCP/IP connection.
Preferably, in the method, in step S1, the data extraction terminal enables the target mobile phone to access the same local area network through a wireless router arranged on the data extraction terminal.
In another aspect, a data extraction terminal is provided, comprising a memory and a processor, the memory storing at least one program, the at least one program being executable by the processor to implement any of the methods as described above.
In yet another aspect, a computer readable storage medium is provided, in which at least one program is stored, the at least one program being executable by a processor to implement any of the methods as described above.
The technical scheme has the following technical effects:
the technical scheme of the embodiment of the invention creatively utilizes the wireless debugging function of the mobile phone, such as an Android mobile phone, acquires the IP address, the port number and the pairing code of the target mobile phone through the wireless debugging function of the mobile phone, and then establishes ADB TCP/IP connection with the target mobile phone through an ADB remote connection command by utilizing the acquired IP address, the port number and the pairing code, thereby realizing the wireless extraction of the data of the mobile phone by utilizing the established ADB TCP/IP connection. By using the technical scheme of the embodiment of the invention to wirelessly extract the mobile phone data, no driver is required to be installed, the use is easier, the extraction time is saved, the power supply for the target mobile phone is not required, and the cruising ability of the equipment is improved.
Further, by utilizing the established ADB TCP/IP connection, the data extraction terminal, namely the equipment terminal, can directly use the ADB command to transmit, install, start, uninstall and other operations to the data extraction component on the target mobile phone, such as the data extraction APP, without depending on a third party application, the limitation is small, the ADB remote operation mode can reduce the manual operation times of users, and the extraction efficiency is higher. In short, the ADB connection communication established between the data extraction terminal and the target mobile phone can be used for extracting one-click installation of the application, is convenient and fast, and avoids a plurality of manual operations required in the existing wireless extraction method.
Drawings
Fig. 1 is a schematic flow chart illustrating a method for wirelessly extracting mobile phone data according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a method for wireless extraction of mobile phone data according to another embodiment of the present invention;
fig. 3 is an example of an IP address, a port number, and a pairing code shown in a picture on a mobile phone in a wireless extraction method according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a data extraction terminal and a mobile phone end implementing wireless connection by using an ADB TCP/IP connection manner;
fig. 5 is a schematic structural diagram of a data extraction terminal according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an overall architecture for implementing a data extraction method according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating the overall operation of the architecture of fig. 6 for wireless extraction of data from a mobile phone.
Detailed Description
To further illustrate the various embodiments, the invention provides the accompanying drawings. The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the embodiments. Those skilled in the art will appreciate still other possible embodiments and advantages of the present invention with reference to these figures. Elements in the figures are not drawn to scale and like reference numerals are generally used to indicate like elements.
The invention will now be further described with reference to the drawings and the detailed description.
The first embodiment is as follows:
fig. 1 is a flowchart illustrating a method for wirelessly extracting data from a mobile phone according to an embodiment of the present invention. As shown in fig. 1, a method for wirelessly extracting mobile phone data according to an embodiment of the present invention includes:
s1, enabling a data extraction terminal and a target mobile phone to access the same local area network;
s2, after the target mobile phone enters a wireless debugging mode and generates the IP address, the port number and the pairing code of the target mobile phone, the data extraction terminal acquires the IP address, the port number and the pairing code of the target mobile phone;
s3, the data extraction terminal establishes ADB TCP/IP connection with the target mobile phone through an ADB remote connection command according to the acquired IP address, the port number and the pairing code;
and S4, the data extraction terminal extracts data from the target mobile phone through the established ADB TCP/IP connection.
The technical scheme of the embodiment of the invention is suitable for the mobile phone which has a wireless debugging function and can enter a wireless debugging mode, such as an Android (Android) mobile phone with the wireless debugging function. After the mobile phone generates the IP address, the port number and the pairing code in the wireless debugging mode, the data extraction terminal can acquire the IP address, the port number and the pairing code in a plurality of ways. If the generated IP address, port number, and pairing code are displayed on the display screen of the mobile phone, the data extraction terminal can directly take a picture by using a camera arranged on the data extraction terminal to obtain picture information including the IP address, the port number, and the pairing code, and how to obtain the picture information by using a picture identification mode. Or, the user can transmit the screen shot of the IP address, the port number and the pairing code displayed by the mobile phone to the data extraction terminal through the local area network. Or a two-dimensional code mode, or a mode of directly providing interface manual input, and the like, the data extraction terminal may have various modes to acquire the IP address, the port number, and the pairing code of the target mobile phone. After the acquired IP address, port number and pairing code are utilized, the data extraction terminal can establish ADB TCP/IP connection with a target mobile phone, and then the ADB connection can be utilized to realize convenient mobile phone data wireless extraction.
Example two:
fig. 2 is a flowchart illustrating a method for wirelessly extracting data from a mobile phone according to another embodiment of the present invention. As shown in fig. 2, the method for wirelessly extracting handset data of this embodiment includes:
1) Starting a wireless extraction process, and connecting a device end, namely a data extraction terminal, with a target mobile phone to the same local area network;
2) The target mobile phone supports wireless debugging, opens wireless debugging in the developer permission of the mobile phone, generates an IP address, a port number and a pairing code of the mobile phone and displays the IP address, the port number and the pairing code in a picture mode, as shown in FIG. 3;
3) The equipment side acquires the picture, if the picture is acquired in a photographing mode, the picture is identified, and an IP address, a port number and a pairing code in the picture are analyzed; in this step, the specific recognition function can be completed by using various image recognition modules or components in the prior art, such as OCR and the like, which are not described herein again;
4) According to the acquired IP address, port number and pairing code of the target mobile phone, the equipment end completes connection with the target mobile phone through an ADB remote connection command and establishes ADB TCP/IP communication with the target mobile phone;
fig. 4 is a schematic diagram of a data extraction terminal, i.e., a device side and a mobile phone side, implementing wireless connection by using an ADB TCP/IP connection manner. As shown in fig. 4, the data extraction terminal includes an ADB Client (ADB Client) and an ADB Server (ADB Server), and the ADB Client establishes a connection with the ADB Server through a designated port. In one implementation, after the ADB Server at the device side is started, the ADB Client binds to the 5037 port of the device, and connects, i.e., dialogues, with the ADB Server by using 5037.
In fig. 4, the adbd Daemon is a process running in the background of the Android device, that is, a Daemon process, and the process monitors one of the USB connection and the network connection according to the configuration of the mobile phone when the server is started. The process is used for processing the command line request of the ADB Server, acquiring corresponding information sent by the ADB Server and returning the result to the ADB Server.
Wireless commissioning supports the deployment and commissioning of applications wirelessly from a workstation using an ADB. After the wireless debugging is started, replacing X in service.adb.tcp.portX configured in the mobile phone with a new randomly generated port number, wherein the port number is any integer of a value range [1,65535 ]. When the port value is larger than 0, the adbd monitors the port corresponding to the network and waits for the ADB Server to establish connection.
If the device side executes the ADB remote connection command through the ADB client side according to the acquired port, IP address and pairing code of the mobile phone, and issues the IP address, port number and pairing code of the target mobile phone to the ADB server side. The ADB Server receives the port and the IP address issued by the ADB Client and the adbd Daemon of the mobile phone to complete TCP/IP connection.
And after the ADB TCP/IP connection is established, the data extraction terminal extracts data from the target mobile phone through the established ADB TCP/IP connection. In the specific implementation, the data extraction terminal is connected to a target mobile phone through an established ADB TCP/IP and is provided with an extraction application component such as an extraction application APP, the extraction application component is used for extracting data through an android interface on the target mobile phone and sending the data to the data extraction terminal, and the data extraction terminal receives the data sent by the extraction application component and analyzes and restores the data. In a specific implementation, the data extraction terminal may parse and restore the extracted data through a data extraction service module or component disposed thereon, and if necessary, further perform decryption, screening, and displaying to the user in a desired manner. The method comprises the following steps of obtaining various data such as short messages, address lists, communication data and the like from a mobile phone by utilizing an extraction application component such as an APP in the prior art; the data extracted from the handset can be parsed and restored using prior art data extraction service modules or components.
In specific implementation, because the data to be acquired in different working scenes are different, a user can set different data extraction strategies according to needs. The data extraction terminal may provide the user with the functionality of data extraction policy setting and/or selection, for example, by way of a data extraction service module or component. In a specific implementation, after a data extraction APP is started, a corresponding strategy of data extraction is actively acquired from a data extraction service component; after the data extraction service module sends a data extraction strategy to the mobile phone, after a data extraction APP of the mobile phone obtains the strategy, information on the mobile phone is gradually obtained according to the received strategy; the data extraction APP pushes the acquired information to a data extraction service module, then whether the information needs to be acquired or not is judged, if yes, the information continues to be acquired, and if not, the information acquisition is finished; after the information acquisition is finished, the user may be prompted to delete the data extraction APP. If the user selects to delete the data extraction component such as APP, responding to the instruction of uninstalling the extraction application component in the target mobile phone, the data extraction terminal can uninstall the extraction application component such as APP through the established ADB TCP/IP connection.
In one particular implementation, the data extraction service component performs the steps of: monitoring a designated port, and allowing the data extraction APP to be accessed at any time; providing a policy configuration service, allowing a user to modify an extraction policy through a UI interface; providing a policy download service, and allowing the data extraction APP to acquire an extraction policy through an API (application programming interface); and providing a data receiving service, and receiving data and extracting data information pushed by the APP.
In a specific implementation of the embodiment of the present invention, one data extraction terminal can simultaneously perform wireless extraction on data of multiple target mobile phones. When a plurality of target mobile phones are extracted, the data extraction terminals can establish ADB TCP/IP connection to realize wireless extraction by the method of the embodiment of the invention; and part of the target mobile phones can also establish ADB wired connection through the USB port. Under the condition that a plurality of target mobile phones exist, the data extraction terminal respectively establishes ADB connection with the plurality of target mobile phones through ADB remote connection commands, wherein after ADB TCP/IP connection and/or ADB USB connection are included, each target mobile phone establishing ADB connection with the data extraction terminal generates a unique serial number, and the data extraction terminal distinguishes different target mobile phones through the serial numbers. Specifically, a set of data protocols can be defined to simultaneously receive data information of multiple data extraction APPs, realize a multi-channel data extraction function, and be compatible with data extraction of a single USB wired mobile phone or a mobile storage medium.
By utilizing the established ADB TCP/IP connection, the data extraction terminal, namely the equipment end can directly use the ADB command to carry out operations such as transmission, installation, starting, unloading and the like on the data extraction component on the target mobile phone, without depending on third-party application, the limitation is small, the ADB remote operation mode can reduce the manual operation times of a user, and the automation degree and the extraction efficiency are high; and the operation is simple and convenient, which is very helpful for workers to move and work. In short, the ADB connection communication established between the data extraction terminal and the target mobile phone can be used for extracting one-click installation of the application, is convenient and fast, and avoids a plurality of manual operations required in the existing wireless extraction method.
Example three:
the present invention further provides a data extraction terminal, configured to extract mobile phone data wirelessly, as shown in fig. 5, where the data extraction terminal includes a processor 501, a memory 502, a bus 503, and a computer program stored in the memory 502 and executable on the processor 501, the processor 501 includes one or more processing cores, the memory 502 is connected to the processor 501 through the bus 503, and the memory 502 is configured to store program instructions, and when the processor executes the computer program, the steps in the foregoing method embodiments of the first embodiment of the present invention are implemented.
Further, as an executable scheme, the data extraction terminal may be a computer unit, and the computer unit may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The computer unit may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the above-described constituent structures of the computer unit are merely examples of the computer unit, and do not constitute a limitation of the computer unit, and may include more or less components than those described above, or combine some components, or different components. For example, the computer unit may further include an input/output device, a network access device, a bus, and the like, which is not limited in this embodiment of the present invention.
Further, as an executable solution, the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, and the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer unit and which is connected to various parts of the overall computer unit by various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement the various functions of the computer unit by running or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the mobile phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Example four:
fig. 6 is a schematic diagram of an overall architecture for implementing the data extraction method according to an embodiment of the present invention. As shown in fig. 6, the technical solution of the embodiment of the present invention relates to 8 components of an ADB Client, an ADB Server, a Daemon (Daemon), a data extraction APP, a data extraction service module, a wireless debugging module, an image identification service module, and a wireless router. The data extraction APP, the wireless debugging module and the Daemon (adbd) operate on the mobile phone, and the ADB Client, the ADB Server, the data extraction service module, the picture identification service module and the wireless router operate on the data extraction terminal, namely the equipment terminal. The picture identification service module is used for carrying out character identification on the pictures displayed by the mobile phone. The wireless router component is used for providing wireless internet access service for the target mobile phone. The above-described functionality may be implemented using prior art wireless router components. The functions of the other modules are as described above.
And the data extraction terminal and the target mobile phone are accessed into the same local area network through the wireless router. The wireless router may be disposed on the data extraction terminal in a module manner, or an external wireless router may be used to implement the above-mentioned function of accessing to the same local area network.
Fig. 7 shows an overall workflow diagram of the architecture of the embodiment shown in fig. 6 when performing wireless extraction of handset data. As in fig. 7, the overall workflow includes:
1) After the data extraction process starts, the ADB Server binds to the port of the native 5037; the ADB Client uses the 5037 port to talk with the ADB Server;
2) Connecting a wireless router erected by a device end, namely a data extraction terminal, on a target mobile phone;
3) The mobile phone end opens wireless debugging of developer permission and sets a random port, wherein an IP address, the port and a pairing code are displayed in a picture mode;
4) The device side calls the picture identification to identify the picture generated by the target mobile phone and extract characters, and an IP address, a port number and a pairing code of the target mobile phone are obtained;
5) The device side calls an ADB remote connection command to establish ADB TCP/IP connection between the device side and the mobile phone side;
6) The device side installs and starts a data extraction APP through an ADB installation command, extracts related data and sends the data to a data extraction service component;
7) The data extraction service component receives data and executes data analysis;
8) Prompting a user to uninstall the software after the data extraction APP data push is completed;
9) And unloading data and extracting the APP.
When the wireless extraction method provided by the embodiment of the invention is used for extracting the mobile phone data, no line is needed in the whole extraction process, and the operation of a user is greatly reduced. Once the ADB connection between the data extraction terminal and the target mobile phone is established, many wireless acquisitions which cannot be realized originally can be realized at present, and particularly under the condition of taking a plurality of mobile phones, the data extraction efficiency is greatly improved, so that the mobile phone data evidence taking work is very convenient.
Example five:
the present invention also provides a computer-readable storage medium, which stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned method of an embodiment of the present invention.
The computer unit integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is appropriately increased or decreased as required by legislation and patent practice in the jurisdiction.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A wireless extraction method of mobile phone data is characterized by comprising the following steps:
s1, enabling a data extraction terminal and a target mobile phone to access the same local area network;
s2, after the target mobile phone enters a wireless debugging mode and generates the IP address, the port number and the pairing code of the target mobile phone, the data extraction terminal acquires the IP address, the port number and the pairing code of the target mobile phone;
s3, the data extraction terminal establishes ADB TCP/IP connection with the target mobile phone through an ADB remote connection command according to the acquired IP address, the port number and the pairing code;
and S4, the data extraction terminal extracts data from the target mobile phone through the established ADB TCP/IP connection.
2. The method according to claim 1, wherein the step S2 comprises:
after a target mobile phone enters a wireless debugging mode and generates an IP address, a port number and a pairing code of the target mobile phone, a data extraction terminal acquires a picture containing the IP address, the port number and the pairing code of the target mobile phone;
and the data extraction terminal identifies the acquired picture to obtain the IP address, the port number and the pairing code of the target mobile phone.
3. The method according to claim 1, wherein the step S2 of entering the wireless debug mode and generating the IP address, the port number and the pairing code of the target handset comprises:
the target mobile phone starts wireless debugging in response to the instruction of entering the wireless debugging mode;
replacing X in service.adb.tcp.portX configured in a target mobile phone with a randomly generated port number;
and monitoring the randomly generated port number by an ADB Daemon process in the target mobile phone, and waiting for an ADB server side in the data extraction terminal to establish connection.
4. The method according to claim 2, wherein in step S2, after the target mobile phone generates the IP address, the port number, and the pairing code of the target mobile phone, the target mobile phone further includes displaying the IP address, the port number, and the pairing code of the target mobile phone on a display screen of the target mobile phone, and the acquiring, by the data extracting terminal, a picture including the IP address, the port number, and the pairing code of the target mobile phone includes:
acquiring a picture containing the IP address, the port number and the pairing code of the target mobile phone in a mode of photographing by a camera arranged on a data extraction terminal; or
And the data extraction terminal receives a screenshot picture which is transmitted by a target mobile phone and contains the IP address, the port number and the pairing code of the target mobile phone.
5. The method of claim 1, wherein the data extraction terminal comprises an ADB client and an ADB server, and the ADB client establishes a connection with the ADB server through a designated port.
6. The method according to claim 5, wherein the step S3 comprises:
the ADB client executes an ADB remote connection command according to the acquired IP address, port number and pairing code, and issues the IP address, port number and pairing code of the target mobile phone to the ADB server;
and the ADB server receives the IP address, the port number and the pairing code of the target mobile phone issued by the ADB client, and establishes TCP/IP connection with an adbd Daemon process of the target mobile phone.
7. The method of claim 1, wherein there are a plurality of target handsets; the data extraction terminal respectively establishes ADB TCP/IP connection with the plurality of target mobile phones through ADB remote connection commands, each target mobile phone establishing ADB TCP/IP connection with the data extraction terminal generates a unique serial number, and the data extraction terminal distinguishes different target mobile phones through the serial numbers.
8. The method according to claim 1, wherein the step S4 comprises:
the data extraction terminal is connected with a target mobile phone through the established ADB TCP/IP and is provided with an extraction application component, and the extraction application component is used for extracting data through an android interface on the target mobile phone and sending the data to the data extraction terminal;
and the data extraction terminal receives the data sent by the extraction application component, and analyzes and restores the data.
9. The method according to claim 1, further comprising, after the step S4:
and the data extraction terminal sends a prompt for unloading the extraction application component to the target mobile phone through the established ADB TCP/IP connection, responds to an instruction of unloading the extraction application component in the target mobile phone selected by the user, and unloads the extraction application component through the established ADB TCP/IP connection.
10. The method according to claim 1, wherein in step S1, the data extraction terminal accesses the target handset to the same local area network through a wireless router provided thereon.
11. A data extraction terminal comprising a memory and a processor, the memory storing at least one program, the at least one program being executable by the processor to perform the method of any one of claims 1 to 9.
12. A computer-readable storage medium, in which at least one program is stored, which at least one program is executed by a processor to perform the method according to any one of claims 1 to 9.
CN202211039016.4A 2022-08-29 2022-08-29 Wireless extraction method of mobile phone data, terminal and storage medium Pending CN115568035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211039016.4A CN115568035A (en) 2022-08-29 2022-08-29 Wireless extraction method of mobile phone data, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211039016.4A CN115568035A (en) 2022-08-29 2022-08-29 Wireless extraction method of mobile phone data, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN115568035A true CN115568035A (en) 2023-01-03

Family

ID=84739663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211039016.4A Pending CN115568035A (en) 2022-08-29 2022-08-29 Wireless extraction method of mobile phone data, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115568035A (en)

Similar Documents

Publication Publication Date Title
CN109947482B (en) Loading method of USB (universal serial bus) equipment, storage medium and smart television
CN108111555B (en) Method and system for controlling installation package downloading process
CN109766163B (en) Synchronous display method and device, storage medium and electronic device
CN108874677B (en) Android terminal and test method and system thereof
US10743183B2 (en) Method and device for realizing wireless access point connection authentication
KR20210110335A (en) Smart device network configuration method and related devices
CN113553257B (en) Test method, device, storage medium and electronic equipment
CN104468260A (en) Recognition method, device and system for mobile terminal device
CN104580376A (en) Method, device and system for constructing connection between terminals in local area network
CN113127361A (en) Application program development method and device, electronic equipment and storage medium
CN108023905B (en) Internet of things application system and method
CN114040189A (en) Multimedia test method, device, storage medium and electronic equipment
CN106302011B (en) Multi-terminal-based test method and terminal
CN112416617A (en) Control method and device of Bluetooth equipment, storage medium and electronic device
CN112214701A (en) Page display method and system, storage medium and electronic device
CN110515834B (en) Interface testing method and device, mobile terminal and storage medium
CN107291637A (en) The method and apparatus of compatible polytypic mobile communication module in Android system
CN104836820A (en) Method and system for client interaction, and client terminals
CN115568035A (en) Wireless extraction method of mobile phone data, terminal and storage medium
CN116112485A (en) Cloud resource using method and related equipment
CN113190565B (en) Data updating method and device, storage medium and electronic device
CN115190057A (en) Automatic testing method and device and electronic equipment
WO2017096889A1 (en) Method and device for upgrading and downgrading system
CN113986848A (en) File processing method, device, equipment and storage medium
CN107948424B (en) Method for remotely controlling computer by mobile phone

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