Visual file management method and system based on adb command and electronic device

By providing visual file management methods and systems based on adb commands in the vehicle computer system, the log extraction problem caused by the complex use of traditional adb commands is solved, and simplified file management and application package updates are realized, which improves the convenience of vehicle computer testing. Sex and accuracy.

CN118939350APending Publication Date: 2024-11-12SHENZHEN LANYOU TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310518411.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-09
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the vehicle computer system, during the comprehensive testing of traditional Android software modules, the logs need to be copied through the adb command, which causes the business test acceptance personnel to easily lead to command errors, extract log exceptions, and the application software test coverage is not familiar with command line input. More and more scenarios add challenges.

Method used

Provides visual file management methods and systems based on adb commands, generates a GUI interface by encapsulating adb commands, realizes the connection between the PC and terminal devices, automatically displays file lists, supports users to enter file paths, traverse file paths, perform operations and processing, and Displays operation results, including file information and space usage, and provides one-click operation buttons to simplify file management and application package updates and uninstallation.

Benefits of technology

Improve the convenience and work efficiency of vehicle computer testing, reduce dependence on adb commands, avoid command errors, realize real-time reading of file location information, simplify file operations and application package management, and improve test accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939350A_ABST
    Figure CN118939350A_ABST
Patent Text Reader

Abstract

The invention provides a visual file management method and system based on an adb command and an electronic device. Establishing connection between the PC end and the terminal equipment through an adb visual interface based on an encapsulation adb command; after the connection is successful, a remote file box of the adb visual interface automatically and synchronously displays a file list under a default path of the terminal equipment; obtaining a corresponding file path according to the file path input by the user; traversing all files in the file path position corresponding to the current file path, and updating the display content of the remote file box; and performing operation processing on all files in the file path position, and returning and displaying an operation processing result. Compared with the prior art, the method has the advantages that repeated adb command input is avoided by generating the visual interface, the working efficiency is improved, command lines input every time can be reduced by downloading logs and application updating for terminal abnormity and application updating and unloading, and the convenience of vehicle testing is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of visual file management, and in particular to a visual file management method, system and electronic device based on an adb command. Background Art

[0002] With the rapid development of intelligent vehicle technology, the demand for vehicle systems equipped with Android applications is increasing, and the challenges of built-in Android application testing are also increasing. Because application software testing needs to cover more and more scenarios (voice, shopping mall, message management, vehicle control, etc.).

[0003] When a traditional Android software module encounters a bug during the comprehensive test, it is necessary to copy the log to the local computer through the adb command. At this time, it is necessary to be proficient in the adb command and avoid making mistakes in order to export the log. During the actual vehicle test and acceptance process, the business test acceptance personnel may not be very familiar with the command line input, which can easily lead to command errors and log extraction exceptions. Summary of the invention

[0004] In view of this, the purpose of the embodiment of the present invention is to provide a visual interface based on the adb command, read the file location information in real time and support convenient operation and processing of the file, so that the user does not need to care about the configuration of the environment variables.

[0005] A first aspect of the present invention provides a visual file management method based on an adb command, the method comprising:

[0006] Based on the adb visual interface that encapsulates the adb command, a connection is established between the PC and the terminal device; after the connection is successful, the remote file box of the adb visual interface automatically and synchronously displays the file list under the default path of the terminal device;

[0007] According to the file path input by the user, the corresponding file path is obtained; all files under the file path location corresponding to the current file path are traversed, and the display content of the remote file box is updated;

[0008] Perform operations on all files under the file path location, return the operation results and display them.

[0009] Preferably, the adb visualization interface that encapsulates adb commands is a GUI interface; each adb command function is encapsulated as a corresponding visualization button; the visualization button includes one or more of forward, backward, refresh, upload, download, copy, move, paste, delete, and rename; the adb visualization interface also includes a function area, and the function area includes a file information display area, a space usage area, and a screenshot saving area.

