System file downloading method and device based on open gap, equipment and medium

By implementing automatic storage path inference and determination methods in the software, the cumbersome problem of software downloading file process is solved, simplifying the download process and improving the user experience.

CN119520509APending Publication Date: 2025-02-25HUNAN KAIHONG ZHIGU DIGITAL IND DEV CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411702398.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The process of downloading files of software in the prior art is complicated, and users need to manually specify the download path, and the default download paths of different software are different, resulting in users needing to frequently switch folders to manage download files.

Method used

By responding to the file download operation of the software, the download information of the target file is obtained, and the storage path inference is performed based on this information, the target storage path of the target file is determined, and finally the target file is downloaded to the path.

Benefits of technology

The process of software downloading files is simplified. Users do not need to manually specify the download path. The system automatically reasons and determines the storage path, improving the user's download experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520509A_ABST
    Figure CN119520509A_ABST
Patent Text Reader

Abstract

The invention discloses a system file downloading method and device based on an open gap, equipment and a medium. The method is characterized by comprising the following steps: in response to a file downloading operation of software on a target file, obtaining downloading information of the target file; performing storage path reasoning according to the downloading information, and determining a target storage path of the target file; and downloading the target file to the target storage path. According to the method and the device, the storage path of the downloaded file can be automatically inferred when the user downloads the file, so that the downloading process of the file is simplified, and the downloading experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software system technology, and in particular to a system file download method, device, equipment and medium based on open Hongmeng. Background Art

[0002] Traditional software file downloads are usually downloaded to the software's default download path or the user's default storage path, which results in all files being downloaded to one file path. After the download is complete, the user needs to enter the file directory for each file through the file manager and move the downloaded file to the folder they want according to their own needs. After the user downloads the file, the user needs to enter the default download path to view it each time, and the default download path of different software is also different, which requires the user to enter different folders to view it. At the same time, the path of the file downloaded by each software needs to be manually specified. The file download of the existing technology is very cumbersome and the user experience is not good. Summary of the invention

[0003] The present invention provides a system file download method, device, equipment and medium based on open Hongmeng to solve the cumbersome technical problem of software downloading files in the prior art.

[0004] According to one aspect of the present invention, a system file download method based on open Hongmeng is provided, comprising:

[0005] In response to the software downloading operation on the target file, obtaining download information of the target file;

[0006] Perform storage path inference based on the download information to determine the target storage path of the target file;

[0007] Download the target file to the target storage path.

[0008] According to another aspect of the present invention, a system file downloading device based on open Hongmeng is provided, comprising:

[0009] A download module, used for obtaining download information of a target file in response to a file download operation of the software on the target file;

[0010] An inference module is used to infer the storage path according to the download information and determine the target storage path of the target file;

[0011] The storage module is used to download the target file to the target storage path.

[0012] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to at least one processor; wherein,

[0015] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the system file download method based on open Hongmeng according to any embodiment of the present invention.

[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions, and the computer instructions are used to enable a processor to implement the system file download method based on open Hongmeng of any embodiment of the present invention when executed.

[0017] The technical solution of the embodiment of the present invention obtains the download information of the target file in response to the software's file download operation on the target file; performs storage path inference based on the download information to determine the target storage path of the target file; and downloads the target file to the target storage path. When the software downloads a file, the present invention can automatically infer the storage path of the file based on the file's download information, and can download and store the target file in the storage path, thus solving the technical problem that software download files are very cumbersome in the prior art. The download process of the software download file is simplified, and the user's download experience is improved.

[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 A flowchart of a system file download method based on open Hongmeng is provided for an embodiment of the present invention;

[0021] Figure 2 A flowchart of another system file download method based on open Hongmeng provided in an embodiment of the present invention;

[0022] Figure 3 A flowchart of another system file download method based on open Hongmeng provided in an embodiment of the present invention;

[0023] Figure 4 A schematic diagram of the structure of a system file downloading device based on open Hongmeng provided in an embodiment of the present invention;

[0024] Figure 5 A schematic structural diagram of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] Figure 1 A flowchart of a system file download method based on open Hongmeng is provided for an embodiment of the present invention. This embodiment is applicable to the case of software downloading files in a system. The method can be executed by a system file download device based on open Hongmeng. The system file download device based on open Hongmeng can be implemented in the form of hardware and / or software. The system file download device based on open Hongmeng can be configured in an electronic device. Figure 1 As shown, the method includes:

[0028] S110 . In response to the software's download operation on the target file, obtain download information of the target file.

[0029] Optionally, Open Harmony is an open source project that features open source, modularity and flexibility. The source code for developing Harmony is completely open, and the system is highly modular, which can be selected and combined according to various development needs. Open Harmony is compatible with various terminal devices, such as IoT devices, smart homes, smart terminals and smart watches. The Harmony operating system can be developed based on Open Harmony. There is a lot of overlap between the Harmony system and Open Harmony in technical architecture and components, and the two are in a unified ecosystem.

[0030] The software can be a collection of computer data and instructions organized in a specific order and running in the system. It should be noted that the software can be composed of at least one application program, and the software can perform multiple functions.

[0031] Among them, when the software downloads files, it downloads through the upload and download framework developed by Hongmeng. The upload and download framework can provide file download and upload functions to the software or application, and can create a new download task for the target file through the download function, and provide concurrent download objects corresponding to the target file, manage the download task of the target file through concurrent download objects, support the functions of creating tasks, removing tasks, pausing tasks, resuming tasks and querying tasks, as well as subscribing to task progress, success messages and failure messages; on the other hand, it can create a new upload task for the file through the upload function, and provide concurrent upload objects corresponding to the file, manage the upload task of the target file through concurrent upload objects, support the functions of uploading tasks, removing tasks, pausing tasks, resuming tasks and querying tasks, as well as subscribing to task progress, success messages and failure messages.

[0032] The target file may be a file requested to be downloaded by the software. It should be noted that the target file may be a file of any file type requested to be downloaded by the software, and the target file may be any file available for download, such as a document file, an image file, a sound file, a video file, a database file, a source code file, a configuration file, a system image file, and an executable file. Exemplarily, the target file may be stored in a server or the Internet, and may be downloaded through a browser.

[0033] Among them, the file download operation can be an operation triggered by the software to download the target file; it should be noted that the user selects a file to download in the software through the operation function provided by the system, and the operation selected by the user to download is regarded as the file download operation, and the selected file is regarded as the target file. Optionally, the operation function provided by the system can be a voice recognition function, which can realize the file download operation in the software through voice operation; the operation function provided by the system can also be an operable external device, and the user can realize the file download operation by controlling the operable external device; the operation function provided by the system can also be a touch screen, and the file download operation can be realized by clicking the touch screen.

[0034] Optionally, the software may also have built-in automatic trigger logic for file downloading. When the user is using the software, the automatic trigger logic for target file downloading is triggered, and the target file is automatically downloaded.

[0035] The download information may include the software name, file name, file type and device identification; the software name may be the name of the software that triggers the file download operation, the file name may be the name of the target file, the file type may be the file type corresponding to the target file, and the device identification may be the identification information of the hardware device where the system running the software is located, and the device identification may uniquely identify a system. For example, the system may be Open Hongmeng, and the device identification may be the identification information corresponding to the Development Hongmeng.

[0036] Specifically, in a system based on open Hongmeng, a file download operation of the software is detected, and in response to the file download operation of the software, a target file corresponding to the file download operation is determined, and download information of the target file is obtained.

[0037] Optionally, after determining the file download operation, the software sends a request message through the communication protocol, requesting to download the target file. The system receives a response message based on the communication protocol, obtains the file type and file name of the target file, extracts the software name from the request message, and obtains the device identifier in the system based on Open Hongmeng.

[0038] S120: Perform storage path inference according to the download information to determine the target storage path of the target file.

[0039] The target storage path may be the file directory information of the target file stored in the system. It should be noted that in a system based on open Hongmeng, the target storage path may be the location where the file exists. The file manager may start from the root directory and describe the specific location of the file or directory in the form of an absolute path. The file directory information is composed of the directory of the file. For example, the file directory information may be / home / john / documents / xxxx.txt.

[0040] Optionally, in a system based on Open Hongmeng, a relative path can be used to describe the location relative to the current directory. For example, the current directory can be / home / john / documents, and the relative path can be xxxx.txt.

[0041] Optionally, in a system based on Open Hongmeng, the target storage path can be described by environment variables, or the target storage path can be described by a network path.

[0042] Optionally, when the download information of the target file is obtained, the storage path of the target file can be inferred through the download information of the target file. The specific reasoning process can be: by analyzing the device identification of the target file, the root directory of the target file can be inferred; by analyzing the software name in the download information of the target file, a software-related directory can be selected; by analyzing the file name and file type of the target file, the next-level directory of the software-related directory can be inferred, and the target storage directory can be obtained.

[0043] Optionally, in another optional embodiment of the present invention, performing storage path reasoning according to the download information to determine the target storage path of the target file includes:

[0044] The download information is input into a pre-trained file path model to perform storage path inference to obtain an inferred storage path; in response to a confirmation operation on the inferred storage path, the inferred storage path is determined as a target storage path.

[0045] Among them, the file path model can be a neural network model trained by the AI ​​(Artificial Intelligence) subsystem corresponding to the system service layer and the framework layer of the system based on open Hongmeng. The AI ​​subsystem of open Hongmeng provides a unified AI engine framework to achieve rapid plug-in integration of algorithm capabilities. The AI ​​engine framework mainly includes modules such as plug-in management, module management, and communication management, which can manage the life cycle of AI algorithm capabilities and deploy them on demand. Optionally, the AI ​​subsystem based on open Hongmeng can establish and train a file path model based on a large language model (LLM). The file path model can perform intelligent identification and reasoning based on the download information of the target file, and output the inferred storage path of the target file.

[0046] The inferred storage path may be a storage path output by a file path model according to download information.

[0047] Optionally, during the process of the software downloading the target file, after the system responds to the file download operation and obtains the download information, the file inference model can perform storage path inference based on the obtained download information, determine the inferred storage path, and then automatically display the inferred storage path in the system for user confirmation. After the user completes the confirmation operation, the inferred storage path is used as the target storage path of the target file.

[0048] Optionally, when the inferred storage path is automatically displayed in the system, the download information of the target file and the corresponding inferred storage path can be displayed at the top level of the system by displaying a page or a pop-up window, and corresponding confirmation controls can be provided. The user triggers the confirmation control to set the inferred storage path of the target file as the target storage path.

[0049] Specifically, after obtaining the download information of the target file, the download information is input into a pre-trained file path model to perform storage path inference, obtain the inferred storage path, display the inferred storage path, and after receiving the confirmation operation of the inferred storage path, in response to the confirmation operation of the inferred storage path, determine the inferred storage path as the target storage path.

[0050] S130: Download the target file to the target storage path.

[0051] Specifically, after obtaining the target storage path, the target file is downloaded and stored in a file directory corresponding to the target storage path.

[0052] Optionally, in an embodiment of the present invention, the system's download process for the target file may be after the file download operation, by obtaining the download information of the target file, and may prioritize entering the download process while caching the downloaded content of the target file, and perform storage path inference based on the download information through a file path model to determine the inferred storage path, and after the inferred storage path is confirmed as the target storage path, store the cached download content of the target file and the subsequently downloaded download content in the target storage path.

[0053] Optionally, the system's download process for the target file can be that after the file download operation, when the download information of the target file is obtained, the file path model is used to infer the storage path based on the download information, and the inferred storage path is determined. After the inferred storage path is confirmed as the target storage path, the download content of the target file is started, and the target file is directly downloaded to the target storage path.

[0054] Optionally, the system may download the target file after the file download operation. When the download information of the target file is obtained, the file path model is used to infer the storage path according to the download information, determine the inferred storage path, download the download content of the target file, and store the downloaded content of the target file in the inferred storage path. After determining the target storage path, if the inferred storage path is the target storage path, there is no need to move the downloaded content. If the inferred storage path is not the target storage path, the downloaded content in the inferred storage path is moved to the target storage path. It should be noted that in an embodiment of the present invention, when the system displays the inferred storage path, a path change control is also provided. The target storage path corresponding to the target file is selected through the path change control. After confirming the target storage path, the downloaded content of the target file is stored in the target storage path. Among them, the path change operation can be triggered by selecting the path change control, and the file manager can be entered to select the path. The target storage path can be determined by tracking the path selection process in the file manager.

[0055] The technical solution of the embodiment of the present invention obtains the download information of the target file in response to the file download operation of the software on the target file; performs storage path inference based on the download information to determine the target storage path of the target file; and downloads the target file to the target storage path. When the software downloads the file, the present invention can automatically infer the storage path of the file based on the download information of the file, and can download and store the target file in the storage path, which solves the cumbersome technical problem of software downloading files in the prior art. It simplifies the file download process and improves the user's download experience.

[0056] Figure 2 The flowchart of another system file download method based on open Hongmeng provided by the embodiment of the present invention, the relationship between this embodiment and the above embodiment is the specific process of loop training the file path model after downloading the target file to the target storage path. Figure 2 As shown, the method includes:

[0057] S210 . In response to the software's download operation on the target file, obtain download information of the target file.

[0058] S220, perform storage path inference based on the download information to determine the target storage path of the target file.

[0059] S230: Download the target file to the target storage path.

[0060] S240: storing the download information and the target storage path of the target file in a preset path database.

[0061] Among them, the preset path database can be a storage database pre-set in the system. It should be noted that the path database can store the download information of the target file downloaded by the software in correspondence with the target storage path. The corresponding target storage path can be queried based on the download information of the target file through the path database. At the same time, a path update record corresponding to the target storage path is set for each target file. The path update record is used to record the update information of the target file storage path. After the path change operation is performed on the target file, the updated storage path of the path change is determined, and the updated storage path is stored in the path update record of the target file. Exemplarily, the path database can be constructed based on databases such as SQLite, MySQL, LitePal, etc.

[0062] Specifically, after the target file is downloaded to the target storage path, the download information of the target file and the target storage path are associated and stored in a preset path database, and the download information and the target storage path are used as marking information of the target file.

[0063] S250: When a path change operation on a target file is detected, an updated storage path of the target file is obtained.

[0064] The updated storage path may be the storage path after the target file is moved. It should be noted that the user selects the target file for file movement through the path change operation, moves the file from the target storage path to another file directory under the file manager, and after the target file is moved, determines the updated storage path of the moved target file in the file manager.

[0065] The path change operation may be an operation of selecting a target file and moving the target file from the target storage path to another file directory under the file manager. Exemplarily, the path change operation may be an operation of selecting a target file under the target storage path and dragging the target file to another file directory; the path change operation may also be an operation of selecting a target file under the target storage path and cutting the target file to another file directory.

[0066] Specifically, when the system detects a path change operation of a target file by a user, new file directory information of the target file is identified in the file manager according to the path change operation of the user, and an updated storage path of the target file is determined based on the file directory information.

[0067] S260: Update the file path model according to the download information and the updated storage path.

[0068] Specifically, after the storage path of the target file is changed, the file path model is updated according to the download information and the updated storage path.

[0069] Optionally, in another optional embodiment of the present invention, updating the file path model according to the download information and the updated storage path includes:

[0070] The download information is used as a model training condition; the updated storage path is used as the expected training result of the model training condition; the model training condition and the expected training result are input into the file path model for model training to update the file path model.

[0071] Among them, the model training condition can be the model training data of the file path model; it should be noted that the expected result of the training can be the label information of the model training data in the file path model; it should be noted that, in an embodiment of the present invention, the download information of each target file is used as the model training data, and the updated storage path corresponding to the download information is used as the expected result of the training of the model training data to construct the training data and the training labels.

[0072] Optionally, in an embodiment of the present invention, the file path model is preliminarily trained by using simulated download information and storage paths as model training data. When the user uses the file path model, the system provides the option of selecting various software as the initial training software, and simulates the download process of the downloaded files of the initial training software to the default storage path, generates simulated download information and a default storage path, and stores the download information and the default storage path in a preset path database to mark the downloaded files. The user is further required to change the default storage path of each file downloaded by the initial training software, and the user selects an updated storage path corresponding to the default storage path. The file path model is then preliminarily trained based on the download information and the updated storage path selected by the user as input conditions and expected results, so that the file path model has storage path reasoning capabilities for the user.

[0073] Specifically, when it is detected that the user has changed the storage path of the target file, the update process of the file path model is entered. The download information of the target file is used as the model training condition, and the updated storage path is used as the expected training result of the model training condition. The model training condition and the expected training result are input into the file path model to perform model training again to update the file path model.

[0074] The technical solution of the embodiment of the present invention can automatically update the file path model based on the changed existing path and download information after the software downloads the file and the storage path of the target file changes, so that the file path model is more in line with the user's personalized needs and further improves the user's download experience.

[0075] Figure 3A flowchart of another system file download method based on open Hongmeng provided by an embodiment of the present invention. The relationship between this embodiment and the above embodiment is the specific process of feedback training the file path model based on the specified storage path selected by the user when the user is not satisfied with the inferred storage path. Figure 3 As shown, the method includes:

[0076] S310 . In response to the software's download operation on the target file, obtain download information of the target file.

[0077] S320: Input the download information into a pre-trained file path model to perform storage path inference to obtain an inferred storage path.

[0078] S330: In response to the path change operation on the inferred storage path, display a file path selection page corresponding to the file manager.

[0079] Optionally, during the download process of the target file, when the system displays the inferred storage path, a path change control is also provided. The path change operation is triggered by clicking the path change control, and the function of changing the storage path of the target file is provided through the file manager.

[0080] The path change operation may be to specify a storage path of the target file in a file manager.

[0081] The file path selection page may be a page used by the file manager to select a file storage path. It should be noted that, in the file path selection page, all optional file root directories in the system may be displayed, and the user may enter file directories at all levels by clicking on the file root directory. The file path selection page provides the function of creating or selecting a file, and displays a confirmation control for confirming the storage path of the target file.

[0082] S340: In response to the storage path selection operation on the file path selection page, determine a designated storage path for the target file.

[0083] The storage path selection operation may be an operation that triggers a confirmation control in a file path selection page.

[0084] The designated storage path may be a target file storage path selected by the user through a storage path selection operation.

[0085] Optionally, the file path selection page displays all optional file root directories in the system. The user enters file directories at all levels by clicking the file root directory, selects or creates a file to store the target file in the file root directory or file directories at all levels, and clicks the confirmation control in the file path selection page to trigger the storage path selection operation. Based on the storage path selection operation, the file manager can obtain the storage path of the file selected or created by the user to store the target file, and use the storage path as the designated storage path.

[0086] Specifically, the user triggers a storage path selection operation in the file path selection page, and the system responds to the storage path selection operation on the file path selection page and determines a designated storage path for the target file based on the storage path selection operation.

[0087] Optionally, in another optional implementation of the present invention, after determining the designated storage path of the target file in response to the storage path selection operation on the file path selection page, the method further includes:

[0088] The download information is used as a model training condition; the specified storage path is used as an expected training result of the model training condition; the model training condition and the expected training result are input into the file path model for model training to update the file path model.

[0089] Optionally, after the user selects a specified storage path, it means that the user is not satisfied with the inferred storage path inferred by the file path model, and the file path model needs to be updated based on the user's specified storage path, and the download information of the target file and the specified storage path are used as model training data for updating the file path model.

[0090] Optionally, after obtaining the specified storage path of the target file, the specified storage path and the download information are associated and stored in a preset path database, and the download information of the target file is used as the model training data, and the specified storage path corresponding to the download information is used as the expected training result of the model training data to construct the training data and training labels.

[0091] Specifically, when it is detected that the user has changed the inferred storage path of the target file to the specified storage path, the update process of the file path model is entered. The download information of the target file is used as the model training condition, and the specified storage path is used as the expected training result of the model training condition. The model training condition and the expected training result are input into the file path model to perform model training again to update the file path model.

[0092] S350: determine the designated storage path as the target storage path, and download the target file to the target storage path.

[0093] Specifically, after the user selects a designated storage path, the designated storage path is determined as a target storage path, and the target file is downloaded to the target storage path.

[0094] The technical solution of the embodiment of the present invention can dynamically train the file inference model at runtime after the user selects a specified storage model when the software is downloading files, thereby improving the reasoning ability of the file path model and effectively improving the user's download experience.

[0095] Figure 4 A schematic diagram of a system file download device based on open Hongmeng provided by an embodiment of the present invention. Figure 4 As shown, the device includes: a download module 410, a reasoning module 420 and a storage module 430; wherein,

[0096] The download module 410 is used to obtain download information of the target file in response to the software's file download operation on the target file;

[0097] An inference module 420 is used to perform storage path inference according to the download information to determine a target storage path of the target file;

[0098] The storage module 430 is used to download the target file to the target storage path.

[0099] The technical solution of the embodiment of the present invention obtains the download information of the target file in response to the software's file download operation on the target file; performs storage path inference based on the download information to determine the target storage path of the target file; and downloads the target file to the target storage path. When the software downloads a file, the present invention can automatically infer the storage path of the file based on the file's download information, and can download and store the target file in the storage path, thus solving the cumbersome technical problem of software downloading files in the prior art. The file download process is simplified, and the user's download experience is improved.

[0100] Optionally, the download module is specifically used for: the download information includes software name, file name, file type and device identification.

[0101] Optionally, the reasoning module is specifically used to: input the download information into a pre-trained file path model to perform storage path reasoning to obtain the inferred storage path;

[0102] In response to a confirmation operation on the inferred storage path, the inferred storage path is determined as the target storage path.

[0103] Optionally, the device further includes: a marking module, a file management module and a model training module; wherein,

[0104] The marking module is used to store the download information and the target storage path of the target file into a preset path database;

[0105] The file management module is used to obtain an updated storage path of the target file when a path change operation on the target file is detected;

[0106] The model training module is used to update the file path model according to the download information and the updated storage path.

[0107] Optionally, the model training module is specifically used to: use the download information as a model training condition;

[0108] Using the updated storage path as the expected training result of the model training condition;

[0109] The model training conditions and the expected training results are input into the file path model for model training to update the file path model.

[0110] Optionally, the device further comprises: a path changing module, a path selecting module and a path determining module; wherein,

[0111] The path changing module is used to display a file path selection page corresponding to the file manager in response to a path changing operation on the inference storage path;

[0112] The path selection module is used to determine the designated storage path of the target file in response to the storage path selection operation on the file path selection page;

[0113] The path determination module is used to determine the designated storage path as the target storage path.

[0114] Optionally, the model training module is further used to:

[0115] Using the downloaded information as a model training condition;

[0116] Using the designated storage path as the expected training result of the model training condition;

[0117] The model training conditions and the expected training results are input into the file path model for model training to update the file path model.

[0118] The system file download device based on open Hongmeng provided in an embodiment of the present invention can execute the system file download method based on open Hongmeng provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0119] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their modes are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0120] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0121] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer grid such as the Internet and / or various telecommunication grids.