[0010] Preferably, the method further comprises: traversing the terminal device files to determine whether the first application package exists; if so, determining whether the version of the first application package is a preset version;

[0011] If the first application package version is not a preset version, the upload function is selected to transmit the first application package of the preset version to the terminal device through the PC, and the non-preset version of the first application package of the terminal device is uninstalled.

[0012] Preferably, the method further includes: obtaining corresponding file information and space usage of the file according to the file indicated by the current cursor; and displaying the file information and space usage of the file respectively based on the file information display area and the space usage area.

[0013] Preferably, the display content of the remote file box follows the file path entered by the forward, back, and refresh buttons to update and display the corresponding file list;

[0014] The terminal device includes a vehicle terminal or a mobile phone terminal; all the files include a vehicle problem log file;

[0015] Perform operations on all files under the file path location, return the operation results and display them, including:

[0016] Get the vehicle computer problem log file under the file path location, select the vehicle computer problem log file in the remote file box, click the download button, transfer the vehicle computer problem log file to the PC, and display the download success.

[0017] In addition, the second aspect of the present invention provides a visual file management system based on adb commands, the system also includes a connection module, an acquisition and update display module, and a processing module; wherein:

[0018] A connection module is used to establish a connection between the PC and the terminal device based on the adb visual interface that encapsulates the adb command; after the connection is successful, the remote file box of the adb visual interface automatically and synchronously displays the file list under the default path of the terminal device;

[0019] The acquisition and update display module is used to acquire the corresponding file path according to the file path input by the user; traverse all files under the file path position corresponding to the current file path, and update the display content of the remote file box;

[0020] The processing module performs operation processing on all files under the file path location, returns the operation processing result and displays it.

[0021] Preferably, the adb visualization interface encapsulating the adb command is a GUI interface;

[0022] The system also includes a visualization interface generation module, which is used to encapsulate the adb visualization interface of the adb command as a GUI interface; encapsulate each adb command function as a corresponding visualization button; the visualization button includes one or more of forward, backward, refresh, upload, download, copy, move, paste, delete, and rename; the adb visualization interface also includes a function area, which includes a file information display area, a space usage area, and a screenshot saving area.

[0023] Preferably, the system also includes an application installation module, which is used to traverse the terminal device files to determine whether the first application package exists; if so, determine whether the version of the first application package is a preset version; if the version of the first application package is not a preset version, select the upload function to transmit the first application package of the preset version to the terminal device through the PC, and uninstall the non-preset version of the first application package of the terminal device.

[0024] In addition, the third aspect of the present invention provides an electronic device, which includes: one or more processors, and a memory, wherein the memory is used to store one or more computer programs; characterized in that the computer program is configured to be executed by the one or more processors, and the program includes steps for executing the visual file management method based on adb commands as described in the first aspect above.

[0025] In addition, a fourth aspect of the present invention provides a storage medium storing a computer program; the program is loaded and executed by a processor to implement the steps of the visual file management method based on adb commands as described in the first aspect above.

[0026] In the scheme of the present invention, a connection between the PC and the terminal device is established through an adb visual interface based on encapsulated adb commands; after the connection is successful, the remote file box of the adb visual interface automatically and synchronously displays the file list under the default path of the terminal device; according to the file path input by the user, the corresponding file path is obtained; all files under the file path position corresponding to the current file path are traversed, and the display content of the remote file box is updated; all files under the file path position are operated and processed, and the operation processing results are returned and displayed. Compared with the prior art, by generating a visual interface to avoid repeated input of adb commands, the current location information of the file can be read in real time, and the file can be operated according to the current location to extract the file information, thereby improving work efficiency; in addition, for those who are not familiar with adb commands, one-touch operation buttons can be provided, and for terminal abnormalities, application updates and uninstalls, the command line input can be reduced each time by downloading logs and application updates, which greatly improves the convenience of vehicle computer testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 It is a schematic diagram of the overall scheme structure disclosed in the embodiment of the present invention;