[0122] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a system file download method based on open Hongmeng.

[0123] In some embodiments, the system file download method based on open Hongmeng may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the system file download method based on open Hongmeng described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the system file download method based on open Hongmeng by any other appropriate means (e.g., by means of firmware).

[0124] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0125] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the modes / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0126] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0127] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0128] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a grid browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication grid). Examples of communication grids include: a local area network (LAN), a wide area network (WAN), a blockchain grid, and the Internet.

[0129] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication grid. The client and server relationship is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0130] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0131] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the system file downloading method steps based on open Hongmeng provided in any embodiment of the present invention are implemented. The method includes:

[0132] In response to the software downloading operation on the target file, obtaining download information of the target file;

[0133] Perform storage path inference based on the download information to determine the target storage path of the target file;

[0134] Download the target file to the target storage path.

[0135] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0136] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0137] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0138] Computer program code for performing the operation of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of grid, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0139] It should be understood by those skilled in the art that the above modules or steps of the present invention can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a grid composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0140] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0141] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A system file download method based on open Hongmeng, characterized in that: include: In response to the software downloading operation on the target file, obtaining download information of the target file; Perform storage path inference based on the download information to determine the target storage path of the target file; Download the target file to the target storage path.

2. The method according to claim 1, characterized in that The download information includes software name, file name, file type and device identification.