[0029] Figure 2 It is a flow chart of a visualized file management method based on adb commands disclosed in an embodiment of the present invention;

[0030] Figure 3 This is a schematic diagram of file path jump disclosed in an embodiment of the present invention;

[0031] Figure 4 It is a schematic diagram of indicating and displaying relevant information about a file disclosed in an embodiment of the present invention;

[0032] Figure 5 It is a schematic diagram of the structure of a visualized file management system based on adb commands disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0033] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0034] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0035] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0036] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0037] It should be noted that the “plurality” mentioned in this article refers to two or more.

[0038] The implementation details of the technical solution of the embodiment of the present application are described in detail below:

[0039] like Figure 1 The overall scheme structure diagram of this embodiment is shown. Connect the Android car machine or mobile phone terminal through the PC end, read the relevant information of the Android car machine / mobile phone APP based on the adb visual interface that encapsulates the adb command, and realize the transmission and display of relevant information to the adb visual interface. Among them, the relevant information includes the file path, basic operations, transmission, file information, space usage, screenshots, etc. of the Android car machine / mobile phone APP. Among them, the basic operations include forward, backward, refresh, upload, download, copy, move, paste, delete, rename and other operations.

[0040] Furthermore, the first aspect of this embodiment provides a visual file management method based on adb commands, such as Figure 2 The figure shows a flow chart of a visualized file management method based on adb command disclosed in this embodiment. The method comprises:

[0041] S201, based on the adb visual interface encapsulating the adb command, establish a connection between the PC and the terminal device; after the connection is successful, the remote file box of the adb visual interface automatically and synchronously displays the file list under the default path of the terminal device.

[0042] Preferably, the adb visualization interface that encapsulates adb commands is a GUI interface; each adb command function is encapsulated as a corresponding visualization button; the visualization button includes one or more of forward, back, refresh, upload, download, copy, move, paste, delete, and rename; the adb visualization interface also includes a function area, and the function area includes a file information display area, a space usage area, and a screenshot saving area.

[0043] Specifically, in this embodiment, the tkinter third-party library is used to write and encapsulate the adb visual interface, thereby realizing the connection between the PC and the terminal device.

[0044] tkinter is Python's own GUI library. The full name of tkinter is Tk Interface. Tk is a GUI tool library for developing desktop applications. It is the standard GUI of Tcl, and Tcl stands for Tool Command Language, which is a dynamic programming language that can be used for desktop application development. Tk and Tcl are not part of Python. Python only provides an interface for interacting with Tk and Tcl, and Tk and Tcl are supported by the system itself. Window, Linux and MacOS all support it, so the GUI program created by Python tkinter can be used in different operating systems.

[0045] Programs written in Tkinter, also known as GUI programs, refer to "Graphical User Interfaces". A GUI program is generally composed of graphical components such as windows, drop-down menus or dialog boxes. Human-computer interaction is achieved by clicking the menu bar, buttons or pop-up dialog boxes with the mouse, thereby improving the experience of human-computer interaction and making the "cold" program "warm". By clicking the "Get Device" button "encapsulated adb command", connect the PC and the terminal device. After the connection is successful, the remote file box automatically synchronizes the file list in the current directory of the device. Here is the first successful connection, and the remote file box of the adb visual interface automatically synchronizes and displays the file list under the default path of the terminal device.

[0046] After the PC establishes communication with the terminal device, the remote file box will automatically display a list of files in the default path of the current device (the default device path is "stroage / emulated / 0 / " and most terminal devices currently support this default path) without any configuration.

[0047] S202, according to the file path input by the user, obtain the corresponding file path; traverse all files under the file path position corresponding to the current file path, and update the display content of the remote file box.

[0048] Specifically, in this embodiment, Figure 3 The figure shows the file path jump schematic diagram of this embodiment. After the PC establishes communication with the terminal device, enter the file path that the terminal device needs to view in the "Current File Location Path", click "Jump to Specified Location", and the remote file box automatically synchronizes the file list under the path.