3. The method according to claim 2, characterized in that The performing storage path reasoning according to the download information to determine the target storage path of the target file includes: Inputting the download information into a pre-trained file path model to perform storage path inference to obtain an inferred storage path; In response to a confirmation operation on the inferred storage path, the inferred storage path is determined as the target storage path.

4. The method according to claim 3, characterized in that After downloading the target file to the target storage path, the method further includes: Storing the download information and the target storage path of the target file in a preset path database; When a path change operation on the target file is detected, obtaining an updated storage path of the target file; The file path model is updated according to the download information and the update storage path.

5. The method according to claim 4, characterized in that The updating of the file path model according to the download information and the update storage path includes: Using the downloaded information as a model training condition; Using the updated storage path as the expected training result of the model training condition; The model training conditions and the expected training results are input into the file path model for model training to update the file path model.

6. The method according to claim 3, characterized in that After inputting the download information into a pre-trained file path model to perform storage path inference and obtain the inferred storage path, the method further includes: In response to the path change operation on the inferred storage path, displaying a file path selection page corresponding to the file manager; In response to a storage path selection operation on the file path selection page, determining a designated storage path for the target file; The designated storage path is determined as the target storage path.

7. The method according to claim 6, characterized in that After determining the designated storage path of the target file in response to the storage path selection operation on the file path selection page, the method further includes: Using the downloaded information as a model training condition; Using the designated storage path as the expected training result of the model training condition; The model training conditions and the expected training results are input into the file path model for model training to update the file path model.

8. A system file download device based on open Hongmeng, characterized in that: include: A download module, used for obtaining download information of a target file in response to a file download operation of the software on the target file; An inference module, used to perform storage path inference according to the download information to determine a target storage path of the target file; A storage module is used to download the target file to the target storage path.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the system file download method based on Open Hongmeng as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the system file download method based on open Hongmeng as described in any one of claims 1 to 7 when executed.

Citation Information

Cited By

  • Automatic file arrangement framework and method based on large language model and computer program product

    CN119961226A

  • Automatic file organization framework, method and computer program product based on large language model

    CN119961226B