[0049] In some implementations, when the terminal device needs to return to the default path, click the "home" button, and the remote file box will automatically display a list of files under the current device's default path (the default device path is "stroage / emulated / 0 / " and most terminal devices currently support this default path) without any configuration. What's more convenient is that the current directory of the file list can also be switched synchronously with the "current file location path", and the file list can be updated and displayed in the display content of the remote file box.

[0050] S203, performing operation processing on all files under the file path location, returning the operation processing result and displaying it.

[0051] Preferably, step S203 also includes: traversing the terminal device files to determine whether the first application package exists; if so, determining whether the first application package version is a preset version; if the first application package version is not a preset version, selecting the upload function to transmit the first application package of the preset version to the terminal device through the PC, and uninstalling the non-preset version of the first application package of the terminal device.

[0052] In some implementations, the adb visual interface also provides basic operations on terminal device applications. By obtaining relevant information of the currently connected terminal device, such as traversing the terminal device file to determine whether there is a corresponding apk application, if not, the local computer apk application can be installed on the terminal device (car / mobile phone) through the apk installation path.

[0053] Further, by judging whether the apk application version is a preset version, such as whether it is the latest version; if the first application package version is not a preset version, the upload function is selected to transmit the first application package of the preset version to the terminal device through the PC, and at the same time uninstall the first application package of the non-preset version of the terminal device, thereby realizing the uninstallation and installation of the application software.

[0054] In some implementations, basic operations regarding terminal device applications can provide a one-click APK installation function, which allows you to select files through buttons to install and uninstall the APK of the connected device, thereby making basic preparations for subsequent testing and verification of the latest functions. If the latest app package has been installed, there is no need to continue the installation and you can skip it directly.

[0055] Specifically, in order to display the current directory of the file list, it directly follows the synchronous switching of the "current file location path". Among them, the forward, backward, and refresh functions can be achieved by double-clicking the file (folder) under the remote file box; the upload function is achieved by clicking the "File Upload" button to select the file to be uploaded in the PC directory and then transferring the file to the terminal "current file location path" after confirmation; the download function selects the corresponding file in the remote file box and clicks the "Download File" button to transfer the file in the terminal directory to the PC; copy, move, paste, delete, rename and other functions perform corresponding operations after selecting the corresponding file in the "remote file box", and the terminal directory of the terminal device is synchronously modified in real time.

[0056] Preferably, the method further includes: obtaining corresponding file information and space usage of the file according to the file indicated by the current cursor; and displaying the file information and space usage of the file respectively based on the file information display area and the space usage area.

[0057] Specifically, Figure 4 This is a schematic diagram of the present embodiment regarding file indication and display of related information. Figure 4 As shown, the file indicated by the current cursor is obtained, such as the deviceld.txt file, then the corresponding file information of the file indicated by the current cursor and the space usage of the file are obtained. For example, the current file information includes the file size, type, modification date, file name, picture, etc., then the current file information is displayed in the file information area on the left, and the space usage is displayed in the space usage area.

[0058] Preferably, the display content of the remote file box follows the file path entered by the forward, back, and refresh buttons to update and display the corresponding file list.

[0059] Specifically, the one-click operation support for Android device terminal files provided by this embodiment includes forward, backward, refresh, upload, download, copy, move, paste, delete, and rename; among which, the forward, backward, and refresh function buttons enter the file path and update the corresponding file list displayed, for example, "back" clicks on the remote file ".." to return to the previous level of the current path; "forward" clicks on the folder to enter the next level directory; the remote file interface refreshes the file information in real time (during the forward and backward operations).

[0060] For other file operation processing functions, the descriptions are as follows: "Upload" uploads local files on the PC to the Android device terminal; "Download" downloads terminal device files to the local PC; "Copy" copies a terminal device file to another location; "Move" moves the terminal device file to a specified location; "Paste" copies the terminal device file to another location; "Delete" deletes the terminal device file; "Rename" renames the terminal device file.

[0061] The terminal device includes a vehicle terminal or a mobile phone terminal; all the files include a vehicle problem log file;

[0062] Perform operations on all files under the file path location, return the operation results and display them, including: obtaining the vehicle computer problem log file under the file path location, selecting the vehicle computer problem log file in the remote file box, clicking the download button, transferring the vehicle computer problem log file to the PC, and displaying that the download is successful.

[0063] Specifically, in this embodiment, through the visual interface adb file management tool, the corresponding vehicle computer problem log (log) file is selected in the terminal file to download the file and export it locally to avoid imperative log extraction exceptions.

[0064] Compared with the prior art, this embodiment avoids repeated input of adb commands by generating a visual interface, realizes real-time reading of the current location information of the file, and then operates the file according to the current location to extract file information, thereby improving work efficiency; in addition, for those who are not familiar with adb commands, one-touch operation buttons can be provided, and terminal abnormalities, application updates and uninstalls can be reduced by downloading logs and applying updates, thereby reducing the need to enter command lines each time, greatly improving the convenience of vehicle computer testing.

[0065] In addition, the second aspect of this embodiment provides a visual file management system based on adb commands, such as Figure 5 As shown, the system further includes a connection module 510, an acquisition and update display module 520, and a processing module 530; wherein:

[0066] The connection module 510 is used to establish a connection between the PC and the terminal device based on the adb visual interface that encapsulates the adb command; after the connection is successful, the remote file box of the adb visual interface automatically and synchronously displays the file list under the default path of the terminal device;

[0067] The acquisition and update display module 520 is used to acquire the corresponding file path according to the file path input by the user; traverse all files under the file path position corresponding to the current file path, and update the display content of the remote file box;

[0068] The processing module 530 performs operation processing on all files under the file path location, returns the operation processing result and displays it.

[0069] Preferably, the adb visualization interface encapsulating the adb command is a GUI interface;

[0070] The system also includes a visualization interface generation module 540, which is also used to encapsulate the adb visualization interface of the adb command into a GUI interface; encapsulate each adb command function into a corresponding visualization button; the visualization button includes one or more of forward, backward, refresh, upload, download, copy, move, paste, delete, and rename; the adb visualization interface also includes a function area, which includes a file information display area, a space usage area, and a screenshot saving area.

[0071] Preferably, the system also includes an application installation module 550, which is used to traverse the terminal device files to determine whether the first application package exists; if so, determine whether the first application package version is a preset version; if the first application package version is not a preset version, select the upload function to transmit the first application package of the preset version to the terminal device through the PC, and uninstall the non-preset version of the first application package of the terminal device.

[0072] The acquisition and update display module 520 of the system is also used to obtain the corresponding file information and the space usage of the file according to the file indicated by the current cursor; and display the file information and the space usage of the file based on the file information display area and the space usage area.

[0073] The acquisition and update display module 520 of the system is also used to update and display the corresponding file list according to the file path entered by the forward, back, and refresh buttons according to the display content of the remote file box;

[0074] The terminal device includes a vehicle terminal or a mobile phone terminal; all the files include a vehicle problem log file.

[0075] The processing module 530 is also used to obtain the vehicle computer problem log file under the file path location, select the vehicle computer problem log file in the remote file box, click the download button, transfer the vehicle computer problem log file to the PC, and display the download success.

[0076] In addition, the third aspect of this embodiment provides an electronic device, which includes: one or more processors, and a memory, wherein the memory is used to store one or more computer programs; characterized in that the computer program is configured to be executed by the one or more processors, and the program includes steps for executing the visual file management method based on adb commands as described in the first aspect above.

[0077] In addition, a fourth aspect of this embodiment provides a storage medium storing a computer program; the program is loaded and executed by a processor to implement the steps of the visual file management method based on adb commands as described in the first aspect above.

[0078] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0079] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.

[0080] The units described as separate components may or may not be physically separated. As a unit, it can be appreciated by those skilled in the art that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0081] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0082] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a grid device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0083] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A visual file management method based on adb command, characterized in that: The method comprises: Based on the adb visual interface that encapsulates the adb command, a connection is established between the PC and the terminal device; after the connection is successful, the remote file box of the adb visual interface automatically and synchronously displays the file list under the default path of the terminal device; According to the file path input by the user, the corresponding file path is obtained; all files under the file path location corresponding to the current file path are traversed, and the display content of the remote file box is updated; Perform operations on all files under the file path location, return the operation results and display them.

2. The visual file management method based on adb command according to claim 1, characterized in that: The adb visualization interface that encapsulates adb commands is a GUI interface; each adb command function is encapsulated as a corresponding visualization button; the visualization button includes one or more of forward, back, refresh, upload, download, copy, move, paste, delete, and rename; the adb visualization interface also includes a function area, which includes a file information display area, a space usage area, and a screenshot saving area.

3. The visual file management method based on adb command according to claim 2, characterized in that: The method further comprises: Traversing the terminal device files to determine whether the first application package exists; if so, determining whether the first application package version is a preset version; If the first application package version is not a preset version, select the upload function to transmit the first application package of the preset version to the terminal device through the PC, and uninstall the non-preset version of the first application package of the terminal device at the same time.

4. The visual file management method based on adb command according to claim 2, characterized in that: The method further includes: obtaining corresponding file information and space usage of the file according to the file indicated by the current cursor; and displaying the file information and space usage of the file based on the file information display area and the space usage area.

5. The visual file management method based on adb command according to claim 3, characterized in that: The display content of the remote file box is updated to display the corresponding file list according to the file path entered by the forward, back, and refresh buttons; The terminal device includes a vehicle terminal or a mobile phone terminal; all the files include a vehicle problem log file; Perform operations on all files in the file path location, return the operation results and display them, including: Obtain the vehicle computer problem log file under the file path location, select the vehicle computer problem log file in the remote file box, click the download button, transfer the vehicle computer problem log file to the PC, and display the download success.

6. A visual file management system based on adb commands, characterized in that: The system includes a connection module, an acquisition and update display module, and a processing module; wherein: A connection module is used to establish a connection between the PC and the terminal device based on the adb visual interface that encapsulates the adb command; after the connection is successful, the remote file box of the adb visual interface automatically and synchronously displays the file list under the default path of the terminal device; The acquisition and update display module is used to obtain the corresponding file path according to the file path input by the user; traverse all files under the file path location corresponding to the current file path, and update the display content of the remote file box; The processing module performs operation processing on all files under the file path location, returns the operation processing result and displays it.

7. The visual file management system based on adb command according to claim 6, characterized in that: The adb visualization interface that encapsulates adb commands is a GUI interface; each adb command function is encapsulated as a corresponding visualization button; the visualization button includes one or more of forward, back, refresh, upload, download, copy, move, paste, delete, and rename; the adb visualization interface also includes a function area, which includes a file information display area, a space usage area, and a screenshot saving area.

8. The visual file management system based on adb command according to claim 7, characterized in that: The system also includes an application installation module, which is used to traverse the terminal device files to determine whether the first application package exists; if so, determine whether the version of the first application package is a preset version; if the version of the first application package is not a preset version, select the upload function to transmit the first application package of the preset version to the terminal device through the PC, and at the same time uninstall the non-preset version of the first application package of the terminal device.

9. An electronic device, comprising: One or more processors, a memory, the memory being used to store one or more computer programs; characterized in that the computer programs are configured to be executed by the one or more processors, and the programs include steps for executing the visual file management method based on adb commands as described in any one of claims 1-5.

10. A storage medium storing a computer program; the program is loaded and executed by a processor to implement the steps of the visual file management method based on adb commands according to any one of claims 1 to 5.